Ads crashing app

I’ve tested different ways for adding ads, in the project Im working on I init the ads in my “applicationStart” and put the ads.show() in my createScene or enterScene using either iAds or inneractive and they both crash the app when I change scene and later go back. The ads show when I switch screens back and forward but if I do not interact on the device the app crashes after 30 sec.

I even tried init the ads in the enterScene on each screen and show the ads in the createScene but that fail too and crash the app. I’m using latest daily build but have tried with interactive using latest stable build but that crash the app too.

How and where do you init and show your ads, does anyone else have these issues? [import]uid: 13560 topic_id: 35390 reply_id: 335390[/import]

Hi @lano78,
Can you provide more details about the OS you’re developing for, and which build of Corona you’re using?

Thanks,
Brent [import]uid: 200026 topic_id: 35390 reply_id: 140690[/import]

I’m testing on iPhone4 iOS 5.1.1 and iPhone5 iOS 6.0.1 both with corona build 2013.1016 (2013.1.26)

I’m using storyboard, call initAds(“inneractive”, appID, adListener) in main.lua

I call ads.show(“banner”, { x = 0, y = 64, interval = 60} ) in my willEnterScene(event)

I call ads.hide( ) in my exitScene(event)

What happens is if I do not switch scenes then the app is fine but if I go to another scene and then go back the the ads load fine but after about 20-30sec the app crashes. I have tried with iAds with same result.

The app does not crash when not using ads.

Here’s the crash from xcode:

[code]

Jan 28 23:57:16 iPhone5 ReportCrash[6746] : Formulating crash report for process Roadrage[6720]
Jan 28 23:57:16 iPhone5 com.apple.launchd[1] (UIKitApplication:se.creativefusion.roadrage[0x5a7f][6720]) : (UIKitApplication:se.creativefusion.roadrage[0x5a7f]) Job appears to have crashed: Segmentation fault: 11
Jan 28 23:57:16 iPhone5 ReportCrash[6746] : libMobileGestalt copySystemVersionDictionaryValue: Could not lookup ReleaseType from system version dictionary
Jan 28 23:57:16 iPhone5 backboardd[51] : Application ‘UIKitApplication:se.creativefusion.roadrage[0x5a7f]’ exited abnormally with signal 11: Segmentation fault: 11
Jan 28 23:57:16 iPhone5 ReportCrash[6746] : Saved crashreport to /var/mobile/Library/Logs/CrashReporter/Roadrage_2013-01-28-235715_iPhone5.plist using uid: 0 gid: 0, synthetic_euid: 501 egid: 0
Jan 28 23:57:43 iPhone5 wifid[14] : WiFi:[381106663.828119]: WiFi unquiescing requested by "locationd"
Jan 28 23:57:43 iPhone5 wifid[14] : WiFi:[381106663.879227]: WiFi unquiescing requested by "locationd"
Jan 28 23:58:56 iPhone5 wifid[14] : WiFi:[381106736.006820]: WiFi unquiescing requested by “locationd”
[/code] [import]uid: 13560 topic_id: 35390 reply_id: 140694[/import]

I have checked my project for any stray variables or objects and removed and nilled them all out. Memory is as low as it can be, tested the app without ads and it run like a charm but as soon as I require(“ads”), init,show and hide ads the app crash when switching screens.

I can’t think of anything else than faulty ad module.

I’m only using storyboard, widget lib and native, I don’t know if ads conflict with them or not.

Still testing on iPhone4 iOS 5.1.1 and iPhone5 iOS 6.0.1 both with corona build 2013.1016 (2013.1.26)

Frustrating… [import]uid: 13560 topic_id: 35390 reply_id: 140786[/import]

Still testing on iPhone4 iOS 5.1.1 and iPhone5 iOS 6.0.1 both with corona build 2013.1016 (2013.1.26)

I have double checked and double checked again if there were any typos etc when I set up my id’s with the provider (interactive, inmobi, iAd). Nothing wrong there.

Heres the results iAds:
iPhone4 iOS 5.1.1

  • ads are served (test ads, 80% fillrate)
  • ads receive touch
  • ads position is off
  • app freezes
  • app no touch events

