java.lang.NullPointerException

Previous topic - Next topic

MrPlow

Hi Guys

Any ideas what might cause this in GLB for Android app...

crash states..
java.lang.NullPointerException
in org.libsdl.app.SDLActivity.onCreate

Thks!
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

spacefractal

#1
Im need full log, its crashed somewhere in the OnCreate(). But without full log, no idea why.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

erico

#2
Have you searched the forum? I think I have seen that or similar before.

edit: maybe this helps? http://www.glbasic.com/forum/index.php?topic=6912.0

MrPlow

Hi SF,

Is this what u need?

Its a Google Play report so it didnt happen on my device...just a downloader / user.

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.gazzapper.galaxystorm/org.libsdl.app.SDLActivity}: java.lang.NullPointerException
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
at android.app.ActivityThread.access$1500(ActivityThread.java:117)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3683)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:864)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:622)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at org.libsdl.app.SDLActivity.onCreate(SDLActivity.java:323)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
... 11 more
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

MrTAToad

Sounds like a surface or something called AbsoluteLayout couldn't be created - by the looks of the java code, there isn't a test to see if either is NULL (although Java may be using an exception to process the message).

spacefractal

#5
Can you see which device and android its was on. Its can been property a missing resource of some sort. Its impossible to supports all devices.

im do cant see which line its was happens, because your AE version is different than mine. So you should attachement the version of SDLActivity.Java you used for the game.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

MrPlow

Hi

The device it says is
X500_USA_General (X500)

Android version 2.3.3 - 2.3.7

So probably fairly isolated crash?!

Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

spacefractal

its can been happens. Im do cant see which line its was crashed on, due different between your and mine AE.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/