Segmentation Fault on openTTD startup

Got a problem with OpenTTD? Find some help here.

Moderator: OpenTTD Developers

Post Reply
starseeka
Engineer
Engineer
Posts: 3
Joined: 29 Dec 2004 18:07

Segmentation Fault on openTTD startup

Post by starseeka »

Hey everyone,
it runs, shows the opening screen, and then crashes. The terminal says segmentation error. I am running Fedora core 2 1 Ghz Pent III
User avatar
bociusz
Traffic Manager
Traffic Manager
Posts: 131
Joined: 24 Jul 2004 11:04
Location: Hungary
Contact:

Re: Segmentation Fault on openTTD startup

Post by bociusz »

starseeka wrote:Hey everyone,
it runs, shows the opening screen, and then crashes. The terminal says segmentation error. I am running Fedora core 2 1 Ghz Pent III
try to delete openttd.cfg (or rename it to openttd.cfg.bak)
starseeka
Engineer
Engineer
Posts: 3
Joined: 29 Dec 2004 18:07

Post by starseeka »

I couldn't find any file named openttd.cfg. Are there any other suggestions?
User avatar
jacke
Director
Director
Posts: 533
Joined: 19 May 2002 14:47
Location: Sweden

Post by jacke »

I'm actually having the same problem. And I can remember this problem has been reported here before (long before 0.3.5 though), just been to lazy to dig for it...

Edit: Found it here, it wasn't very long time ago it was posted.
http://www.tt-forums.net/viewtopic.php? ... tion+fault
It works the same for me, that I can play if I start a new game quick as hell (like 1,2 sec). I'm running the game in Linux too.
starseeka
Engineer
Engineer
Posts: 3
Joined: 29 Dec 2004 18:07

Post by starseeka »

It worked I went to train_cmd.c and changed the line
"MaybeRenewVehicle(v, EstimateTrainCost(RailVehInfo(v->engine_type))); "
to
"MaybeRenewVehicle(v, EstimateTrainCost(&_rail_vehicle_info[v->engine_type])); "
saved it typed make, and it runs now.
User avatar
jacke
Director
Director
Posts: 533
Joined: 19 May 2002 14:47
Location: Sweden

Post by jacke »

Yeah, that worked for me too...
User avatar
ucho
Engineer
Engineer
Posts: 42
Joined: 05 May 2004 19:36
Location: 3city

Post by ucho »

Tried compiling with UNIX=1? It works then :D
johs
Engineer
Engineer
Posts: 1
Joined: 04 Jan 2005 11:45

Post by johs »

I also had this problem. It was solved by optimizing for athlon-xp, if I remember right. The bug only showed when optimizing for i586.

Something is still wrong, though, and should probably be fixed instead of finding these small hacks.
User avatar
Observer
Logo Creator
Posts: 2189
Joined: 19 Nov 2002 12:21
Location: Zoetermeer, The Netherlands
Contact:

Post by Observer »

Let me join your little club... I had the same error, but when I upgraded my linux distro to the new versions (update world)... It was suddenly gone.
Never fear, I is here...
Post Reply

Return to “OpenTTD Problems”

Who is online

Users browsing this forum: No registered users and 13 guests