Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8645237
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T12:29:55+00:00 2026-06-12T12:29:55+00:00

In my project I have a splitview and had previously implemented iAds using the

  • 0

In my project I have a splitview and had previously implemented iAds using the splitview example from the Apple iAdSuite. Now I also wanted to implement Admob ads and since Adwhirl gave many errors in xcode 4.5 I tried using Admob Mediation (iOS SDK 6.2.0).

I got the ads to load and it properly mediates between iAd and Admob when necessary. However, one big problem remains. When I rotate the device (or simulator) before any ads have been loaded, I get the following crash:

Terminating app due to uncaught exception ‘NSRangeException’, reason: ‘* -[__NSArrayI objectAtIndex:]: index 0 beyond bounds for empty array’

* First throw call stack:
(0x1b4e012 0x1701e7e 0x1b03b44 0x1c7ff 0x1c97b 0x1ba5b 0x1bff2 0x4581 0x699a0c 0x17156b0 0x701dfc0 0x701233c 0x701deaf 0x7386b4 0x6811a6 0x67fcbf 0x67fbd9 0x67ee34 0x67ec6e 0x67f435 0x67ef11 0x67eb2a 0x11c2dc9 0x1ba80c5 0x1b02efa 0x10f7482 0x8259be 0x6594d4 0x65a24b 0x64bcf8 0x1998df9 0x1998ad0 0x1ac3bf5 0x1ac3962 0x1af4bb6 0x1af3f44 0x1af3e1b 0x19977e3 0x1997668 0x64965c 0x203d 0x1f65)

libc++abi.dylib: terminate called throwing an exception

As a test I implemented Admob Mediation also in the iAdSuite splitview example (
can be found here) and see the same crash. Once an ad is loaded you can rotate all you want without any crashing. When I use Admob only (no mediation) I cannot make this crash happen.

It seems like it is crashing in the Admob code but there might be something else I’m not doing right to cause this. But at this point I’m stuck. Does anybody have an idea of how to make this crash go away?

Edit:
I got the “Smart Banner Example 1.2” that Admob provides at http://code.google.com/p/google-mobile-dev/downloads/list. The only thing I ‘changed’ was to add the actual Admob SDK 6.2.0 files, the iAdAdapter, add the iAd framework and use a mediation ID. This also crashes on rotation when no ads are loaded yet.

I tried to post this issue on the Google AdMob Ads Developers forum but briefly something flashes up saying something like that the post needs to be approved. After two days nobody seems to have looked at the approval queue yet.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T12:29:56+00:00Added an answer on June 12, 2026 at 12:29 pm

    Looks like this might be an issue with the AdMob SDK. I would probably workaround it by setting a boolean (i.e firstAdReceived) when you get an ad the first time, and then checking that before you change the adSize and other banner characteristics on orientation change.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wanted to let my j2me project have the ability to take picutre using
I have project asp.net with namespace test and I'm using resources (files Resource.resx and
I have project on rails 3 with multiplayer using Faye. The error block in
I have project Emle in Launchpad . I set it to import from emle.svn.sourceforge.net
I have checked-out a project from SourceForge named HadoopDB . It uses some class
My project have data about different websites so I have rewritten urls using .htaccess
I have been working in a Government Project using EJBs . I have found
I'm using Visual Studio 2008 . I have created a project with asp.net Mvc
My project have no visible error but when i try to run it gives
I want to apply NTFS-Search to our project. Our project have to find the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.