-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Instant crash. Something to do with my std::thread implementation #2546
Comments
There doesn't appear to be enough information for this report to be actionable. A minimal reproduction is the best way for anyone to figure out how to fix it. Since I'm left with no other options, I could take a wild guess that you might be running into issues with reentrancy on the internal lock within |
I'm not sure I would be able to create a minimal repo as just refactoring the code to work with a second thread had me contacting many people and failing twice. |
I will attempt to show what part may be causing issues later without minimal repo |
This is what i believe is causing problems |
I can't see all of the types in that code, but which part is relevant to I speculate the locks that this thread holds reference state that the GUI will draw. If that is the case, you need to drop the lock guards before you sleep the thread. With the structure of your code, the locks will be held over the sleep and that will starve the GUI thread while it attempts to acquire the lock. But this is again just speculation, and I do not know exactly how this code relates to |
Describe the bug
Application crashes instantly with no errors
To Reproduce
Open application
Expected behaviour
Application does not crash and runs fine
I'm on win11
This has something to do with my threading code as the app was just ok before I added threading to decouple my program's calculations and rendering.
The text was updated successfully, but these errors were encountered: