-
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
Crash inside RLMIsObjectSubclass #5618
Comments
Based on the crash log, My suggestion would be to attempt to reproduce this locally. Guard Malloc or Malloc Scribble could be useful tools in doing this. Once this is accomplished, Malloc Stack Logging would help you determine whether the faulting address was once a valid allocated address, and where it came from. This may help pinpoint what's gone wrong. |
There is nothing we can do here without a repro case. |
This issue is currently our top crash as well, we're still experiencing it on v3.6. |
we have this crash also and it might be helpful to know that we have firebase performance which has FirebaseSwizzlingUtilities as a dependency, which does some method/class runtime manipulation I suppose, so is it possible that FirebaseSwizzlingUtilities can cause this crash? |
If they're ever calling |
Thanks for the replay @tgoyne , what we did in the hope of fixing the crash is create the Realm with configuration on the main thread instead of a Serial background queue, could this possibly fix the crash? or is there any other suggestion or a workaround? |
Hey - looks like you forgot to add a T:* label - could you please add one? 👍 |
I can easily reproduce this crash when I use Realm in a custom framework :
Then, it will crash cause the method RLMIsObjectSubclass(), and also log "Can't add non-Object type 'xxxxxx' to a schema." |
Is there any progress with that issue? I also suppouse that's caused by FirebaseSwizzlingUtilities used in the FirebasePerformance framework. Maybe something like that would help? |
Any updates? Starting to see this crash more often |
We also face to this issue. Before having FirebasePerformace in the project, we had no these crashes. |
Anyone find a workaround for this issue? |
What helped for us is disable firebase automatic measurements like
_app_start, automatic UIViewControllers loading time, and networking
monitoring (Firebase performance):
Performance.sharedInstance().isInstrumentationEnabled = false
Apparently to implement automatic firebase measurements they had to do a
lot of swizzling, and if disabled, the conflict with Realm is resolved.
Hope this helps!
…On Tue, Mar 26, 2019 at 2:54 PM Tim Walsh ***@***.***> wrote:
Anyone find a workaround for this issue?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#5618 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACf6HVbiG1fDjace7-aJbwjA4VciE8_Cks5vaiZ7gaJpZM4SIRSR>
.
|
We will try that... Thanks @mohammedDehairy |
Having the same issue and we also use FirebasePerformance... |
|
I have lots of crash now. I decide to use FMDB instead of Realm since the isssue is still open. |
Hey, thanks for the suggestions regarding disabling the instrumentation and/or the automatic Firebase measurements. Can anyone confirm however whether it is required to disable ALL Firebase Performance Monitoring functionality, and therefore you cannot to receive any benefit of Firebase Performance Monitoring if we are using Realm? Or when you mentioned "disable firebase automatic measurements like app_start" @mohammedDehairy does that suggest that custom tracing still works for you? I also wondered (although Im not too hopeful) whether disabling the monitoring SDK at build time but enabling it at runtime using Has anyone had any success in getting beyond this issue when using both Realm and the Firebase Performance Monitoring SDK in the same App? Thanks in advance for any input.
|
If someone can provide a reproduction case that would be very helpful in determining the cause of this crash along with an eventual fix if it is on the realm side |
Thanks @ianpward - will try. We are also going to try and confirm if the issue still occurs when using the latest Firebase PerfMon SDK with the latest Realm (v5 then, time permitting, 10). We couldn't ever see or reproduce the issue ourself before we had to disable the Firebase monitoring, but some of our users did experience the same crash above re |
Hey @julianD77 , were you able to confirm this? If so (or if it's no longer relevant), we can close the issue. |
Sorry - I didn't see the earlier message prompting for an update. It's a WIP still to try out the latest Realm and Firebase Perf SDKs to see if the issue occurs. We just need to find time in our work and release schedule when we can try this out, rolling it out to just a small percentage of users to that it doesn't have a big impact if the issue is still there. I will comment here once we have more information. |
I am currently experiencing this crash. What info can I provide? Xcode 12.4, latest realm, recent firebase. |
@aehlke Yes, could you post details of the specific versions of the Realm SDK and Firebase Performance Monitoring SDK that you are using please? |
Though, i'm not capable of reproducing it, our users do get this crash.
Note: |
Realm crashes often.
|
Any good news? |
Unfortunately no :/ |
@Nahatakyan @raduncicen are you on the latest version of Realm? |
@jsflax in my case |
I'm about to be :) It's in app review. @jsflax Firebase/Performance -> 8.6.0 |
Can either of you post a stack trace? Happy to reopen this and take a look if so. |
I don't have it right now. Next time i will take a screenshot 👍 |
I can't catch this crash. It's from Crashlytics.
|
Has anyone tried this approach? #7275 (comment) |
Also experiencing this as a top crash in our app. Opened an issue with Firebase as well, hopefully it's possible to coordinate something that fixes or works around this issue. |
Any update, I have the same problem as well |
+1 |
Any update.. I am facing this issue only in production environment and it is capturing through firebase.. Not able to reproduce the same in Debug build |
Hi, everyone! Ran into this crash in my app recently. It appears that there is no crash at all if I pass Code to illustrate workaround:
Thanks! |
Thanks to @haozhutw --answer link-- After searching for the whole google I came to their comment and it seems to be a fine solutions as checking the logs of the Method :
actually invokes for every class at the time of initialisation of the app. My app was having several crashes almost for like 1.5% users on a same line of code in pods file of Realm folder which was this :
Changing the configurations for the Class's
The main motive is clear that Realm should not find multiple classes amongst the app and should stick to particular array of classes provided to it (as suggested in the mentioned answer) so that It wont have an option to execute several times where in some exceptions it gets nil value which makes the app Crash. Hope This Helps, as I myself has seen no crash of particular reason after this possible fix. |
Goals
Open realm.
Expected Results
No crash
Actual Results
Crash
More details at: http://crashes.to/s/a2cb0314979
Steps to Reproduce
It's our top crash now, it's happened at 0.5% of daily users.
Code Sample
Version of Realm and Tooling
Realm framework version: Realm-cocoa 3.1.1
Realm Object Server version: 2.7.2
Xcode version: 9.2
iOS/OSX version: iOS 11 and iOS 10
Dependency manager + version: Cocoapods 1.4.0
The text was updated successfully, but these errors were encountered: