Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Admob crash with iOS #70

Open
Lucky0710 opened this issue Feb 27, 2019 · 5 comments
Open

Admob crash with iOS #70

Lucky0710 opened this issue Feb 27, 2019 · 5 comments

Comments

@Lucky0710
Copy link

OS target (Android/iOS):
iOS

Godot version:
3.06

Issue description:
I'm using Godot 3.0.6 and using an iPhone 7

My game works fine exported from Godot without the Admob Module.
So I recompiled the iOS export template with admob module, exported my game from Godot with my new export templates, followed all the Readme of the Admob module.
When I run my game on my iPhone with Xcode:

everything works fine, admob is initialised. But when i make a request for a rewarded video ad, the game crashes.
I get this from Xcode:

  • Reward based video ad is received
  • Thread 1: EXC_BAD_ACCESS (code=1, address=0x40)

I precise that my game works perfectly fine on an android with admob, so it is not my code.
Maybe i messed up things during the export for iOS with the admob module, i'm very new to Xcode so i am a bit confused, but i think i've done everything the tutorial said.

@Lucky0710
Copy link
Author

The logs in detail:

2019-02-27 16:12:13.492216+0100 Collide[1383:258166] GodotAdmob Module already initialized
2019-02-27 16:12:13.492264+0100 Collide[1383:258166] Calling loadRewardedVideo
2019-02-27 16:12:13.497362+0100 Collide[1383:258166] To get test ads on this device, set: request.testDevices = @[ @"8a5215eb1338e4051101c7bc98127b91" ];
2019-02-27 16:12:13.515399+0100 Collide[1383:258166] [avas] AVAudioSessionPortImpl.mm:56:ValidateRequiredFields: Unknown selected data source for Port Haut-parleur (type: Speaker)
2019-02-27 16:12:17.860133+0100 Collide[1383:258427] WF: === Starting WebFilter logging for process Collide
2019-02-27 16:12:17.860179+0100 Collide[1383:258427] WF: _userSettingsForUser mobile: {
filterBlacklist = (
);
filterWhitelist = (
);
noOverridingAllowed = 1;
restrictWeb = 1;
useContentFilter = 0;
useContentFilterOverrides = 0;
whitelistEnabled = 0;
}
2019-02-27 16:12:17.860214+0100 Collide[1383:258427] WF: _WebFilterIsActive returning: NO
2019-02-27 16:12:21.535003+0100 Collide[1383:258166] [avas] AVAudioSessionPortImpl.mm:56:ValidateRequiredFields: Unknown selected data source for Port Haut-parleur (type: Speaker)
2019-02-27 16:12:24.692905+0100 Collide[1383:258166] [avas] AVAudioSessionPortImpl.mm:56:ValidateRequiredFields: Unknown selected data source for Port Haut-parleur (type: Speaker)
2019-02-27 16:12:24.698252+0100 Collide[1383:258166] Reward based video ad is received.
(lldb)

and the app freeze totally

@Shin-NiL Shin-NiL added the iOS label Feb 28, 2019
@Shin-NiL
Copy link
Collaborator

Shin-NiL commented Mar 6, 2019

Is it related to #72?

@davidholiday
Copy link

having the same issue. using the templates you provided. everything works perfectly on the android side of the house. game loads and freezes on showbanner(). using godot 3.1.1. xcode debug logs below:

