Closed himaghnam closed 3 years ago
@gamergamesz Please upload a minimal reproduction project to make this easier to troubleshoot.
Also, does it crash on any other platforms?
I have updated it with the minimal project though it does not crash as my project. It crashes when I close the Interstitial ad screen, I have updated the demo project, this one gives black boxes and I guess if there is more draws then it will crash. I guess it has something to do with layout, might be plugin side. Note: This crash can be avoided just change the scene(paused) before showing the ad and when the ad closes(signal) unpause the game
@Calinou It's a custom build and the manifest file is in android folder
Unfortunately at present this seems very difficult to investigate with the info given. The call stack is providing no info (myself I don't recognise any of the functions), I know nothing about admob, what it does and how it works (maybe the author could help?), and it could be a race condition caused by the scene changing.
In addition you would probably need to do builds with previous versions of Godot to determine whether this is a regression, and possibly with different options.
You would need to pin this down further to get any more action on this I suspect, there is just too much going on in your minimum reproduction project.
Just for reference I found this link, which suggests this is common and contacting the author might be wise: https://godotengine.org/qa/79227/android-game-crashes-after-using-admob
Well the workaround is working fine. This was fine in 3.2.2 and 3.2.3. This minimal project only shows black box after the scene change only in mobile, but with the increase in draws it will crash and will show the error too.
Closing, as this appears to be related to the use of an AdMob plugin rather than Godot itself. Please report the issue on the AdMob plugin repository after searching for duplicates there.
Godot version: 3.2.4beta1
OS/device including version: Android GLES2 and GLES3
Issue description: The game crashes when I try to change the scene. Might be some GL related error
Steps to reproduce: It happens when I change the scene also sometimes it gives black boxes instead of game assets at some place
Minimal Project Android_bug.zip