-
Notifications
You must be signed in to change notification settings - Fork 136
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
Crash when logging a debug level event via Logger #47
Comments
@00FA9A Thank you for the stack trace! As far as I see, this is related to the |
@ncreated we only pass message string and no attributes, which is what puzzles me considering that it appears to fail when merging dicts |
@00FA9A Thanks for details. I looked closer into the crash and The crashing signal you're receiving suggests an unowned memory access:
I can see from the Thread 7th stack trace (instructions 7 to 2) that you dispatch logging asynchronously to separate queue by wrapping it in
Is it possible for you to post the relevant parts of the code, so we can see how the wider context of logger configuration and try to reproduce the crash? Also, two diagnostic questions:
If it's relevant for you, you can reach me on Datadog public Slack so we can iterate on this faster. |
Datadog is initialized on app launch. Logger is build immediately following that.
After this is complete, and we have updated user objet with latest from our backend, we will set user attributes with:
This happens every time user object is updated, and that could happen multiple times during a session We later use |
Thanks @00FA9A 🏅. I managed to catch the crash with stack trace very similar to your. This crash is the highest priority now and we will ship the fix soon. A workaround is to avoid adding / removing |
It appears that in all cases, this occurs shortly after launch / after Logger is created.
Crash details:
Redacted crash report included in zip file:
2020-03-11_21-34-05.9183_-0400-d9f8257d00b30d86bce2bfac00812dcd649fff30.crash.zip
Last commit in version we are currently using is 5eb1ecc
The text was updated successfully, but these errors were encountered: