WhereYouGo icon indicating copy to clipboard operation
WhereYouGo copied to clipboard

Error opening Saved Slot on Android 12

Open co-silviu opened this issue 4 years ago • 5 comments

Describe your problem!

I saved the game and when I try to open it I receive an error message, I will provide error log

How to reproduce?

Save the game, close app, reopen app and saved slot, receive error

Actual result after these steps?

App error message - Null pointer

Expected result after these steps?

To open the saved slot

Reproducible

Yes

WhereYouGo Version

2022.01.02

System information

Pixel 6, Android 12

Additional Information

Link to log error https://we.tl/t-A1j1pJA5vv

co-silviu avatar Jan 06 '22 08:01 co-silviu

Thanks for reporting.

Your link is not working.

What directory did you define in settings for your cartridges to be saved. As WhereYouGo did not set be reworked to have a proper file access on Android 11+ it might fail if you select some random folder.

Lineflyer avatar Jan 06 '22 09:01 Lineflyer

Content of error.log attached:

2022/01/05 16:29:30
[MainApplication] onTrimMemory(20): savegame failed
2022/01/05 16:30:40
[MainApplication] onTrimMemory(20): savegame failed
2022/01/05 16:32:07
[MainApplication] onTrimMemory(20): savegame failed
2022/01/05 16:34:24
[MainApplication] onTrimMemory(20): savegame failed
2022/01/05 16:36:23
[MainApplication] onTrimMemory(20): savegame failed
2022/01/05 16:37:14
[WUI] showError(you hit a bug! please report at openwig.googlecode.com and i'll fix it for you!
java.lang.NullPointerException: Attempt to read from field 'cz.matejcik.openwig.Cartridge cz.matejcik.openwig.Engine.cartridge' on a null object reference)
2022/01/05 16:37:14
[WUI] showError(you hit a bug! please report at openwig.googlecode.com and i'll fix it for you!
java.lang.NullPointerException: Attempt to read from field 'cz.matejcik.openwig.Cartridge cz.matejcik.openwig.Engine.cartridge' on a null object reference)
2022/01/05 16:37:14
[WUI] showError(you hit a bug! please report at openwig.googlecode.com and i'll fix it for you!
java.lang.NullPointerException: Attempt to read from field 'cz.matejcik.openwig.Cartridge cz.matejcik.openwig.Engine.cartridge' on a null object reference)
2022/01/05 16:37:14
[WUI] showError(you hit a bug! please report at openwig.googlecode.com and i'll fix it for you!
java.lang.NullPointerException: Attempt to read from field 'cz.matejcik.openwig.Cartridge cz.matejcik.openwig.Engine.cartridge' on a null object reference)
2022/01/05 16:37:14
[WUI] showError(you hit a bug! please report at openwig.googlecode.com and i'll fix it for you!
java.lang.NullPointerException: Attempt to read from field 'cz.matejcik.openwig.Cartridge cz.matejcik.openwig.Engine.cartridge' on a null object reference)
2022/01/05 16:37:29
[MainApplication] onTrimMemory(20): savegame failed
2022/01/05 17:47:36
[MainApplication] onTrimMemory(20): savegame failed
2022/01/05 21:22:17
[MainApplication] onTrimMemory(20): savegame failed
2022/01/06 10:05:47
[MainApplication] onTrimMemory(20): savegame failed
2022/01/06 10:07:00
[WUI] showError(you hit a bug! please report at openwig.googlecode.com and i'll fix it for you!
java.lang.NullPointerException: Attempt to read from field 'cz.matejcik.openwig.Cartridge cz.matejcik.openwig.Engine.cartridge' on a null object reference)
2022/01/06 10:07:01
[WUI] showError(you hit a bug! please report at openwig.googlecode.com and i'll fix it for you!
java.lang.NullPointerException: Attempt to read from field 'cz.matejcik.openwig.Cartridge cz.matejcik.openwig.Engine.cartridge' on a null object reference)
2022/01/06 10:07:02
[WUI] showError(you hit a bug! please report at openwig.googlecode.com and i'll fix it for you!
java.lang.NullPointerException: Attempt to read from field 'cz.matejcik.openwig.Cartridge cz.matejcik.openwig.Engine.cartridge' on a null object reference)
2022/01/06 10:07:03
[WUI] showError(you hit a bug! please report at openwig.googlecode.com and i'll fix it for you!
java.lang.NullPointerException: Attempt to read from field 'cz.matejcik.openwig.Cartridge cz.matejcik.openwig.Engine.cartridge' on a null object reference)
2022/01/06 10:07:04
[WUI] showError(you hit a bug! please report at openwig.googlecode.com and i'll fix it for you!
java.lang.NullPointerException: Attempt to read from field 'cz.matejcik.openwig.Cartridge cz.matejcik.openwig.Engine.cartridge' on a null object reference)
2022/01/06 10:07:05
[WUI] showError(you hit a bug! please report at openwig.googlecode.com and i'll fix it for you!
java.lang.NullPointerException: Attempt to read from field 'cz.matejcik.openwig.Cartridge cz.matejcik.openwig.Engine.cartridge' on a null object reference)
2022/01/06 10:07:06
[WUI] showError(you hit a bug! please report at openwig.googlecode.com and i'll fix it for you!
java.lang.NullPointerException: Attempt to read from field 'cz.matejcik.openwig.Cartridge cz.matejcik.openwig.Engine.cartridge' on a null object reference)
2022/01/06 10:07:07
[WUI] showError(you hit a bug! please report at openwig.googlecode.com and i'll fix it for you!
java.lang.NullPointerException: Attempt to read from field 'cz.matejcik.openwig.Cartridge cz.matejcik.openwig.Engine.cartridge' on a null object reference)
2022/01/06 10:07:08
[WUI] showError(you hit a bug! please report at openwig.googlecode.com and i'll fix it for you!
java.lang.NullPointerException: Attempt to read from field 'cz.matejcik.openwig.Cartridge cz.matejcik.openwig.Engine.cartridge' on a null object reference)
2022/01/06 10:07:13
[WUI] showError(you hit a bug! please report at openwig.googlecode.com and i'll fix it for you!
java.lang.NullPointerException: Attempt to read from field 'cz.matejcik.openwig.Cartridge cz.matejcik.openwig.Engine.cartridge' on a null object reference)
2022/01/06 10:07:14
[WUI] showError(you hit a bug! please report at openwig.googlecode.com and i'll fix it for you!
java.lang.NullPointerException: Attempt to read from field 'cz.matejcik.openwig.Cartridge cz.matejcik.openwig.Engine.cartridge' on a null object reference)
2022/01/06 10:07:15
[WUI] showError(you hit a bug! please report at openwig.googlecode.com and i'll fix it for you!
java.lang.NullPointerException: Attempt to read from field 'cz.matejcik.openwig.Cartridge cz.matejcik.openwig.Engine.cartridge' on a null object reference)
2022/01/06 10:07:16
[WUI] showError(you hit a bug! please report at openwig.googlecode.com and i'll fix it for you!
java.lang.NullPointerException: Attempt to read from field 'cz.matejcik.openwig.Cartridge cz.matejcik.openwig.Engine.cartridge' on a null object reference)
2022/01/06 10:07:17
[WUI] showError(you hit a bug! please report at openwig.googlecode.com and i'll fix it for you!
java.lang.NullPointerException: Attempt to read from field 'cz.matejcik.openwig.Cartridge cz.matejcik.openwig.Engine.cartridge' on a null object reference)
2022/01/06 10:07:18
[WUI] showError(you hit a bug! please report at openwig.googlecode.com and i'll fix it for you!
java.lang.NullPointerException: Attempt to read from field 'cz.matejcik.openwig.Cartridge cz.matejcik.openwig.Engine.cartridge' on a null object reference)
2022/01/06 10:07:19
[WUI] showError(you hit a bug! please report at openwig.googlecode.com and i'll fix it for you!
java.lang.NullPointerException: Attempt to read from field 'cz.matejcik.openwig.Cartridge cz.matejcik.openwig.Engine.cartridge' on a null object reference)
2022/01/06 10:07:20
[WUI] showError(you hit a bug! please report at openwig.googlecode.com and i'll fix it for you!
java.lang.NullPointerException: Attempt to read from field 'cz.matejcik.openwig.Cartridge cz.matejcik.openwig.Engine.cartridge' on a null object reference)
2022/01/06 10:07:21
[WUI] showError(you hit a bug! please report at openwig.googlecode.com and i'll fix it for you!
java.lang.NullPointerException: Attempt to read from field 'cz.matejcik.openwig.Cartridge cz.matejcik.openwig.Engine.cartridge' on a null object reference)
2022/01/06 10:07:22
[WUI] showError(you hit a bug! please report at openwig.googlecode.com and i'll fix it for you!
java.lang.NullPointerException: Attempt to read from field 'cz.matejcik.openwig.Cartridge cz.matejcik.openwig.Engine.cartridge' on a null object reference)
2022/01/06 10:07:23
[WUI] showError(you hit a bug! please report at openwig.googlecode.com and i'll fix it for you!
java.lang.NullPointerException: Attempt to read from field 'cz.matejcik.openwig.Cartridge cz.matejcik.openwig.Engine.cartridge' on a null object reference)
2022/01/06 10:07:24
[WUI] showError(you hit a bug! please report at openwig.googlecode.com and i'll fix it for you!
java.lang.NullPointerException: Attempt to read from field 'cz.matejcik.openwig.Cartridge cz.matejcik.openwig.Engine.cartridge' on a null object reference)
2022/01/06 10:07:25
[WUI] showError(you hit a bug! please report at openwig.googlecode.com and i'll fix it for you!
java.lang.NullPointerException: Attempt to read from field 'cz.matejcik.openwig.Cartridge cz.matejcik.openwig.Engine.cartridge' on a null object reference)
2022/01/06 10:07:26
[WUI] showError(you hit a bug! please report at openwig.googlecode.com and i'll fix it for you!
java.lang.NullPointerException: Attempt to read from field 'cz.matejcik.openwig.Cartridge cz.matejcik.openwig.Engine.cartridge' on a null object reference)
2022/01/06 10:07:27
[WUI] showError(you hit a bug! please report at openwig.googlecode.com and i'll fix it for you!
java.lang.NullPointerException: Attempt to read from field 'cz.matejcik.openwig.Cartridge cz.matejcik.openwig.Engine.cartridge' on a null object reference)
2022/01/06 10:07:28
[WUI] showError(you hit a bug! please report at openwig.googlecode.com and i'll fix it for you!
java.lang.NullPointerException: Attempt to read from field 'cz.matejcik.openwig.Cartridge cz.matejcik.openwig.Engine.cartridge' on a null object reference)
2022/01/06 10:07:29
[WUI] showError(you hit a bug! please report at openwig.googlecode.com and i'll fix it for you!
java.lang.NullPointerException: Attempt to read from field 'cz.matejcik.openwig.Cartridge cz.matejcik.openwig.Engine.cartridge' on a null object reference)
2022/01/06 10:07:30
[WUI] showError(you hit a bug! please report at openwig.googlecode.com and i'll fix it for you!
java.lang.NullPointerException: Attempt to read from field 'cz.matejcik.openwig.Cartridge cz.matejcik.openwig.Engine.cartridge' on a null object reference)
2022/01/06 10:07:31
[WUI] showError(you hit a bug! please report at openwig.googlecode.com and i'll fix it for you!
java.lang.NullPointerException: Attempt to read from field 'cz.matejcik.openwig.Cartridge cz.matejcik.openwig.Engine.cartridge' on a null object reference)
2022/01/06 10:07:32
[WUI] showError(you hit a bug! please report at openwig.googlecode.com and i'll fix it for you!
java.lang.NullPointerException: Attempt to read from field 'cz.matejcik.openwig.Cartridge cz.matejcik.openwig.Engine.cartridge' on a null object reference)

sk-juroot avatar Jan 06 '22 10:01 sk-juroot

From the first sight, this could be one of problems being fixed with #309 , will keep my eye on that. For now, I will suggest to pick only the WhereYouGo "private" folder for everything WYG related (cartridges, savegames, logs) here: /data/user/0/menion.android.whereyougo/files/

sk-juroot avatar Jan 06 '22 14:01 sk-juroot

Thanks for your input but he only folder where I could copy the cartridge and map file, was folder storage/emulated/0/Android/media, in /data I don't have access and Wherigo Settings can't use a folder which is not in /emulated/0/Android.

Maybe you can check why the error message like the one from log file, is displayed many times in application, like 3 per second, so I have to press many times the close dialog for every message error. One error message should be enough.

I will wait for the new version with issue #309 resolved.

co-silviu avatar Jan 07 '22 11:01 co-silviu

It should work on Android 12 if you use the default storage place, which should IMHO be /storage/emulated/0/Android/data/menion.android.whereyougo/files/.

Lineflyer avatar Jan 08 '22 13:01 Lineflyer