View Issue Details

IDProjectCategoryView StatusLast Update
0002762Spring engineMac OS Xpublic2012-06-13 10:13
Reporterabma Assigned Toabma  
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
Product Version84.0 
Fixed in Version89.0 
Summary0002762: OSX crash at start because of Sound (NoSound=1 works)
Descriptionhttp://pastebin.com/1WfpWykt

sorry, no more info yet...
TagsNo tags attached.
Attached Files
infolog.txt (Attachment missing)
infolog2.txt (Attachment missing)
infolog3.txt (Attachment missing)
infolog_BA.txt (Attachment missing)
infolog_zero-k.txt (Attachment missing)
Checked infolog.txt for Errors

Activities

abma

2011-11-25 09:26

administrator   ~0007697

a more complete log: http://pastebin.com/wgr5HmP9 :

[f=0000000] Error: Segmentation fault (SIGSEGV) in spring 84.0
[f=0000000] Error: Stacktrace:
[f=0000000] Error: <0> 0 libSystem.B.dylib 0x00007fff8233e1ba _sigtramp + 26
[f=0000000] Error: <1> 1 ??? 0x00007fff5fc0f131 0x0 + 140734799868209
[f=0000000] Error: <2> 2 spring 0x000000010034a21d _ZN5boost16exception_detail19error_info_injectorINS_21thread_resource_errorEED2Ev + 2139453
[f=0000000] Error: <3> 3 spring 0x000000010034a6ff _ZN5boost16exception_detail19error_info_injectorINS_21thread_resource_errorEED2Ev + 2140703
[f=0000000] Error: <4> 4 spring 0x000000010034ac6a _ZN5boost16exception_detail19error_info_injectorINS_21thread_resource_errorEED2Ev + 2142090
[f=0000000] Error: <5> 5 spring 0x00000001000932bc _ZN5boost16exception_detail19error_info_injectorINS_6system12system_errorEED2Ev + 521436
[f=0000000] Error: <6> 6 spring

Malina

2011-11-25 19:01

reporter   ~0007704

crash when joining to game

Warning: Incompatible game-checksum: Checksum of zk-v0.9.sdz (checksum 0x997123e1) differs from the host's copy (checksum 0x7bea61b9).

Malina

2011-11-25 19:15

reporter   ~0007705

BA crash

abma

2011-11-25 19:23

administrator   ~0007706

@Malina hu? what do you mean? your download or your installation is broken... please use the forum if you don't understand how the bugtracker works...

Malina

2011-11-25 19:55

reporter   ~0007707

Teach me how it works
I tried to download zero-k twice. i have the same problem.
Checksum for BA is ok!

abma

2011-11-27 14:02

administrator   ~0007731

http://zero-k.info/Forum/Thread/1354

Malina

2011-11-28 00:23

reporter   ~0007737

Thanks for Zero-K thread. NO happening anymore! but crash exists in OSX ( infolog3.txt )

abma

2011-11-28 00:25

administrator   ~0007738

can you please try to set LoadingMT=0 ?

Malina

2011-11-28 00:52

reporter   ~0007739

Last edited: 2011-11-28 01:01

OK, no multithreading ( infolog_BA.txt, infolog_zero-k.txt )

abma

2012-02-27 02:49

administrator   ~0008344

Last edited: 2012-02-27 02:50

does 86.0 still crash? http://sourceforge.net/projects/springrts/files/springrts/spring-86.0/spring_86.0_MacOSX-10.6-SnowLeopard.zip/download

if so, does it run with
spring --safemode ?

(if it crashes, infolog.txt please...)

Malina

2012-03-01 20:17

reporter   ~0008375

Last edited: 2012-03-01 20:18

Game is launch fine. It crashes after few seconds Game started
I hear sound and music

Spring 86.0 MacOSX-10.6-SnowLeopard
http://pastebin.com/bL8sg56H infolog.txt
http://pastebin.com/zczsYY4a unitsync.log
http://pastebin.com/BjsuvQtp apple.log

Spring 86.0 MacOSX-10.6-SnowLeopard --safemode
http://pastebin.com/48FNveEG infolog.txt
http://pastebin.com/CRinT8i4 apple.log

