modrinth / code

The Modrinth monorepo containing all code which powers Modrinth!
https://modrinth.com
Other
988 stars 187 forks source link

Modrinth app won’t launch after updating #2289

Open twigtarsier opened 3 months ago

twigtarsier commented 3 months ago

Please confirm the following.

What version of the Modrinth App are you using?

I can’t open the app so I am unable to check the exact version but I just updated so it should be the latest one

What operating systems are you seeing the problem on?

Linux

Describe the bug

When I try to open the Modrinth App, it does not open. If I try to open it through the terminal with flatpak run com.modrinth.ModrinthApp it states this: ’Gtk-Message: 21:46:58.160: Failed to load module ”xapp-gtk3-module”’

Steps to reproduce

  1. Try to open Modrinth App
  2. See how it fails

Expected behavior

The app should open

Additional context

I use Linux Mint 21.3 Cinnamon

Norbiros commented 3 months ago

Try installing xapp:

sudo apt install xapp

or:

sudo apt install xapp-sn-watcher libxapp-gtk3-module
centuryboy774 commented 3 months ago

I'm also using Linux, specifically Fedora 40, and it works perfectly for me. While I can't offer direct help, I have a few suggestions that might be useful:

System Update: Have you updated your system recently? It might seem trivial, but sometimes outdated libraries or dependencies can cause issues.
AppImage: Have you tried using the AppImage version of the application? That's what I've been using, and it works flawlessly.

If these suggestions don't help, it's possible there might be an error in one of your commands. If you're open to it, you could consider switching to Fedora 40, as that's what I'm using, and it works without any problems. I hope you're able to resolve the issue soon!

Alquas commented 2 months ago

Are you using the flatpak version of the app? I am on LMDE 6 and have the same problem Maybe this is specific to Linux Mint but not sure

Try installing xapp:

sudo apt install xapp

or:

sudo apt install xapp-sn-watcher libxapp-gtk3-module

From what I was able to find online, the error message isn't related to the app stopping. and is due to the flatpak accessing the GTK3_MODULES environment variable. (You can get rid of the message by running unset GTK3_MODULES, but this doesn't fix the app not starting)

Looking at the logs, the real problem seam to be the following:

ERROR theseus_gui: Error registering deep link handler: No such file or directory (os error 2)
twigtarsier commented 2 months ago

Yes, I am using the flatpak version. I tried the .deb too but it is not starting either

Alquas commented 2 months ago

With the .deb version I get another error because of the program looking for libssl (and libcrypto) 1.1 where system package is version 3

The appimage won't start either, with yet another seamingly unrelated error:

mv: /tmp/.mount_modrin8DChMc/usr/lib/libselinux.so.1: no version information available (required by mv)

and a core dump

twigtarsier commented 2 months ago

ugh. Is there any temp fix for this?

ThatKid1351 commented 2 months ago

I'm on Fedora 40 using the flatpak and I can't get it to open either. The App Image opens, but it's a graphical nightmare. Screenshot_20240829_121823

Perhaps this is graphics-related? I think my nvidia drivers updated to 560.35.03 at the same time I updated Modrinth. Just a guess. ¯_(ツ)_/¯

pokahs commented 2 months ago

ugh. Is there any temp fix for this?

Just here to say that with the Modrinth 8.2 deb package, I also started get the libssl & libcrypto 1.1 missing error where system has 1.3, and I tried the AppImage. This worked until today (where I think it updated to 8.5?), so I tried installing the deb package again (the new 8.5 version).

Running it (theseus_gui in terminal) got me a segmentation fault, specifically:

src/nv_gbm.c:300: GBM-DRV error (nv_gbm_create_device_native): nv_common_gbm_create_device failed (ret=-1)

