-
Notifications
You must be signed in to change notification settings - Fork 80
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
assert failed in processLimit #50
Comments
i have gdb into the core.
|
Hello, could you send more ? I mean parts of your code? I will try to check again this part of code. Thanks.
|
the code is almost the same as readme, except it is called in multithread environment. |
Overall there should be only 1 thread that consumes ( calls Usually you have 1 consumer thread for example main thread that will process events and call your listeners. Thanks to that you always know on what thread you listeners would be executed. |
oh, that is not easy to do. so i should use a cycle thread to consume the events? |
Ok nvm, I will create test for this. Maybe there is a bug. In source code I see there is already mutex for "single process"
|
emm, i saw that too, so maybe mutex is missed somewhere. i found that when call frequency is slow, it works well |
Thanks, I will find issue and fix it soon (I will try this weekend). My best guess for now that there is some data race between process() and postpone() |
@gelldur is there any progress? |
Sorry didn't have time. I will try soon. If you find solution It would be nice to merge your PR :) |
I got an exception and the program crashed, i don't really know how to reproduce it, it is not triggered by a special parameter. would you please help me to figure it out. @gelldur
The error log:
/thirdparty/EventBus-3.0.4/lib/src/dexode/EventBus.cpp:57: std::size_t dexode::EventBus::processLimit(std::size_t): Assertion `removeFrom != _eventStreams.end()' failed.
The source code is here:
The text was updated successfully, but these errors were encountered: