Android Crash (simple fix)

For new and upcoming OpenMW branches and ports; move fast and break things!
Nwah209
Posts: 11
Joined: 02 Oct 2018, 06:01

Android Crash (simple fix)

Post by Nwah209 »

My game works flawlessly at start. Videos and all. The issue is when i try to leave the ship. It crashes. I downloaded and ran it on another phone. It worked great and left the ship fine. Created a save then transfered the save file to my other device with the issue. Worked great. Exterior cells ran smooth. Entered interiors fine. Yet after leaving buildings it would crash again. Im left to believe its some kind of stream memory issue. Too much trying to be loaded at once. (Then again that doesn't explain why it works as long as i load from an exterior) im using the latest debug (april) apk and have the latest unmodified updated steam files. Ive tried adjusting and tweaking the settings in almost every way. My phone is a little older ZTE Zmax pro with marshmallow but i know that is not the issue because i can play it fine. In and out. its just when i try to go out from in is the problem. What can i do?
Jodiwe
Posts: 23
Joined: 16 Sep 2014, 12:10

Re: Android Crash (simple fix)

Post by Jodiwe »

I've got the same issue leaving the ship on my Huawei P8 Lite (2015 model). I haven't tried copying a save from my computer, so that's an idea.

Hopefully I can get a build environment set up at home (elementary OS) and debug the issue on my side. I've never done Android debugging before (but at work I do embedded C and C# on Windows).

To add, the game just exits, there aren't any error dialogues or anything like that.
User avatar
Zanarkan
Posts: 31
Joined: 21 Apr 2018, 22:07

Re: Android Crash (simple fix)

Post by Zanarkan »

My game have do this without reason once and it is because
i do modification in cfg config files (i think).
Never happening again i am afraid i can't help more but
just in case try to change setting in openmw.apk.
Here is my device info : SM-T280 (gtexswifi) @5.1.1 (22)
1,30Ghz - 1,39Go Ram
Armeabi-v7a
ART (2.1.0)
User avatar
Zanarkan
Posts: 31
Joined: 21 Apr 2018, 22:07

Re: Android Crash (simple fix)

Post by Zanarkan »

by mojoswagger1980
13 Jul 2018, 20:16
Forum: Other Forks and Ports
Topic: [WIP] Android port testing
Replies: 507
Views: 173450
Re: [WIP] Android port testing
mojoswagger1980 wrote: ↑13 Jul 2018, 13:44
whatthe wrote: ↑12 Jul 2018, 11:16
mojoswagger1980 wrote: ↑09 Jul 2018, 16:49
IF YOU ARE EXPERIENCING INSTABILITY THAT RESULTS IN THE APP CRASHING, try this: navigate to the settings.cfg file located at /sdcard/android/data/com.libopenmw.openmw/config/openmw/ and insert the following

[Cells]
preload enabled = false
...etc...
Will any of the changes here improve performance, or more importantly increase battery life and decrease heat? Are there any settings we can change ( aside from the in-game and launcher settings) to improve performance? I tried lowering the resolution but I'm guessing that is tied to other things and cannot be so easily changed.

I want to be able to have some view distance is all, but I understand the limitations so I can make do.
No, actually these settings would limit performance. It is my belief that this is no different than any other android app and therefore the most common cause of crash is too many threads being used by the main activity for the processors to handle. As far as the phone getting hot, i have not experienced that, so while these settings may prevent that, i cant honestly say as i wasnt trying to prevent that. i crashed once on the second suggested settings and have since adjusted min/max cache to 15 and the preload distance to 500. Completed the game last night (main quest) without anymore crashes. Currently headed for Necronom (Tamriel Rebuilt) with no further crashes.

Edit - Google + Openmw android + First link + Search = 🔝😈
Nwah209
Posts: 11
Joined: 02 Oct 2018, 06:01

Re: Android Crash (simple fix)

Post by Nwah209 »

I have tried enabling and disabling cell preloads. With it disabled it crashes when i enter interiors as well as exit (with it enabled i can go inside just not back outside)
I have tried increasing min cache size and lowing preload distance. Still everytime i enter then exit or if i wonder to far from Seyda Neen my game crashes.
User avatar
Zanarkan
Posts: 31
Joined: 21 Apr 2018, 22:07

Re: Android Crash (simple fix)

Post by Zanarkan »

Can't help you more friend... i will keep looking for fix and come back to you if i find it this is the best i can do for u.
Nwah209
Posts: 11
Joined: 02 Oct 2018, 06:01

Re: Android Crash (simple fix)

Post by Nwah209 »

My take on it is its trying to draw to much ram when "Loading Area" and my phone isnt taking it well. I have tweaked the settings enough where now i can enter Arrille's Trade House and exit. Preload distance 500, max cell saves to 15 and 15) But if i enter then exit any other interior it crashes. The thing thats weird though is it will load any cell i start from a saved game. This is because of pre loading cell enabled of course. It just will not load a cell in game (except a handful). The only work around i can think of is some how being able to pre load every cell in the game. But that would draw so much stream memory the app would crash right after launching the game. So i dont know but i will continue to work on my issue. Thank you for the response and support and hopefully we figure this out. I know my phone can do it we just need to find the correct configuration.
mojoswagger1980
Posts: 193
Joined: 04 May 2018, 05:16

Re: Android Crash (simple fix)

Post by mojoswagger1980 »

Hi,
Try disabling preload instances. Try setting your max framerate to 60 via settings.cfg(not target framerate tyere are 2 settings) and oiie tye guy above me said lower your maximum expiry cache. i personally thought it improved framerate not messing with the loading distance. The problem being you get too many cells trying to load without adequate time to do it in (increasing prediction time couod help the above). I know you tried disabping preload but try preload instances. I wasnt quite to that yet from the post im quoted in lol but i get there in a page or so . Might have jumped a lil early . Should have waited and experimented . i beleive cells arent getting done loading in your instance and it crashes upon change. Preload instances "clones" instances which are anything your player can interact with via tapping it. It was what ended up being the prob for me .
mojoswagger1980
Posts: 193
Joined: 04 May 2018, 05:16

Re: Android Crash (simple fix)

Post by mojoswagger1980 »

Nwah209 wrote: 03 Oct 2018, 23:23 I have tried enabling and disabling cell preloads. With it disabled it crashes when i enter interiors as well as exit (with it enabled i can go inside just not back outside)
I have tried increasing min cache size and lowing preload distance. Still everytime i enter then exit or if i wonder to far from Seyda Neen my game crashes.
What device and whats the last thing it says on your openmw.log (screenshot or post that please)
Edit: zte max pro. Sorry just the log . Oh and what version of the game are you running ? Betheda original, steam, GoG? is it a Goty edition?
Nwah209
Posts: 11
Joined: 02 Oct 2018, 06:01

Re: Android Crash (simple fix)

Post by Nwah209 »

Loading config file: /storage/emulated/0/Android/data/com.libopenmw.openmw/config/openmw/openmw.cfg... done.
OpenMW version 0.43.0
Revision: 996b660baf
Using default (English) font encoding.
OSG version: 3.6.0
Loading settings file: /storage/emulated/0/Android/data/com.libopenmw.openmw/openmw/settings-default.cfg
Loading settings file: /storage/emulated/0/Android/data/com.libopenmw.openmw/config/openmw/settings.cfg
Adding BSA archive storage/emulated/0/Morrowind/data-files/Morrowind.bsa
Adding BSA archive storage/emulated/0/Morrowind/data-files/Tribunal.bsa
Adding BSA archive storage/emulated/0/Morrowind/data-files/Bloodmoon.bsa
Adding data directory storage/emulated/0/Morrowind/data-files
Detected unusable controller: Android Accelerometer
Sound disabled.
Failed to open video: Resource 'video/bethesda logo.bik' not found
Warning: physics framerate was overridden (a new value is 60).
Loading content file Morrowind.esm
Loading content file Bloodmoon.esm
Loading content file Tribunal.esm
Warning: fallback value Weather_Clear_Rain_Entrance_Speed not found.
Warning: fallback value Weather_Clear_Using_Precip not found.
Warning: fallback value Weather_Clear_Thunder_Frequency not found.
Warning: fallback value Weather_Clear_Thunder_Threshold not found.
Warning: fallback value Weather_Clear_Flash_Decrement not found.
Warning: fallback value Weather_Clear_Thunder_Sound_ID_0 not found.
Warning: fallback value Weather_Clear_Thunder_Sound_ID_1 not found.
Warning: fallback value Weather_Clear_Thunder_Sound_ID_2 not found.
Warning: fallback value Weather_Clear_Thunder_Sound_ID_3 not found.
Warning: fallback value Weather_Cloudy_Rain_Entrance_Speed not found.
Warning: fallback value Weather_Cloudy_Using_Precip not found.
Warning: fallback value Weather_Cloudy_Thunder_Frequency not found.
Warning: fallback value Weather_Cloudy_Thunder_Threshold not found.
Warning: fallback value Weather_Cloudy_Flash_Decrement not found.
Warning: fallback value Weather_Cloudy_Thunder_Sound_ID_0 not found.
Warning: fallback value Weather_Cloudy_Thunder_Sound_ID_1 not found.
Warning: fallback value Weather_Cloudy_Thunder_Sound_ID_2 not found.
Warning: fallback value Weather_Cloudy_Thunder_Sound_ID_3 not found.
Warning: fallback value Weather_Foggy_Rain_Entrance_Speed not found.
Warning: fallback value Weather_Foggy_Using_Precip not found.
Warning: fallback value Weather_Foggy_Thunder_Frequency not found.
Warning: fallback value Weather_Foggy_Thunder_Threshold not found.
Warning: fallback value Weather_Foggy_Flash_Decrement not found.
Warning: fallback value Weather_Foggy_Thunder_Sound_ID_0 not found.
Warning: fallback value Weather_Foggy_Thunder_Sound_ID_1 not found.
Warning: fallback value Weather_Foggy_Thunder_Sound_ID_2 not found.
Warning: fallback value Weather_Foggy_Thunder_Sound_ID_3 not found.
Warning: fallback value Weather_Overcast_Rain_Entrance_Speed not found.
Warning: fallback value Weather_Overcast_Using_Precip not found.
Warning: fallback value Weather_Overcast_Thunder_Frequency not found.
Warning: fallback value Weather_Overcast_Thunder_Threshold not found.
Warning: fallback value Weather_Overcast_Flash_Decrement not found.
Warning: fallback value Weather_Overcast_Thunder_Sound_ID_0 not found.
Warning: fallback value Weather_Overcast_Thunder_Sound_ID_1 not found.
Warning: fallback value Weather_Overcast_Thunder_Sound_ID_2 not found.
Warning: fallback value Weather_Overcast_Thunder_Sound_ID_3 not found.
Warning: fallback value Weather_Rain_Thunder_Frequency not found.
Warning: fallback value Weather_Rain_Thunder_Threshold not found.
Warning: fallback value Weather_Rain_Flash_Decrement not found.
Warning: fallback value Weather_Rain_Thunder_Sound_ID_0 not found.
Warning: fallback value Weather_Rain_Thunder_Sound_ID_1 not found.
Warning: fallback value Weather_Rain_Thunder_Sound_ID_2 not found.
Warning: fallback value Weather_Rain_Thunder_Sound_ID_3 not found.
Warning: fallback value Weather_Ashstorm_Rain_Entrance_Speed not found.
Warning: fallback value Weather_Ashstorm_Using_Precip not found.
Warning: fallback value Weather_Ashstorm_Thunder_Frequency not found.
Warning: fallback value Weather_Ashstorm_Thunder_Threshold not found.
Warning: fallback value Weather_Ashstorm_Flash_Decrement not found.
Warning: fallback value Weather_Ashstorm_Thunder_Sound_ID_0 not found.
Warning: fallback value Weather_Ashstorm_Thunder_Sound_ID_1 not found.
Warning: fallback value Weather_Ashstorm_Thunder_Sound_ID_2 not found.
Warning: fallback value Weather_Ashstorm_Thunder_Sound_ID_3 not found.
Warning: fallback value Weather_Blight_Rain_Entrance_Speed not found.
Warning: fallback value Weather_Blight_Using_Precip not found.
Warning: fallback value Weather_Blight_Thunder_Frequency not found.
Warning: fallback value Weather_Blight_Thunder_Threshold not found.
Warning: fallback value Weather_Blight_Flash_Decrement not found.
Warning: fallback value Weather_Blight_Thunder_Sound_ID_0 not found.
Warning: fallback value Weather_Blight_Thunder_Sound_ID_1 not found.
Warning: fallback value Weather_Blight_Thunder_Sound_ID_2 not found.
Warning: fallback value Weather_Blight_Thunder_Sound_ID_3 not found.
Warning: fallback value Weather_Snow_Rain_Entrance_Speed not found.
Warning: fallback value Weather_Snow_Using_Precip not found.
Warning: fallback value Weather_Snow_Thunder_Frequency not found.
Warning: fallback value Weather_Snow_Thunder_Threshold not found.
Warning: fallback value Weather_Snow_Flash_Decrement not found.
Warning: fallback value Weather_Snow_Thunder_Sound_ID_0 not found.
Warning: fallback value Weather_Snow_Thunder_Sound_ID_1 not found.
Warning: fallback value Weather_Snow_Thunder_Sound_ID_2 not found.
Warning: fallback value Weather_Snow_Thunder_Sound_ID_3 not found.
Warning: fallback value Weather_Blizzard_Rain_Entrance_Speed not found.
Warning: fallback value Weather_Blizzard_Using_Precip not found.
Warning: fallback value Weather_Blizzard_Thunder_Frequency not found.
Warning: fallback value Weather_Blizzard_Thunder_Threshold not found.
Warning: fallback value Weather_Blizzard_Flash_Decrement not found.
Warning: fallback value Weather_Blizzard_Thunder_Sound_ID_0 not found.
Warning: fallback value Weather_Blizzard_Thunder_Sound_ID_1 not found.
Warning: fallback value Weather_Blizzard_Thunder_Sound_ID_2 not found.
Warning: fallback value Weather_Blizzard_Thunder_Sound_ID_3 not found.
Failed to open video: Resource 'video/mw_logo.bik' not found
Warning: controller R2_Claw02 present more than once in meshes/r/xsiltstrider.kf, ignoring later version
Loading cell -3, -10
Loading cell -3, -9
Loading cell -3, -8
Loading cell -2, -10
Loading cell -2, -9
Loading cell -2, -8
Loading cell -1, -10
Loading cell -1, -9
Loading cell -1, -8
warning fallingScript line 46, column 6 (endif)
endif without matching if/elseif
Unhandled controller NiPathController on node 72 in meshes/e/magic_hit_rest.nif
Unhandled controller NiPathController on node 83 in meshes/e/magic_hit_rest.nif
Unhandled controller NiPathController on node 91 in meshes/e/magic_hit_rest.nif
Changing to interior
Unloading cell
Unloading cell
Unloading cell
Unloading cell
Unloading cell
Unloading cell
Unloading cell
Unloading cell
Unloading cell
Loading cell Seyda Neen, Arrille's Tradehouse
Unloading cell
Loading cell -3, -10
Loading cell -3, -9
Loading cell -3, -8
Loading cell -2, -10
Loading cell -2, -9
Loading cell -2, -8
Loading cell -1, -10
Loading cell -1, -9
Loading cell -1, -8
Changing to interior
Unloading cell
Unloading cell
Unloading cell
Unloading cell
Unloading cell
Unloading cell
Unloading cell
Unloading cell
Unloading cell
Loading cell Seyda Neen, Census and Excise Office
Unloading cell
Loading cell -3, -10
Loading cell -3, -9
Loading cell -3, -8
Loading cell -2, -10
Loading cell -2, -9
Loading cell -2, -8
Loading cell -1, -10
Loading cell -1, -9
Loading cell -1, -8
Post Reply