ads.hide issue

So here is my issue, I am using inneractive ads, with no problem on android, when i run the same game on iOS i get a crash. After a lot of debugging i traced it down to ads.hide(). I am running the ads.int in main.lua and running the ads.show in the game its self. When i go back to the main menu from in game i call ads.hide() because i do not want ads shown on the main menu. When i call this it will either crash or if you push the home button and reopen the app it will crash 100% of the time. when i remove ads.hide() and let the ads display there is no problem at all. i am crashing with a Segmentation fault: 11 which would indicate the system is trying to access an address in memory that is no longer used.

Full crash: Job appears to have crashed: Segmentation fault: 11

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000
Crashed Thread: 0

Corona build 825, same problem on ipad 2/3 iphone ipod

I also tried this with the inneractive corona sample app with the same outcome so i reported it as a bug.
[import]uid: 126161 topic_id: 26853 reply_id: 326853[/import]

Hey there, thanks for posting - do you have a bug number? If so I would be happy to bring this up in our next meeting. [import]uid: 52491 topic_id: 26853 reply_id: 109035[/import]

yup its #14560 [import]uid: 126161 topic_id: 26853 reply_id: 109040[/import]

Update: I’ve tested this on multiple android devices and It is definitely an iOS only problem.

We just finished our game 100% for all stores today and I’m not sure what to do with this since this bug is persists across all iOS devices, i guess i cannot send this to the apple app store until this bug is resolved. Is this currently being looked at? or any available work arounds? (other than not hiding the ad, the artwork and GUI does not allow this) [import]uid: 126161 topic_id: 26853 reply_id: 109356[/import]

Would moving the ads off screen with ads.show pose any problems? as a temp fix? Like i said we are ready to release and this is the only thing holding us back. [import]uid: 126161 topic_id: 26853 reply_id: 109433[/import]

Apologies on the late reply, I’ve been out sick.

The bug was reassigned on the 29th and is currently being worked on, I will try to get a status report on this.

In the meantime I cannot think why moving the ads off screen would pose any issues, it would be worth testing (of course) but could be a good temporary bandaid here. [import]uid: 52491 topic_id: 26853 reply_id: 109856[/import]

Thanks for your response peach. we sent our app for review and i did move the ads off the screen and it works fine. Just a moral issue i guess heh, having ads that are not being seen but i assume they count unless they do not get drawn because they are off screen. [import]uid: 126161 topic_id: 26853 reply_id: 109859[/import]

When you say “moral issue” I believe you refer to being paid for ads that are not seen based on impressions? If so I do not believe inneractive has a pay-per-impression model and you are not doing anything questionable there.

The only downside is that your stats will be a little off and show a lower click through rate than they would if they ads were always on screen - but that’s the only issue that occurs to me and I don’t consider it (personally) a big deal, though still undesirable.

Good luck with the approval process, hopefully this can be resolved and you can submit an update asap.

Peach :slight_smile: [import]uid: 52491 topic_id: 26853 reply_id: 109954[/import]

I am having the same issue with ads.hide(), but have discovered a rather odd twist.
If I hide the ads and then show them again, as long as I am holding my phone upright, everything works fine. About a half-second after I hold my phone level or set it on a flat surface, it then crashes. But here’s the thing–my game does not use the gyro or detect phone motion in any way.

I know it sounds strange, but I have repeatedly tested this and gotten the same results.

I really would like to see this fixed as placing the ads offscreen affects the advertiser stats and is probably against the Innerative terms of use. [import]uid: 145435 topic_id: 26853 reply_id: 110755[/import]

Hi Lance,

Although it might sound strange we’re actually aware of this; basically right now inneractive has a bug that causes crashing on orientation change - however we are working with them to get it resolved and hope to have it fixed ASAP.

Sorry, I know in the meantime it is very inconvenient. [import]uid: 52491 topic_id: 26853 reply_id: 110831[/import]

I had problem here and not only with inneractive, but admob as well. Basically it happens after i call native.cancelWebPopup() and then change the screen, in my case, with director:changescene. I fixed this adding a delay before change the scene

native.cancelWebPopup() timer.performWithDelay(1000,function() director:changeScene( "screen", "flip" ) end) [import]uid: 104813 topic_id: 26853 reply_id: 111840[/import]

Are there any updates on this? I am facing the same issue in iOS too. I am on 2012.870 build. [import]uid: 103483 topic_id: 26853 reply_id: 120968[/import]

@shivapp - I believe this may be a separate issues as the original was solved. Would it be possible for you to file a bug report with a test case we can use to reproduce the issue, please? [import]uid: 52491 topic_id: 26853 reply_id: 121113[/import]

Certainly Peach. It is actually easy to reproduce on the XCode simulator. The free version of my app got rejected and I am now moving to inmobi because of that. All we have to do is to click on the “Hide All Ads” buttons a couple of times and then lock the screen and on unlocking the screen again the app crashes. Bug following soon. [import]uid: 103483 topic_id: 26853 reply_id: 121124[/import]

Thank you shivapp, if you could post the bug # here when you file that would be a big help. (I can use it to bring the bug to attention in our next meeting after it is filed.) [import]uid: 52491 topic_id: 26853 reply_id: 121437[/import]

Peach, this is the case #16833. I also uploaded a test case. It is a slight modification of the sample code that ships with Corona. [import]uid: 103483 topic_id: 26853 reply_id: 121442[/import]

Great, thank you - taking a look now it has just been reassigned to get confirmed internally, then will be taken from there :slight_smile: [import]uid: 52491 topic_id: 26853 reply_id: 121573[/import]

Are there any updates on this? I am facing the same issue in iOS too. I am on 2012.870 build. [import]uid: 103483 topic_id: 26853 reply_id: 120968[/import]

@shivapp - I believe this may be a separate issues as the original was solved. Would it be possible for you to file a bug report with a test case we can use to reproduce the issue, please? [import]uid: 52491 topic_id: 26853 reply_id: 121113[/import]

Certainly Peach. It is actually easy to reproduce on the XCode simulator. The free version of my app got rejected and I am now moving to inmobi because of that. All we have to do is to click on the “Hide All Ads” buttons a couple of times and then lock the screen and on unlocking the screen again the app crashes. Bug following soon. [import]uid: 103483 topic_id: 26853 reply_id: 121124[/import]