rev2009 (Win-DGI+SDL) pak128 crash stop-mover September 10, 2008, 04:09:28 am (I don't know whether this is caused by continuing an old savegame in recent versions:) I always get a crash "Access Violation" in this savegame when using the stop-moving tool (from the road menue) for the bus station "Dresden Kornfeld S" (click on one of the two tiles to the right, then on the one to the left). Simu.log and Dr.MinGW don't show anything useful, therefore, this may be a different bug (which may have been fixed by now).Use a recent nightly build of Pak128 for this savegame (e.g. rev. 61 or 87).(Thanks to Frank for supplying a file hosting service for purposes like this.)EDIT/UPDATE: rev.2011 aborts at loading this savegame:FATAL ERROR: vector_tpl<T>::[] / index out of bounds: 1 not in 0..-1 / Aborting program execution ...and the problem can't be reproduced with the same origin savegame. Therefore, the savegame may be broken, and only rev.2011 detects that.EDIT^2: rev.2011 aborts with this error even on some of its own autosaves. Quote Selected Last Edit: September 10, 2008, 02:28:14 pm by whoami
Re: rev2009 (Win-DGI+SDL) pak128 crash stop-mover Reply #1 – September 10, 2008, 08:26:14 am This problem seems to be caused by empty schedule vehicle which is in depot.How to reproduce:1. Build two stop2. Build depot3. Buy vehicle4. Select stop moving tool5. Click one stop and click the other stopResult:Crash.Quotesimutrans-.exe caused an Access Violation at location 00558c2c in module simutrans-.exe Reading from location 00000000.Registers:eax=00000000 ebx=05aecc50 ecx=0023f150 edx=00000004 esi=006d0074 edi=00730070eip=00558c2c esp=0023f038 ebp=0023f298 iopl=0 nv up ei pl nz ac pe nccs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00000212Call stack:00558C2C simutrans-.exe:00558C2C wkz_stop_moving_t::work(karte_t*, spieler_t*, koord3d) simwerkz.cc:3320 ... fahrplan_t *fpl = cnv->gib_fahrplan(); // check waytype> if(fpl->ist_halt_erlaubt(bd)) { bool updated = false; for( int k=0; k<fpl->maxi(); k++ ) { ... Quote Selected
Re: rev2009 (Win-DGI+SDL) pak128 crash stop-mover Reply #2 – September 10, 2008, 12:25:48 pm Quote from: z9999 – on September 10, 2008, 08:26:14 amThis problem seems to be caused by empty schedule vehicle which is in depot.And this vehicle also prevents rev.2011 from loading the savegame, see here, right?So this bug report is still valid - and the problem actually came to my attention with a rev.1957 executable. Quote Selected Last Edit: September 10, 2008, 12:28:36 pm by whoami
Re: rev2009 (Win-DGI+SDL) pak128 crash stop-mover Reply #3 – September 12, 2008, 07:26:07 am Seems to be resolved. Quote Selected