2025-07-21 20:03 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0001649Spring engineGeneralpublic2009-10-14 12:11
ReporterSirMaverick 
Assigned ToAuswaschbar 
PrioritynormalSeveritycrashReproducibilityalways
StatusresolvedResolutionfixed 
Product Version0.80.4.0+git 
Target Version0.81.0.0Fixed in Version 
Summary0001649: no sound crashes spring
DescriptionReproduceable with CA 5728 - 5731 (I commented the relevant part out later).

Crashes with 0.80.4.1, e4390da464c19eed57f216f9302ad62100b1c7e2, a9a2bfeb4e607702e3b5285563f85f7f000ca283 (atm latest master).

I tried several encodings for sparks.wav (with was added in 5728), even ogg. All crash spring the same way.
Additional Informationterminate called after throwing an instance of 'std::out_of_range'
  what(): vector::_M_range_check

Program received signal SIGABRT, Aborted.
0xb7fe1430 in __kernel_vsyscall ()
(gdb) bt
#0 0xb7fe1430 in __kernel_vsyscall ()
#1 0xb759e3d0 in raise () from /lib/i686/cmov/libc.so.6
#2 0xb75a1a85 in abort () from /lib/i686/cmov/libc.so.6
0000003 0xb77dd27f in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/libstdc++.so.6
0000004 0xb77db1b5 in ?? () from /usr/lib/libstdc++.so.6
0000005 0xb77db1f2 in std::terminate() () from /usr/lib/libstdc++.so.6
#6 0xb77db331 in __cxa_throw () from /usr/lib/libstdc++.so.6
#7 0xb777686f in std::__throw_out_of_range(char const*) () from /usr/lib/libstdc++.so.6
#8 0x08953f8b in std::vector<boost::shared_ptr<SoundBuffer>, std::allocator<boost::shared_ptr<SoundBuffer> > >::_M_range_check (this=0x8b959b8, __n=0) at /usr/include/c++/4.3/bits/stl_vector.h:586
#9 0x08953fa6 in std::vector<boost::shared_ptr<SoundBuffer>, std::allocator<boost::shared_ptr<SoundBuffer> > >::at (this=0x8b959b8, __n=0) at /usr/include/c++/4.3/bits/stl_vector.h:604
0000010 0x08951da0 in SoundBuffer::GetById (id=0) at /home/spring/spring/spring/spring_0.80.4.1-debug/rts/System/Sound/SoundBuffer.cpp:248
#11 0x08947ce5 in CSound::GetWaveBuffer (this=0x9cb5f88, path=..., hardFail=true) at /home/spring/spring/spring/spring_0.80.4.1-debug/rts/System/Sound/Sound.cpp:547
0000012 0x08948946 in CSound::LoadSoundDefs (this=0x9cb5f88, filename=...) at /home/spring/spring/spring/spring_0.80.4.1-debug/rts/System/Sound/Sound.cpp:472
0000013 0x08333fbe in CGame (this=0x9e450a8, mapname=..., modName=..., saveFile=0x0) at /home/spring/spring/spring/spring_0.80.4.1-debug/rts/Game/Game.cpp:334
0000014 0x0834a829 in CPreGame::UpdateClientNet (this=0x9cb7b68) at /home/spring/spring/spring/spring_0.80.4.1-debug/rts/Game/PreGame.cpp:245
#15 0x0834bb3e in CPreGame::Update (this=0x9cb7b68) at /home/spring/spring/spring/spring_0.80.4.1-debug/rts/Game/PreGame.cpp:152
#16 0x088a0ec5 in SpringApp::Update (this=0xbffff500) at /home/spring/spring/spring/spring_0.80.4.1-debug/rts/System/SpringApp.cpp:840
#17 0x088a915e in SpringApp::Run (this=0xbffff500, argc=2, argv=0xbffff5e4) at /home/spring/spring/spring/spring_0.80.4.1-debug/rts/System/SpringApp.cpp:964
#18 0x088d64a9 in Run (argc=2, argv=0xbffff5e4) at /home/spring/spring/spring/spring_0.80.4.1-debug/rts/System/Main.cpp:111
#19 0x088d6504 in main (argc=Cannot access memory at address 0x6ff5
) at /home/spring/spring/spring/spring_0.80.4.1-debug/rts/System/Main.cpp:127
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0004136

Auswaschbar (reporter)

Maybe the sound thread wasn't fast enought to finish loading until the sounds.lua were loaded, but I could not reproduce it. Please try again if it still happens.

~0004139

SirMaverick (reporter)

6f2ff37c6a6621df3c4d8e3fa39ad64a70879d23 crashes with same stack trace.

~0004142

SirMaverick (reporter)

The bug is triggered, when the user does not have access to the sound card (not in audio group).

~0004212

Auswaschbar (reporter)

Should be fixed now. At least, it doesn't happen anymore for me. Reopen please if I am mistaken.
+Notes

-Issue History
Date Modified Username Field Change
2009-09-17 11:44 SirMaverick New Issue
2009-09-17 14:16 Auswaschbar Note Added: 0004136
2009-09-17 14:18 Auswaschbar Status new => feedback
2009-09-17 15:19 SirMaverick Note Added: 0004139
2009-09-17 17:45 SirMaverick Note Added: 0004142
2009-09-17 23:44 Auswaschbar Summary sound crashes spring => no sound crashes spring
2009-10-03 10:46 imbaczek Target Version => 0.81.0.0
2009-10-14 12:11 Auswaschbar Note Added: 0004212
2009-10-14 12:11 Auswaschbar Status feedback => resolved
2009-10-14 12:11 Auswaschbar Resolution open => fixed
2009-10-14 12:11 Auswaschbar Assigned To => Auswaschbar
+Issue History