iPhone5 iOS 6.0.1

  • ads are served (test ads, 80% fillrate)
  • ads receive touch
  • ads position is off
  • app freezes
  • app no touch events

Heres the results inmobi:

  • ads are served (testMode)
  • ads receive touch
  • app works perfect

iPhone5 iOS 6.0.1

  • ads are served (testMode)
  • ads receive touch
  • app works perfect

Heres the results inneractive:

  • ads are served if appID

  • ads receive touch

  • app crash if appID

  • app don’t crash if appID == nil

iPhone5 iOS 6.0.1

  • ads are served if appID

  • ads receive touch

  • app crash if appID

  • app don’t crash if appID == nil
    [import]uid: 13560 topic_id: 35390 reply_id: 140793[/import]

Dumb question… is adsListener local or global?

Your app is acting like it’s trying to reach a call back function that doesn’t exist any more, or who’s pointer has been overwritten. [import]uid: 199310 topic_id: 35390 reply_id: 140825[/import]

I’ve tried both local and global adListener in my main.lua both returned the result above. Then I cleaned up my code and made an adManager class with the adListener local to the class, I read the event.response from my print() in the adListener but still return the same result.

I don’t get it why inMobi works but inneractive crash? I can see why iAds have issues since it’s new and probably not entirely tested yet.

[import]uid: 13560 topic_id: 35390 reply_id: 140841[/import]

Can you make a sample app that demonstrates the problem and file a bug report using the Report a Bug link above?

Thanks
Rob
[import]uid: 199310 topic_id: 35390 reply_id: 140987[/import]

Hi @lano78,
Can you provide more details about the OS you’re developing for, and which build of Corona you’re using?

Thanks,
Brent [import]uid: 200026 topic_id: 35390 reply_id: 140690[/import]

I’m testing on iPhone4 iOS 5.1.1 and iPhone5 iOS 6.0.1 both with corona build 2013.1016 (2013.1.26)

I’m using storyboard, call initAds(“inneractive”, appID, adListener) in main.lua

I call ads.show(“banner”, { x = 0, y = 64, interval = 60} ) in my willEnterScene(event)

I call ads.hide( ) in my exitScene(event)

What happens is if I do not switch scenes then the app is fine but if I go to another scene and then go back the the ads load fine but after about 20-30sec the app crashes. I have tried with iAds with same result.

The app does not crash when not using ads.

Here’s the crash from xcode:

[code]

Jan 28 23:57:16 iPhone5 ReportCrash[6746] : Formulating crash report for process Roadrage[6720]
Jan 28 23:57:16 iPhone5 com.apple.launchd[1] (UIKitApplication:se.creativefusion.roadrage[0x5a7f][6720]) : (UIKitApplication:se.creativefusion.roadrage[0x5a7f]) Job appears to have crashed: Segmentation fault: 11
Jan 28 23:57:16 iPhone5 ReportCrash[6746] : libMobileGestalt copySystemVersionDictionaryValue: Could not lookup ReleaseType from system version dictionary
Jan 28 23:57:16 iPhone5 backboardd[51] : Application ‘UIKitApplication:se.creativefusion.roadrage[0x5a7f]’ exited abnormally with signal 11: Segmentation fault: 11
Jan 28 23:57:16 iPhone5 ReportCrash[6746] : Saved crashreport to /var/mobile/Library/Logs/CrashReporter/Roadrage_2013-01-28-235715_iPhone5.plist using uid: 0 gid: 0, synthetic_euid: 501 egid: 0
Jan 28 23:57:43 iPhone5 wifid[14] : WiFi:[381106663.828119]: WiFi unquiescing requested by "locationd"
Jan 28 23:57:43 iPhone5 wifid[14] : WiFi:[381106663.879227]: WiFi unquiescing requested by "locationd"
Jan 28 23:58:56 iPhone5 wifid[14] : WiFi:[381106736.006820]: WiFi unquiescing requested by “locationd”
[/code] [import]uid: 13560 topic_id: 35390 reply_id: 140694[/import]

