-
-
Notifications
You must be signed in to change notification settings - Fork 562
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
arm7协程中opencv resize触发Bus error #258
Comments
wg.add();
go([wg, mat]{
cv::Mat tmp; |
一样的错误,我猜想可能和arm7内存对齐问题有关,但是找不到解决方法 |
@aijle |
应该不是,你看我的代码,cv::resize不在协程中是没问题的,而且错误是SIGBUS,一般都是内存对齐引起的。我现在用多线程处理cv::resize了。这里又有一个问题,一开始我用得std::async在协程里面处理,运行大约5300次后,程序就出现异常行为,但是也没有奔溃,直到我在外面创建一个线程处理,这才正常运行。有什么方法可以查看协程内存的情况,感觉是内存的问题。 |
用 coost 3.0 |
2升级3后,编译不了可能是什么原因 |
如果用的是动态库,不要直接 |
是的,我用nm查看了,3.0是没有。那怎么使用max_log_file_size |
v3.0 中可以使用 |
可以试试用 tbox 跑你那段 opencv 的代码 |
确认下是否超默认的协程栈了,创建协程时候 调大点栈试试 |
@aijle 可以按 ruki 的建议试试,用 |
感谢你们的提议,我前面设置了10m,尝试了升级到3,还是一样的问题。现在我用多线程解决这个问题,后面有时间再看。 |
堆栈
The text was updated successfully, but these errors were encountered: