I succeed to compile android debug and release modules, but now I receive strange error on app start

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By salomander86
:warning: Old Version Published before Godot 3 was released.

After day and night of defeating modules compilation I can’t start app… It drives me crazy… I’m not familiar with python and scons, so it was very hard for me to compile apks with modules. And now logcat throws me this error:

[1;31mERROR: free_static: e[0me[1mCondition ' !MemoryPoolStatic::get_singleton() ' is true.
e[0;31m   At: core/os/memory.cpp:59.e[0m

I really appreciate developers of godot engine for what they are doing. But this hell of adding custom modules totally kills the will to use godot.


full stack trace:
Android

11-07 18:02:16.368 29146-29146/cant.stop.neonbounce I/godot: )
11-07 18:02:16.368 29146-29146/cant.stop.neonbounce I/godot: 	-rthread <mode>	 : Render Thread Mode ('unsafe', 'safe', 'separate').
11-07 18:02:16.368 29146-29146/cant.stop.neonbounce I/godot: 	-s,-script [script] : Run a script.
11-07 18:02:16.368 29146-29146/cant.stop.neonbounce I/godot: 	-d,-debug : Debug (local stdout debugger).
11-07 18:02:16.369 29146-29146/cant.stop.neonbounce I/godot: 	-rdebug ADDRESS : Remote debug (<ip>:<port> host address).
11-07 18:02:16.369 29146-29146/cant.stop.neonbounce I/godot: 	-fdelay [msec]: Simulate high CPU load (delay each frame by [msec]).
11-07 18:02:16.369 29146-29146/cant.stop.neonbounce I/godot: 	-timescale [msec]: Simulate high CPU load (delay each frame by [msec]).
11-07 18:02:16.369 29146-29146/cant.stop.neonbounce I/godot: 	-bp : breakpoint list as source::line comma separated pairs, no spaces (%20,%2C,etc instead).
11-07 18:02:16.369 29146-29146/cant.stop.neonbounce I/godot: 	-v : Verbose stdout mode
11-07 18:02:16.369 29146-29146/cant.stop.neonbounce I/godot: 	-lang [locale]: Use a specific locale
11-07 18:02:16.369 29146-29146/cant.stop.neonbounce I/godot: 	-rfs <host/ip>[:<port>] : Remote FileSystem.
11-07 18:02:16.369 29146-29146/cant.stop.neonbounce I/godot: 	-rfs_pass <password> : Password for Remote FileSystem.
11-07 18:02:16.399 29146-29146/cant.stop.neonbounce I/godot: e[1;31mERROR: free_static: e[0me[1mCondition ' !MemoryPoolStatic::get_singleton() ' is true.
11-07 18:02:16.399 29146-29146/cant.stop.neonbounce I/godot: e[0;31m   At: core/os/memory.cpp:59.e[0m
11-07 18:02:16.400 29146-29146/cant.stop.neonbounce I/godot: e[1;31mERROR: free_static: e[0me[1mCondition ' !MemoryPoolStatic::get_singleton() ' is true.
11-07 18:02:16.400 29146-29146/cant.stop.neonbounce I/godot: e[0;31m   At: core/os/memory.cpp:59.e[0m
11-07 18:02:16.400 29146-29146/cant.stop.neonbounce I/godot: e[1;31mERROR: free_static: e[0me[1mCondition ' !MemoryPoolStatic::get_singleton() ' is true.
11-07 18:02:16.400 29146-29146/cant.stop.neonbounce I/godot: e[0;31m   At: core/os/memory.cpp:59.e[0m
11-07 18:02:16.400 29146-29146/cant.stop.neonbounce I/godot: *****UNABLE TO SETUP
11-07 18:02:16.483 29146-29146/cant.stop.neonbounce E/AndroidRuntime: FATAL EXCEPTION: main
                                                                      Process: cant.stop.neonbounce, PID: 29146
                                                                      java.lang.RuntimeException: Unable to resume activity {cant.stop.neonbounce/org.godotengine.godot.Godot}: java.lang.NullPointerException: Attempt to invoke virtual method 'void org.godotengine.godot.GodotView.onResume()' on a null object reference
                                                                          at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3645)
                                                                          at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3685)
                                                                          at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2898)
                                                                          at android.app.ActivityThread.-wrap11(Unknown Source:0)
                                                                          at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1593)
                                                                          at android.os.Handler.dispatchMessage(Handler.java:105)
                                                                          at android.os.Looper.loop(Looper.java:164)
                                                                          at android.app.ActivityThread.main(ActivityThread.java:6541)
                                                                          at java.lang.reflect.Method.invoke(Native Method)
                                                                          at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
                                                                          at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)

First of all, is your own build of Godot working on Android if you don’t add any custom module?

If it works, then add one custom module, and continue testing. Stop as soon as it fails, to identify which module is causing the problem (though I guess it’s admob).

Once you know which module causes the problem it will be easier to know what to do or even where to ask for help :wink:
If it’s Admob though, I see there is an issue similar to yours here: Problem with Godot 2.1 stable · Issue #5 · Mavhod/GodotAdmob · GitHub (ignore this link if you didnt use that module)

Zylann | 2017-11-07 18:53

Thanx for reply!
Without any changes second compilation resolved the problem. I have no idea why))) It’s good because now I can monetize my app. But also it’s bad because I have no idea what was the problem and how it was resolved…

I hope GDnative will be able to replace this modules compilation :wink:

salomander86 | 2017-11-08 14:47