Skip to main content
Topic: Simutrans Crash, Loading Saved Game: "FATAL ERROR: fabrik_t::rdwr()" (Read 19177 times) previous topic - next topic

Simutrans Crash, Loading Saved Game: "FATAL ERROR: fabrik_t::rdwr()"

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.

Re: Simutrans Crash, Loading Saved Game: "FATAL ERROR: fabrik_t::rdwr()"

Reply #1
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?
Parsley, sage, rosemary, and maggikraut.

Re: Simutrans Crash, Loading Saved Game: "FATAL ERROR: fabrik_t::rdwr()"

Reply #2
The old sand quarry has been removed. It should be part of the compatibility pack. You'll have to add it manually...

My projects... Tools for messing with Simutrans graphics. Graphic archive - templates and some other stuff for painters. Development logs for most recent information on what is going on. And of course pak128!

Re: Simutrans Crash, Loading Saved Game: "FATAL ERROR: fabrik_t::rdwr()"

Reply #3
This game was started with the new openpak128, though.  Why would a game started with this openpak128 version want the old Sandquarry?

Re: Simutrans Crash, Loading Saved Game: "FATAL ERROR: fabrik_t::rdwr()"

Reply #4
No idea. Ty adding it and look for it?

My projects... Tools for messing with Simutrans graphics. Graphic archive - templates and some other stuff for painters. Development logs for most recent information on what is going on. And of course pak128!

Re: Simutrans Crash, Loading Saved Game: "FATAL ERROR: fabrik_t::rdwr()"

Reply #5
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 ?? ()

Re: Simutrans Crash, Loading Saved Game: "FATAL ERROR: fabrik_t::rdwr()"

Reply #6
Hmm. Looks like I should update the compatibility pack again...

My projects... Tools for messing with Simutrans graphics. Graphic archive - templates and some other stuff for painters. Development logs for most recent information on what is going on. And of course pak128!

Re: Simutrans Crash, Loading Saved Game: "FATAL ERROR: fabrik_t::rdwr()"

Reply #7
A few couple missing: sandquarry and electronics factory.  I'm not sure what to make of the segfault, though.

 

Re: Simutrans Crash, Loading Saved Game: "FATAL ERROR: fabrik_t::rdwr()"

Reply #8
...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).