Pigeon writes:

> 
> Hi all,
> 
>     Running fgfs cvs, starting up normally at KSFO. Bringing up the radio 
> dialog and switching COM1 to the ATIS frequency. Sometimes I get:
> 
> 
>     ERROR - mismatch between ATC .wav and .vce file in ATCVoice.cxx
> 
>     Offset + length: 2890 exceeds rawdata size: 0
> 
> 
>     And sometimes it segvs, with a backtrace that looks like this:
> 
> 
> #0  0x404e5927 in memcpy () from /lib/libc.so.6
> #1  0x080ee52d in FGATCVoice::WriteMessage (this=0xac0efc8, 
>     message=0xb4a <Address 0xb4a out of bounds>, [EMAIL PROTECTED],
> [EMAIL PROTECTED])
>     at ATCVoice.cxx:173
> #2  0x080c7f6b in FGATC::Render (this=0xe6b9550, [EMAIL PROTECTED], 
>     [EMAIL PROTECTED], repeating=true) at basic_string.h:717
> #3  0x080c88a2 in FGATIS::Update (this=0xe6b9550, dt=0.125) at
> atis.cxx:78
> #4  0x080a98a8 in FGATCMgr::update (this=0xaf93ba0,
> dt=0.025000000000000001)
>     at stl_list.h:169
> #5  0x0805354d in fgMainLoop () at globals.hxx:279
> #6  0x08089235 in GLUTidle () at fg_os.cxx:114
> #7  0x400ab5c2 in glutMainLoop () from /usr/lib/libglut.so.3
> #8  0x08055800 in fgMainInit (argc=2, argv=0xbffff5c4) at main.cxx:1007
> #9  0x08051c2a in main (argc=2890, argv=0xb4a) at bootstrap.cxx:193
> 

Hmm, I think that line 79 of src/ATC/ATCVoice.hxx should be changed from

unsigned int rawDataSize;

to

int rawDataSize;

I think that this should avoid the seg fault when the sanity check is failing ( 
well, I can't think of any other reason OTOH ;-) ), but I'm not sure why your 
sound data buffers are empty.  It seems that the .wav file is not loading 
properly, but that's more Erik's area so I'll leave it to him ;-)

Excellent multiplayer map you've done BTW :-)

Cheers - Dave 

_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to