Game crashes
-
When i launch triplea everithing seems ok, but after selecting map and starting game triplea crashes.
here is my log:Sep 27, 2020 2:57:00 PM org.triplea.game.client.HeadedGameRunner lambda$initializeClientSettingAndLogging$0
SEVERE: null
java.lang.ExceptionInInitializerError
at games.strategy.net.LocalNoOpMessenger.<init>(LocalNoOpMessenger.java:16)
at games.strategy.engine.framework.startup.launcher.LocalLauncher.loadGame(LocalLauncher.java:66)
at games.strategy.engine.framework.startup.launcher.LocalLauncher.launch(LocalLauncher.java:59)
at games.strategy.engine.framework.startup.ui.panels.main.MainPanelBuilder.lambda$buildMainPanel$0(MainPanelBuilder.java:47)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.IllegalStateException: java.net.UnknownHostException: linux-bl18: linux-bl18: Name or service not known
at games.strategy.net.Node.<clinit>(Node.java:30)
... 5 more
Caused by: java.net.UnknownHostException: linux-bl18: linux-bl18: Name or service not known
at java.base/java.net.InetAddress.getLocalHost(InetAddress.java:1642)
at games.strategy.net.Node.getLocalHost(Node.java:47)
at games.strategy.net.Node.<clinit>(Node.java:28)
... 5 more
Caused by: java.net.UnknownHostException: linux-bl18: Name or service not known
at java.base/java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
at java.base/java.net.InetAddress$PlatformNameService.lookupAllHostAddr(InetAddress.java:929)
at java.base/java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1515)
at java.base/java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:848)
at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1505)
at java.base/java.net.InetAddress.getLocalHost(InetAddress.java:1637)
... 7 moreWhat is going on?
-
Hi @David-Hájek
Are you trying to host a game ? Does it work ok in local mode if so ? -
Hi
this report is from local game -
Random questions that might help.
New game or loading a save game?
Does it do it every time?
Does it do it on different maps? What map is this?
What version of triplea are you running?
What OS are you running? -
@David-Hájek Hmm...bummer. Might try asking @RoiEX or @Panther. Might be some sorta security issue. Have you had it working in the past ?
-
@ff03k64 said in Game crashes:
Random questions that might help.
New game or loading a save game?
Does it do it every time?
Does it do it on different maps? What map is this?
What version of triplea are you running?
What OS are you running?@David-Hájek
I second these questions. -
Also please check your
/etc/hosts
file that you have alocalhost
entry on the127.0.0.1
line, eg:127.0.0.1 localhost
-
@beelee
First time trying in on this computer. On another computer, same OS, same version of triplea works fine -
@Panther said in Game crashes:
New game
It does every time and on all maps
I have version 2.2.20868
OS - OpenSuse Leap 15.2Also, the error sign says "ExceptionInInitializerError"
-
@LaFayette Should be fine
-
@David-Hájek said in Game crashes:
linux-bl18
Is " linux-bl18" the name of the machine you are playing on?
What happens if you run:
ping linux-bl18 ping localhost
-
The error is saying that java can't resolve the IP address of localhost. It is perhaps doing that by hostname. The /etc/hosts config is my suspicion.
-
@LaFayette
Dejfles@linux-bl18:~> ping linux-bl18
ping: linux-bl18: Name or service not known
Dejfles@linux-bl18:~> ping localhost
PING localhost(localhost (::1)) 56 data bytes
64 bytes from localhost (::1): icmp_seq=1 ttl=64 time=0.121 ms
64 bytes from localhost (::1): icmp_seq=2 ttl=64 time=0.150 ms
64 bytes from localhost (::1): icmp_seq=3 ttl=64 time=0.151 ms
64 bytes from localhost (::1): icmp_seq=4 ttl=64 time=0.149 ms
64 bytes from localhost (::1): icmp_seq=5 ttl=64 time=0.157 ms -
@LaFayette This is my etc/hosts:
127.0.0.1 localhost::1 localhost ipv6-localhost ipv6-loopback
fe00::0 ipv6-localnet
ff00::0 ipv6-mcastprefix
ff02::1 ipv6-allnodes
ff02::2 ipv6-allrouters
ff02::3 ipv6-allhosts -
Hmm, the ipv6 localhost might be a problem
Kinda grasping at straws.
On my machine I have:
127.0.0.1 localhost 127.0.1.1 dan-xps # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback
Note that 'localhost' is only for the ipv4 address.