Hearthlands

Hearthlands

View Stats:
Game fails to load with "Null Pointer Exception" errors
Originally posted by log.txt:
Log started
loading config
loading localization
loading icons
error loading icons: java.lang.IllegalArgumentException: input == null!
Loading local achievements...
file does not exist: ./achievs.txt
Local achievs not found
Init Steam...
Steam ok
Steam stats request
Loading missions...
file does not exist: .//campaign/missions.txt
Missions not found
display mode set
creating display
creating keyboard
creating mouse
initializing OpenGL
done
OpenGL vendor: X.Org
OpenGL renderer: Radeon RX 580 Series (POLARIS10, DRM 3.23.0, 4.15.0-29-generic, LLVM 6.0.0)
OpenGL version: 3.1 Mesa 18.1.5 - padoka PPA
main init
allocate constants
reload localization
load sprites
loading dummy: images/dummy.png
loaded
loading dummy: images/loading_anim.png
loaded
loading dummy: images/loading.png
loaded
loading (sat): images/terrain/water_0.png
can't load: images/terrain/water_0.png, java.lang.NullPointerException
loading (sat): images/terrain/water_1.png
can't load: images/terrain/water_1.png, java.lang.NullPointerException
loading (sat): images/terrain/water_2.png
can't load: images/terrain/water_2.png, java.lang.NullPointerException
loading (sat): images/terrain/water_3.png
can't load: images/terrain/water_3.png, java.lang.NullPointerException
loading (sat): images/terrain/water_4.png
can't load: images/terrain/water_4.png, java.lang.NullPointerException
loading (sat): images/terrain/water_5.png
can't load: images/terrain/water_5.png, java.lang.NullPointerException
loading (sat): images/terrain/water_6.png
can't load: images/terrain/water_6.png, java.lang.NullPointerException
loading (sat): images/terrain/water_7.png
can't load: images/terrain/water_7.png, java.lang.NullPointerException
loading dummy: images/gui/font.png
loaded
loading dummy: images/gui/font_big.png
loaded
loading: images/mapcursor.png
can't load: images/mapcursor.png, java.lang.NullPointerException
loading: images/objects/tree_stump_0.png
can't load: images/objects/tree_stump_0.png, java.lang.NullPointerException
loading: images/objects/tree_stump_1.png
can't load: images/objects/tree_stump_1.png, java.lang.NullPointerException
loading: images/objects/birch_stump_0.png
can't load: images/objects/birch_stump_0.png, java.lang.NullPointerException
loading: images/objects/birch_stump_1.png
can't load: images/objects/birch_stump_1.png, java.lang.NullPointerException
loading: images/objects/pine_0.png
can't load: images/objects/pine_0.png, java.lang.NullPointerException
loading: images/objects/pine_1.png
can't load: images/objects/pine_1.png, java.lang.NullPointerException
loading: images/objects/pine_2.png
can't load: images/objects/pine_2.png, java.lang.NullPointerException
loading: images/objects/pine_3.png
can't load: images/objects/pine_3.png, java.lang.NullPointerException
loading: images/objects/pine_4.png
can't load: images/objects/pine_4.png, java.lang.NullPointerException
loading: images/objects/pine_5.png
can't load: images/objects/pine_5.png, java.lang.NullPointerException
loading: images/objects/cypress_0.png
can't load: images/objects/cypress_0.png, java.lang.NullPointerException
loading: images/objects/cypress_1.png
can't load: images/objects/cypress_1.png, java.lang.NullPointerException
loading: images/objects/cypress_2.png
can't load: images/objects/cypress_2.png, java.lang.NullPointerException
loading: images/lose.png
can't load: images/lose.png, java.lang.NullPointerException
loading: images/win.png
can't load: images/win.png, java.lang.NullPointerException
loading: images/buildings/storage_yard/storage_yard_0.png...

... and so on and so forth for, so far as I can tell, every sprite in the game.

My OS is Lubuntu 18.04.1 LTS with OpenJDK installed. GPU is an RX580, with drivers from the "stable" branch of Padoka PPA.
< >
Showing 1-5 of 5 comments
Sumarios Aug 6, 2018 @ 5:07am 
Same trouble here (ubuntu 18.04 lts, openjdk, GPU 750ti, NVIDIA-Linux-x86_64-390.77). We see the launching windowed window with the donkey kart running for 3 secs then it closes.

Guess1: Is it a problem with path? The game is installed on /home/sumarios/.local/share/Steam/steamapps/common/Hearthlands

Guess2: I can't find the folder "images" --> ??

If it can help, Minecraft 1.13 is working, so seems not to come from java?

My son is waiting for a solution. Thanks for the developer works, the linux support, and this nice game. I recommend it on Gamingonlinux.com

#####

Log started
loading config
loading localization
loading icons
error loading icons: java.lang.IllegalArgumentException: input == null!
Loading local achievements...
file does not exist: ./achievs.txt
Local achievs not found
Init Steam...
Steam ok
Steam stats request
Loading missions...
file does not exist: .//campaign/missions.txt
Missions not found
display mode set
creating display
creating keyboard
creating mouse
initializing OpenGL
done
OpenGL vendor: nouveau
OpenGL renderer: NV117
OpenGL version: 3.0 Mesa 18.0.5
main init
allocate constants
reload localization
load sprites
loading dummy: images/dummy.png
loaded
loading dummy: images/loading_anim.png
loaded
loading dummy: images/loading.png
loaded
loading (sat): images/terrain/water_0.png
can't load: images/terrain/water_0.png, java.lang.NullPointerException
loading (sat): images/terrain/water_1.png
can't load: images/terrain/water_1.png, java.lang.NullPointerException
[... same stuffs with all images in images/terrain/*...]
loading dummy: images/gui/font.png
loaded
loading dummy: images/gui/font_big.png
loaded
loading: images/mapcursor.png
can't load: images/mapcursor.png, java.lang.NullPointerException
loading: images/objects/tree_stump_0.png

[... same stuffs with all images in images/objects/* images/buildings/* and images/npcs/*...]

loading: images/lose.png
can't load: images/lose.png, java.lang.NullPointerException
loading: images/win.png
can't load: images/win.png, java.lang.NullPointerException
loading: images/buildings/storage_yard/storage_yard_0.png
can't load: images/buildings/storage_yard/storage_yard_0.png, java.lang.NullPointerException
loading: images/gui/main_menu_button.png
can't load: images/gui/main_menu_button.png, java.lang.NullPointerException
...
load sounds
initializing sound system. activate_sounds = true
done
loading sound: sounds/music0.ogg
loaded
... --> All sounds seem okey to load

can't load: images/npcs/hauler/walk.png, java.lang.NullPointerException
done
starting main menu
Syroth Oct 28, 2018 @ 10:26am 
I also have this issue and cannot resolve it.

Has anyone made any progress? I emailed the dev late aug / early sept but haven't heard back yet unfortunately :-/

I loved playing this while traveling for work, really scratched the rts itch
Windóusico Nov 2, 2018 @ 4:30am 
Game launched from the terminal:
"user@user-desktop:~/.local/share/Steam/steamapps/common/Hearthlands$ ./hearthlands.sh
false 79
Setting breakpad minidump AppID = 336300
Steam_SetMinidumpSteamID: Caching Steam ID: 10001008074004500 [API loaded no]
Fri Nov 02 12:10:43 CET 2018 INFO:Use Java PNG Loader = true
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.lwjgl.LWJGLUtil$3 (file:/home/user/.local/share/Steam/steamapps/common/Hearthlands/bin/lwjgl.jar) to method java.lang.ClassLoader.findLibrary(java.lang.String)
WARNING: Please consider reporting this to the maintainers of org.lwjgl.LWJGLUtil$3
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Steam stats received
Exception in thread "main" java.lang.ArithmeticException: / by zero
at com.hearthlands.game.c.p(SourceFile:88)
at com.hearthlands.game.c.k(SourceFile:57)
at com.hearthlands.game.GameMain.a(SourceFile:74)
at com.hearthlands.a.l.e(SourceFile:157)
at com.hearthlands.a.l.<init>(SourceFile:59)
at com.hearthlands.game.GameMain.<init>(SourceFile:15)
at com.hearthlands.game.GameMain.main(SourceFile:52)
AL lib: (EE) alc_cleanup: 1 device not closed"

My OS is KDE Neon 18.04. Java version:
"user@user-desktop:~/.local/share/Steam/steamapps/common/Hearthlands$ java --version
openjdk 10.0.2 2018-07-17
OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.3)
OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.3, mixed mode)
"
Last edited by Windóusico; Nov 2, 2018 @ 4:53am
Windóusico Nov 2, 2018 @ 4:53am 
A workaround is to install oracle-java8:

sudo add-apt-repository ppa:webupd8team/java
sudo apt update
sudo apt install oracle-java8-installer
Syroth Nov 3, 2018 @ 6:28am 
THANK YOU!!!!!

This helped me to resolve the problem.

In my case I edited Hearthlands.sh

On line 4 I changed "java" which called the default ver of java on my system... I changed that to /usr/lib/jvm/java-8-openjdk-amd64/bin/java which is the location of my currently installed java8.

This worked!

NOTE FOR ALL ::

I at first focused on the illegal access operation which doesn't seem to be the case. Java versions which cite this error ALSO provide a launch argument called "--illegal-access=" ( the error does state this ) this argument includes a option to "permit" or in other words --illegal-access=permit

The permit flag does not work which to me indicates that the real showstopper is the 'divide by zero'

Which technically speaking confuses me much because I thought java8 would also have issue with a divide by zero error.

If someone could explain to me or give me a link to a resource that explains to me, why a divide by zero would not be a fatal error in java8 ... I would be verry verrrryyyyyy grateful!

Thanks to all
< >
Showing 1-5 of 5 comments
Per page: 1530 50