rimpy-custom / RimPy

Mod Manager For Rimworld game
399 stars 48 forks source link

Rimpy Crashes when clicking setup steam db #34

Open DerekCL opened 2 years ago

DerekCL commented 2 years ago

Actual Result

Given I'm a linux user that is setting up Rimpy for the first time When I click on any setup game folder button or setup SteamCMD button. Then It crashes rimpy

Expected Result:

Given I'm a linux user that is setting up Rimpy for the first time When I click on any setup game folder button or setup SteamCMD button. Then It should not crash and function normally

Steps to reproduce 1) download https://github.com/rimpy-custom/RimPy/releases/tag/1.2.4.21 linux release 2) extract folder in rimworld mods folder 3) cd into directory 4) run ./RimPy (alternatively you can chmod -x and then ./RimPy) 5) click on the 3 dots (...) on the right side of the app 6) the app should crash

debugging info

❯ ./RimPy Qt WebEngine resources not found at //resources. Trying parent directory... Qt WebEngine resources not found at /. Trying application directory... Installed Qt WebEngine locales directory not found at location /translations/qtwebengine_locales. Trying application directory... Qt WebEngine resources not found at //resources. Trying parent directory... Qt WebEngine resources not found at /. Trying application directory... Installed Qt WebEngine locales directory not found at location /translations/qtwebengine_locales. Trying application directory... Qt WebEngine resources not found at //resources. Trying parent directory... Qt WebEngine resources not found at /. Trying application directory... Installed Qt WebEngine locales directory not found at location /translations/qtwebengine_locales. Trying application directory... Qt WebEngine resources not found at //resources. Trying parent directory... Qt WebEngine resources not found at /. Trying application directory... Installed Qt WebEngine locales directory not found at location /translations/qtwebengine_locales. Trying application directory... 0.916886215993145 js: Uncaught ReferenceError: qt is not defined js: Failed to report error: ReportError() was called without an error to report. js: Uncaught TypeError: Cannot read property 'lastChild' of undefined js: Failed to report error: ReportError() was called without an error to report. js: Uncaught TypeError: Cannot read property 'parentElement' of null js: Failed to report error: ReportError() was called without an error to report. js: Uncaught TypeError: Cannot read property 'BIsDirty' of undefined js: Failed to report error: ReportError() was called without an error to report. js: Failed to report error: ReportError() was called without an error to report. js: Uncaught TypeError: Cannot read property 'lastChild' of undefined https://steamcommunity.com/sharedfiles/filedetails/?id=2619214952 (RimPy:49739): Gtk-WARNING : 18:00:30.704: Could not load a pixbuf from icon theme. This may indicate that pixbuf loaders or the mime database could not be found. Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /usr/share/icons/Pop/16x16/status/image-missing.png: Unrecognized image file format (gdk-pixbuf-error-quark, 3) Bail out! Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /usr/share/icons/Pop/16x16/status/image-missing.png: Unrecognized image file format (gdk-pixbuf-error-quark, 3) [1] 49739 IOT instruction (core dumped) ./RimPy

Rimpy Version 1.2.4.21

System Info OS: Pop!_OS 21.10 x86_64 Kernel: 5.15.8-76051508-generic Uptime: 16 hours, 3 mins Packages: 2840 (dpkg), 31 (brew), 17 Shell: zsh 5.8 Resolution: 1920x1080, 1920x1080, 192 DE: GNOME 40.5 WM: Mutter WM Theme: Pop Theme: Pop-dark [GTK2/3] Icons: Pop [GTK2/3] Terminal: gnome-terminal CPU: AMD Ryzen 9 5900X (24) @ 3.700GH GPU: NVIDIA GeForce GTX 1080 Ti Memory: 11035MiB / 64284MiB

WheezieMcriblet commented 2 years ago

if you go to /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/ there should be a file called loaders.cache, is there anything in there?

LicoMonch commented 2 years ago

Check if libpixbufloader-png.so is in /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/ If not install libgdk-pixbuf-2.0-0 If it is there, run 'gdk-pixbuf-query-loaders --update-cache' as super-user.

(the paths and package names are from debian, I hope that fits to Pop! OS as this is derivated from DEB based Ubuntu)

rimpy-custom commented 1 year ago

May you test with new RimPy pre-release?

nsarrault96 commented 1 year ago

I've been experiencing the same issue with the same failure on Endeavour OS on both the latest stable linux build and the pre-release. For anyone else experiencing the issue I did find a work around.

It appears to be an issue with the dialog windows to setup the paths so RimPy works fine if you bypass that and setup the paths in the config file manually. Maybe this will help narrow down the issue as well.

  1. Launch RimPy
  2. Click the "Settings" button to open the settings folder
  3. Open config.ini in a text editor
  4. Manually enter the correct paths for each line under [Folders] example below just replace "yourUserName" with your actual username
  5. Save and close the config.ini
  6. Close and re-launch RimPy

[Folders] Config folder = /home/"yourUserName"/.config/unity3d/Ludeon Studios/RimWorld by Ludeon Studios/Config Game folder = /home/"yourUserName"/.local/share/Steam/steamapps/common/RimWorld Local mods = /home/"yourUserName"/.local/share/Steam/steamapps/common/RimWorld/Mods Expansions = /home/"yourUserName"/.local/share/Steam/steamapps/common/RimWorld/Data Steam mods = /home/"yourUserName"/.local/share/Steam/steamapps/workshop/content/294100