Crashing app

Previous topic - Next topic

MrPlow


Using AE 2.9 and "lanscape" orientation not sensorLandscape also only using

Internet access permission in manifest

Do I need other permissions ...?

Any ideas?


java.lang.RuntimeException: Unable to start activity ComponentInfo{com.gazzappergames.classicalpong/org.libsdl.app.SDLActivity}: java.lang.NullPointerException
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2338)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2388)
at android.app.ActivityThread.access$900(ActivityThread.java:148)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1319)
at android.os.Handler.dispatchMessage(Handler.java:99)    <----------------------Same in all error reports
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5473)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525) <--------------only ever 525 or 511 line
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:854)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:670)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at org.libsdl.app.SDLActivity.onCreate(SDLActivity.java:273) <----------------------Same in all reports
at android.app.Activity.performCreate(Activity.java:5234)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2302)
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

spacefractal

I'm only supporters newest ae to avoid issues that might have been fixed.

I'm  thinks there have been issue like this in one if the ae version....

So I'm can't check its out here.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

MrPlow

I have added ext read permission and took out the admob features from this verions (no ads used in this version)

So maybe that will fix the problem...

Thanks again Spacefractal!

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

spacefractal

See the other tread. The network access might still been required, but not sure. You should add write permission, which mightbeen used on some devices.

Also if you used platforminfo document to save data, it's can also sometimes crash too. Uses app data instead.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

MrPlow

hmmm, I dont do any saving or special high score stuff in that app and previous version only used internet permission...so hopefully removing the admob  interstitials.gbas file and admob ref in the string values file might do it...

I hopes ! :)

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

spacefractal

Glbasic does its internal... For copy assets files when required. It's might require it to use it. I'm can't garantee it's working without it. Most apps do use these permissions anyway and most devices support them. Many devices also uses split internal memory.

They also don't hurt thay are there.

So I'm recommended to left them all there instead trim them to avoid happens unwanted thing.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

MrPlow

Thanks!!
I never thought about the asset copy - thats good to know...!

So far the removing of Admob items and code with the addition of the read permission has fixed the issue for one of the people the app crashed on :)

So I am hoping all is good now - but any more issues and I will add the write permission too!

:)

All is right with the world once more...
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

spacefractal

you remember Android.Asset_Check() command? This is still performed, but now automatic in newer AE versions after im got the glbasic source code, hence this command is no longer required.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/