You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
This is a random crash. There seems to be no correlation with events and when
the crash
occurs.
What is the expected output? What do you see instead?
This is a crash.
What version of the product are you using? On what operating system?
iPhone game. Base SDK 3.0, deployment target 2.2.1. Happens across all devices.
Please provide any additional information below.
I am experiencing a weird random crash with AdMob. I am using AdWhirl
to integrate it in. The crash log looks like:
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x00000414
Crashed Thread: 0
Thread 0 Crashed:
0 libobjc.A.dylib 0x334776f4 0x33475000 + 9972
1 App 0x000cffe0 -[AdMobAd
backgroundColor] + 48
2 App 0x000df1e4 -
[AdMobOldSchoolSingleAdView drawRect:] + 248
It also sometimes happens on just the AdMobOldSchoolSingleAdView
method.
Original issue reported on code.google.com by mobile...@gmail.com on 22 Mar 2010 at 6:57
This is part of issue between AdWhirl adapter and admob library.
Here's what's happening during crash.
1) AdWhirl selects AdMob
2) AdMob lib requests an ad and receives it
3) However, the ad is not displayed (either modal view controller is presented,
or
table view is scrolled)
4) AdWhirl roller timer expired, then requests a new ad which releases current
existing AdWhirlAdmobAdapter
5) Close the modal view or scroll table view to display previous ad
6) Old ad adapter calls freed admob adapter's adBackgroundColor method
7) App crashes
The point is [AdWhirlView requestFreshAd] method releases adapters *before*
roll over
to new ad. (AdWhirlView.m: line 190) This isn't safe because AdWhirlView
rolls over
old and new ads using animations, which means old ad view's drawRect will be
called
in certain situation (like above). So, the old ad view (ad adapter) should not
be
released until the animation is ended. In this case, old adapter's
backgroundColor
method is called during the animation.
I implemented a workaround in my application, but I should be taken care in
AdWhirl
library.
Original comment by kaz...@gmail.com on 23 Mar 2010 at 9:33
Original issue reported on code.google.com by
mobile...@gmail.com
on 22 Mar 2010 at 6:57The text was updated successfully, but these errors were encountered: