MovingBlocks / Terasology

Terasology - open source voxel world
http://terasology.org
Apache License 2.0
3.69k stars 1.34k forks source link

Can't run game with "./gradlew game" #3745

Closed PavelAplevich closed 5 years ago

PavelAplevich commented 5 years ago

I create local repo on my machine. Follow instructions, but if I try do ./gradlew game i see this:

java.lang.RuntimeException: java.util.concurrent.ExecutionException: org.reflections.ReflectionsException: could not create Vfs.Dir from url, no matching UrlType was found [file:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/libatk-wrapper.so] either use fromURL(final URL url, final List urlTypes) or use the static setDefaultURLTypes(final List urlTypes) or addDefaultURLTypes(UrlType urlType) with your specialized UrlType.

Logs file here

Terasology-init.log

And, i think, that's my another problem, but i hope u can help. If I try run any build in my IDEA, i see this:

Exception in thread "main" java.lang.IllegalArgumentException: input == null! at javax.imageio.ImageIO.read(ImageIO.java:1394) at org.terasology.splash.overlay.ImageOverlay.(ImageOverlay.java:38) at org.terasology.splash.overlay.TriggerImageOverlay.(TriggerImageOverlay.java:30) at org.terasology.engine.Terasology.configureSplashScreen(Terasology.java:206) at org.terasology.engine.Terasology.main(Terasology.java:125)

OS - Ubuntu 18.04.3 LTS

java -version openjdk version "1.8.0_222" OpenJDK Runtime Environment (build 1.8.0_222-8u222-b10-1ubuntu1~18.04.1-b10) OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode)

StripedMonkey commented 5 years ago

Can't replicate on Arch Linux,

openjdk version "1.8.0_222"
OpenJDK Runtime Environment (build 1.8.0_222-b05)
OpenJDK 64-Bit Server VM (build 25.222-b05, mixed mode)
NicholasBatesNZ commented 5 years ago

I ran into the same issue myself on Ubuntu 18.04.3 LTS. This was after freshly cloning the game.

openjdk version "1.8.0_222"
OpenJDK Runtime Environment (build 1.8.0_222-8u222-b10-1ubuntu1~18.04.1-b10)
OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode)

Using this same setup I am able to compile and run Destination Sol without issue. Some limited googling suggests that the issue may have something to do with reflections..

NicholasBatesNZ commented 5 years ago

UPDATE: Removing line 113 from TypeRegistry.java (.useParallelExecutor()) fixes the issue. Just one thing... I don't know why and I don't know what other repercussions there could be.. :P

NicholasBatesNZ commented 5 years ago

This should be fixed if/when #3750 is merged

StripedMonkey commented 5 years ago

Out of curiosity what CPU do you have? I've got the 8750H on this laptop and don't have any issues with it.

PavelAplevich commented 5 years ago

CPU Intel® Core™ i5-7500 CPU @ 3.40GHz × 4 Video GeForce GTX 1050 Ti/PCIe/SSE2 Gnome 3.28.2

NicholasBatesNZ commented 5 years ago

And mine: CPU: Intel® Core™ i5-8400 CPU @ 2.80GHz × 6 Graphics: Intel® UHD Graphics 630 (Coffeelake 3x8 GT2) GNOME: 3.28.2

Cervator commented 5 years ago

Merged the associated PR that in theory fixes this. @PavelAplevich could you try again with the very latest develop branch?

PavelAplevich commented 5 years ago

@Cervator I can run the game. I think, all work's.