I have checked my project for any stray variables or objects and removed and nilled them all out. Memory is as low as it can be, tested the app without ads and it run like a charm but as soon as I require(“ads”), init,show and hide ads the app crash when switching screens.

I can’t think of anything else than faulty ad module.

I’m only using storyboard, widget lib and native, I don’t know if ads conflict with them or not.

Still testing on iPhone4 iOS 5.1.1 and iPhone5 iOS 6.0.1 both with corona build 2013.1016 (2013.1.26)

Frustrating… [import]uid: 13560 topic_id: 35390 reply_id: 140786[/import]

Still testing on iPhone4 iOS 5.1.1 and iPhone5 iOS 6.0.1 both with corona build 2013.1016 (2013.1.26)

I have double checked and double checked again if there were any typos etc when I set up my id’s with the provider (interactive, inmobi, iAd). Nothing wrong there.

Heres the results iAds:
iPhone4 iOS 5.1.1

  • ads are served (test ads, 80% fillrate)
  • ads receive touch
  • ads position is off
  • app freezes
  • app no touch events

iPhone5 iOS 6.0.1

  • ads are served (test ads, 80% fillrate)
  • ads receive touch
  • ads position is off
  • app freezes
  • app no touch events

Heres the results inmobi:

  • ads are served (testMode)
  • ads receive touch
  • app works perfect

iPhone5 iOS 6.0.1

  • ads are served (testMode)
  • ads receive touch
  • app works perfect

Heres the results inneractive:

  • ads are served if appID

  • ads receive touch

  • app crash if appID

  • app don’t crash if appID == nil

iPhone5 iOS 6.0.1

  • ads are served if appID

  • ads receive touch

  • app crash if appID

  • app don’t crash if appID == nil
    [import]uid: 13560 topic_id: 35390 reply_id: 140793[/import]

Dumb question… is adsListener local or global?

Your app is acting like it’s trying to reach a call back function that doesn’t exist any more, or who’s pointer has been overwritten. [import]uid: 199310 topic_id: 35390 reply_id: 140825[/import]

I’ve tried both local and global adListener in my main.lua both returned the result above. Then I cleaned up my code and made an adManager class with the adListener local to the class, I read the event.response from my print() in the adListener but still return the same result.

I don’t get it why inMobi works but inneractive crash? I can see why iAds have issues since it’s new and probably not entirely tested yet.

[import]uid: 13560 topic_id: 35390 reply_id: 140841[/import]

Can you make a sample app that demonstrates the problem and file a bug report using the Report a Bug link above?

Thanks
Rob
[import]uid: 199310 topic_id: 35390 reply_id: 140987[/import]

A little update…

iAds crash were cause by a variable I forgot to change the name on at one place in my code, my bad… But like I asked in the iAd thread, what is the referencePoint of iAds?

Inneractive is still crashing application with any build up to 2013.1025. Listener is global in main.lua.
Ads show but app crash after 15-30sec. Ads Y position is also off by half ad height ( iphone5)

InMobi works just fine, no crashes or anything except…ads Ypos is off by half ad height (iPhone 5)
The positioning issue only seem to happen on Tall devices.

btw, I’m using banner ads and building for iPhone/pods only. I’m using the “isTall” version of config.lua that is floating around in the forum.

I’ll whip a sample later.

[import]uid: 13560 topic_id: 35390 reply_id: 142369[/import]

A little update…

iAds crash were cause by a variable I forgot to change the name on at one place in my code, my bad… But like I asked in the iAd thread, what is the referencePoint of iAds?

Inneractive is still crashing application with any build up to 2013.1025. Listener is global in main.lua.
Ads show but app crash after 15-30sec. Ads Y position is also off by half ad height ( iphone5)

InMobi works just fine, no crashes or anything except…ads Ypos is off by half ad height (iPhone 5)
The positioning issue only seem to happen on Tall devices.

btw, I’m using banner ads and building for iPhone/pods only. I’m using the “isTall” version of config.lua that is floating around in the forum.

I’ll whip a sample later.

[import]uid: 13560 topic_id: 35390 reply_id: 142369[/import]