Error when installing Myth2_172_Linux

A forum for solving problems that might be encountered during installation, updating, or in game.
Kasumi_Ninja
Posts: 4
Joined: Sat Nov 05, 2011 1:37 pm

Error when installing Myth2_172_Linux

Post by Kasumi_Ninja »

I get the following error when I try to install Myth2_172_Linux on Debian Sid, I tried installing libswt-gtk-3-java but that didn't work. Is there something else I can try? Java is installed.

Myth2_172_Linux$ ./installer

Code: Select all

java/lang/ExceptionInInitializerError
  at iK.a (line 209)
  at java/lang/Thread.run (line 100)
caused by: java/lang/ExceptionInInitializerError
  at avian/Classes.initialize (native)
  at java/lang/Class.a (line 152)
  at java/lang/Class.a (line 140)
  at org/eclipse/swt/graphics/Device.<clinit> (unknown line)
  at iK.a (line 209)
  at java/lang/Thread.run (line 100)
caused by: java/lang/ExceptionInInitializerError
  at org/eclipse/swt/internal/Converter.a (unknown line)
  at org/eclipse/swt/internal/Converter.a (unknown line)
  at org/eclipse/swt/widgets/Display.<clinit> (unknown line)
  at avian/Classes.initialize (native)
  at java/lang/Class.a (line 152)
  at java/lang/Class.a (line 140)
  at org/eclipse/swt/graphics/Device.<clinit> (unknown line)
  at iK.a (line 209)
  at java/lang/Thread.run (line 100)
caused by: java/lang/UnsatisfiedLinkError: Could not load SWT library. Reasons: 
	library not found: libswt-pi-gtk-3659.so
	library not found: libswt-pi-gtk.so
	library not found: /tmp/swtlib-32/libswt-pi-gtk-3659.so
	library not found: /tmp/swtlib-32/libswt-pi-gtk.so

  at org/eclipse/swt/internal/Library.a (unknown line)
  at org/eclipse/swt/internal/Library.a (unknown line)
  at org/eclipse/swt/internal/gtk/OS.<clinit> (unknown line)
  at org/eclipse/swt/internal/Converter.a (unknown line)
  at org/eclipse/swt/internal/Converter.a (unknown line)
  at org/eclipse/swt/widgets/Display.<clinit> (unknown line)
  at avian/Classes.initialize (native)
  at java/lang/Class.a (line 152)
  at java/lang/Class.a (line 140)
  at org/eclipse/swt/graphics/Device.<clinit> (unknown line)
  at iK.a (line 209)
  at java/lang/Thread.run (line 100)
Myrd
Site Admin
Posts: 4029
Joined: Fri Mar 19, 2004 10:17 pm

Re: Error when installing Myth2_172_Linux

Post by Myrd »

Those libraries should be coming from the installer. I believe SWT tries to extract them to the /tmp locations before loading them.

My guess is that step is failing - perhaps because the permissions on /tmp do not allow it to write there?

