Crash after updating from Google Mobile Ads v7.4.1 to v7.12

901 views
Skip to first unread message

Diego Rodero

unread,
Oct 3, 2016, 2:25:46 PM10/3/16
to Google Mobile Ads SDK Developers
Hello, I have a project I started several years ago. Every year, I update it to the latest Admob SDK. But now, when I put the new version v7.12, the same code, crash. Even, I've tried a copy that I had for GoogleMobileAds.framework, v7.6 and also crash. So it is ok with v7.4.1 but crash with v7.6 and above. I'm using XCode 8.0 compiling for iOS 8 as minium level requiered.

I't crashes with any call to the library, for example:

NSLog(@"Google Mobile Ads SDK version: %@", [GADRequest sdkVersion]);

The stack trace of the last version (v7.12) is:

2016-10-03 20:24:16.669 AnimalesEnPuzle[66814:9025448] -[NSTaggedPointerString count]: unrecognized selector sent to instance 0xa00656c646e696b6
2016-10-03 20:24:16.679 AnimalesEnPuzle[66814:9025448] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSTaggedPointerString count]: unrecognized selector sent to instance 0xa00656c646e696b6'
*** First throw call stack:
(
   
0   CoreFoundation                      0x0000000108cac34b __exceptionPreprocess + 171
   
1   libobjc.A.dylib                     0x000000010870d21e objc_exception_throw + 48
   
2   CoreFoundation                      0x0000000108d1bf34 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
   
3   CoreFoundation                      0x0000000108c31c15 ___forwarding___ + 1013
   
4   CoreFoundation                      0x0000000108c31798 _CF_forwarding_prep_0 + 120
   
5   CoreFoundation                      0x0000000108c29044 -[NSSet initWithArray:] + 36
   
6   AnimalesEnPuzle                     0x000000010510936f GADIsAtLeastVersion + 12584
   
7   AnimalesEnPuzle                     0x0000000105106b88 GADIsAtLeastVersion + 2369
   
8   AnimalesEnPuzle                     0x00000001051069f1 GADIsAtLeastVersion + 1962
   
9   AnimalesEnPuzle                     0x0000000105106843 GADIsAtLeastVersion + 1532
   
10  AnimalesEnPuzle                     0x00000001050902f5 GADiTunesMetadataForFileAtPath + 2435
   
11  AnimalesEnPuzle                     0x000000010509ae15 GADCategories_GADSlot_Mediation + 25087
   
12  AnimalesEnPuzle                     0x00000001050d445d GADDispatchAsyncSafeMainQueue + 45
   
13  libobjc.A.dylib                     0x000000010870defa CALLING_SOME_+initialize_METHOD + 19
   
14  libobjc.A.dylib                     0x000000010870e126 _class_initialize + 554
   
15  libobjc.A.dylib                     0x0000000108714c1d lookUpImpOrForward + 176
   
16  libobjc.A.dylib                     0x0000000108724554 _objc_msgSend_uncached + 68
   
17  AnimalesEnPuzle                     0x0000000104fe14d9 -[MainViewController PonPublicidadAdMob] + 73
   
18  AnimalesEnPuzle                     0x0000000104fe0bea -[MainViewController MuestraPublicidad] + 122
   
19  AnimalesEnPuzle                     0x0000000104fe1d29 -[MainViewController viewDidLoad] + 73
   
20  UIKit                               0x000000010641806d -[UIViewController loadViewIfRequired] + 1258
   
21  UIKit                               0x00000001064184a0 -[UIViewController view] + 27
   
22  AnimalesEnPuzle                     0x0000000104fd35f6 -[AnimalesEnPuzleAppDelegate preparaPantallaInicialConiOS6] + 886
   
23  AnimalesEnPuzle                     0x0000000104fd308a -[AnimalesEnPuzleAppDelegate application:didFinishLaunchingWithOptions:] + 266
   
24  UIKit                               0x000000010626d68e -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 290
   
25  UIKit                               0x000000010626f013 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 4236
   
26  UIKit                               0x00000001062753b9 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1731
   
27  UIKit                               0x0000000106272539 -[UIApplication workspaceDidEndTransaction:] + 188
   
28  FrontBoardServices                  0x000000010e58776b __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 24
   
29  FrontBoardServices                  0x000000010e5875e4 -[FBSSerialQueue _performNext] + 189
   
30  FrontBoardServices                  0x000000010e58796d -[FBSSerialQueue _performNextFromRunLoopSource] + 45
   
31  CoreFoundation                      0x0000000108c51311 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
   
32  CoreFoundation                      0x0000000108c3659c __CFRunLoopDoSources0 + 556
   
33  CoreFoundation                      0x0000000108c35a86 __CFRunLoopRun + 918
   
34  CoreFoundation                      0x0000000108c35494 CFRunLoopRunSpecific + 420
   
35  UIKit                               0x0000000106270db6 -[UIApplication _run] + 434
   
36  UIKit                               0x0000000106276f34 UIApplicationMain + 159
   
37  AnimalesEnPuzle                     0x0000000104fd0fde main + 62
   
38  libdyld.dylib                       0x000000010a48668d start + 1
)
libc
++abi.dylib: terminating with uncaught exception of type NSException


