Author Topic: Linux VVVVVV audio problems & SIGFPE - SOLVED  (Read 5800 times)

seamoose

  • Crewmate
  • *
  • Posts: 2
    • View Profile
Linux VVVVVV audio problems & SIGFPE - SOLVED
« on: July 26, 2011, 11:52:23 pm »
Just purchased VVVVVV with the HIB. I'm running Debian 6,
and when I try to start VVVVVV I get:

$ ./VVVVVV
Levels will be saved to: /home/simos/.vvvvvv/
The save directory exists at: /home/simos/.vvvvvv/
[Cute ASCII graphics]
Unable to initialize audio: %s
No available audio device
Unable to load WAV file: %s
Audio device hasn't been opened
Unable to load WAV file: %s
Audio device hasn't been opened
Unable to load WAV file: %s
[...]

Tried running a trace and I suspect it's trying to use PulseAudio
for sound. Some of us have had enough of PulseAudio and are
using ALSA. If this is indeed the problem, is there any way to
either force VVVVVV to use ALSA or provide a command-line
option to use ALSA?

Also, once I get to the main screen and press the "Action" key,
it dies with a SIGFPE:

[...]
rt_sigaction(SIGQUIT, {SIG_DFL, [], 0}, NULL, 8) = 0
tgkill(10387, 10387, SIGFPE)            = 0
sigreturn()                             = ? (mask now [])
--- SIGFPE (Floating point exception) @ 0 (0) ---
+++ killed by SIGFPE +++
Floating point exception

I can provide any other debugging info needed.

Thanks for making a Linux version - looking forward to playing it!
« Last Edit: July 27, 2011, 12:36:30 am by seamoose »

Terry

  • Administrator
  • Captain
  • *****
  • Posts: 608
    • View Profile
    • distractionware
Re: Linux VVVVVV audio problems & SIGFPE
« Reply #1 on: July 27, 2011, 12:00:00 am »
Yikes! Ok, we'll look into this, thanks for the bug report!

seamoose

  • Crewmate
  • *
  • Posts: 2
    • View Profile
Re: Linux VVVVVV audio problems & SIGFPE
« Reply #2 on: July 27, 2011, 12:35:52 am »
Thanks for the prompt response!

After reading the post "Immediate SEGFAULT on Linux" by TechMage89,
I moved the VVVVVV-supplied SDL libraries out of LIB32, forcing VVVVVV
to use the system-supplied SDL libraries. This solved both my audio problem
and the SIGFPE.

Now off to save the crew!

fjord

  • Crewmate
  • *
  • Posts: 2
    • View Profile
Re: Linux VVVVVV audio problems & SIGFPE - SOLVED
« Reply #3 on: July 27, 2011, 07:50:04 pm »
i have the same problem on kubuntu 9.10 / karmic koala

Quote
Levels will be saved to: /home/myname/.vvvvvv/
The save directory exists at: /home/myname/.vvvvvv/
                 
[ascii]

Unable to initialize audio: %s
No available audio device
Unable to load WAV file: %s
Audio device hasn't been opened
[repeat last two messages over and over again]
the complete reloaded file size:57761373
data/music/0levelcomplete.oggunpacked
data/music/1pushingonwards.oggunpacked
data/music/2positiveforce.oggunpacked
data/music/3potentialforanything.oggunpacked
data/music/4passionforexploring.oggunpacked
data/music/5intermission.oggunpacked
data/music/6presentingvvvvvv.oggunpacked
data/music/7gamecomplete.oggunpacked
data/music/8predestinedfate.oggunpacked
data/music/9positiveforcereversed.oggunpacked
data/music/10popularpotpourri.oggunpacked
data/music/11pipedream.oggunpacked
data/music/12pressurecooker.oggunpacked
data/music/13pacedenergy.oggunpacked
data/music/14piercingthesky.oggunpacked
The save directory exists at: /home/myname/.vvvvvv/
Quick Save Not Found
Teleporter Save Not Found

when the start screen appears and i press a button i get

