-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
Crashed when closing app #2572
Comments
Try calling |
I call But, thank you, I found that printing logs after shutdown called triggers the crash. So I just removed drop_all/shutdown, and I am now at peace. Is it a bug that needs to be fixed? (check if shutdown is called before logging) |
No. It is by design that spdlog crashes after calling these APIs. |
I found that i need to call |
@beautifulnight It is better to call, but the registry is a |
scene:
When the main function is returned, a detached thread print a log, then crashed(probabilistic occurrence).
version: spdlog-1.10.0
crashed message:
crashed stack:
How to avoid it?
The text was updated successfully, but these errors were encountered: