Bug 1383797 - speed-dreams crashes on startup: missing datadir
Summary: speed-dreams crashes on startup: missing datadir
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: speed-dreams
Version: 24
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: MartinKG
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-11 18:44 UTC by David
Modified: 2016-10-13 11:06 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-10-13 11:06:51 UTC
Type: Bug


Attachments (Terms of Use)

Description David 2016-10-11 18:44:20 UTC
Speed dreams (version 1:2.2.1-1) crashes when launched. The datadir seems to point to the building machine.

$ speed-dreams-2 
00:00:00.000 Default  Info    Logger 'Default' created : Level threshold Debug:5
00:00:00.000 Default  Info    Date and time : 2016/10/11 20:38:19
00:00:00.000 Default  Info    Built on Linux-4.4.6-301.fc23.x86_64
00:00:00.000 Default  Info      with CMake 3.5.2, 'Unix Makefiles' generator
00:00:00.000 Default  Info      with GCC 6.0.0 compiler ('Release' configuration)
00:00:00.000 Default  Info    Current OS is Linux 4.7.4-200.fc24.x86_64 #1 SMP Thu Sep 15 18:42:09 UTC 2016 (R4.7.4, 64 bits)
00:00:00.000 Default  Info    Compiled against SDL version 2.0.4 
00:00:00.000 Default  Info    Linking against SDL version 2.0.4.
00:00:00.000 Default  Info    Speed Dreams 2.2.1 (an Open Motorsport Sim)
00:00:00.000 Default  Info    Install dir is / (from executable speed-dreams-2)
00:00:00.000 Default  Info    Parsing command line args (0)
00:00:00.000 Default  Info    User settings in /home/david/.speed-dreams-2/ (from ~/.speed-dreams-2/)
00:00:00.000 Default  Info    Libraries in /lib64/games/speed-dreams-2/ (from lib64/games/speed-dreams-2/)
00:00:00.000 Default  Info    Executables in /bin/ (from bin/)
00:00:00.000 Default  Info    Data in /share/games/speed-dreams-2/ (from share/games/speed-dreams-2/)
00:00:00.000 Default  Trace   Data dir. '/share/games/speed-dreams-2/' not run-time usable, trying source data dir.
00:00:00.000 Default  Info    Data in /builddir/build/BUILD/speed-dreams-src-base-2.2.1-1.fc24/data/ (from /builddir/build/BUILD/speed-dreams-src-base-2.2.1-1.fc24/data/)
00:00:00.000 Default  Info    Initializing random number generator for 'true randomness'
00:00:00.000 Default  Error   Could not start Speed Dreams : failed to cd to the datadir '/builddir/build/BUILD/speed-dreams-src-base-2.2.1-1.fc24/data/' (No such file or directory)

Comment 1 MartinKG 2016-10-12 12:15:03 UTC
couldn't reproduce this issue.

removed speed-dreams folder for user settings:
[martin@fc24 ~]$ rm -rf ~/.speed-dreams-2/

[martin@fc24 ~]$ speed-dreams-2 
00:00:00.000 Default  Info    Logger 'Default' created : Level threshold Debug:5
00:00:00.000 Default  Info    Date and time : 2016/10/12 14:08:29
00:00:00.000 Default  Info    Built on Linux-4.4.6-301.fc23.x86_64
00:00:00.000 Default  Info      with CMake 3.5.2, 'Unix Makefiles' generator
00:00:00.000 Default  Info      with GCC 6.0.0 compiler ('Release' configuration)
00:00:00.000 Default  Info    Current OS is Linux 4.7.6-200.fc24.x86_64 #1 SMP Mon Oct 3 20:10:24 UTC 2016 (R4.7.6, 64 bits)
00:00:00.000 Default  Info    Compiled against SDL version 2.0.4 
00:00:00.000 Default  Info    Linking against SDL version 2.0.4.
00:00:00.000 Default  Info    Speed Dreams 2.2.1 (an Open Motorsport Sim)
00:00:00.000 Default  Info    Install dir is /usr/ (from executable speed-dreams-2)
00:00:00.000 Default  Info    Parsing command line args (0)
00:00:00.000 Default  Info    User settings in /home/martin/.speed-dreams-2/ (from ~/.speed-dreams-2/)
00:00:00.000 Default  Info    Libraries in /usr/lib64/games/speed-dreams-2/ (from lib64/games/speed-dreams-2/)
00:00:00.000 Default  Info    Executables in /usr/bin/ (from bin/)
00:00:00.000 Default  Info    Data in /usr/share/games/speed-dreams-2/ (from share/games/speed-dreams-2/)
00:00:00.000 Default  Info    Initializing random number generator for 'true randomness'
00:00:00.000 Default  Trace   Loaded /usr/share/games/speed-dreams-2/version.xml (0x56243c846140)

Comment 2 David 2016-10-12 12:24:05 UTC
I don't have the folder ~/.speed-dreams-2/.


The only difference I see is the install dir, for me it is / but for you it is /usr/

This is the first time I install it, could it be that an older version left some configuration file in your system but is no longer shipped?

Comment 3 MartinKG 2016-10-12 13:45:09 UTC
there a no files left on my machine from a earlier installation.

what happens if you start SD2 with /usr/bin/speed-dreams-2 in your home folder
home/david/

what is your user id ?
martin@fc24 ~]$ id
uid=1000(martin) gid=1000(martin) groups=1000(martin),10(wheel),135(mock) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023

after the first start, the folder for the user settings was created with this content:
[martin@fc24 ~]$ ls -R .speed-dreams-2/
.speed-dreams-2/:
config  drivers  version.xml

.speed-dreams-2/config:
graph.xml  logging.xml  raceengine.xml  raceman  screen.xml  sound.xml

.speed-dreams-2/config/raceman:
career-36GP.xml       career_ls1.xmls          championship-mp5.xml        championship.xml  quickrace.xml              singleevent-ls-gt1.xml
career-supercars.xml  career_supercars.xmls    championship-mpa1.xml       extra             singleevent-36gp.xml       singleevent-mp5.xml
career_36GP.xmls      championship-36gp.xml    championship-supercars.xml  networkrace.xml   singleevent-challenge.xml
career_MPA1.xmls      championship-ls-gt1.xml  championship-trb1.xml       practice.xml      singleevent-endurance.xml

.speed-dreams-2/config/raceman/extra:
skill.xml

.speed-dreams-2/drivers:
human  networkhuman

.speed-dreams-2/drivers/human:
car.xml  human.xml  preferences.xml

.speed-dreams-2/drivers/networkhuman:
car.xml  networkhuman.xml  preferences.xml

Comment 4 David 2016-10-12 14:02:30 UTC
(In reply to MartinKG from comment #3)
> there a no files left on my machine from a earlier installation.
> 
> what happens if you start SD2 with /usr/bin/speed-dreams-2 in your home
> folder
> home/david/

Aha! That did the trick. So, /bin/speed-dreams-2 is wrong and shadowing the one in /usr/bin/

Comment 5 MartinKG 2016-10-13 11:06:51 UTC
please start SD2 via desktop icon, that uses the correct path /usr/bin/speed-dreams-2


Note You need to log in before you can comment on or make changes to this bug.