News:

The Forum Rules and Guidelines
Our forum has Rules and Guidelines. Please, be kind and read them ;).

Segmentation Fault in saved game

Started by kabhijit, March 30, 2010, 09:58:42 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

kabhijit

Hi...

I'm running Simutrans 102.2.2 on Linux*. The saved game is quite big, 256 x 256, with two AI companies running. My net bank balance has increased to 900,000C. Game crashes at random with the message "segmentation fault"

Any clues?



* Ubuntu 9.10;  2.6.31-20-generic Kernel, all updates installed.

vilvoh

#1
In Simutrans world, a 256x256 map is considered as a small one, so that shouldn't be the problem. Which are the initial settings of the map (industries, cities, citizens, rivers, etc...)? please post here the whole error message and try to run again the map with Simutrans in debug mode

simutrans -log 0 -debug 3

Then, post here the content of simulog file.

Escala Real...a blog about Simutrans in Spanish...

prissi

debugmode is actually

simutrans -log 1 -debug 3


But I am not sure if Ubuntu compiles with Debugmode.

kabhijit

#3
I ran ./Documents/simutrans/simutrans -log 1 -debug 3 > 20100331.log

Last few lines in terminal were...

set_zoom_factor() : set 3 (3/4)
set_zoom_factor() : set 4 (2/3)
set_zoom_factor() : set 5 (1/2)
set_zoom_factor() : set 6 (1/3)
set_zoom_factor() : set 7 (1/4)
Message: karte_t::interactive_event():   Keyboard event with code 0 '?'
Message: karte_t::interactive_event():   Keyboard event with code 0 '?'
set_zoom_factor() : set 6 (1/3)
set_zoom_factor() : set 5 (1/2)
set_zoom_factor() : set 6 (1/3)
set_zoom_factor() : set 7 (1/4)
Message: wkz_headquarter():   building headquarter at (275,220)
Segmentation fault





And heres the file...

mod note: Comments merged. Please do not double-post. Edit your last comment instead.
~vilvoh

prissi

Please compile with debug on. THis is a release version lacking all debug messages. No clue what went wrong.

whoami

#5
Quote from: kabhijit on March 30, 2010, 09:58:42 AM
Game crashes at random with the message "segmentation fault"
Could you please narrow down "random" to something more specific, like loading the savegame, rotating it, placing a building, starting a vehicle etc.?

Quote"Message: wkz_headquarter():   building headquarter at (275,220)
Segmentation fault"
From the posted logfile:
QuoteCreating cities ...
simcity::  placed city 0 its= 0
simcity::  number of iterations 0
Distributing 1 tourist attractions ...
(Two different events, as it seems - "Segmentation fault" will not show up in the logfile.)

It may be necessary to upload/publish your savegame to have it checked by someone else, preferably someone with ST on Linux (I don't have that).

EDIT: Please see [Guidelines] How to post a Bug Report for further information, especially on how to try with a newer version of Simutrans.

kabhijit

#6
1. I have uploaded the saved game to a website-
http://www.cedt.iisc.ernet.in/people/students/kabhijit/st/

2. I used the Windows version of 102.2.2 - with identical results. The same error - Segmentation Fault.

3. The crash is not random. I should have said that after I load the savegame, the game runs for less than a minute before it crashes. This happens almost irrespective of what i do. In fact even when i do _nothing_ the game crashes.

4. How do i recompile with Debug options?

5. I also tried with the nightly build - version 102.3.3144; and it acts exactly the same - crashing with the segmentation fault.

I will try to get the debug version and post the results.
Thanks very much!

prissi

Thank you, a savegame help much with debugging.

The AI failed to build a headquarter at the same palce after rotation. Fixed with next nightly.

kabhijit

Thanks. Game now works on the 1st April Nightly build.

Regards
Abhijit