Page 1 of 2

Error when installing Myth2_172_Linux

Posted: Sat Nov 05, 2011 1:41 pm
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)

Re: Error when installing Myth2_172_Linux

Posted: Sun Nov 06, 2011 10:33 pm
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.)

Re: Error when installing Myth2_172_Linux

Posted: Mon Nov 07, 2011 9:00 pm
by Myrd
(Let me know whether it is indeed a /tmp permissions issue or not.)

Re: Error when installing Myth2_172_Linux

Posted: Tue Nov 08, 2011 2:16 am
by Kasumi_Ninja
I can write to /tmp I don't think that that is the problem :(

Re: Error when installing Myth2_172_Linux

Posted: Tue Nov 08, 2011 8:29 am
by Myrd
Is there anything in /tmp/swtlib-32?

Re: Error when installing Myth2_172_Linux

Posted: Tue Nov 08, 2011 12:21 pm
by Kasumi_Ninja
$ ls /tmp/swtlib-32/
libswt-gtk-3659.so libswt-pi-gtk-3659.so

Re: Error when installing Myth2_172_Linux

Posted: Tue Nov 08, 2011 1:01 pm
by Myrd
Interesting, so it expands the libraries correctly but fails to load them...

Re: Error when installing Myth2_172_Linux

Posted: Sat Nov 12, 2011 10:57 pm
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!

Re: Error when installing Myth2_172_Linux

Posted: Tue Nov 15, 2011 8:42 pm
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.

Re: Error when installing Myth2_172_Linux

Posted: Tue Nov 15, 2011 10:12 pm
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.

Re: Error when installing Myth2_172_Linux

Posted: Sat Nov 19, 2011 1:30 am
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

Re: Error when installing Myth2_172_Linux

Posted: Sat Nov 19, 2011 10:51 am
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.)

Re: Error when installing Myth2_172_Linux

Posted: Sat Nov 19, 2011 11:12 am
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.)

Re: Error when installing Myth2_172_Linux

Posted: Sat Nov 19, 2011 11:16 am
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?

Re: Error when installing Myth2_172_Linux

Posted: Sat Jan 07, 2012 4:42 pm
by Myrd
This is caused by not having 'ia32-libs' package installed.