abma

2012-03-01 22:54

administrator   ~0008376

does it work with sound disabled?

(NoSound = 1)

Malina

2012-03-04 13:59

reporter   ~0008390

Works fine

abma

2012-03-05 01:48

administrator   ~0008395

aah, you're not alone:
http://springrts.com/phpbb/viewtopic.php?f=23&t=27629

seems to be the music

abma

2012-03-14 18:21

administrator   ~0008454

can you run spring with gdb attached and give us a backtrace here?

(
gdb spring
run
<... let it crash ...>
bt full

)

Malina

2012-03-17 13:23

reporter   ~0008464

GNU gdb 6.3.50-20050815 (Apple version gdb-1515) (Sat Jan 15 08:33:48 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries .............. done

(gdb) bt full
No stack.

why ?

jK

2012-03-17 13:34

developer   ~0008465

you forgot the "run"

Malina

2012-03-17 13:48

reporter   ~0008466

yes. thanks.

I can't make it because of freeze.

gdb spring
run start_srcipt.txt
...
<crash happend>
<interface is freezed>
<can't come back to desktop>
<have to Reset the laptop>

abma

2012-03-17 13:50

administrator   ~0008467

what does freeze? spring in fullscreen?

if so, does windowed mode work?

run -w

Malina

2012-03-17 14:01

reporter   ~0008468

alright!


(gdb) bt full
#0 0x000000010067f267 in std::vector<AudioChannel::StreamQueueItem, std::allocator<AudioChannel::StreamQueueItem> >::_M_fill_insert ()
No symbol table info available.
#1 0x000000010067f4a4 in std::vector<AudioChannel::StreamQueueItem, std::allocator<AudioChannel::StreamQueueItem> >::_M_fill_insert ()
No symbol table info available.
#2 0x000000010067f5d8 in std::vector<AudioChannel::StreamQueueItem, std::allocator<AudioChannel::StreamQueueItem> >::_M_fill_insert ()
No symbol table info available.
0000003 0x000000010068a00a in std::vector<boost::shared_ptr<SoundBuffer>, std::allocator<boost::shared_ptr<SoundBuffer> > >::_M_insert_aux ()
No symbol table info available.
0000004 0x00000001006811d9 in std::vector<AudioChannel::StreamQueueItem, std::allocator<AudioChannel::StreamQueueItem> >::_M_fill_insert ()
No symbol table info available.
0000005 0x0000000100683513 in std::vector<AudioChannel::StreamQueueItem, std::allocator<AudioChannel::StreamQueueItem> >::_M_fill_insert ()
No symbol table info available.
#6 0x0000000101746689 in boost::re_detail::cpp_regex_traits_implementation<wchar_t>::init()::null_string ()
No symbol table info available.
#7 0x00007fff82f31fd6 in _pthread_start ()
No symbol table info available.
#8 0x00007fff82f31e89 in thread_start ()
No symbol table info available.

Malina

2012-03-17 14:31

reporter   ~0008469

Before: bt full
http://pastebin.com/tcRykUeV

abma

2012-04-02 23:11

administrator   ~0008559

can you do a

"thread apply all bt full"

please?


the stacktrace seems to show only non-spring stuff (i guess openal).

we still need a macosx developer ;-)

Malina

2012-04-03 18:59

reporter   ~0008563

maybe it helps:
Thread apply all bt full

http://pastebin.com/bkjz6Phv

you want me as a developer for osx ? ;)

foxtrot

2012-06-08 09:18

reporter   ~0008744

I solved this one for myself by changing OggStream.cpp. Not sure if it's the same bug, but zero-k and evo don't crash on me now (BA never crashed).

The problem is that Vorbis stream decode corrupts the stack and crashes OSX with EXC_BAD_ACCESS. This is due to the huge 512k buffer allocated ON THE STACK for Vorbis's use, and possibly how ov_read works (dunno). The end result is that the stack is getting corrupted/misaligned because of the huge buffer or how it's written to.

I changed
char pcm[BUFFER_SIZE];

to
static char pcm[BUFFER_SIZE];

in OggStream.cpp

which resolved the issue. It's a hacky fix, since going global like this could bork threading. Maybe make pcm buffer an instance variable?

I tried reducing the buffer size but it ended up stuttering the sound and constantly spitting BufferRelease errors for some reason (though without crashing).

I'm on 10.6, using 32 bit kernel, and a 64 bit spring compile.

abma

2012-06-09 09:29

administrator   ~0008748

can you test if http://springrts.com/dl/buildbot/default/develop/88.0.1-324-g168fb1d/spring_%7bdevelop%7d88.0.1-324-g168fb1d_MacOSX-10.6-SnowLeopard.zip works?

kloot made a commit, that maybe fixes the problem: https://github.com/spring/spring/commit/0313569f33ad7be7c6e3b5a5caf3babcbac002ff

(or recompile with a updated develop branch, wich contains this commit)

foxtrot

2012-06-13 05:50

reporter   ~0008761

yes, the .zip file above works! Zero-k doesn't crash with music, nor does Astroturf map. Nice!

abma

2012-06-13 10:12

administrator   ~0008762

thanks for your help! :)

Issue History

Date Modified Username Field Change
2011-11-24 15:10 abma New Issue
2011-11-25 09:26 abma Note Added: 0007697
2011-11-25 13:20 abma Product Version => 84.0
2011-11-25 19:00 Malina File Added: infolog.txt
2011-11-25 19:01 Malina Note Added: 0007704
2011-11-25 19:15 Malina File Added: infolog2.txt
2011-11-25 19:15 Malina Note Added: 0007705
2011-11-25 19:23 abma Note Added: 0007706
2011-11-25 19:55 Malina Note Added: 0007707
2011-11-27 14:02 abma Note Added: 0007731
2011-11-28 00:22 Malina File Added: infolog3.txt
2011-11-28 00:23 Malina Note Added: 0007737
2011-11-28 00:25 abma Note Added: 0007738
2011-11-28 00:51 Malina File Added: infolog_BA.txt
2011-11-28 00:52 Malina Note Added: 0007739
2011-11-28 01:00 Malina File Added: infolog_zero-k.txt
2011-11-28 01:01 Malina Note Edited: 0007739
2012-02-27 02:49 abma Note Added: 0008344
2012-02-27 02:49 abma Status new => feedback
2012-02-27 02:50 abma Note Edited: 0008344
2012-02-27 02:50 abma Note Edited: 0008344
2012-03-01 20:17 Malina Note Added: 0008375
2012-03-01 20:18 Malina Note Edited: 0008375
2012-03-01 22:54 abma Note Added: 0008376
2012-03-04 13:59 Malina Note Added: 0008390
2012-03-05 01:48 abma Note Added: 0008395
2012-03-06 00:05 abma Category General => Mac OS X
2012-03-14 18:21 abma Note Added: 0008454
2012-03-17 13:23 Malina Note Added: 0008464
2012-03-17 13:34 jK Note Added: 0008465
2012-03-17 13:48 Malina Note Added: 0008466
2012-03-17 13:50 abma Note Added: 0008467
2012-03-17 14:01 Malina Note Added: 0008468
2012-03-17 14:31 Malina Note Added: 0008469
2012-03-28 16:18 abma Status feedback => new
2012-04-02 23:11 abma Note Added: 0008559
2012-04-03 11:35 abma Status new => feedback
2012-04-03 11:35 abma Summary OSX crash at start => OSX crash at start because of Sound (NoSound=1 works)
2012-04-03 18:59 Malina Note Added: 0008563
2012-06-08 09:18 foxtrot Note Added: 0008744
2012-06-09 09:29 abma Note Added: 0008748
2012-06-13 05:50 foxtrot Note Added: 0008761
2012-06-13 10:12 abma Note Added: 0008762
2012-06-13 10:12 abma Status feedback => resolved
2012-06-13 10:12 abma Resolution open => fixed
2012-06-13 10:12 abma Assigned To => abma
2012-06-13 10:13 abma Fixed in Version => 89.0