PlaneShift

Support => Linux Specific Issues => Topic started by: Xordan on April 15, 2006, 02:06:48 am

Title: Sound Problem
Post by: Xordan on April 15, 2006, 02:06:48 am
Hi, fault in the latest linux client :) Sound doesn\'t work. Run the updater and you should download a fixed client.
Title:
Post by: Mandrake on April 15, 2006, 11:53:12 am
I have this when i launch the game

Code: [Select]
[mandrake@Ubuntu: planeshift] $ psclient
DEBUG: Software Renderer Initializing..
NOTIFY: Configured for driver [crystalspace.sndsys.software.driver.oss]

planeshift.application.client:
  PlaneShift Crystal Blue
  This game uses Crystal Space Engine created by Jorrit and others
  0.99 r0 [Unix-x86-GCC]
All LOGS are off.
Mounting skin: /this/art/skins/elves.zip
Mounting skin: /planeshift/art/skins/base/client_base.zip
  psEngine initialized.
Erreur de segmentation
Title:
Post by: CleverFool on April 15, 2006, 12:34:09 pm
Mandrake, delete version.dat file.

Update: Doesn\'t help. Sorry.
Title:
Post by: Mandrake on April 16, 2006, 08:41:36 am
It works, but after severals min the game crash ...

Segmentation Fault
Title:
Post by: Xordan on April 16, 2006, 02:16:44 pm
Quote
Originally posted by Mandrake
It works, but after severals min the game crash ...

Segmentation Fault


Does turning off sound stop these crashes?
Title:
Post by: Mandrake on April 16, 2006, 10:34:22 pm
Yes ...
Title:
Post by: Xordan on April 16, 2006, 11:01:49 pm
This is with ALSA, not OSS?

If so, then it\'s probably a bug in the sound drivers which we\'ll look into.
Title:
Post by: Thedrish on April 18, 2006, 09:39:23 am
Quote
Originally posted by Xordan
This is with ALSA, not OSS?


If I enable OSS it (also) happens. As far as I can tell, the client crashes when it wants to play a soundfile (used the \"crystalspace.sndsys.software.driver.oss\" value).

As I disable it (again), the problems are gone.
Title:
Post by: Mandrake on April 18, 2006, 12:43:05 pm
The game have no sound if i launch with Alsa

If i launch with OSS in any times it can crash.

With no Sound the game run as well
Title:
Post by: donlema on April 18, 2006, 02:12:43 pm
the same for me
no sound with ALSA
the soudn crash with OSS
perfect with no sounds
Title:
Post by: eiffel56 on April 18, 2006, 03:55:48 pm
Hello,

im using Ubuntu 5.10 with ALSA.How do I launch Planeshift with OSS?
With ALSA there?s no sound :S
Title:
Post by: Xordan on April 18, 2006, 04:23:22 pm
Remove the ; on this line:

;SndSys.Driver = crystalspace.sndsys.software.driver.oss

in psclient.cfg

to get OSS.

Will try and get those crashes fixed.
Title: Re: Sound Problem
Post by: Bigglez on April 25, 2006, 09:11:34 am
I just tried the PlaneShift_CBV0.3.014b version on Fedora Core 3.
There is no sound at all.

I cannot seem to find a way to swap to OSS, there is no such option in ./pssetup or from any command-line param that I can see.

I can't find "SndSys.Driver" in psclient.cfg

I have run the updater.

There are no error messages when it runs. It only reports :
NOTIFY: Configured for driver [crystalspace.sndsys.software.driver.alsa]

And damn, but those sewer rats bit my ass! (silently :) )
Title: Re: Sound Problem
Post by: DracoDanube on April 25, 2006, 05:07:20 pm
This might be of interest.

I have the same sound issue:

Test case:
=======
- Start the Client for the first time after the computer has booted up.

- Move the character near the fires out side the temple entrance.


Result:
=====
Sound stops working almost immediately after hearing the fire sounds.

Closing and restarting the Client does not restart the sound.

If UT2004 is played in between closing and restarting the Client, then the sound will be played again by the PlaneShift Client until the test case is repeated.


Configuration:
=========
OS: Fedora Core 3 (Kernel 2.6.9.x).
Sound card: SB Live!
Module: snd-emu10k1
Title: Re: Sound Problem
Post by: Hargoth on April 28, 2006, 06:47:23 am
FC5
2.6.16-1.2080_FC5

Game seg faults on start up with OSS enabled.
Game fails to load alsa with:
NOTIFY: Configured for driver [crystalspace.sndsys.software.driver.alsa]
ALSA lib pcm.c:1939:(snd_pcm_open_conf) Cannot open shared library /usr/lib/alsa-lib/libasound_module_pcm_softvol.so

Running with alsa on or sound off produces the same result:
     Random seg faults.  From seconds into game, to an hour.  VERY annoying.
Title: Re: Sound Problem
Post by: Xordan on April 28, 2006, 09:09:03 am
Hargoth: Looks like you have a file missing.

DracoDanube: Ah, interesting. I'll pass that on.
Title: Re: Sound Problem
Post by: Kelirance on April 28, 2006, 06:38:59 pm
I have a slightly different sound problem...
It's weird the startup sounds work until I enter the game then most of the time the sound stops working (just no sound).
I'm using ALSA on AMD64 and DMIX software mixing
Title: Re: Sound Problem
Post by: kmare on April 28, 2006, 09:34:19 pm
same problem here.. :(
Title: Re: Sound Problem
Post by: Hargoth on April 29, 2006, 06:09:03 am
I solved part of my problem.  I have good sound now.

rm /usr/local/games/planeshift/libs/libasound.so.2
rm /usr/local/games/planeshift/libs/libasound.so.2.0.0

Let the game use the system versions.

EDIT:

After a few hours of testing:

1.  Still lots of random seg faults preceded by hundreds of lines like -- hit!beam!
2.  Twice, the sounds just seemed to stop after a while, but this is unclear because both times as soon as I noticed that sounds weren't playing, I got a seg fault. :(

I would like to build the source with globals left in and run it under a code analyzer to see if there is a consistant point of failure, but I need to do some kernel testing (issues with multicasts over wifi) and so I cannot downgrade enough stuff to get planeshift to build.
I did run some straces against it, but the results are inconclusive:
Everything looks normal and then:

[pid  2730] gettimeofday({1146186829, 581948}, NULL) = 0
[pid  2730] gettimeofday({1146186829, 581984}, NULL) = 0
[pid  2730] gettimeofday({1146186829, 582024}, NULL) = 0
[pid  2730] --- SIGSEGV (Segmentation fault) @ 0 (0) ---
[pid  2732] <... futex resumed> )       = -1 EINTR (Interrupted system call)
[pid  2738] <... select resumed> )      = ? ERESTARTNOHAND (To be restarted)
[pid  2732] +++ killed by SIGSEGV +++
Process 2732 detached
[pid  2738] +++ killed by SIGSEGV +++
Process 2738 detached
Process 2730 detached


Not a clue as to where it failed. :(
Title: Re: Sound Problem - I did the update, still trouble
Post by: scatha on April 30, 2006, 11:06:28 pm
I had the same problem as others before the update

Now, using OSS, I run into the bug

*** glibc detected *** double free or corruption (!prev): 0x08ebd8f0 ***

( i am using the line
  SndSys.Driver = crystalspace.sndsys.software.driver.oss
  when i change it to
  SndSys.Driver = crystalspace.sndsys.software.driver.alsa
  there is no sound
)
Title: Re: Sound Problem
Post by: eiffel56 on May 11, 2006, 04:40:16 pm
What´s the actual situation now?
I´ve waited so long,and there is no sound anywhere.Not with ALSA,not with OSS(the game just doesn´t starts).
Title: Re: Sound Problem
Post by: Yamakuzure on May 17, 2006, 09:25:01 am
Hello!

I have had some problems with the sound, too. This is what worked for me:

My machine is running KDE 3.4. In the Controlcenter-->Sound&Multimedia-->Sound-System-->Hardware I enabled auto detection, Full duplex and 16 bit quality. The Arts Soundserver is running realtime. (suid root)

As I built from CVS Snapshots using the Easy-Planeshift Build-Scripts (http://laanx.fragnetics.com/index.php?page=linux) because there where no other way to get Planeshift running under Gentoo for me, I edited the psrun-script to call commands using "artsdsp -m <command>". Since then all problems have gone, no matter whether I am using Alsa or OSS, aRts just handles everything fine. (As a matter of fact this method fixed alot of other sound issues on my machine, too! Without artsdsp I had alot of problems with eternal-lands, enemy-territory, quake3, briquolo and daitonin!)

Oh! One thing: I am using a 2.6.16 kernel with alsa compiled as modules with oss legacy support. (AC97 onboard!)

As all distros seem to be rather different, this method might not work for you at all, so no warrenty given! ;-)

Greetz

Yama
Title: Re: Sound Problem
Post by: Vanzeemeer on May 19, 2006, 07:08:34 pm
Strange I don't have this problem when using a soundblaster pci 128 but I have when using sblive 5.1 Live! Could it be because Sblive is multitasking while sb pci 128 can only handle one at a time?
Title: Re: Sound Problem
Post by: Vanzeemeer on May 20, 2006, 06:05:52 pm
Replying on myself: I get sound when I in psclient.cfg

; Linux - OSS sound system
;SndSys.Driver = crystalspace.sndsys.software.driver.oss

take away the ; before ;SndSys.Driver = crystalspace.sndsys.software.driver.oss

Weather in this case I get a segfault sooner or later like:

xxx@xxxx[~/ps/planeshift]$ ./psclient
DEBUG: Software Renderer Initializing..
NOTIFY: Configured for driver [cristalspace.sndsys.software.driver.oss]

planeshift.application.client:
  Planeshift Crystal Blue
  This game uses Crystal Space Engine crated by Jorrit and others
  0.99 r0 [Unix-x86-GCC]
ALL LOGS are off .
Mounting Skin: /this/art/skins/elves.zip
Mounting Skin: /planeshift/artskins/base/client_base.zip
  psEngine initialized.
Using fontsize 20 for resolution 1280x1024
Segmentatie fout


Must say that my system is configered for alsa basicly but when I change OSS in that line to alsa there is no sound either.
Title: Re: Sound Problem
Post by: Bigglez on May 23, 2006, 10:10:14 am
Well, I just tried PS again to see if the sound was back. Nope.
 ???
I tried using the psclient.cfg that I used in the last version I used and it reports:
WARNING: could not load plugin 'crystalspace.sound.render.openal'
WARNING: could not load plugin 'crystalspace.sound.loader.multiplexer'
WARNING: could not load plugin 'planeshift.sound.soundmanager'

So, I guess things have changed and openal is not used anymore?

Any news on the no-sound front?
Title: Re: Sound Problem (solved partially).
Post by: DracoDanube on May 29, 2006, 12:22:39 pm
I seem to have partially fixed the sound problem on Linux.

In the options select Sound from the Options menu and un-select 'Actions sounds'.

Then click the Save button.

I tried different combinations of the sound buttons on the Sounds options panel and this combination seems stable, everything but the 'Actions sounds' and I have not 'Mute sounds on focus loss'.

When you are in battle, the battle music will stop abruptly when you finish your fight. Don't panic :-)

Draco.

Title: Re: Sound Problem
Post by: Thedrish on June 06, 2006, 12:19:55 pm
Somehow, this has not been fixed.
At least the updater doesn't handle it (yet)..

Sometimes I fire up PS and get the welcome music, but when the game is loaded, it becomes quiet...
Title: Re: Sound Problem
Post by: lazy-r on July 01, 2006, 09:56:11 am
Yeps, just the same here: no sound with alsa, crashes with oss.
I also tried Jack soundsystem, but it seems like this was not compiled into the binary  :(

I really really really hope this is fixed in 0.3.015. I just can't wait...  8)
Title: Re: Sound Problem
Post by: Xordan on July 01, 2006, 11:17:32 am
Several sound bugs have been fixed in 0.3.015, so sound should work! :) Maybe some tweaking might be needed in the cfg files to select the right driver (alsa or oss) for you (if not detected automatically), but other than that it should work out of the box.
Title: Re: Sound Problem
Post by: Kelirance on July 03, 2006, 10:12:14 am
I can't wait getting the new client  :woot:

Thnx to Xordan for the good work  :flowers:
Title: Re: Sound Problem
Post by: Wired_Crawler on July 03, 2006, 11:14:17 pm
Before new update comes out - alsa driver needs tweaking of parameter:

SndSys.Driver.ALSA.SoundBufferms

in psclient.cfg

Default value is 20 ms, and with this I can't hear any sound in Planeshift. I need to set it at least to 100 ms (higher values work too).
Generally alsa works a lot better then oss driver.

EDIT:
Hmmm... Alsa is better, but not ideal. Setting the parameter mentioned above to 150 works quite well, but very often psclient gets muted out of sudden. I have reverted alsa driver to svn revision 23869 (before it was converted to "template based SCF") and this one works better for me. Just FYI.