However, I found some random fix to this here (https://github.com/tauri-apps/tauri/issues/8462), which is to simply run it as:

WEBKIT_DISABLE_DMABUF_RENDERER=1 theseus_gui

And this fix seems to work fine for me.

I also simply changed my .desktop file for modrinth to adjust for this, by just doing:

sudo nano /usr/share/applications/theseus_gui.desktop

and then changing Exec=theseus_gui to:

Exec=env WEBKIT_DISABLE_DMABUF_RENDERER=1 theseus_gui

I know this wasn't an issue declared here, but I thought updating to 8.5 deb package and doing this might work for others, at least did for me.

twigtarsier commented 2 months ago

i tried the 8.5 deb and the theseus_gui is running but no modrinth is popping up sadly

ThatKid1351 commented 2 months ago

Can confirm 8.5 App Image is working smoothly on Fedora, but the Flatpak (which is still on 8.2) still doesn't work. Perhaps it will work again when Flatpak updates? I'll be sure to watch out for the update and test as soon as it drops.

DexTheExplorer commented 2 months ago

Adding WEBKIT_DISABLE_DMABUF_RENDERER=1 as an environment variable for the flatpak made the client launch perfectly on the latest release. I was even able to enable GPU acceleration, which was not possible before. OS: Fedora 40

Legion495 commented 1 month ago

I am on Fedora too... Well the Appimage stopped working for me today - does nothing. Which is 8.8. Wanted to test some server I made for someone. Seemed to update and stopped working. And the Flatpak is even better. image

spusuf commented 1 month ago

I am on Fedora too... Well the Appimage stopped working for me today - does nothing. Which is 8.8. Wanted to test some server I made for someone. Seemed to update and stopped working. And the Flatpak is even better. image

yeah same

CoderModeGit commented 1 month ago

Experiencing the same issue. I'm on mint 21.3, opened the AppImage, it updated, and instead of opening the updated version, it closed and no longers opens. I have updated my system and redownloaded the AppImage, still nothing.

anylonen commented 1 month ago

And same issue here. Using Manjaro (Arch) and everything is updated to it's latest version. Modrinth app version (from the file name) is 0.8.8.

Getting error "Error: Error executing 'Modrinth': No such file or directory".

Legion495 commented 1 month ago

And same issue here. Using Manjaro (Arch) and everything is updated to it's latest version. Modrinth app version (from the file name) is 0.8.8.

Getting error "Error: Error executing 'Modrinth': No such file or directory".

I think this happens if you try to run the appimage from console. I just made it executeable and tried to "run" it from the file manager.

anylonen commented 1 month ago

Getting error "Error: Error executing 'Modrinth': No such file or directory".

I think this happens if you try to run the appimage from console.

Tried also from the file manager (Nemo) with same results. Won't start.

CoderModeGit commented 1 month ago

And same issue here. Using Manjaro (Arch) and everything is updated to it's latest version. Modrinth app version (from the file name) is 0.8.8.

Getting error "Error: Error executing 'Modrinth': No such file or directory".

This also happened for me when I tried installing it from .deb, but I just thought I had installed it wrong.

MyUsernamee commented 1 month ago

I am also experiencing the same error after a update on Ubuntu 24.04. I have tried the flatpak, deb, and AppImage. Same error message as well

dihydromonoxide@mycomputer:~/AppImages$ ./modrinth_app.appimage Error: Error executing 'Modrinth': No such file or directory

In the flatpak version I get this error

Gtk-Message: 11:26:10.136: Failed to load module "xapp-gtk3-module" Gtk-Message: 11:26:10.174: Failed to load module "canberra-gtk-module" Gtk-Message: 11:26:10.175: Failed to load module "canberra-gtk-module"

I've attempted the aforementioned fix by running sudo apt install xapp-sn-watcher libxapp-gtk3-module but this yielded the same results.

AncientMRG commented 1 month ago

Just tried upgrading from the app, and it fails due to lack of priviledges. Downloaded and installed the .deb in Linux Mint 22 and app installs but gtk-update-icon-cache fails due to the space now included between Modrinth and App... I can run 'Modrinth\ App' from the terminal, but app and icon will never generate... I must manually run it everytime... happened with version Modrinth App_0.8.8_amd64.deb.

pokahs commented 1 month ago

Just noting I think most of the problems mentioned here recently are related to https://github.com/modrinth/code/issues/2480

Might want to check out the working builds/solutions posted there.

elisenlebkuch commented 1 month ago

For me it doesn't work since I'm on 0.8.7. I use Arch btw.

855579762735 commented 1 month ago

Running Modrinth on Debian Bookworn with KDE Wayland, can confirm the Flatpak for version 0.8.2 and 0.8.7 don't even open when clicked on. I ran sudo flatpak update --commit=ee812d6fe9d492cbbd8f1f03b5bb552b264761b3d6ce07375ce7fdcceea4e4be com.modrinth.ModrinthApp in the console and it now works, but it sucks that a downgrade was required, looking forward to a fix.

AncientMRG commented 1 month ago

Just noting I think most of the problems mentioned here recently are related to #2480

Might want to check out the working builds/solutions posted there.

Thanks... got it to work through help in #2480

CoderModeGit commented 1 month ago

Also got it fixed in #2480

noxidsoft commented 1 month ago

On Ubuntu 24.04 LTS I was missing a library. This was a fresh OS install just yesterday, so it makes sense I hadn't picked this one up yet.

sudo apt install libfuse2t64

Now the latest AppImage file from Modrinth is working after permissions set correctly. https://modrinth.com/app

Credit: https://itsfoss.com/cant-run-appimage-ubuntu/