I’m getting a reliably repeatable crash on iOS devices after showing a Vungle ad with audio. After the Vungle ad (full screen interstitial video) has completed it returns to my game. If any time after that I suspend my app by pressing the ‘home’ key, then resume the game, it crashes with a seg. fault 11 error in the console.
The reason I suspect it’s related to Vungle audio is because i hear the audio from the old ad play again for about 1/2 second before the crash. I have a listener function for the ‘resume’ event where I do an audio.resume for my game’s audio that was paused by the suspend, so perhaps Vungle is not cleaning up it’s audio properly after playing the ad. To be clear, I’m letting the ad finish and my game continue as normal before I initiate the suspend/resume that triggers the crash.
If I suspend/resume my app before the first Vungle ad plays it doesn’t crash.
This is using daily build 1198 and tested on an iPhone 5. I haven’t tested on Android yet.
I’m wondering if anyone who is using Vungle can try suspending/resuming their app after a Vungle ad plays and see if they get a similar crash or not?
EDIT:
Additional output from the console log at time of crash, so definitely something to do with audio:
<Warning>: Job appears to have crashed: Segmentation fault: 11
<Warning>: Application exited abnormally with signal 11: Segmentation fault: 11
<Error>: 12:35:24.264 <AudioControl> AudioSessionSetClientPlayState(4166): cannot get ClientInfo
<Error>: 12:35:24.266 <AudioControl> AudioQueue: Error ‘ini?’ from AudioSessionSetClientPlayState(4166)
<Error>: libMobileGestalt copySystemVersionDictionaryValue: Could not lookup ReleaseType from system version dictionary
I should also mention that I have to manually pause audio in my game while playing a Vungle ad, otherwise the audio from the ad and the app play over each other and sounds like a mess. So I then have to manually audio.resume in a vungle ad listener when it encounters an adEnd event. This all seems to work fine, except for this crash after a pause/resume of the app after showing an ad.
EDIT 2:
I also get the same crash if I pause/resume my game while the ad is playing. If anybody has a live app on the appstore that uses Vungle ads I’d be happy to download and test to see if it crashes with Vungle ads.