I've tried using the sdk standalone or even using Pods, but the result is always the same.

What have change from 7.4.1 to have the crash?

Thank you, I'm getting crazy!

Veer Arjun Busani(Mobile Ads SDK Team)

unread,
Oct 3, 2016, 4:37:35 PM10/3/16
to Google Mobile Ads SDK Developers
Hi Diego,

Can you confirm whether you are using any third party frameworks such as SDL or Cocos2D? Do send us a sample app that would reproduce the issue as it would be helpful in debugging this as well. For now, since there is GADiTunesMetadataForFileAtPath  symbol in the stack trace, I'm going to assume that the custom root UIWindow is not being properly synthesized by those libraries and causing this crash. 

Thanks,
Arjun Busani
Mobile Ads SDK Team

Diego Rodero

unread,
Oct 3, 2016, 5:48:28 PM10/3/16
to Google Mobile Ads SDK Developers
Hi Arjun, I don't use any other external framework except flurry (I've planned to use Google Analitics - Firebase soon ;-)

Also is very strange because the error is produced when you call to see the version of the framework ([GADRequest sdkVersion]), before trying to display any banner.

Thanks,

Diego

Veer Arjun Busani(Mobile Ads SDK Team)

unread,
Oct 4, 2016, 9:49:25 AM10/4/16
to Google Mobile Ads SDK Developers
Hi Diego,

Can you send us a sample app and let us know -
  • The device that you are testing on and the SDK version.
  • The Xcode version.
  • Whether you are able to reproduce on a simulator.
Can you also try with a different device and see if the issue still exists?

Thanks,
Arjun Busani
Mobile Ads SDK Team

Veer Arjun Busani(Mobile Ads SDK Team)

unread,
Oct 4, 2016, 9:53:19 AM10/4/16
to Google Mobile Ads SDK Developers
Hi Diego,

Also, can you confirm with our sample apps that you were able to reproduce the issue?

Thanks,
Arjun Busani
Mobile Ads SDK Team

Diego Rodero

unread,
Oct 4, 2016, 1:54:19 PM10/4/16
to google-adm...@googlegroups.com
Hello, I've tested it in other of my projects, and has worked perfectly! So I'm gooing to compare the configuration files of both projects to discover the diferences.

Thank you,

Diego




--

---
You received this message because you are subscribed to a topic in the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-admob-ads-sdk/aHv5xE4oVd4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Message has been deleted

Matic Ozebek

unread,
Oct 10, 2017, 8:09:36 AM10/10/17
to Google Mobile Ads SDK Developers
Helllo Diego,

I am facing the same issue. But cant find solution on this one. Getting same error when trying to load a request.
Have you found something in your configuration files, that mismatched? 

Best,

Matic

Bharani Cherukuri (Mobile Ads SDK Team)

unread,
Oct 10, 2017, 3:26:30 PM10/10/17
to Google Mobile Ads SDK Developers
Hello Matic, 

I'll be able to happy to assist you with this issue. Could you elaborate more on the error you're receiving when trying to load the ads? Additionally, can you provide me more details about your implementation like the SDK version used, type of ads being served as this information will help us investigate further?

Thanks,
Bharani Cherukuri
Mobile Ads SDK Team

On Monday, October 3, 2016 at 2:25:46 PM UTC-4, Diego Rodero wrote:

Matic Ozebek

unread,
Oct 11, 2017, 1:52:38 AM10/11/17
to Google Mobile Ads SDK Developers
Hello Bharani,

here you can check my Stackoverflow question:

The problem is that it seems that AdMob is not even configuring. And when I try to load request for banner, my app crashes. I have two projects, and in one it is working as it should, I am getting banner and interstitial ads (and even Unity video ads), but in other project I cant get them to work.

Maybe the useful information for you would be that the project where ads are not working is combination between Swift and Objective C classes (so it includes bridging header file), because its a bit older.
I am installing AdMob framework via Cocoapods, because I am also using other Firebase tools (Database, Analytics, Crash reporting). All other tools in project work just fine, except AdMob.
I'm using Google-Mobile-Ads-SDK (7.24.1), but I have also tried with older versions, with no luck.

And here is crash log:

2017-10-10 14:59:26.749927+0200 My App[62855:5809313] -[NSTaggedPointerString count]: unrecognized selector sent to instance 0xa000000000062662

2017-10-10 14:59:26.787555+0200 My App[62855:5809313] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSTaggedPointerString count]: unrecognized selector sent to instance 0xa000000000062662'

(lldb) bt

* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGABRT

    frame #0: 0x0000000118081d42 libsystem_kernel.dylib`__pthread_kill + 10

    frame #1: 0x00000001180b9457 libsystem_pthread.dylib`pthread_kill + 90

    frame #2: 0x0000000117d42107 libsystem_c.dylib`abort + 127

    frame #3: 0x0000000116fd991f libc++abi.dylib`abort_message + 245

    frame #4: 0x0000000116fd9abb libc++abi.dylib`default_terminate_handler() + 265

    frame #5: 0x00000001160331be libobjc.A.dylib`_objc_terminate() + 97

    frame #6: 0x0000000116ff5159 libc++abi.dylib`std::__terminate(void (*)()) + 8

    frame #7: 0x0000000116ff51d3 libc++abi.dylib`std::terminate() + 51

    frame #8: 0x0000000116033143 libobjc.A.dylib`objc_terminate + 9

    frame #9: 0x0000000117bf3450 libdispatch.dylib`_dispatch_client_callout + 28

    frame #10: 0x0000000117bf9856 libdispatch.dylib`_dispatch_continuation_pop + 967

    frame #11: 0x0000000117c049b4 libdispatch.dylib`_dispatch_source_invoke + 651

    frame #12: 0x0000000117bfe963 libdispatch.dylib`_dispatch_main_queue_callback_4CF + 1255

    frame #13: 0x00000001166c0ef9 CoreFoundation`__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9

    frame #14: 0x0000000116685662 CoreFoundation`__CFRunLoopRun + 2402

    frame #15: 0x0000000116684a89 CoreFoundation`CFRunLoopRunSpecific + 409

    frame #16: 0x0000000118cb99c6 GraphicsServices`GSEventRunModal + 62

    frame #17: 0x0000000112687d30 UIKit`UIApplicationMain + 159

  * frame #18: 0x000000010e310367 My App`main at AppDelegate.swift:16

    frame #19: 0x0000000117c6fd81 libdyld.dylib`start + 1

(lldb) 


If there are more informations that you need, just let me know!


Best,


Matic


Bharani Cherukuri (Mobile Ads SDK Team)

unread,
Oct 11, 2017, 3:08:35 PM10/11/17
to Google Mobile Ads SDK Developers
Hello Matic, 

Thank you for the additional details. I was not able to reproduce the issue by testing with our sample apps on Xcode version 9.0. Can you try importing the frameworks and compile the project again? If you continue to have an issue with this, would you be able to provide a sample project of your implementation where the issue is reproducible? That will allow me to take a look and investigate the issue further?

Regards,
Bharani Cherukuri
Mobile Ads SDK Team

On Monday, October 3, 2016 at 2:25:46 PM UTC-4, Diego Rodero wrote:

Matic Ozebek

unread,
Oct 11, 2017, 4:02:28 PM10/11/17
to Google Mobile Ads SDK Developers
Hello,

I am also not able to reproduce error. As I already said I am able to get ads to work in other project or in new one. With same implementation as its written on AdMob tuttorial pages.
Ads are not working just in this specific project. I tried to add GoogleMobileAds framework manualy, but no luck.
Strange thing is that there is no single log connected with AdMob sdk when app runs.
It feels like it is not configurating at all?

Best,

Matic

Bharani Cherukuri (Mobile Ads SDK Team)

unread,
Oct 12, 2017, 12:06:31 PM10/12/17
to Google Mobile Ads SDK Developers
Hello Matic, 

Based on the stack trace, it looks like the crash is not related to the SDK. The reason for the crash mentioned in the trace is that the count operation is crashing at some point. I'd suggest that you re-check your implementation and try again. If you continue to have an issue with this, it is recommended that you post your concerns on StackOverflow, as we handle only SDK related queries on this forum. 

Thanks,
Bharani Cherukuri
Mobile Ads SDK Team

On Monday, October 3, 2016 at 2:25:46 PM UTC-4, Diego Rodero wrote:

Matic Ozebek

unread,
Oct 12, 2017, 12:51:16 PM10/12/17
to Google Mobile Ads SDK Developers
Hello,

ok I understand that maybe its possible that it is not related with your SDK, but it works if I am not trying to load banner request with your SDK. App crashes on loading request, so I dont understand how its not related to AdMob SDK. If I am not trying to load it app works just fine :)

I have already asked on StackOverflow, but there are about 2-3 cases already with same crashing stack, with no solution.

Project Is just too big to transfer all to new one.

Best,

Matic

Bharani Cherukuri (Mobile Ads SDK Team)

unread,
Oct 12, 2017, 4:49:36 PM10/12/17
to Google Mobile Ads SDK Developers
Hello Matic, 

As we are not able to reproduce the issue locally a sample project will be really helpful to analyze the cause. Can you provide us the code snippets along with the detailed steps of your implementation for how you're loading the banner ads? Could you provide us the complete device logs, so we can take a look and assist you further?

Thanks,
Bharani Cherukuri
Mobile Ads SDK Team 

On Monday, October 3, 2016 at 2:25:46 PM UTC-4, Diego Rodero wrote:
Reply all
Reply to author
Forward
0 new messages