iOS app crashing on calling startTrace method #602
Labels
bug
Something isn't working properly
ios
relates to iOS platform
legacy
Related to inherited code/functionality
runtime issue
An issue related to app runtime
Hi there, i decided to file a bug report due to hard crashs happening only on iOS devices, which seem to be related to something inside this plugin code.
Bug report
CHECKLIST
I have read the issue reporting guidelines
I confirm this is a suspected bug or issue that will affect other users
I have read the documentation thoroughly and it does not help solve my issue.
I have checked that no similar issues (open or closed) already exist.
Current behavior:
The iOS App is crashing many times (but not always) with a com.apple.root.default-qos on plugin method startTrace (either with "SIGABRT ABORT" or "EXC_BAD_ACCESS KERN_INVALID_ADDRESS"), reporting
FirebasePlugin.m - Zeile 1448 __29-[FirebasePlugin startTrace:]_block_invoke + 1448
as the cause.The crash not happens on Android, but only on iOS on a variety of devices (iPhone X, iPhone XR, iPhone 11 Pro, iPhone 12 Mini, iPhone 8, iPhone 12 Max Pro, iPhone iPhone SE 2nd gen) and iOS versions (iOS 14.4.0, 14.5.0).
Expected behavior:
The app should not crash on calling firebase plugin startTrace method.
Crashlog
Environment information
Other information:
I briefly looked over the iOS source code of FirebasePlugin.m startTrace method.
Maybe it could be a problem calling
FIRTrace *trace = [self.traces objectForKey:traceName];
in line 1449 before checking for existanceif ( self.traces == nil) { self.traces = [NSMutableDictionary new]; }
in line 1451 ff?But nevertheless the try/catch block should handle that kind of error and this doesn't explain any heap related errors..
Thanks in advance for any hint on this problem.
The text was updated successfully, but these errors were encountered: