Android Crashes

Previous topic - Next topic

MrPlow

Hi All

I noticed this line on SDL Activity mentioned a lot on my crash reports - which have increased recently especially for 1 app

The line is

254:      java.io.File dataDir = getFilesDir();

and it reports  nullException error

Has anyone else encountered this issue on a larger scale?

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

erico

hmm, not me yet.
I have a few other crashes but they are really rare. I haven´t been able to debug them as of yet.

On your case, are you loading all assets as you game boots? Or are you loading stuff as the game goes by?

MrPlow

Once the game boots mostly

I think some objects for some title are loaded every new main menu load.

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

spacefractal

#3
It's seen happens on oncreate(), which should not been happens.csn can look on that next week.

Ps. Look like it's a common bug on some devices which have set a wrong username, so it's can't get access the required dir. It's might require a unintall and reinstall again due that bug. I'm can alternative only set a empty dir when that happens.

But checks out next week. It's nothing about attest files, since it's happens under boot.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

erico

So if it crashes on boot, my suspicious has nothing to do with it.
I was wondering if loading all assets on boot would temporarily solve it, but it seems unlikely.

spacefractal

If the crash happens in oncreate(), that happens under glbasic in it rutine. But it's seen its a known android bug in some systems. It's the APPDATA dir that fails.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

MrPlow

Thanks SF
So there's nothing to do about it then?

Also, any info on the NETWEBEND fix ? Currently apps crash with it in version 2.6 of AE

Know you have a lot on at the moment. If you point my in the direction of where the function is I could correct with small edit maybe?

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

spacefractal

I'm currently still on vacation..... But I'm need to help gernot with android compiler first me thinks. If it's crash due music, stop it before you call it.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

MrPlow

The old 2.5.2 was fixed for Netwebend except for if music playing

2.6 Netwebend seems to the 2.5 version and crashes all the time regardless of music.

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

spacefractal

strange, since im havent changes anything since that. Im look on that tomorrow and recompile it again and also help Gernot to get Android compile again (which is the only "missing" platform). Im home again, but take a break today and need to rechange few devices.

Im property cant do anything about the getfiles getFilesDir(), other than catch the null pointer and then returns a empty string when that happens (which mean you cant save the game at all). This seen to been a bug in some Android systems.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

spacefractal

#10
ah damn.

Im see the Ouya issues now, some issues that is very annoying and require some help from the Ouya staff. The purchase option thing example does NOT work at all and still give me errors about classes not found, even its should not do that (howover rest should do have been fixed, but do need testing).

Its due changes on the new SDK im wasent aware of in long time (sorry about that), and thinking the sdk im did have wasent updated in the project foldes, so they was seen working, when they wasent.

Those needs to been fixed first.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

spacefractal

#11
About NETWEBEND:
This mightbeen the most anoying command im known in glbasic which is still quite very buggy.

After wasted some hours, im could only get to that point the browser can open nicely, but the app will crash after that. That force me to add glbasicOnPause(-2) in the Java to close the app, when this command is called on Android. Its better to close the app rather than crashing it.

Im thinks its a bug in glb.h in the string handler, which might try to release or access a memory you dont have access too.

That is a bug im can not nothing anything about that and nor will try to fix that, unless im can get a debugger running (which is required to fix a bug like that), like that one you have en xCode.

PS. Im finally got the crash issue fixed too. For some ood reason its crash when im return a ok as variable, but not when im using a number directly. odd.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

MrPlow

Thats great news!  :booze:

So Netwebend is fixed now? It used to work fine for me for all apps in earlier versions of AE but this great news!

Thanks a lot SF.
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

spacefractal

#13
its was mainly happens because its was used a bit older version of the source code. But its was also happens in sld main cpp as well in java too. Im update tomorrow. But confirmed its diddent work at all in 2.6.

Im also fix most of the Ouya issues as well with the new Ouya SDK.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

Marmor

#14
you are a code wizard !