a1studmuffin / Cataclysm-DDA-Android

An unofficial Android port of Cataclysm: Dark Days Ahead.
https://play.google.com/store/apps/details?id=com.MichaelDavies.CataclysmDDA
Other
60 stars 12 forks source link

Crash on screen rotate #51

Closed sylvia43 closed 6 years ago

sylvia43 commented 7 years ago

I'm playing the game on Android, and when I go into settings and change the screen orientation setting from "Sensor" to "Landscape," the game changes orientation then promptly shuts down. There's no "this app has stopped working/stopped responding/crashed" message, and the app still shows up on the recents list, but when I reopen it it acts like I'm starting it for the first time and that settings change isn't saved.

I can't connect to adb right now but I could later and try and replicate the issue.

a1studmuffin commented 7 years ago

Thanks for the report. A few questions:

You may be able to dodge the crash until it's fixed by disabling the software renderer.

sylvia43 commented 7 years ago

Version 0.4.5 OnePlus 2 with Oxygen OS 3.5.8, Android 6.0.1

I tried disabling software rendering and after restarting I ran into the garbled graphics bug, but I managed to change the screen rotation then and it worked. However, when I tried changing back to software rendering, it crashed again.

Dyrewulfe commented 7 years ago

Orientation is locked to landscape for now. Please let us know if you experience any crash issues when locking the screen or otherwise switching out of the game(My test device that had this problem is working fine with software rendering in the current version.)

ghost commented 7 years ago

Hi, I'm having the same issue with the game crashing whenever I switch apps. Version: 0.4.7 Phone model: OnePlus 3 Android: 7.1.1 LineageOS SW rendering: yes

The problem goes away when SW rendering is disabled.

a1studmuffin commented 7 years ago

Thanks for the report! This is a known bug, sorry for the inconvenience.

On Aug 23, 2017 12:16 PM, "Nihal Talur" notifications@github.com wrote:

Hi, I'm having an issue with the game crashing whenever I switch apps. Version: 0.4.7 Phone model: OnePlus 3 Android: 7.1.1 LineageOS SW rendering: yes

The problem goes away when SW rendering is disabled.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/a1studmuffin/Cataclysm-DDA-Android/issues/51#issuecomment-324201775, or mute the thread https://github.com/notifications/unsubscribe-auth/AGAQSc7SwOMRCA_2z2dgsf0DX_vY9kBkks5sa4uJgaJpZM4NvIx9 .

ghost commented 7 years ago

Thanks for your work on this project! Could you please explain the cause/source of this problem if possible?

Thanks.

sylvia43 commented 7 years ago

It probably has to do with android's lifecycle and/or the opengl/sdl graphics context. Android is tricky to work with for these kinds of things.

a1studmuffin commented 7 years ago

I believe it's related to some changes we made to work around this issue: https://bugzilla.libsdl.org/show_bug.cgi?id=3605

On 24 August 2017 at 00:24, Shreyas notifications@github.com wrote:

It probably has to do with android's lifecycle and/or the opengl/sdl graphics context. Android is tricky to work with for these kinds of things.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/a1studmuffin/Cataclysm-DDA-Android/issues/51#issuecomment-324350593, or mute the thread https://github.com/notifications/unsubscribe-auth/AGAQSY4CC57rW-6QlXca1RIT2wWqwxW7ks5sbDY5gaJpZM4NvIx9 .