0 votes

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: [0m[1mCondition ' !MemoryPoolStatic::get_singleton() ' is true.
[0;31m   At: core/os/memory.cpp:59.[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: [1;31mERROR: free_static: [0m[1mCondition ' !MemoryPoolStatic::get_singleton() ' is true.
11-07 18:02:16.399 29146-29146/cant.stop.neonbounce I/godot: [0;31m   At: core/os/memory.cpp:59.[0m
11-07 18:02:16.400 29146-29146/cant.stop.neonbounce I/godot: [1;31mERROR: free_static: [0m[1mCondition ' !MemoryPoolStatic::get_singleton() ' is true.
11-07 18:02:16.400 29146-29146/cant.stop.neonbounce I/godot: [0;31m   At: core/os/memory.cpp:59.[0m
11-07 18:02:16.400 29146-29146/cant.stop.neonbounce I/godot: [1;31mERROR: free_static: [0m[1mCondition ' !MemoryPoolStatic::get_singleton() ' is true.
11-07 18:02:16.400 29146-29146/cant.stop.neonbounce I/godot: [0;31m   At: core/os/memory.cpp:59.[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)
asked Nov 7, 2017 in Engine by salomander86 (30 points)
edited Nov 7, 2017 by volzhs

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 ;)
If it's Admob though, I see there is an issue similar to yours here: https://github.com/Mavhod/GodotAdmob/issues/5 (ignore this link if you didnt use that module)

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 ;)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.