The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: z9999 on November 09, 2008, 10:52:14 am

Title: r2101 - Crash when rotate map
Post by: z9999 on November 09, 2008, 10:52:14 am
simutrans r2101 GDI

When I rotate map, simutrans always crash.
There is no useful information in simu.log.
Title: Re: r2101 - Crash when rotate map
Post by: Frank on November 09, 2008, 05:08:29 pm
I compile r2101 with MS VC++ EE 2005 on WinXP (de)

no problems

test pak64 svn and pak.german
Title: Re: r2101 - Crash when rotate map
Post by: gerw on November 09, 2008, 05:31:30 pm
I compiled with gcc4 and linux and couldn't observe crashes during rotation.
Title: Re: r2101 - Crash when rotate map
Post by: z9999 on November 09, 2008, 05:43:31 pm
Thanks for information.
I tried the version on nightly site, and they didn't crash.

It seems to happen only with my compiled version. (msys MinGW gcc3)

Dr.MinGW report
Quote
Registers:
eax=0000003f ebx=05a4ca78 ecx=006331ac edx=05a4ca78 esi=006d0074 edi=00730070
eip=005f84f8 esp=0023eeec ebp=0023f298 iopl=0         nv up ei pl nz ac pe nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00000212

Call stack:
005F84F8  simutrans-.exe:005F84F8  quickstone_tpl<convoi_t>::operator->() const  quickstone_tpl.h:175
   ...
   T* operator->() const
   {
>   return data[entry];
   }
   
   ...

00579922  simutrans-.exe:00579922  karte_t::interactive()  simworld.cc:4334
   ...
   
   if (!swallowed) {
>   interactive_event(ev);
   }
   
   ...

005A0F33  simutrans-.exe:005A0F33  WinMain  simsys_w16.cc:756
00401247  simutrans-.exe:00401247
00401298  simutrans-.exe:00401298
7C817067  kernel32.dll:7C817067  RegisterWaitForInputIdle
Title: Re: r2101 - Crash when rotate map
Post by: prissi on November 09, 2008, 06:45:24 pm
This look most liekely like an access at an illegal halthandle_t. But is is hard to debug. You may try valgrind to find this error.
Title: Re: r2101 - Crash when rotate map
Post by: z9999 on November 09, 2008, 06:53:27 pm
Sorry, I can't understand the meaning what you said.
This also happen with startup map, which don't have halt.
Title: Re: r2101 - Crash when rotate map
Post by: prissi on November 09, 2008, 07:01:04 pm
valgrind is a tools to find illegal pointer access (but only for Linux :()

quickstones are only used for convoi pointers and halt pointers. Thus such an acess con be only due to a convoi or a halt (and oil rigs would be halts too). But I am not sure, what goes wrong here.
Title: Re: r2101 - Crash when rotate map
Post by: z9999 on November 09, 2008, 07:06:39 pm
Thank you. Yes, my startup map have a oil rig.
Title: [solved]Re: r2101 - Crash when rotate map
Post by: z9999 on November 10, 2008, 07:54:48 am
I compiled r2107, crash problem didn't happen anymore.
Somethig was wrong with me. Thank you for many help.