Open lachtos opened 4 years ago
I do not know if this is related but I have a similar crash just in production (but it is not the same). I can not reproduce it as well. Crash report is from an iPhone 11 running iOS 15.0.0 and react-native-sound 0.11.0.
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x00000002682c5400
Crashed: com.apple.main-thread
0 libobjc.A.dylib 0x2bf0 objc_release + 16
1 MYAPP 0x15fa34 -[RNSound audioPlayerDidFinishPlaying:successfully:] + 89 (RNSound.m:89)
2 AVFAudio 0x42974 -[AVAudioPlayer(AVAudioPlayerPriv) finishedPlaying:] + 128
3 Foundation 0x3de0c __NSThreadPerformPerform + 232
@mklb were you able to find the cause of your crash? I have been seeing same crash in our production.
@balsikandar No I did not. Somehow I do not see a crash like this any more. I updated to 0.11.2
a while ago.
Thanks, @mklb I'll see if that helps. I'm currently using 0.11.0
:beetle: Description I have been having these crashes for the past three months (at least) on iOS in production. Mostly on iPad (76% cases). In my app, I have a screen where I load 6 short sounds and cycle through them, sometimes they are being played in quick succession (at least 50ms in-between). After analysing event logs just before the crash, it seems that it might be crashing due to this quick cycling through the sounds. However, I cannot reproduce the problem myself, I have tried just mindlessly playing the sounds in a loop for an extended period of time and it doesn't seem to crash.
Crash info from Crashlytics:
:beetle: What is the observed behavior? Can't reproduce so I'm not sure when it crashes.
:beetle: What is the expected behavior? Not crashing.
:beetle: Please post your code:
Shouldn't be relevant in this case
:bulb: Does the problem have a test case? x
:bulb: **Possible solution** x:bulb: Is there a workaround? x
:bulb: If the bug is confirmed, would you be willing to create a pull request? I am not familiar with Obj-C
Is your issue with...
Are you using...
react-native run-android
)Which versions are you using?
Does the problem occur on...
If your problem is happening on a device, which device?