Skip to main content
Topic: [r2652] get_sound_id fails and crash (Read 4038 times) previous topic - next topic

[r2652] get_sound_id fails and crash

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

Re: [r2652] get_sound_id fails and crash

Reply #1
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.

[solved] get_sound_id fails and crash

Reply #2
Thank you. r2658 worked well.

Re: [r2652] get_sound_id fails and crash

Reply #3

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.
I may not agree with what you say, but I will defend to the death your right to say it

Thought for the day

 When you are up to your backside in alligators, it is difficult to remind yourself that your initial objective was to drain the swamp.

Re: [r2652] get_sound_id fails and crash

Reply #4
On the nightly side there is Version 102.1-2664

So only look there ;o)

(3:xx will be the next Version)
I hope you understand my English

 

Re: [r2652] get_sound_id fails and crash

Reply #5
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.
I may not agree with what you say, but I will defend to the death your right to say it

Thought for the day

 When you are up to your backside in alligators, it is difficult to remind yourself that your initial objective was to drain the swamp.