-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Crashing with EXC_BAD_ACCESS KERN_INVALID_ADDRESS while initializing Realm #6308
Comments
Thanks for the details. In order tell why the
In the interim you could handle the error with a try/catch instead of disabling error propagation ( |
We are experiencing this as well. We are unable to reproduce. It happens for quite a few users, but not everyone. Was introduced when jumping to |
Getting this error 377 times in 7 days after updated to realm 5.0.0. It's a disaster.
|
Still happens on
|
➤ Brian Munkholm commented: This is assumed Fixed a while back now. If you are still seeing this, please comment with fresh observations. |
The same crash: in start application Exception Type: EXC_BAD_ACCESS (SIGSEGV) Thread 14 name: |
Goals
I want to solve a crash that happens ocasionally.
Expected Results
A normal behaviour, without crash nor error.
Actual Results
Steps to Reproduce
Couldn't reproduce. It happens randomly and very exceptionally.
Code Sample
Explanation
Since I'm using Realm in async tasks (because I write on database the results of networking requests), I'm calling initRealm() right before each time I try to access the RealmManager to write or read (in order to avoid exceptions due to uisng a Realm initialized in another thread).
The issue is that, very rarely, when I call
initRealm()
, something happens with the memory management and the application crashes with anEXC_BAD_ACCESS KERN_INVALID_ADDRESS
.It is theoretically an indicator of a dangling pointer, but I'm puzzled because so far it has only happened really few times (4 times in production environment and 1 time in testing, a long time ago).
Any help or hint you can provide would be very appreciated. Thanks in advance!
Version of Realm and Tooling
iOS versions: 10.0 to 13.1
XCode versions: 10.3 and 11
Realm framework version: Realm (3.17.3)
Dependency manager + version: CocoaPods 1.8.3
The text was updated successfully, but these errors were encountered: