HP Forums
Plus42 Android crashes immediately - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: Not HP Calculators (/forum-7.html)
+--- Forum: Not quite HP Calculators - but related (/forum-8.html)
+--- Thread: Plus42 Android crashes immediately (/thread-18030.html)



Plus42 Android crashes immediately - DA74254 - 02-13-2022 07:25 PM

Mostly for @Thomas Okken..
I recently downloaded the latest version of Plus42 for Windows and Android.
Works fine on Win11.
I installed (sideloaded) to my Cat S61 w/Android 9.
It instantly crashes and stops. The app merely flashes on my display and shuts down.
Tried to restart phone, but same, and I get a popup with "Plus42 keeps stopping" and options for "App info" and "Close app".
Any suggestions?
If I get it working, adn when project is properly released, I'll gladly pay for it.


RE: Plus42 Android crashes immediately - Thomas Okken - 02-13-2022 09:15 PM

It looks like there is a problem with new installs with the latest build, it doesn't initialize a new state correctly. I just tried deleting the app from my iPhone and reinstalling it, and the skin comes up but the display stays blank. But when I load an old state, it does work.

Looking into it!


RE: Plus42 Android crashes immediately - DA74254 - 02-13-2022 11:35 PM

Thank you.
In my case, it was a new install without any state file.
I'll experiment and see if I can make a state file with Free42 and transfer it to the Plus42 direcory.
Though Android9 refuses to let you see files in program directories.


RE: Plus42 Android crashes immediately - Thomas Okken - 02-14-2022 12:34 AM

Fixed!

This had to do with the "Better display size handling across restarts" item from the most recent release notes. "Better" refers to storing the requested display size in the state file, so when you select a skin that doesn't support the requested resolution, you'll still get that resolution back when you switch back to another skin, even after having restarted the app in the meantime.

The only catch is: when you're starting from scratch, not from a state file, you need to set that requested size to some reasonable default, and that wasn't happening, so instead, the app would try to allocate a 0x0 display buffer, with various undesirable consequences. *facepalm*


RE: Plus42 Android crashes immediately - DA74254 - 02-14-2022 11:01 AM

Now it works.
Thank you very much.
Can't wait till the fully developed pay-version arrives Smile


RE: Plus42 Android crashes immediately - Thomas Okken - 02-14-2022 11:44 AM

Thanks!

It shouldn't be much longer... Feature-wise, the app is nearing completion. It will need more testing, and then I need to take care of all the official business of putting a paid app in the iOS and Android stores. Sometime in March, I hope, or else April.