Author Topic: [(p) fixed] Problem:v3.4.0-1-32bit Linux Crashes with audio issue  (Read 941 times)

Bratmon

  • Guest
Hi, I'm Bratmon and I use Arch Linux.

I downloaded megaglest from the Arch repositories and it opens fine, but when I attempt to start a new game, instead a dialog box pops up saying "Problem unqueuing buffers in audio source: Invalid Value."  When I go to the options menu, it works, but upon exiting the menu, it crashes.  Here's the program output:

Code: [Select]
AL lib: pulseaudio.c:612: Context did not connect: Connection refused
v3.4.0-GNUC: 40502-Feb  2 2011 21:46:49, SVN: [Rev: ]
Couldn't play static sound: [Problem unqueuing buffers in audio source: Invalid Value]
[2011-03-27 10:39:27] *ERROR* In [/build/src/megaglest-source-3.4.0/source/shared_lib/sources/sound/openal/sound_player_openal.cpp::play Line: 437] Error [Problem unqueuing buffers in audio source: Invalid Value]
Couldn't play static sound: [Problem unqueuing buffers in audio source: Invalid Value]
[2011-03-27 10:39:33] *ERROR* In [/build/src/megaglest-source-3.4.0/source/shared_lib/sources/sound/openal/sound_player_openal.cpp::play Line: 437] Error [Problem unqueuing buffers in audio source: Invalid Value]
[2011-03-27 10:39:34] *ERROR* In [/build/src/megaglest-source-3.4.0/source/glest_game/main/program.cpp::setState Line: 439] Error [Problem unqueuing buffers in audio source: Invalid Value]
[2011-03-27 10:39:34] *ERROR* In [/build/src/megaglest-source-3.4.0/source/glest_game/main/program.cpp::setState Line: 439] Error [Problem unqueuing buffers in audio source: Invalid Value]
Couldn't play static sound: [Problem unqueuing buffers in audio source: Invalid Value]
[2011-03-27 10:39:37] *ERROR* In [/build/src/megaglest-source-3.4.0/source/shared_lib/sources/sound/openal/sound_player_openal.cpp::play Line: 437] Error [Problem unqueuing buffers in audio source: Invalid Value]
Couldn't play static sound: [Problem unqueuing buffers in audio source: Invalid Value]
Couldn't play static sound: [Problem unqueuing buffers in audio source: Invalid Value]
[2011-03-27 10:39:57] *ERROR* In [/build/src/megaglest-source-3.4.0/source/shared_lib/sources/sound/openal/sound_player_openal.cpp::play Line: 437] Error [Problem unqueuing buffers in audio source: Invalid Value]
[2011-03-27 10:40:01] *ERROR* In [/build/src/megaglest-source-3.4.0/source/shared_lib/sources/sound/openal/sound_player_openal.cpp::play Line: 437] Error [Problem unqueuing buffers in audio source: Invalid Value]
Couldn't play static sound: [Problem unqueuing buffers in audio source: Invalid Value]
terminate called after throwing an instance of 'std::runtime_error'
  what():  Problem unqueuing buffers in audio source: Invalid Value

Normal Glest works fine.

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: Problem:v3.4.0-1-32bit Linux Crashes with audio issue
« Reply #1 on: 27 March 2011, 16:00:27 »
This seems to be a possible bug when clicking ok in the options menu on some platforms. I have made a change in the latest svn code which should be release as a new release in the next week or so.

Thanks

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: Problem:v3.4.0-1-32bit Linux Crashes with audio issue
« Reply #2 on: 27 March 2011, 19:47:48 »
Isn't the real issue here "Connection refused" when trying to connect to the pulseaudio daemon?
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: Problem:v3.4.0-1-32bit Linux Crashes with audio issue
« Reply #3 on: 27 March 2011, 22:21:41 »
Well, the sound system does not properly shutdown and restart when clicking ok in the options menu, so it is likely our code causing this condition.