Crash from Raygun4Apple SDK
Massimiliano
Posted on
Mar 31 2025
I have embedded the latest version of Raygun4Apple (cocoapod and SPM version) into an iOS application and among the crash reports I have many cases of unclear problems of type EXCBADACCESS. Below are some examples:
Message: Exception EXCBADACCESS, Code 4242723744, Subcode 8 Attempted to dereference garbage pointer 0xafce2d3a0.
0 0x66234481f354ada0 0x0 + 0 1 0xda1a6f019bb48158 0x0 + 0 2 0xe4325c019bb47bd0 0x0 + 0 3 0x881234019bb35e88 0x0 + 0 4 0x664915018d79dbdc 0x0 + 0 5 libobjc.A.dylib 0x000000018d79a1d4 0x18d798000 + 8660 6 libobjc.A.dylib 0x000000018d79c174 0x18d798000 + 16756
Message: Exception EXCBADACCESS, Code 0, Subcode 8 Attempted to dereference null pointer.
0 0x8a39000212388680 0x0 + 0 1 0x4a2780018f4cdbd8 0x0 + 0 2 0x622a00018f4ce38c 0x0 + 0 3 0x472b00018f4c3124 0x0 + 0 4 0x147900018f4c25cc 0x0 + 0 5 0x371b00018f4bafa8 0x0 + 0 6 0xb11c80018f4b9248 0x0 + 0.
7 0xbd79000218f22a48 0x0 + 0 8 0x8510800218f2319c 0x0 + 0 9 0xbe04000218f233e4 0x0 + 0 10 0x2e23800218f8ab1c 0x0 + 0 11 0xcb2e800218f778dc 0x0 + 0 12 0x2031000218f77bcc 0x0 + 0 13 0xd716000189894cc4 0x0 + 0 14 0xd06c0001897f178c 0x0 + 0 15 0x30150001897bdeb0 0x0 + 0 16 0xf9050001897bf300 0x0 + 0 17 0x0b46000189a07954 0x0 + 0 18 0x7070800189944640 0x0 + 0 19 CoreGraphics 0x00000001898b28c8 CGPDFImageCreateImageForRenderingSize + 588 20 libobjc.A.dylib 0x0000000184c77c38 objc_msgSend + 56
Thanks in advace. Massimiliano.
Sumitra
Raygun
Posted on
Mar 31 2025
Hi there,
Thank you reaching out to us! My apologies that you're having issues here.
In order to investigate further, I will need to know the following -
Are you using Swift or Objective C in your app?
Are you swizzling or redefining NSThread in any way?
Have you used the Zombies tool in XCode to look for heap corruption?
What previous version of the client were you using?
Looking forward to hearing from you!
Kind regards, Sumitra
Massimiliano
Posted on
Apr 01 2025
Hi Sumitra, thanks for the reply. I will answer the questions you asked me in line.
Are you using Swift or Objective C in your app? - Both
Are you swizzling or redefining NSThread in any way? - No
Have you used the Zombies tool in XCode to look for heap corruption? - No
What previous version of the client were you using? - we were using the version 2.1.2 of sdk available for cocoapods. Did you fix something about this issue in version 2.1.3 for SPM?
I noted that in many crash reports, the issue reports an error like .cxxdestruct (in the attached 237447604754.json is objcdestructInstance) could it be useful in order to investigate our problem with the sdk?
Also attached you can find a screenshot of an error that is reporting the SDK in the Raygun_KSCrash class to the allReports method. I don't know if it is related to the problem I'm reporting but I'm sending it to you anyway
Regards, Massimiliano
Sumitra
Raygun
Posted on
Apr 02 2025
Hi there,
Thank you for the info!
We'll continue looking into your issue and let you know more details once we've made more significant progress.
Kind regards, Sumitra
Sumitra
Raygun
Posted on
Apr 07 2025
Hi there,
So far, we believe that these crashes are not the cause of the Raygun provider because we don't have theDisplayData
class in our provider. This may be an issue in your app code.
We'll need further information to further determine this. If you are able to obtain crash reports from TestFlight/AppStore and send it to us via our contact form, that would be helpful. You can also privately send the fully symbolicated build
Can you also run the zombies/address sanitizer on your app to see if this resolves the issue.
If you are interested, this was our recent change to our provider - https://github.com/MindscapeHQ/raygun4apple/releases/tag/2.1.3
Kind regards, Sumitra
Sumitra
Raygun
Posted on
Apr 09 2025
Hi there,
I wanted to check in and see if you managed to get around to reviewing my previous response?
Looking forward to hearing from you!
Cheers, Sumitra