PlaneShift

Support => Linux Specific Issues => Topic started by: jedidiah on January 15, 2010, 11:33:48 pm

Title: Failure while launching game...
Post by: jedidiah on January 15, 2010, 11:33:48 pm
Hi, I have problem with launching the game. Anyone can help me?

When I type in my console to start the game, I get this:
Inconsistency detected by ld.so: dl-close.c: 731: _dl_close: Assertion `map->l_init_called' failed!

I am using openSUSE 11.2 linux. And I am beging for help :(
Title: Re: Failure while launching game...
Post by: -stf- on January 16, 2010, 05:42:49 am
It should be problem with openal sound system. Find this in psclient.cfg:
Code: [Select]
;Sound renderer
System.Plugins.iSndSysRenderer = crystalspace.sndsys.renderer.openal
And change it to this:
Code: [Select]
;Sound renderer
;System.Plugins.iSndSysRenderer = crystalspace.sndsys.renderer.openal
System.Plugins.iSndSysRenderer = crystalspace.sndsys.renderer.software
It should help
Title: Re: Failure while launching game...
Post by: jedidiah on January 16, 2010, 10:39:31 am
It didn't help... I've changed that Sound Render and console shows me the same line:

linux-6ybc:/home/jedidiah # /home/jedidiah/Gry/PlaneShift/psclient
Inconsistency detected by ld.so: dl-close.c: 731: _dl_close: Assertion `map->l_init_called' failed!
Title: Re: Failure while launching game...
Post by: -stf- on January 16, 2010, 01:13:09 pm
I had the same issue and I got it working somehow, but I don't remember exactly what I did. What I know is, that this is related to newer version of openal or some particular version of glibc. Try update these packages in Package manager and it will not help, try add repositories for opensuse 11.1 or 11.0 and downgrade these packages, maybe it will help. If it will cause that your system can't work (didn't happened to me but nobody knows), start in emergency mode, login as root in console and use command "zypper in glibc openal" to get back latest versions of these files. Try also search for your problem at google with phrase "Inconsistency detected by ld.so: dl-close.c", it's not only problem of PlaneShift and maybe you will find another solution than this.
Title: Re: Failure while launching game...
Post by: jedidiah on January 18, 2010, 04:37:11 pm
I have problems with repositories... can anyone instruct me how to add repositories from suse 11.0 to suse 11.2 and than downgrade files... ??? or mayby anyone know other solutions to this problem :/
Title: Re: Failure while launching game...
Post by: miyane on February 23, 2010, 02:19:21 pm
this is similar to (or the same as) bug #551018 in debian. and it seems that adding a line:
Code: [Select]
drivers = alsa,oss,solaris,dsound,winmm,port,waveto the file:
Code: [Select]
~/.alsoftrcsolves this issue. If you don't have this file, you could create it. I've tested this and it works.
Title: Re: Failure while launching game...
Post by: bilbous on February 23, 2010, 06:26:52 pm
I did this to no success but on searching for this file on the internet I found an openal mailing list that gave me a clue to what was needed.
Adding a section:
Code: [Select]
[alsa]
device = hw:0,0
to this file caused it to work.
Title: Re: Failure while launching game...
Post by: geloren on February 23, 2010, 10:11:50 pm
Had that openal error too on opensuse 11.2
The package that suse provides isn't openal but openal-soft. It shouldn't be very different from the openal package wich isn't available anymore for 11.2, but it's responsible for it.
remove the package openal-soft with YaST and the error should be gone.

 \\o//
Title: Re: Failure while launching game...
Post by: Rheos on April 30, 2010, 11:25:24 pm
Had the same error in Ubuntu 10.04 64bit.  foolishly downloaded new version on release day  :-[   instant borked Planeshift  :@#\

took a look at OpenAL in Synaptic package manager and what was dependent, decided what the heck and un-installed it.

Planeshift now runs again  \\o//
Title: Re: Failure while launching game...
Post by: weltall on May 01, 2010, 07:08:38 am
this is because something quite radical was done in openal, so prebuilt won't work with newer libraries.
There are two ways to proceed without losing audio (you are essentially removing the library from the system making so the same result of setting the option to null in place of openal):
first of all download karmic package from here http://packages.ubuntu.com/karmic/libopenal1 and install it (choose depending on your architecture)
here comes a split point: you can install it globally (didn't try but should work well). if you choose for this just open the package with gdebi or w/e you are using by double clicking on it and it's done, else there is a less invasive way for your os (also because the previous will make the upgrade icon forever there)
open the deb package with file roller or similar archiver tool, open data.tar.gz and navigate in /./usr/lib there you'll find libopenal.so.1 and libopenal.so.1.8.446 extract this last one in /opt/Planeshift/libs/ and rename it in libopenal.so.1.
now planeshift will work well as it will use the one in libs in place of the one installed globally.

Probably using the lib from ubuntu on other distributions should work well but in case do a similar approach depending on your distribution (get a similar release to that one listed above after .so which is the version of openal soft)
another solution is rebuilding from source so you'll be able to gain from improvements in openal
Title: Re: Failure while launching game...
Post by: Aiwendil on May 01, 2010, 03:30:28 pm
*grins*
Title: Re: Failure while launching game...
Post by: messie on May 06, 2010, 08:44:46 am
thanks for the solution weltal. The installer did not let me downgrade the file, as a newer version was already installed, however the second solution worked a treat \\o//
Title: Re: Failure while launching game...
Post by: Tomislav on May 09, 2010, 04:30:15 pm
Had the same problem on Ubuntu 10.4. One solution was to uninstall OpenAl, but I also lost some other software depending on it (Blender etc). Since this wasn't a good option for me, I decided to try compiling the client from source. I compiled the static version of the client and it works really well.

I guess this annoyance will go away with the next release...

Title: Re: Failure while launching game...
Post by: melkayar on May 15, 2010, 03:39:49 pm
I did the unpacking-renaming-and-paste suggestion written by weltall. Worked perfecly in my Ubuntu 10.04. Many thanks \\o//

Maybe the Planeshift developers could add this file to the game's library? :thumbup:
Title: Re: Failure while launching game...
Post by: Elvors on July 01, 2010, 11:52:17 pm
Installing in /opt/Planeshift/libs didn't work for me.

Code: [Select]
root@kurier:/opt/Planeshift/libs# ls -al
insgesamt 220
drwxr-xr-x 2 root root   4096 2010-07-01 23:43 .
drwxr-xr-x 3 root root   4096 2010-07-01 23:43 ..
-rw-r--r-- 1 root root 212312 2009-06-23 16:49 libopenal.so.1

Code: [Select]
jo@kurier:~/PlaneShift$ ./pslaunch
WARNING: could not load plugin 'crystalspace.syntax.loader.service.text'
ERROR: Couldn't load plugin with class 'crystalspace.syntax.loader.service.text'!
WARNING: failed to initialize plugin 'crystalspace.graphics3d.shadercompiler.xmlshader'
WARNING: failed to initialize plugin 'crystalspace.graphics3d.shadercompiler.weaver'
WARNING: could not load plugin 'crystalspace.syntax.loader.service.text'
ERROR: Couldn't load plugin with class 'crystalspace.syntax.loader.service.text'!
WARNING: failed to initialize plugin 'crystalspace.graphics3d.shadercompiler.xmlshader'
WARNING: could not load plugin 'crystalspace.level.loader'
WARNING: could not load plugin 'crystalspace.level.loader'
WARNING: Can not load default shader vars, no iSyntaxService available
Opening GLX2D
Checking for updates to the updater: Using mirror http://planeshift.clevertech.net/Updates/ for updaterinfo.xml
Creating Context
Video driver GL/X version (direct renderer)
Visual ID: 0x0000000000000024, 24bit TrueColor
R8:G8:B8:A8,
level 0, double buffered
WARNING: could not load plugin 'crystalspace.syntax.loader.service.text'
ERROR: Couldn't load plugin with class 'crystalspace.syntax.loader.service.text'!
NOTIFY: Applied: GeForce: RECT texture extension support apparently sucks
NOTIFY: Applied: NVidia: GENERATE_MIPMAPS does not generate last level
NOTIFY: OpenGL renderer: Quadro NVS 140M/PCI/SSE2 (vendor: NVIDIA Corporation) version 3.2.0 NVIDIA 195.36.24
NOTIFY: Using windowed mode at resolution 1024x768.
NOTIFY: Pixel format: Color: 24 Alpha: 8 Depth: 24 Stencil: 8 AccumColor: 48 AccumAlpha: 16 MultiSamples: 0
NOTIFY: Multisample: disabled
NOTIFY: Using VBO with 64 MB of VBO memory
Default shader /shader/std_lighting.xml not available
Default shader /shader/std_lighting_portal.xml not available
WARNING: could not load plugin 'crystalspace.renderloop.step.generic.type'
Failed to load plugin crystalspace.renderloop.step.generic.type; pandemonium will ensue.
WARNING: could not load plugin 'crystalspace.rendermanager.unshadowed'
No rendermanager set!
Mounting skin: /planeshift/art/pslaunch.zip
Texture Manager parsing /paws/launcher/imagelist.xml
Thu Jul  1 23:44:41 2010, <src/common/paws/pawsimagedrawable.cpp:66 PreparePixmap SEVERE>
Thu Jul  1 23:44:41 2010, Could not open image: >/paws/base/maps/leather/top_left_1.png<
Thu Jul  1 23:44:41 2010, <src/common/paws/pawsimagedrawable.cpp:66 PreparePixmap SEVERE>
Thu Jul  1 23:44:41 2010, Could not open image: >/paws/base/maps/leather/top_right_1.png<
Thu Jul  1 23:44:41 2010, <src/common/paws/pawsimagedrawable.cpp:66 PreparePixmap SEVERE>
Thu Jul  1 23:44:41 2010, Could not open image: >/paws/base/maps/leather/bottom_left_1.png<
Thu Jul  1 23:44:41 2010, <src/common/paws/pawsimagedrawable.cpp:66 PreparePixmap SEVERE>
Thu Jul  1 23:44:41 2010, Could not open image: >/paws/base/maps/leather/bottom_right_1.png<
Thu Jul  1 23:44:41 2010, <src/common/paws/pawsimagedrawable.cpp:66 PreparePixmap SEVERE>
Thu Jul  1 23:44:41 2010, Could not open image: >/paws/base/maps/leather/left_1.png<
Thu Jul  1 23:44:41 2010, <src/common/paws/pawsimagedrawable.cpp:66 PreparePixmap SEVERE>
Thu Jul  1 23:44:41 2010, Could not open image: >/paws/base/maps/leather/right_1.png<
Thu Jul  1 23:44:41 2010, <src/common/paws/pawsimagedrawable.cpp:66 PreparePixmap SEVERE>
Thu Jul  1 23:44:41 2010, Could not open image: >/paws/base/maps/leather/top_1.png<
Thu Jul  1 23:44:41 2010, <src/common/paws/pawsimagedrawable.cpp:66 PreparePixmap SEVERE>
Thu Jul  1 23:44:41 2010, Could not open image: >/paws/base/maps/leather/bottom_1.png<
Thu Jul  1 23:44:41 2010, <src/common/sound/system.cpp:36 Initialize SEVERE>
Thu Jul  1 23:44:41 2010, Failed to locate Sound renderer!
DEBUG: Initializing OpenAL sound system
DEBUG: Retrieving available devices.
DEBUG: Available OpenAL device: ALSA Default
DEBUG: Available OpenAL device: OSS Default
DEBUG: Available OpenAL device: Null Output
DEBUG: Default OpenAL device: ALSA Default
DEBUG: No device specified
DEBUG: Falling back on default device
Segmentation fault
jo@kurier:~/PlaneShift$

What should I try next?
Reinstall?
Wait for the next upgrad? (I'm at 0.5.4)
Compile myself? (Unpleasant but doable for me.)

UPDATE: pslaunch crashes, but psclient runs just fine. (I have sound off or at zero volume, not sure what exactly.)

*bump*
Title: *Bump*
Post by: Elvors on August 18, 2010, 05:01:12 am
Sorry for double post, but I didn't get any replies yet.
Title: Re: Failure while launching game...
Post by: RlyDontKnow on August 18, 2010, 11:14:15 am
you can try setting System.Plugins.iSndSysRenderer in pslaunch.cfg in the planeshift folder to crystalspace.sndsys.renderer.null
though I'm not 100% sure it doesn't still make an attempt to load openal
Title: Re: Failure while launching game...
Post by: Elvors on August 21, 2010, 05:26:33 pm
Setting the option didn't change anything.
It's still falling back to default device (ALSA, it seems):

Code: [Select]
Sat Aug 21 17:23:39 2010, <src/common/sound/system.cpp:36 Initialize SEVERE>
Sat Aug 21 17:23:39 2010, Failed to locate Sound renderer!
DEBUG: Initializing OpenAL sound system
DEBUG: Retrieving available devices.
DEBUG: Available OpenAL device: ALSA Default
DEBUG: Available OpenAL device: OSS Default
DEBUG: Available OpenAL device: Null Output
DEBUG: Default OpenAL device: ALSA Default
DEBUG: No device specified
DEBUG: Falling back on default device
Segmentation fault

I'm on current Ubuntu.
Title: Re: Failure while launching game...
Post by: Elvors on September 15, 2010, 08:07:53 pm
Reinstalling solved the problem (repairing the installation didn't).
If anybody is interested in exploring the reasons for such behaviour, I'm keeping the old installation around and will post the results of diff runs.

EDIT: I had to clean out the settings in .PlaneShift, too, else pslaunch would run but psclient would segfault, i.e. the previous behaviour was reversed.
Very strange, that all.