2019-08-08 18:27:13.094604-0600 adsplode_mvp[6564:2787201] [DYMTLInitPlatform] platform initialization successful
*********** main.m
running app main
Path: /var/containers/Bundle/Application/9218873E-4B87-4089-9C20-5D16636B0018/adsplode_mvp.app
godot_iphone /var/containers/Bundle/Application/9218873E-4B87-4089-9C20-5D16636B0018/adsplode_mvp.app/adsplode_mvp
cwd /private/var/containers/Bundle/Application/9218873E-4B87-4089-9C20-5D16636B0018/adsplode_mvp.app
os created
setting data dir to /var/mobile/Containers/Data/Application/E26F86D7-F9CD-4FEF-BB7E-9004E5382CEC/Documents from /var/mobile/Containers/Data/Application/E26F86D7-F9CD-4FEF-BB7E-9004E5382CEC/Documents
setup 0
after init super 0x10291af00
2019-08-08 18:27:13.261941-0600 adsplode_mvp[6564:2787064] Metal GPU Frame Capture Enabled
2019-08-08 18:27:13.262455-0600 adsplode_mvp[6564:2787064] Metal API Validation Enabled
2019-08-08 18:27:13.369780-0600 adsplode_mvp[6564:2787064] Setting up an OpenGL ES 3 context. Based on Project Settings "rendering/quality/driver/driver_name"
******** screen size 1125, 2436
after init gles 0x10291af00
******** adding observer for sound routing changes
******** adding observer for keyboard show/hide
cadisaplylink: 1start animation!
******** screen size 1125, 2436
2019-08-08 18:27:13.502981-0600 adsplode_mvp[6564:2787064] +[CATransaction synchronize] called within transaction
2019-08-08 18:27:13.504815-0600 adsplode_mvp[6564:2787064] +[CATransaction synchronize] called within transaction
2019-08-08 18:27:13.509281-0600 adsplode_mvp[6564:2787064] +[CATransaction synchronize] called within transaction
2019-08-08 18:27:13.512877-0600 adsplode_mvp[6564:2787208] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
2019-08-08 18:27:13.514167-0600 adsplode_mvp[6564:2787208] [MC] Reading from public effective user settings.
2019-08-08 18:27:13.518112-0600 adsplode_mvp[6564:2787064] OpenGL ES 3.0 Renderer: Apple A11 GPU
2019-08-08 18:27:13.843545-0600 adsplode_mvp[6564:2787064] ERROR: Condition ' instance != __null ' is true.
2019-08-08 18:27:13.843590-0600 adsplode_mvp[6564:2787064] At: modules/admob/ios/src/godotAdmob.mm:12:GodotAdmob() - Condition ' instance != __null ' is true.
2019-08-08 18:27:13.880056-0600 adsplode_mvp[6564:2787198] [NetworkInfo] Signal strength query returned error: Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied", descriptor: <CTServiceDescriptor 0x2805cd4c0, domain=1, instance=1>
2019-08-08 18:27:13.943680-0600 adsplode_mvp[6564:2787064] WARNING: Font oversampling only works with the resize modes 'Keep Width', 'Keep Height', and 'Expand'.
2019-08-08 18:27:13.943710-0600 adsplode_mvp[6564:2787064] At: scene/main/scene_tree.cpp:1158:_update_root_rect() - Font oversampling only works with the resize modes 'Keep Width', 'Keep Height', and 'Expand'.
2019-08-08 18:27:13.958967-0600 adsplode_mvp[6564:2787064] ERROR: Error opening file: res://art_assets/icon.png
2019-08-08 18:27:13.959021-0600 adsplode_mvp[6564:2787064] At: core/io/image_loader.cpp:56:load_image() - Error opening file: res://art_assets/icon.png
2019-08-08 18:27:13.959500-0600 adsplode_mvp[6564:2787064] Calling loadBanner
2019-08-08 18:27:13.961097-0600 adsplode_mvp[6564:2787064] Limit Ad Tracking may be enabled. To get test ads on this device, disable Limit AdTracking.
2019-08-08 18:27:13.961446-0600 adsplode_mvp[6564:2787064] Calling loadInterstitial
******** screen size 1125, 2436
2019-08-08 18:27:14.217327-0600 adsplode_mvp[6564:2787064] [Error] setCurrentGameFromInternal: ignoring -- nil bundleIdentifier :(null)
******** screen size 1125, 2436
2019-08-08 18:27:14.502705-0600 adsplode_mvp[6564:2787064] [Error] _authenticateUsingAlert:Faied to authenticate player with existing credentials.Error: Error Domain=GKErrorDomain Code=15 "The requested operation could not be completed because this application is not recognized by Game Center." UserInfo={GKServerStatusCode=5019, NSLocalizedDescription=The requested operation could not be completed because this application is not recognized by Game Center., NSUnderlyingError=0x280b1fe40 {Error Domain=GKServerErrorDomain Code=5019 "status = 5019, no game matching descriptor: ios:io.wildduck.adsplode:1.2:1.2+-1" UserInfo={GKServerStatusCode=5019, NSLocalizedFailureReason=status = 5019, no game matching descriptor: ios:io.wildduck.adsplode:1.2:1.2+-1}}}
2019-08-08 18:27:14.513313-0600 adsplode_mvp[6564:2787064] [Error] startAuthenticationForExistingPrimaryPlayer:Failed to Authenticate player.Error: Error Domain=GKErrorDomain Code=15 "The requested operation could not be completed because this application is not recognized by Game Center." UserInfo={NSLocalizedDescription=The requested operation could not be completed because this application is not recognized by Game Center.}
2019-08-08 18:27:14.734231-0600 adsplode_mvp[6564:2787299] WF: === Starting WebFilter logging for process adsplode_mvp
2019-08-08 18:27:14.734319-0600 adsplode_mvp[6564:2787299] WF: _userSettingsForUser mobile: {
filterBlacklist = (
);
filterWhitelist = (
);
noOverridingAllowed = 1;
restrictWeb = 1;
useContentFilter = 0;
useContentFilterOverrides = 0;
whitelistEnabled = 0;
}
2019-08-08 18:27:14.734401-0600 adsplode_mvp[6564:2787299] WF: _WebFilterIsActive returning: NO
2019-08-08 18:27:16.446615-0600 adsplode_mvp[6564:2787064] interstitialDidReceiveAd
2019-08-08 18:27:16.795520-0600 adsplode_mvp[6564:2787299] WF: _userSettingsForUser mobile: {
filterBlacklist = (
);
filterWhitelist = (
);
noOverridingAllowed = 1;
restrictWeb = 1;
useContentFilter = 0;
useContentFilterOverrides = 0;
whitelistEnabled = 0;
}
2019-08-08 18:27:16.795586-0600 adsplode_mvp[6564:2787299] WF: _WebFilterIsActive returning: NO
2019-08-08 18:27:17.212092-0600 adsplode_mvp[6564:2787299] WF: _userSettingsForUser mobile: {
filterBlacklist = (
);
filterWhitelist = (
);
noOverridingAllowed = 1;
restrictWeb = 1;
useContentFilter = 0;
useContentFilterOverrides = 0;
whitelistEnabled = 0;
}
2019-08-08 18:27:17.212140-0600 adsplode_mvp[6564:2787299] WF: _WebFilterIsActive returning: NO
2019-08-08 18:27:17.351956-0600 adsplode_mvp[6564:2787064] adViewDidReceiveAd
2019-08-08 18:27:17.354233-0600 adsplode_mvp[6564:2787064] Calling hideBanner
2019-08-08 18:27:17.568317-0600 adsplode_mvp[6564:2787299] WF: _userSettingsForUser mobile: {
filterBlacklist = (
);
filterWhitelist = (
);
noOverridingAllowed = 1;
restrictWeb = 1;
useContentFilter = 0;
useContentFilterOverrides = 0;
whitelistEnabled = 0;
}
2019-08-08 18:27:17.568411-0600 adsplode_mvp[6564:2787299] WF: _WebFilterIsActive returning: NO
2019-08-08 18:27:17.596811-0600 adsplode_mvp[6564:2787299] WF: _userSettingsForUser mobile: {
filterBlacklist = (
);
filterWhitelist = (
);
noOverridingAllowed = 1;
restrictWeb = 1;
useContentFilter = 0;
useContentFilterOverrides = 0;
whitelistEnabled = 0;
}
2019-08-08 18:27:17.596859-0600 adsplode_mvp[6564:2787299] WF: _WebFilterIsActive returning: NO
2019-08-08 18:27:17.645633-0600 adsplode_mvp[6564:2787299] WF: _userSettingsForUser mobile: {
filterBlacklist = (
);
filterWhitelist = (
);
noOverridingAllowed = 1;
restrictWeb = 1;
useContentFilter = 0;
useContentFilterOverrides = 0;
whitelistEnabled = 0;
}
2019-08-08 18:27:17.645679-0600 adsplode_mvp[6564:2787299] WF: _WebFilterIsActive returning: NO
2019-08-08 18:27:17.821200-0600 adsplode_mvp[6564:2787299] WF: _userSettingsForUser mobile: {
filterBlacklist = (
);
filterWhitelist = (
);
noOverridingAllowed = 1;
restrictWeb = 1;
useContentFilter = 0;
useContentFilterOverrides = 0;
whitelistEnabled = 0;
}
2019-08-08 18:27:17.821265-0600 adsplode_mvp[6564:2787299] WF: _WebFilterIsActive returning: NO
2019-08-08 18:27:35.138425-0600 adsplode_mvp[6564:2787064] Calling showBanner
(lldb)

@gumaciel
Copy link
Collaborator

gumaciel commented May 6, 2020

@Lucky0710 this issue still persists?

@hto
Copy link

hto commented Mar 4, 2021

@Lucky0710 Create to new node file on Autoload, checked singleton.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants