The International Simutrans Forum

 

Author Topic: [linux] error when starting  (Read 522 times)

0 Members and 1 Guest are viewing this topic.

Offline Yona-TYT ve

  • Devotee
  • *
  • Posts: 1171
    • Simutrans-BLOG
  • Languages: ES
[linux] error when starting
« on: May 06, 2018, 07:19:21 PM »
I have compiled simutrans from github, but it does not work for me.  :-[

This is the debugging:

Code: [Select]
[yonatan@localhost ~]$ gdb '/home/yonatan/Escritorio/simutrans/sim'
GNU gdb (GDB) Fedora 8.1-15.fc28
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-redhat-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /home/yonatan/Escritorio/simutrans/sim...done.
(gdb) run
Starting program: /home/yonatan/Escritorio/simutrans/sim
Missing separate debuginfos, use: dnf debuginfo-install glibc-2.27-8.fc28.i686
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
Use work dir /home/yonatan/Escritorio/simutrans/
Reading low level config data ...
parse_simuconf() at config/simuconf.tab: Reading simuconf.tab successful!
warning: Error reading shared library list entry at 0xffffaf30
warning: Error reading shared library list entry at 0x4610
warning: Error reading shared library list entry at 0x4f30
warning: Error reading shared library list entry at 0x5270
warning: Error reading shared library list entry at 0x55b0
warning: Error reading shared library list entry at 0x58e0
warning: Error reading shared library list entry at 0x5d00
warning: Error reading shared library list entry at 0xffffaf30
warning: Error reading shared library list entry at 0x6780
warning: Error reading shared library list entry at 0x6a00
warning: Error reading shared library list entry at 0x7180
warning: Error reading shared library list entry at 0x7410
warning: Error reading shared library list entry at 0x7690
warning: Error reading shared library list entry at 0x7910
warning: Error reading shared library list entry at 0x7b90
warning: Error reading shared library list entry at 0xffffcbb0
warning: Error reading shared library list entry at 0xffff9270
warning: Error reading shared library list entry at 0xffffaa00
warning: Error reading shared library list entry at 0x5370
SDL Driver: x11
Preparing display ...
Loading font 'font/prop.fnt'
font/prop.fnt successfully loaded as old format prop font!
Init done.
parse_colours() at config/simuconf.tab: parse_simuconf() at pak/config/simuconf.tab:
Reading simuconf.tab successful!
warning: Error reading shared library list entry at 0xffffddf0
[New Thread 0xa43feb40 (LWP 10490)]
[New Thread 0x941ffb40 (LWP 10491)]
Reading compatibility sound data ...
Loading BDF font 'cyr.bdf'
Reading city configuration ...
Reading speedbonus configuration ...
Reading menu configuration ...
Reading object data from pak/...
Reading menu configuration ...
Loading BDF font 'cyr.bdf'
Loading BDF font 'cyr.bdf'
Loading BDF font 'cyr.bdf'
Loading BDF font 'cyr.bdf'
Loading BDF font 'cyr.bdf'
Loading BDF font 'cyr.bdf'
Loading BDF font 'cyr.bdf'
Loading BDF font 'cyr.bdf'
Loading BDF font 'cyr.bdf'
Loading BDF font 'cyr.bdf'
Loading BDF font 'cyr.bdf'
Loading BDF font 'cyr.bdf'
Loading BDF font 'm+10r.bdf'
Loading BDF font 'cyr.bdf'
Loading BDF font 'cyr.bdf'
Error: Cannot open 'wenquanyi_9pt.bdf'
Loading BDF font 'cyr.bdf'
Loading BDF font 'Prop-Latin1.bdf'
Loading BDF font 'cyr.bdf'
Loading BDF font 'cyr.bdf'
Loading BDF font 'cyr.bdf'
Loading BDF font 'cyr.bdf'
Loading BDF font 'Prop-Latin1.bdf'
Loading BDF font 'cyr.bdf'
Loading BDF font 'cyr.bdf'
Loading BDF font 'cyr.bdf'
Error: Cannot open 'wenquanyi_9pt.bdf'
Loading BDF font 'cyr.bdf'
Loading BDF font 'cyr.bdf'
Loading BDF font 'cyr.bdf'
Loading BDF font 'cyr.bdf'
Loading BDF font 'cyr.bdf'
Loading BDF font 'cyr.bdf'
Loading BDF font 'cyr.bdf'
Loading BDF font 'cyr.bdf'
Loading BDF font 'cyr.bdf'
Loading BDF font 'cyr.bdf'
Midi disabled ...
Calculating textures ...done
Creating cities ...
Creating cities: 1

Thread 1 "sim" received signal SIGSEGV, Segmentation fault.
scenario_t::is_tool_allowed (this=0x0, player=0x0, tool_id=4111, wt=2)
    at dataobj/scenario.cc:457
457    dataobj/scenario.cc: No existe el fichero o el directorio.
Missing separate debuginfos, use: dnf debuginfo-install dbus-libs-1.12.8-1.fc28.i686 flac-libs-1.3.2-7.fc28.i686 libgcc-8.1.1-1.fc28.i686 libstdc++-8.1.1-1.fc28.i686 mesa-dri-drivers-18.0.2-1.fc28.i686 mesa-libGL-18.0.2-1.fc28.i686 mesa-libglapi-18.0.2-1.fc28.i686 zlib-1.2.11-8.fc28.i686
(gdb) where
#0  scenario_t::is_tool_allowed (this=0x0, player=0x0, tool_id=4111, wt=2)
    at dataobj/scenario.cc:457
#1  0x08051b2d in bridge_builder_t::fill_menu(tool_selector_t*, waytype_t, short) () at bauer/../simworld.h:1854
#2  0x0830560d in toolbar_t::update (this=0x9220620, player=0x8d3d670)
    at simmenu.cc:865
#3  0x0830a413 in tool_t::update_toolbars () at simmenu.cc:739
#4  0x08351d5b in karte_t::enlarge_map (this=0x91b1bd0, sets=0x91b1bd0,
    h_field=0x0) at simworld.cc:1982
#5  0x083538e6 in karte_t::init (this=0x91b1bd0, sets=0xbfffce08, h_field=0x0)
    at simworld.cc:1282
#6  0x08301bbf in simu_main (argc=1, argv=0xbfffe7a4) at simmain.cc:1218
#7  0x0831546d in sysmain (argc=1, argv=0xbfffe7a4) at simsys.cc:1003
#8  0x08050f7d in main (argc=1, argv=0xbfffe7a4) at simsys_s2.cc:793
(gdb)

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4533
  • Languages: EN, DE, AT
Re: [linux] error when starting
« Reply #1 on: May 07, 2018, 06:25:56 AM »
This is strange. Please try whether 'make clean; make' fixes this.

The player parameter of scenario_t::is_tool_allowed should not be NULL, since the exact same pointer is used as parameter in the call to toolbar_t::update.  Also the scenario should not be NULL.

Offline Yona-TYT ve

  • Devotee
  • *
  • Posts: 1171
    • Simutrans-BLOG
  • Languages: ES
Re: [linux] error when starting
« Reply #2 on: May 25, 2018, 06:41:29 PM »
Solved, thanks! .  8)