aliens

Author Topic: [SOLVED] Crash when launching via launcher on ubuntu mate 18.04  (Read 3041 times)

xcomfan

  • Guest
Hello there, here is anothe openxcom file to investigate...i've created a launcher on desktop to start xpiratez, but when i click on it crashes.

the .desktop file contains:

Code: [Select]
[Desktop Entry]
Name=OpenXcom Extended
Exec=/home/mena/OpenXcom/OpenXcomEx
Icon=/home/mena/OpenXcom/common/openxcom.png
Terminal=true
Type=Application
StartupNotify=true
Encoding=UTF-8

generating the following log:

Code: [Select]
[12-05-2020_08-51-20] [INFO] OpenXcom Version: Extended 6.4.2 (v2020-03-15)
[12-05-2020_08-51-20] [INFO] Platform: Linux
[12-05-2020_08-51-20] [INFO] Data folder is:
[12-05-2020_08-51-20] [INFO] Data search is:
[12-05-2020_08-51-20] [INFO] - /home/mena/.local/share/openxcom/
[12-05-2020_08-51-20] [INFO] - /usr/share/mate/openxcom/
[12-05-2020_08-51-20] [INFO] - /usr/local/share/openxcom/
[12-05-2020_08-51-20] [INFO] - /usr/share/openxcom/
[12-05-2020_08-51-20] [INFO] - /var/lib/snapd/desktop/openxcom/
[12-05-2020_08-51-20] [INFO] - /usr/local/share/openxcom/
[12-05-2020_08-51-20] [INFO] - /usr/share/openxcom/
[12-05-2020_08-51-20] [INFO] - ./
[12-05-2020_08-51-20] [INFO] User folder is: /home/mena/.local/share/openxcom/
[12-05-2020_08-51-20] [INFO] Config folder is: /home/mena/.config/openxcom/
[12-05-2020_08-51-20] [INFO] Options loaded successfully.
[12-05-2020_08-51-20] [ERROR] FileMap::mapExtResources(common, common): external resources not found.
[12-05-2020_08-51-20] [ERROR] VFS::map_common(): failed to map 'common'
[12-05-2020_08-51-20] [INFO] SDL initialized successfully.
[12-05-2020_08-51-20] [INFO] SDL_mixer initialized successfully.
[12-05-2020_08-51-20] [FATAL] FileRecord::at(openxcom.png): requested file not found.
[12-05-2020_08-51-20] [FATAL] A fatal error has occurred: FileRecord::at(openxcom.png): requested file not found.
[12-05-2020_08-51-20] [FATAL] /home/mena/OpenXcom/OpenXcomEx(OpenXcom::CrossPlatform::stackTrace(void*)+0x36) [0x5556af71d8b6]
[12-05-2020_08-51-20] [FATAL] /home/mena/OpenXcom/OpenXcomEx(OpenXcom::CrossPlatform::crashDump(void*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)+0x477) [0x5556af71e457]
[12-05-2020_08-51-20] [FATAL] /home/mena/OpenXcom/OpenXcomEx(exceptionLogger()+0x75) [0x5556af55c8b5]
[12-05-2020_08-51-20] [FATAL] /usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x92ae6) [0x7f1c0d81fae6]
[12-05-2020_08-51-20] [FATAL] /usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x92b21) [0x7f1c0d81fb21]
[12-05-2020_08-51-20] [FATAL] /usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x92d54) [0x7f1c0d81fd54]
[12-05-2020_08-51-20] [FATAL] /home/mena/OpenXcom/OpenXcomEx(OpenXcom::FileMap::at(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)+0x16e) [0x5556af72541e]
[12-05-2020_08-51-20] [FATAL] /home/mena/OpenXcom/OpenXcomEx(OpenXcom::FileMap::getRWops(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)+0x9) [0x5556af725499]
[12-05-2020_08-51-20] [FATAL] /home/mena/OpenXcom/OpenXcomEx(OpenXcom::CrossPlatform::setWindowIcon(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)+0x9) [0x5556af717479]
[12-05-2020_08-51-20] [FATAL] /home/mena/OpenXcom/OpenXcomEx(OpenXcom::Game::Game(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)+0x107) [0x5556af73ce27]
[12-05-2020_08-51-20] [FATAL] /home/mena/OpenXcom/OpenXcomEx(main+0x11d) [0x5556af53a65d]
[12-05-2020_08-51-20] [FATAL] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7) [0x7f1c0ce07b97]
[12-05-2020_08-51-20] [FATAL] /home/mena/OpenXcom/OpenXcomEx(_start+0x2a) [0x5556af54103a]
[12-05-2020_08-51-24] [FATAL] OpenXcom has crashed: FileRecord::at(openxcom.png): requested file not found.
Log file: /home/mena/.local/share/openxcom/openxcom.log
If this error was unexpected, please report it on OpenXcom forum or discord.
The following can help us solve the problem:
1. a saved game from just before the crash (helps 98%)
2. a detailed description how to reproduce the crash (helps 80%)
3. a log file (helps 10%)
4. a screenshot of this error message (helps 5%)

meanwhile, if i go int he directory and start in the terminal by typing:

Code: [Select]
./OpenXcomEx
it launches.

There is also a screenshot attached. Any solution please?
« Last Edit: May 12, 2020, 10:43:37 am by xcomfan »

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9091
    • View Profile
Re: Crash when launching via launcher on ubuntu mate 18.04
« Reply #1 on: May 12, 2020, 10:28:08 am »
you need to specify the working directory too, if that's a thing in linux

so that the game runs in the same directory as where the executable is located

xcomfan

  • Guest
Re: Crash when launching via launcher on ubuntu mate 18.04
« Reply #2 on: May 12, 2020, 10:39:08 am »
yes, forgot to add to taht file the following line:

Code: [Select]
Path=/home/mena/OpenXcom/
but it also opens and keep opened also a mini-windows as the screenshot attached. To get the rif of it repplace the tre to false value in

Code: [Select]
Terminal=
« Last Edit: May 12, 2020, 10:44:18 am by xcomfan »

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9091
    • View Profile
Re: [SOLVED] Crash when launching via launcher on ubuntu mate 18.04
« Reply #3 on: May 12, 2020, 10:44:17 am »
most likely yes, but I'm no linux expert

xcomfan

  • Guest
Re: [SOLVED] Crash when launching via launcher on ubuntu mate 18.04
« Reply #4 on: May 12, 2020, 10:45:35 am »
most likely yes, but I'm no linux expert

So do I, but thanks, solved! Lastly, forgot, in oxce 6.4.2.1 if in the file openxcom.cfg the value playIntro is not set to false, game will complain about a GMINTRO01 file not found. It happens only in linux build, just tested.
« Last Edit: May 12, 2020, 10:47:47 am by xcomfan »