News:

Simutrans Forum Archive
A complete record of the old Simutrans Forum.

Very vague bug report

Started by jorrit, October 29, 2008, 07:59:56 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jorrit

Hi all. I'm playing simutrans 100.1-2076 on windows (but I also have this problem with previous 100.1 versions) and pak128 that matches the nightly build. Some time ago I already experienced VERY rare crashes while doing nothing (i.e. when simutrans was paused and I was not at the computer). Since having those crashes I have always played simutrans while in gdb (debugger) to catch the bug if it ever occured. Well it was almost a week but now I got it again. I was away from my computer again and simutrans was paused. When I returned I found it had crashed. Unfortunately the stack backtrace isn't very helpful. Here it is:


Unexpected character (255) for 255 character font!
Loading BDF font font/Prop-Latin1.bdf with 255 characters

Program received signal SIGSEGV, Segmentation fault.
[Switching to thread 3196.0xf04]
0x77ba2237 in MIDIMAP!DriverProc () from C:\WINNT\system32\midimap.dll
(gdb) where
#0  0x77ba2237 in MIDIMAP!DriverProc () from C:\WINNT\system32\midimap.dll
#1  0x0025f2fc in ?? ()
#2  0x0025f2e8 in ?? ()
#3  0x00000000 in ?? () from
#4  0x01dcfc64 in ?? ()
#5  0x77ba2a65 in modMessage () from C:\WINNT\system32\midimap.dll
#6  0x002530f8 in ?? ()
#7  0x0025f2fc in ?? ()
#8  0x0025f2e8 in ?? ()
#9  0x00002000 in ?? ()
#10 0x01dcfca8 in ?? ()
#11 0x76b09e26 in midiOutGetNumDevs () from C:\WINNT\system32\winmm.dll
#12 0x00000000 in ?? () from
#13 0x00000006 in ?? ()
#14 0x002533e0 in ?? ()
#15 0x002530f8 in ?? ()
#16 0x00000040 in ?? ()
#17 0x002530f8 in ?? ()
#18 0x052667d0 in ?? ()
#19 0x00002000 in ?? ()
#20 0x61738da0 in SDL_mixer!Mix_LoadMUS_RW ()
   from c:\Program Files\simutrans_100.0\simutrans\SDL_mixer.dll
(gdb) Previous frame inner to this frame (corrupt stack?)


Unfortunately the bug is VERY hard to reproduce. It only happens when I'm not playing simutrans and it is in pause mode and then very rarely.

Greetings,

gerw

Quote from: jorrit on October 29, 2008, 07:59:56 AM

#0  0x77ba2237 in MIDIMAP!DriverProc () from C:\WINNT\system32\midimap.dll
#5  0x77ba2a65 in modMessage () from C:\WINNT\system32\midimap.dll
#11 0x76b09e26 in midiOutGetNumDevs () from C:\WINNT\system32\winmm.dll
#20 0x61738da0 in SDL_mixer!Mix_LoadMUS_RW ()
   from c:\Program Files\simutrans_100.0\simutrans\SDL_mixer.dll


It looks like it has to do with midi. Can you start simutrans with -nomidi and look whether it also crashes? And can you run a simutrans version which is compiled with (DEBUG>=1)? Maybe wernieman will create a special debug nightly? Let us cry for werniman  ;D

wernieman

mhhh .... I could, but if I do it??

The next 6 days I have no time .... have a "meeting" with my parents.

But ... the problem is with midimap.dll, so ... what soundhardware do you have??
I hope you understand my English

jorrit

Um, not sure. This is a laptop. The device manager says something about SigmaTel High Definition Audio. Note that sound is working. But I did set the music volume to 0 (but I just noticed that it was not muted. Just 0 volume).

Greetings,

wernieman

O.K .. when you not play with musik ... can you do the tip with the "-nomidi" flag?

And then testing????
I hope you understand my English

jorrit

I can test but as I told you the problem is not reproducible. I had to play for several days before it crashed again. So the only thing I can say is that it isn't crashing but that doesn't say much since it might still crash the next day.

Greetings,