Page 1 of 1

Hey-o, having trouble with the app. Think you can help?

PostPosted: 02 Apr 2020, 05:18
by Adam V
Description: All I did was press "New Game" and this happened. I had came back to the 1.6.9.005 version as I was having similar problems starting a game in the 1.6.33 version.

NullPointerException | Open
Code: Select all
Forge Version:    1.6.9.005
Operating System: Linux 3.18.31-perf-g5c5c511 armv8l
Java Version:     0 The Android Project

java.lang.NullPointerException
   at java.util.TreeMap.getEntry(TreeMap.java:348)
   at java.util.TreeMap.containsKey(TreeMap.java:233)
   at forge.itemmanager.views.ImageView.updateLayout(ImageView.java:433)
   at forge.itemmanager.views.ImageView.onRefresh(ImageView.java:382)
   at forge.itemmanager.views.ItemView.refresh(ItemView.java:116)
   at forge.itemmanager.ItemManager.updateView(ItemManager.java:790)
   at forge.itemmanager.ItemManager.setPool(ItemManager.java:416)
   at forge.itemmanager.ItemManager.setPool(ItemManager.java:406)
   at forge.deck.FDeckChooser.refreshDecksList(FDeckChooser.java:704)
   at forge.deck.FDeckChooser.restoreSavedState(FDeckChooser.java:932)
   at forge.deck.FDeckChooser.initialize(FDeckChooser.java:544)
   at forge.screens.constructed.PlayerPanel.initialize(PlayerPanel.java:260)
   at forge.screens.constructed.LobbyScreen$4.run(LobbyScreen.java:159)
   at java.lang.Thread.run(Thread.java:761)

Re: Hey-o, having trouble with the app. Think you can help?

PostPosted: 02 Apr 2020, 09:25
by CptKird
Hi, this is a very odd log file..

What system/device is this running on?

If this is, what I think it is, you may be using this wrong..

K.

Re: Hey-o, having trouble with the app. Think you can help?

PostPosted: 02 Apr 2020, 15:13
by Adam V
I'm running it on Android 7.1.1 on a ZTE bladeX Android phone.

Re: Hey-o, having trouble with the app. Think you can help?

PostPosted: 02 Apr 2020, 18:09
by CptKird
Hm, ok..?

What I mean is: your header in Forge.log has some entries which made me think you're running some kind of native linux OS on your mobile :shock:
(Which isn't impossible at all)

This, or similar to this, is how the header should look like on Android (I'm running LineageOS 9 here, this is from current main release 1.6.33.001):

Code: Select all
ThreadUtil first call): Running on a machine with 4 cpu core(s)
[GLThread 2210] INFO org.cache2k.core.Cache2kCoreProviderImpl - cache2k starting. version=1.2.4.Final
Language 'java.util.PropertyResourceBundle@974c9c6' loaded successfully.
Read cards: 19728 archived files in 24136 ms (25 parts) using thread pool
Read cards: 391 files in 190 ms (3 parts) using thread pool
Anyhoo... for such a downgrade it's necessary to uninstall your much newer version first AND manually erase the Forge folder on internal storage (after backing up your data and maybe cache folder, if you store the card images on internal storage as well), so that there's no trace of Forge left.

Then, if you really must use this version, after installing the apk and before launching Forge, you have to unzip the assets.zip (into your Forge folder on internal storage, overwriting all files, on conflict) from here:

https://releases.cardforge.org/forge/forge-gui-android/1.6.9.005/

and skip/ignore all future attempts of (this old version of) Forge to download "additional assets" on launch.

You basically need to keep that ancient version as it is, no updates.

Well, hope that gets you back in the game!
All the best
K.

PS: you said similar error with 1.6.33, also null pointer?

Re: Hey-o, having trouble with the app. Think you can help?

PostPosted: 04 Apr 2020, 03:15
by Adam V
It worked! And I updated back to 1.6.33 and the error there seems to be gone also. For now at least. The only issue now is lag which is most likely my device's fault. Tt ty for the help.

Re: Hey-o, having trouble with the app. Think you can help?

PostPosted: 04 Apr 2020, 09:55
by CptKird
Nice!! :)
And you're welcome!
K.