Quote
Floating point exception

moving the lib32-folder did not help.

libfun

  • Crewmate
  • *
  • Posts: 5
    • View Profile
Re: Linux VVVVVV audio problems & SIGFPE - SOLVED
« Reply #4 on: July 27, 2011, 07:57:59 pm »
Same problem in Ubuntu 11.04. Removing libs doesn't help.

lotheac

  • Crewmate
  • *
  • Posts: 4
    • View Profile
Re: Linux VVVVVV audio problems & SIGFPE - SOLVED
« Reply #5 on: July 27, 2011, 08:11:10 pm »
Seems to me the supplied libs aren't being used in the first place (see here). Try this:
Code: [Select]
mv LIBS64 LIB64
for file in LIB32/* LIB64/*; do ln -s `basename $file` ${file%.*.*}; done

libfun

  • Crewmate
  • *
  • Posts: 5
    • View Profile
Re: Linux VVVVVV audio problems & SIGFPE - SOLVED
« Reply #6 on: July 27, 2011, 08:18:11 pm »
Seems to me the supplied libs aren't being used in the first place (see here). Try this:
Code: [Select]
mv LIBS64 LIB64
for file in LIB32/* LIB64/*; do ln -s `basename $file` ${file%.*.*}; done

This didn't help either.

lotheac

  • Crewmate
  • *
  • Posts: 4
    • View Profile
Re: Linux VVVVVV audio problems & SIGFPE - SOLVED
« Reply #7 on: July 27, 2011, 08:28:30 pm »
Seems to me the supplied libs aren't being used in the first place (see here). Try this:
Code: [Select]
mv LIBS64 LIB64
for file in LIB32/* LIB64/*; do ln -s `basename $file` ${file%.*.*}; done

This didn't help either.

Oh. Can you post the output of LD_LIBRARY_PATH=./LIB32:$LD_LIBRARY_PATH ldd VVVVVV_32 (or replacing 32 with 64 if you're running 64bit)?

libfun

  • Crewmate
  • *
  • Posts: 5
    • View Profile
Re: Linux VVVVVV audio problems & SIGFPE - SOLVED
« Reply #8 on: July 27, 2011, 08:36:39 pm »
Here it is:
Code: [Select]
/VVVVVV$ LD_LIBRARY_PATH=./LIB32:$LD_LIBRARY_PATH ldd VVVVVV_32
linux-gate.so.1 =>  (0xb789f000)
libSDL_mixer-1.2.so.0 => ./LIB32/libSDL_mixer-1.2.so.0 (0xb7845000)
libSDL_image-1.2.so.0 => ./LIB32/libSDL_image-1.2.so.0 (0xb7828000)
libSDL-1.2.so.0 => ./LIB32/libSDL-1.2.so.0 (0xb779c000)
libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xb7699000)
libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xb7673000)
libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xb7657000)
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb74f6000)
libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xb74dc000)
libmikmod.so.2 => /usr/lib/libmikmod.so.2 (0xb7490000)
libvorbisfile.so.3 => ./LIB32/libvorbisfile.so.3 (0xb7487000)
libsmpeg-0.4.so.0 => /usr/lib/libsmpeg-0.4.so.0 (0xb7433000)
libjpeg.so.62 => /usr/lib/i386-linux-gnu/libjpeg.so.62 (0xb7413000)
libtiff.so.4 => /usr/lib/i386-linux-gnu/libtiff.so.4 (0xb73b7000)
libz.so.1 => /lib/i386-linux-gnu/libz.so.1 (0xb73a2000)
libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xb739e000)
libpulse-simple.so.0 => /usr/lib/libpulse-simple.so.0 (0xb7399000)
libpulse.so.0 => /usr/lib/libpulse.so.0 (0xb7358000)
/lib/ld-linux.so.2 (0xb78a0000)
libvorbis.so.0 => ./LIB32/libvorbis.so.0 (0xb7330000)
libogg.so.0 => ./LIB32/libogg.so.0 (0xb7329000)
libpulsecommon-0.9.22.so => /usr/lib/libpulsecommon-0.9.22.so (0xb72e0000)
librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0xb72d7000)
libX11-xcb.so.1 => /usr/lib/i386-linux-gnu/libX11-xcb.so.1 (0xb72d4000)
libX11.so.6 => /usr/lib/i386-linux-gnu/libX11.so.6 (0xb71b8000)
libICE.so.6 => /usr/lib/i386-linux-gnu/libICE.so.6 (0xb71a0000)
libSM.so.6 => /usr/lib/i386-linux-gnu/libSM.so.6 (0xb7198000)
libXtst.so.6 => /usr/lib/libXtst.so.6 (0xb7192000)
libxcb-atom.so.1 => /usr/lib/libxcb-atom.so.1 (0xb718d000)
libxcb.so.1 => /usr/lib/i386-linux-gnu/libxcb.so.1 (0xb7173000)
libdbus-1.so.3 => /lib/i386-linux-gnu/libdbus-1.so.3 (0xb7136000)
libwrap.so.0 => /lib/libwrap.so.0 (0xb712d000)
libsndfile.so.1 => /usr/lib/libsndfile.so.1 (0xb70c6000)
libuuid.so.1 => /lib/i386-linux-gnu/libuuid.so.1 (0xb70c1000)
libXext.so.6 => /usr/lib/i386-linux-gnu/libXext.so.6 (0xb70b1000)
libXau.so.6 => /usr/lib/i386-linux-gnu/libXau.so.6 (0xb70ad000)
libXdmcp.so.6 => /usr/lib/i386-linux-gnu/libXdmcp.so.6 (0xb70a7000)
libnsl.so.1 => /lib/i386-linux-gnu/libnsl.so.1 (0xb7090000)
libFLAC.so.8 => /usr/lib/libFLAC.so.8 (0xb7044000)
libvorbisenc.so.2 => /usr/lib/libvorbisenc.so.2 (0xb6ecb000)

simoroth

  • Doctor
  • ***
  • Posts: 62
  • I made the VVVVVV C++ port.
    • View Profile
Re: Linux VVVVVV audio problems & SIGFPE - SOLVED
« Reply #9 on: July 27, 2011, 08:57:27 pm »
Hi guys.

Its come to my attention that the LIBS folders that got uploaded were not my final copies that I tested and signed off.  :victoria:

However the new Linux builds will be put up for download soon.

libfun

  • Crewmate
  • *
  • Posts: 5
    • View Profile
Re: Linux VVVVVV audio problems & SIGFPE - SOLVED
« Reply #10 on: July 27, 2011, 09:03:38 pm »
Well, I've found roots of the problem. It appears that game cannot run with libs from LIB32 or with ubuntu libs, so i've downloaded debain libs. So all you need is just copy /LIB32 from file attached to your game folder.

Here it is.

fjord

  • Crewmate
  • *
  • Posts: 2
    • View Profile
Re: Linux VVVVVV audio problems & SIGFPE - SOLVED
« Reply #11 on: July 27, 2011, 09:34:05 pm »
Well, I've found roots of the problem. It appears that game cannot run with libs from LIB32 or with ubuntu libs, so i've downloaded debain libs. So all you need is just copy /LIB32 from file attached to your game folder.

i think i love you.

in addition to what libfun posted, i needed

Quote
libdirectfb-1.2.so.9
libfusion-1.2.so.9
libdirect-1.2.so.9

which i copied over from debian squeeze and as far as i can see it works now. there are still lots of

Quote
ALSA lib pcm.c:7234:(snd_pcm_recover) underrun occured

but i have sound and i can play. only tried a few seconds though.

woohoo! and it took only something like 10 hours and some new grey hair.

edit: i uploaded an updated version of libfun's library pack including the three files i needed: http://www.mediafire.com/?2dkccgyvk7dh080
« Last Edit: July 27, 2011, 09:40:30 pm by fjord »