App crashes after onStop() with P2D
Hi, I'm using P2D in my fullscreen() because the default renderer runs my app at around 20 fps, whereas P2D can render it in full 60+ fps. However, a bug now occurs. When I press the "Recents" button or the home button to move the app to the background, onPause() and onStop() get called as normal, but onStart() and onResume() never get called when the app returns to the foreground. The screen remains black for a while, then the notification shows up that the app isn't responding and the console error "That's weird. Proc 801 got signal 3, but there's no stack trace" gets thrown.
Running the default renderer does everything correctly, but the app is unbearable in it, so I'm wondering if this is a bug and if there's a workaround?
I'm currently working around this by killing the process in onStop()
@Override
public void onStop() {
println("supposed to stop, killed the process instead to avoid processing crash bug");
android.os.Process.killProcess(android.os.Process.myPid());
System.exit(1);
}
which is similar code I used for restarting after deleting any save progress; it just makes the app restart when it is recalled to the foreground. That's intensely more acceptable than a completely unresponsive, black screen app. Still wondering if there's a better way to do it, but if anyone else is having the problem, this has been my pseudo-solution.
@hunterkiddo thanks for reporting this issue, and the workaround, I will tag it for the next bugfix release (4.1.1) since I'm uploading 4.1 just now!
@codeanticode hey, is there a way to get the 4.1.1 bugfix, since the update isn't in processing? I need to use the console again. Thanks for looking at all these issues
Version 4.1.1 should be available for downloading through the Contributions Manager in the PDE.
@codeanticode

That's odd. You can download and install v4.1.1 manually from here:
https://github.com/processing/processing-android/releases/tag/latest
until the release shows up in the CM.
Actually if you install version 4.1 through the CM, you will actually get 4.1.1. Somehow the CM has not updated to reflect the new version yet, although the files are from the latest release.
I just did it from the link you sent so I didn't have to uninstall and reinstall, thank you