The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: z9999 on September 22, 2009, 09:35:58 am

Title: [r2652] get_sound_id fails and crash
Post by: z9999 on September 22, 2009, 09:35:58 am
r2652 GDI, SDL

Simutrans will crash during launching.
"-nosound" will solve the problem.

Code: [Select]
Message: obj_reader_t::load():	reading from 'skin/'
Message: create_win(): ins_win=0
Message: create_win(): new ins_win=1
Warning: void release_focus(): Focus was already released
Message: sound_besch_t::init(): successfully opened sound/sound.tab
Message: sound_besch_t::init(): reading sound bus.wav

Code: [Select]
sim.exe caused an Access Violation at location 0042bbcd in module sim.exe Reading from location ffffffff.

Registers:
eax=00000000 ebx=00000000 ecx=00000000 edx=00000000 esi=01ca3b55 edi=62185060
eip=0042bbcd esp=0023e0b0 ebp=0023f8f8 iopl=0         nv up ei pl nz ac po nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00000216

Call stack:
0042BBCD  sim.exe:0042BBCD  sound_besch_t::get_sound_id(char const*)  sound_besch.cc:110
...
s = new sound_ids(id,name);
name_sound.put(s->filename, s );
> DBG_MESSAGE("sound_besch_t::get_sound_id()","successfully loaded sound %s internal id %i", s->filename, s->id );
return s->id;
}
...

005BDE6F  sim.exe:005BDE6F  WinMain  simsys_w16.cc:785
00401247  sim.exe:00401247
00401298  sim.exe:00401298
7C817077  kernel32.dll:7C817077  RegisterWaitForInputIdle
Title: Re: [r2652] get_sound_id fails and crash
Post by: prissi on September 22, 2009, 10:00:09 am
It does not crash for me, neither on MinGW nor in MSVC. Maybe GCC 4.0 has a problem with the automagic casts, I will add explicit ones.
Title: [solved] get_sound_id fails and crash
Post by: z9999 on September 22, 2009, 11:18:34 am
Thank you. r2658 worked well.
Title: Re: [r2652] get_sound_id fails and crash
Post by: Colin on September 23, 2009, 08:43:09 am

r2652 would not launch for me either, where do I get r2658 it's not, or wasn't this evening, available from the Simutrans Download site.
Title: Re: [r2652] get_sound_id fails and crash
Post by: wernieman on September 24, 2009, 08:45:47 pm
On the nightly side there is Version 102.1-2664

So only look there ;o)

(3:xx will be the next Version)
Title: Re: [r2652] get_sound_id fails and crash
Post by: Colin on September 24, 2009, 11:54:17 pm
On the nightly side there is Version 102.1-2664

So only look there ;o)

(3:xx will be the next Version)

Heh! Heh! You must have had a day off. I've already moved on to r2664 which is working extremely well, (See post elswhere) Also PAK64-182 is ok since I've copied the Shipyards from a previous version.