The International Simutrans Forum

Community => Simutrans Help Center => Topic started by: takeshita_kenji on September 13, 2010, 03:17:08 am

Title: Simutrans Crash, Loading Saved Game: "FATAL ERROR: fabrik_t::rdwr()"
Post by: takeshita_kenji on September 13, 2010, 03:17:08 am
I've seen this happen a lot: I've been playing a game for more than sixty game years, then when I try to load it Simutrans crashes.  I'm using the Simutrans nightly 102.3-3764 with openpak128 build 1044.

Here's the relevant error output to the console:
Code: [Select]
Calculating textures ...done
FATAL ERROR: fabrik_t::rdwr()
no besch for Sandquarry
It happens both when I use the same version I used to save it and when I upgrade to a later version.

Within the pak128/ directory that contains openpak128, the sand quarry file does exist:
Code: [Select]
% find -iname '*quarr*'
./factory.Stonequarry.pak
./factory.sand_quarry_dd.pak
I'm not too concerned about recovering this game, but is there a way to prevent this from happening in the future?  I appreciate any help.
Title: Re: Simutrans Crash, Loading Saved Game: "FATAL ERROR: fabrik_t::rdwr()"
Post by: Dwachs on September 13, 2010, 08:05:51 am
The factory factory.sand_quarry_dd.pak is called 'sand_quarry_dd' internally, not 'Sandquarry'. Apparently the pak-file for Sandquarry is missing.

Did you change your pakset recently? I mean,  is the pakset that you use to load the game the same as when you saved the game?
Title: Re: Simutrans Crash, Loading Saved Game: "FATAL ERROR: fabrik_t::rdwr()"
Post by: VS on September 13, 2010, 11:10:36 am
The old sand quarry has been removed. It should be part of the compatibility pack. You'll have to add it manually...
Title: Re: Simutrans Crash, Loading Saved Game: "FATAL ERROR: fabrik_t::rdwr()"
Post by: takeshita_kenji on September 13, 2010, 06:30:22 pm
This game was started with the new openpak128, though.  Why would a game started with this openpak128 version want the old Sandquarry?
Title: Re: Simutrans Crash, Loading Saved Game: "FATAL ERROR: fabrik_t::rdwr()"
Post by: VS on September 13, 2010, 07:03:49 pm
No idea. Ty adding it and look for it?
Title: Re: Simutrans Crash, Loading Saved Game: "FATAL ERROR: fabrik_t::rdwr()"
Post by: takeshita_kenji on September 14, 2010, 11:28:52 pm
It's not part of the compatibility set on the pak128 site, but I found an old install of 0.99.14 that has it.  After copying it, it complained about a few other missing items, so I did a cp -n of the pak128 0.99.14.  Now Simutrans segfaults when I load the game:
Code: [Select]
Calculating textures ...done
Creating cities ...
Distributing 1 tourist attractions ...
Preparing startup ...
Loading BDF font 'font/Prop-Latin1.bdf'
Loading BDF font font/Prop-Latin1.bdf with 256 characters
Show banner ...
Running world, pause=0, fast forward=0 ...
World destroyed.
Calculating textures ...done
zsh: segmentation fault  simutrans
Useless stacktrace:
Code: [Select]
Calculating textures ...done
Creating cities ...
Distributing 1 tourist attractions ...
Preparing startup ...
Loading BDF font 'font/Prop-Latin1.bdf'
Loading BDF font font/Prop-Latin1.bdf with 256 characters
Show banner ...
Running world, pause=0, fast forward=0 ...
World destroyed.
Calculating textures ...done

Program received signal SIGSEGV, Segmentation fault.
0x000000000042bdb6 in ?? ()
(gdb) where
#0  0x000000000042bdb6 in ?? ()
#1  0x0000000000478024 in ?? ()
#2  0x0000000000452601 in ?? ()
#3  0x0000000000443b4a in ?? ()
#4  0x0000000000413dd3 in ?? ()
#5  0x000000000058625c in ?? ()
#6  0x00000000005852e7 in ?? ()
#7  0x00000000005e3f93 in ?? ()
#8  0x00000000005e2ada in ?? ()
#9  0x00000000005006da in ?? ()
#10 0x0000000000518af5 in ?? ()
#11 0x00000000004a1417 in ?? ()
#12 0x00000000004a03bf in ?? ()
#13 0x00000000004e4ea8 in ?? ()
#14 0x00000000004ac42c in ?? ()
#15 0x00000000004e4ea8 in ?? ()
#16 0x00000000004e6787 in ?? ()
#17 0x000000000051923d in ?? ()
#18 0x00000000005ceaf2 in ?? ()
#19 0x00000000005e83ff in ?? ()
#20 0x00000000005a1bae in ?? ()
#21 0x000000000061965e in ?? ()
#22 0x00007ffff67add2d in __libc_start_main () from /lib/libc.so.6
#23 0x0000000000404639 in ?? ()
#24 0x00007fffffffdd18 in ?? ()
#25 0x000000000000001c in ?? ()
#26 0x0000000000000001 in ?? ()
#27 0x00000000009a6900 in ?? ()
#28 0x0000000000000000 in ?? ()
Title: Re: Simutrans Crash, Loading Saved Game: "FATAL ERROR: fabrik_t::rdwr()"
Post by: VS on September 15, 2010, 06:51:11 am
Hmm. Looks like I should update the compatibility pack again...
Title: Re: Simutrans Crash, Loading Saved Game: "FATAL ERROR: fabrik_t::rdwr()"
Post by: takeshita_kenji on September 15, 2010, 02:38:55 pm
A few couple missing: sandquarry and electronics factory.  I'm not sure what to make of the segfault, though.
Title: Re: Simutrans Crash, Loading Saved Game: "FATAL ERROR: fabrik_t::rdwr()"
Post by: MHD on September 27, 2010, 05:19:52 pm
...until the compatibility pak is finished, you can look some older version for the file

"factories-unfree.all.pak".

When you add that one, it should work (it is then no more open-source, anyway).