crash after running out of ad network
GoogleCodeExporter opened this issue · 2 comments
GoogleCodeExporter commented
What steps will reproduce the problem?
1. Run app on simulator for a while
2. iAds is the only ad provider.
3.
What is the expected output? What do you see instead?
expect no crash. Instead it crashes.
What version of the product are you using? On what operating system?
iOS 5.1 Simulator.
Adwhirl 3.1.1
Please provide any additional information below.
2012-08-20 01:06:02.556[23972:c07] ADBannerView: Unhandled error (no delegate
or delegate does not implement didFailToReceiveAdWithError:): Error
Domain=ADErrorDomain Code=3 "The operation couldn’t be completed.
没有广告库存" UserInfo=0x1394d0d0 {ADInternalErrorCode=3,
NSLocalizedFailureReason=没有广告库存}
Current language: auto; currently objective-c
(gdb) po error
Error Domain=com.adwhirl.sdk.ErrorDomain Code=120 "No more ad networks to roll
over" UserInfo=0x139544e0 {NSLocalizedDescription=No more ad networks to roll
over}
(gdb) po self
<AdWhirlView: 0xf778a40; frame = (128 589; 768 66); clipsToBounds = YES;
autoresize = LM+RM; layer = <CALayer: 0xf778ac0>>
(gdb) info stack
#0 0x0208e09b in objc_msgSend ()
#1 0x00206264 in colorLookupTable ()
#2 0x0015a1f6 in -[AdWhirlView notifyDelegateOfErrorWithCode:description:]
(self=0xf778a40, _cmd=0x2063b9, errorCode=120, desc=0x2ae0d4) at
/trunk/../dependencies/AdWhirl/internal/AdWhirlView.m:993
#3 0x001595f9 in -[AdWhirlView adapter:didFailAd:] (self=0xf778a40,
_cmd=0x20566b, adapter=0xbb6de70, error=0x1394c540) at
/trunk/../dependencies/AdWhirl/internal/AdWhirlView.m:809
#4 0x00148685 in -[AdWhirlAdapterIAd bannerView:didFailToReceiveAdWithError:]
(self=0xbb6de70, _cmd=0x1c007f2, banner=0xbb8fd50, error=0x1394c540) at
/trunk/../dependencies/AdWhirl/adapters/AdWhirlAdapterIAd.m:123
#5 0x01bed159 in -[ADBannerView _sanitizeAndForwardErrorToDelegate:] ()
#6 0x01bec110 in -[ADBannerView serverBannerViewDidFailToReceiveAd:withError:]
()
#7 0x01be97a4 in -[ADBannerController _remote_bannerViewDidFail:] ()
#8 0x025f8e42 in -[NSObject performSelector:withObject:] ()
#9 0x01bf7c81 in -[ADSession _handleAdSheetMessage:userInfo:] ()
#10 0x01bfa49e in -[ADAdSheetProxy xpcConnection:receivedMessage:userInfo:] ()
#11 0x01bfb0a8 in __32-[ADXPCConnection _handleEvent:]_block_invoke_057 ()
#12 0x02c07330 in _dispatch_call_block_and_release ()
#13 0x02c09509 in _dispatch_main_queue_callback_4CF ()
#14 0x0252e803 in __CFRunLoopRun ()
#15 0x0252dd84 in CFRunLoopRunSpecific ()
#16 0x0252dc9b in CFRunLoopRunInMode ()
#17 0x024e07d8 in GSEventRunModal ()
#18 0x024e088a in GSEventRun ()
#19 0x00824626 in UIApplicationMain ()
#20 0x000e3a1a in main (argc=1, argv=0xbffff510) at /trunk/Classes/main.m:15
(gdb)
Original issue reported on code.google.com by ch...@pokerincome.com
on 20 Aug 2012 at 8:18
GoogleCodeExporter commented
[deleted comment]
GoogleCodeExporter commented
I'm seeing the same problem as well on both iOS 5.1 and 6.0
First this error is output to the debug screen:
[AppDeveloper]: ADBannerView: Unhandled error (no delegate or delegate does not
implement didFailToReceiveAdWithError:): Error Domain=ADErrorDomain Code=0 "The
operation couldn’t be completed. Unknown error" UserInfo=0x8d8ad70
{ADInternalErrorCode=7, ADInternalErrorDomain=ADErrorDomain,
NSLocalizedFailureReason=Unknown error}
And then immediately after that my delegate method for
adWhirlDidFailToReceiveAd gets called
My expectation was that AdWhirl would have implemented the iAd ADBannerView
delegate methods internally as part of the SDK and hidden the internals of any
of the specific advertising systems, such as iAd's ADBannerView from its users
(ie. logically abstracted the internal details of the lower level advertising
system being worked with).
So what should I be doing in my code to resolve the ADBannerView delegate
methods?
Original comment by paul...@gmail.com
on 28 Sep 2012 at 11:02