(As an aside, the installer does not need Java to be installed - it's self contained.)
Myrd
Site Admin
Posts: 4029
Joined: Fri Mar 19, 2004 10:17 pm

Re: Error when installing Myth2_172_Linux

Post by Myrd »

(Let me know whether it is indeed a /tmp permissions issue or not.)
Kasumi_Ninja
Posts: 4
Joined: Sat Nov 05, 2011 1:37 pm

Re: Error when installing Myth2_172_Linux

Post by Kasumi_Ninja »

I can write to /tmp I don't think that that is the problem :(
Myrd
Site Admin
Posts: 4029
Joined: Fri Mar 19, 2004 10:17 pm

Re: Error when installing Myth2_172_Linux

Post by Myrd »

Is there anything in /tmp/swtlib-32?
Kasumi_Ninja
Posts: 4
Joined: Sat Nov 05, 2011 1:37 pm

Re: Error when installing Myth2_172_Linux

Post by Kasumi_Ninja »

$ ls /tmp/swtlib-32/
libswt-gtk-3659.so libswt-pi-gtk-3659.so
Myrd
Site Admin
Posts: 4029
Joined: Fri Mar 19, 2004 10:17 pm

Re: Error when installing Myth2_172_Linux

Post by Myrd »

Interesting, so it expands the libraries correctly but fails to load them...
Myrd
Site Admin
Posts: 4029
Joined: Fri Mar 19, 2004 10:17 pm

Re: Error when installing Myth2_172_Linux

Post by Myrd »

To help me diagnose the problem, can you download this file:

http://projectmagma.net/~myrd/installer_test1.gz

Extract it and place 'installer_test1' alongside the 'installer' file you were trying from the original download. Then, run './installer_test1' from the command-line and post its output here.

This new build prints extra debugging information when loading libraries, so hopefully it will shed some light on why it's failing for you. Thanks!
LJF1
Posts: 15
Joined: Fri Jun 24, 2011 7:11 am

Re: Error when installing Myth2_172_Linux

Post by LJF1 »

I just uninstalled linux xubuntu 11.04 32 bit, and installed xubuntu 11.10 64 bit. When I run myth, it crashes after the monologue at the beginning of a level. I have 3 different crash reports. The 2nd and 3rd are different as I tried removing any save data from the 32 bit OS.
Not sure where to upload these crash reports, but if anyone could let me know, I'll do it ASAP.


EDIT: I removed all 3rd party plugins and it seems to work. I just made the idiot assumption it was due to 64 bit. Will work out what plugin it was.

EDIT 2: Is there a list of packages that are required? There seems to be a few minor issues (though nothing massive). Just want to make sure I have everything I need as I'm running a completely new OS, installed this morning. Got it all up to standard so far, so just a precaution.
Myrd
Site Admin
Posts: 4029
Joined: Fri Mar 19, 2004 10:17 pm

Re: Error when installing Myth2_172_Linux

Post by Myrd »

Can you start a new thread? This thread is about installer problems that Kasumi_Ninja is having. Also, please post the crash logs in the new thread so I can debug what's happening.
Kasumi_Ninja
Posts: 4
Joined: Sat Nov 05, 2011 1:37 pm

Re: Error when installing Myth2_172_Linux

Post by Kasumi_Ninja »

Here's the error I get, I run 64-bit:

Code: Select all

./installer_test1 
./installer_test1: error while loading shared libraries: libz.so.1: wrong ELF class: ELFCLASS64
Myrd
Site Admin
Posts: 4029
Joined: Fri Mar 19, 2004 10:17 pm

Re: Error when installing Myth2_172_Linux

Post by Myrd »

Interesting. On the surface, it appears that this is caused by the installer being 32-bit and depending on a 32-bit libz.so to be installed, which your system doesn't have. You can take a look at installing 32-bit libraries to see if it fixes the problem.

In the meantime, I will investigate whether we could either bundle a 32-bit libz with the installer or make the error message better.

(On a side note, I expected different output from the installer - as the extra messages I've added to this version are not the "error while loading shared libraries" message, but different ones. I wonder why they're not being triggered...)

(The fact that the installer is only available in a 32-bit version is by design. Right now, due to technical limitations, Myth II itself is 32-bit. So the target system must be able to run 32-bit binaries to run Myth II, in which case there's no reason to have a 64-bit installer.)
Myrd
Site Admin
Posts: 4029
Joined: Fri Mar 19, 2004 10:17 pm

Re: Error when installing Myth2_172_Linux

Post by Myrd »

Hmm, that latest error is different from the error you posted before - you should be able to reproduce it with the original installer too. Something must have changed on your system.

(As a test, on my 64-bit system, I moved away the 32-bit libz and was able to get the same "error while loading shared libraries" error with the original installer.)
Myrd
Site Admin
Posts: 4029
Joined: Fri Mar 19, 2004 10:17 pm

Re: Error when installing Myth2_172_Linux

Post by Myrd »

Hmm, after reading about Debian Sid on: http://www.debian.org/releases/sid/

It says:
sid is subject to massive changes and in-place library updates. This can result in a very unstable system which contains packages that cannot be installed due to missing libraries, dependencies that cannot be fulfilled etc. Use it at your own risk!
That sounds similar to your experience. Perhaps try a stable version of Debian instead?
Myrd
Site Admin
Posts: 4029
Joined: Fri Mar 19, 2004 10:17 pm

Re: Error when installing Myth2_172_Linux

Post by Myrd »

This is caused by not having 'ia32-libs' package installed.
Post Reply