archibate / co_async

C++20 Coroutine Library for Education Purpose (WIP)
179 stars 11 forks source link

terminate called after throwing an instance of 'std::bad_optional_access' #14

Closed Lu0su closed 2 weeks ago

Lu0su commented 2 weeks ago

完整错误如下: terminate called after throwing an instance of 'std::bad_optional_access' what(): bad optional access fish: Job 1, './build/test_co_async' terminated by signal SIGABRT (Abort)

在examples/chat_server运行时,当我在浏览器中输入用户名,按下登陆按钮后,出现了这个问题,请问您知道为啥吗? 我的环境是: 5.15.133.1-microsoft-standard-WSL2 内核版本有点低,但是已经开启了相应的选项,并且连接过程没有问题 难道还是由于内核版本太低导致的吗?

archibate commented 2 weeks ago

不支持wsl,因为我发现iouring需要linux 6.0才有完整支持,而wsl的内核版本和wendous捆绑,是不能更新的。

Lu0su commented 2 weeks ago

原来是这样,谢谢