Android Crash on Launch except from editor

Hey,

Since upgrading to UE4.16, I can’t run the game on my android device unless I launch it on the mobile directly from the editor.

The game launches fine if done straight from the editor, and the game also packages ok without any errors.

However, if I try and launch it after closing the game from playing from the editor, or I try and push a build across from a full package, the game crashes on launch.

There are no errors or warnings on the log from the phone or the editor, it’s just a crash. I’ve updated android works and done everything else to make sure the game is up to date.

I’ve attached a log of the issue.

Thanks

link text

Updated log with just the crash.
link text

Adding unfiltered log.

Removing the UE4 filter, I found this but I don’t understand it enough:

                                                                             --------- beginning of crash

05-31 19:53:16.497 3741-3741/com.CoffeeCupGames.QuantumBuilder E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.CoffeeCupGames.QuantumBuilder, PID: 3741
java.lang.RuntimeException: Canvas: trying to draw too large(132710400bytes) bitmap.
at android.view.DisplayListCanvas.throwIfCannotDraw(DisplayListCanvas.java:260)

link text

Hello Piranhi,

This could be related to a bug report that I put in yesterday: UE-45526. If so, please try enabling the Gear VR plugin if it is disabled. This is set to be fixed in 4.16.1 but this should be a suitable workaround in the meantime.

Edit: If enabling the plugin doesn’t help immediately, I would suggest deleting your Saved and Intermediates folders prior to attempting to package again (If you’re in a code project, you’ll also need to Generate Project Files after doing so to regenerate these folders, otherwise it’ll be done when packaging)

Hey Matthew,

I’ve tried enabling the plugin, deleting both folders and doing both a push to mobile and full re-cook and deploy, and both times I have the same issue. It runs fine if launching on the mobile from the editor, but any other way just causes it to crash.

I’ve attached another log in case anything changed this time.

Cheers,
Chris

link text

About all I can see is maybe the splash screen or download background png is too high a resolution?

Canvas: trying to draw too large(132710400bytes) bitmap.

Hey Chris,

This did indeed fix the issue, thank you!

same issue on 4.18
https://drive.google.com/open?id=1ylD47_XCfRIHituDzNeXzVstW2yNr2pA9-ZrM-MUgxs

Hi, I’ve got this crash in my log:
ProcessResult.StdOut: --------- beginning of crash
CommandUtils.Run: Took 0,1212054s to run adb.exe, ExitCode=0
InternalUtils.SafeFileExists: SafeFileExists C:\android-sdk-windows\platform-tools\adb.exe=True
CommandUtils.Run: Running: C:\android-sdk-windows\platform-tools\adb.exe -s e83dda98 logcat -d
CommandUtils.Run: Took 0,1180753s to run adb.exe, ExitCode=0