The International Simutrans Forum

Community => Simutrans Help Center => Topic started by: Paretje on June 14, 2009, 08:33:14 pm

Title: Simutrans crashes loading some games
Post by: Paretje on June 14, 2009, 08:33:14 pm
Today, I saw when I wanted to start some old games I played with 100.0 and 99.18 that they didn't want to start. This was using 101.0. Downloading 102.0 resulted in a crash of simutrans, but using Ubuntu packages worked. Now I get this error: on my screen, and in the terminal:
Code: [Select]
Calculating textures ...FATAL ERROR: planquadrat_t::rdwr()
Error while loading game: Unknown ground type '-1'

When I install 100.0, it just works ...

Here, you have an example of a savegame:
http://uploads.online-urbanus.be/c4b3e5c8015c1c63676e4cf4c8cc906d
Title: Re: Simutrans crashes loading some games
Post by: prissi on June 14, 2009, 09:13:31 pm
There is a powerbridge which has no way and thus is not found. Next nightly should load this again.

Actually there is a useful error message in the log, just before the crash ...
Title: Re: Simutrans crashes loading some games
Post by: Paretje on June 14, 2009, 09:33:21 pm
Is it a problem of the pak, or the code? (So I know what to update ;))

I got this in the simu.log file:
Code: [Select]
FATAL ERROR: planquadrat_t::rdwr()
Error while loading game: Unknown ground type '-1'
Aborting program execution ...

Please report all fatal errors to
team@64.simutrans.com
Title: Re: Simutrans crashes loading some games
Post by: prissi on June 14, 2009, 09:58:08 pm
Actually it should print: "no bridge on bridgebround at (431,311,0); try repalcement"

Anyway, next nightly should fix this.
Title: Re: Simutrans crashes loading some games
Post by: spm on June 15, 2009, 06:00:20 am
did u add any new add-on pak before?or replace some pak?or after update the simutrans,but didn't move all old pak file to the new version?
Title: Re: Simutrans crashes loading some games
Post by: prissi on June 15, 2009, 09:43:49 am
No, the problem was, that a transformer was build on the end of a powerbidge, deleting the bridgehead. But then, after reloading there was a bridgeground without a bridge. SInce there was no way on that tile, it did not suceeded in finding a default graphics for it and accessed NULL memory later.
Title: Re: Simutrans crashes loading some games
Post by: Paretje on June 15, 2009, 05:16:47 pm
prissi, how did you get that detailed information? with simutrans -log, I only get what I posted here.

Isn't that allowed anymore, or was it just a bug? In 100.0 it worked perfectly.
Title: Re: Simutrans crashes loading some games
Post by: prissi on June 15, 2009, 07:08:42 pm
It was actually never allowed, but not forbidden. Inexpected stuff was to be expected in such cases.

You get more debugmessages with -debug 3 (or even 4). However, this ought to be the default. Maybe it is not turned on in the nightlies.
Title: Re: Simutrans crashes loading some games
Post by: Paretje on June 15, 2009, 08:17:19 pm
Is this only for nightly versions? I just get this now with the debug option:
Code: [Select]
Warning: translator::load():	no basic texts for language 'cn'
Warning: translator::load(): no basic texts for language 'be'
Warning: translator::load(): no basic texts for language 'id'
Warning: translator::load(): no basic texts for language 'no'
Warning: translator::load(): no basic texts for language 'ce'
Message: grund_besch_t::register_besch(): setting raster width to 64
Message: grund_besch_t::register_besch(): setting raster width to 64
Message: register_besch(): Notice: obj Outside already defined
Message: register_besch(): Notice: obj BigLogo already defined
Warning: karte_t::create_rivers(): Too many rivers requested! (16 not constructed)
Warning: void release_focus(): Focus was already released
Warning: void release_focus(): Focus was already released
Warning: void release_focus(): Focus was already released
Warning: void release_focus(): Focus was already released
Warning: void release_focus(): Focus was already released
Warning: void release_focus(): Focus was already released
Warning: void release_focus(): Focus was already released
Warning: void release_focus(): Focus was already released
Warning: void release_focus(): Focus was already released
Warning: void release_focus(): Focus was already released
Warning: void release_focus(): Focus was already released
Warning: void release_focus(): Focus was already released
Warning: void release_focus(): Focus was already released
Warning: void release_focus(): Focus was already released
Warning: void release_focus(): Focus was already released
FATAL ERROR: planquadrat_t::rdwr()
Error while loading game: Unknown ground type '-1'
Aborting program execution ...

Please report all fatal errors to
team@64.simutrans.com
Title: Re: Simutrans crashes loading some games
Post by: prissi on June 15, 2009, 08:54:03 pm
Not sure, I get the correct error and the debugger is where is belongs.
Title: Re: Simutrans crashes loading some games
Post by: wernieman on June 17, 2009, 12:39:13 pm
OT:

No Problem for the nightly make a bigger debuglevel, because nightlys ar for bughunting

Wich do you want?
-debug 3 or even 4 ?
Title: Re: Simutrans crashes loading some games
Post by: prissi on June 17, 2009, 12:53:41 pm
3 should be fine.
Title: Re: Simutrans crashes loading some games
Post by: wernieman on June 17, 2009, 01:29:30 pm
Will be in the next nightly