modrinth / code

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

Launcher Freezes when I click on "Browse" #2508

Open maudrid opened 1 week ago

maudrid commented 1 week ago

Please confirm the following.

What version of the Modrinth App are you using?

0.8.8_amd64

What operating systems are you seeing the problem on?

Linux

Describe the bug

I have 2 Linux mint machines with the same version of the OS. I downloaded the AppImage of Modrinth from the website. On one of the machines it works flawlessly. On the other one I can launch it, log into the minecraft account. I can click round the settings page and I was even able to install a modpack from the home page and launch it successfully, but if I click on "Browse" button, the app locks up. Without the search function I'm stuck with only being able to install "Popular packs" on the home screen.

I have tried installing all OS updates and rebooting the OS.

Steps to reproduce

  1. Launch the App
  2. Click on "Browse".

Expected behavior

See the list of mod packs.

Additional context

By adding the RUST_LOG=trace env variable I have produced a trace log file. I'm attaching it to this issue. session_20241013_145909.log

Norbiros commented 1 week ago

I can't reproduce this issue on Gentoo with GNOME. Could you provide more details about your desktop environment, WebKitGTK version, etc.? Does this problem also occur when you try to open logs? What exactly happens during the freeze - is the entire UI unresponsive? Do hover effects stop working? Do you still see the UI, or does it turn gray/white?

maudrid commented 1 week ago

The entire UI become unresponsive. If I minimize the app and restore the window again, it is white. No painting is happening. I can't get to the logs to open because it freezes when I try to open the a mod pack's details. Many times when it freezes, it will show a partially filled green progress bar at the top. If I open the mod pack details, it paints the details on the left o f the screen, but the right of the screen where the list of mods should be showing up is not populated before the freeze.

If you want me to collect info about the linux environment, please let me know what commands you would like me to run for you.

Norbiros commented 1 week ago

Run those commands:

dpkg -l | grep libwebkit2gtk
dpkg -l | grep libgtk
echo $XDG_CURRENT_DESKTOP
echo $XDG_SESSION_TYPE

It's probably another weird webkit bug... Also, could you maybe try other versions of our app (for example from flatpack)?

RokeJulianLockhart commented 5 days ago

https://github.com/modrinth/code/issues/2508#event-1571890231

@maudrid, does your experience align with the section about the AppImage in https://github.com/modrinth/code/issues/2515#issuecomment-2417901822?

[the `.AppImage`](https://launcher-files.modrinth.com/versions/0.8.9/linux/Modrinth%20App_0.8.9_amd64.AppImage) has a different problem - when I access the undermentioned: https://github.com/user-attachments/assets/c0d5fd45-c24a-4634-af15-f46d5c82a0cb ...it indefinitely hangs.
maudrid commented 2 days ago

Yes. This looks very similar to what I'm seeing, except that I don't get far enough to be able to click on the logs, this happens before I can get to that part. Here is the information you asked for:

ii  libgtk-3-0:amd64                           3.24.33-1ubuntu2.2                         amd64        GTK graphical user interface library
ii  libgtk-3-bin                               3.24.33-1ubuntu2.2                         amd64        programs for the GTK graphical user interface library
ii  libgtk-3-common                            3.24.33-1ubuntu2.2                         all          common files for the GTK graphical user interface library
ii  libgtk-layer-shell0                        0.7.0-1                                    amd64        Wayland Layer Shell protocol desktop component library
ii  libgtk2.0-0:amd64                          2.24.33-2ubuntu2.1                         amd64        GTK graphical user interface library - old version
ii  libgtk2.0-bin                              2.24.33-2ubuntu2.1                         amd64        programs for the GTK graphical user interface library
ii  libgtk2.0-common                           2.24.33-2ubuntu2.1                         all          common files for the GTK graphical user interface library
ii  libgtk3-perl                               0.038-1                                    all          Perl bindings for the GTK+ graphical user interface library
ii  libgtkmm-3.0-1v5:amd64                     3.24.5-1build1                             amd64        C++ wrappers for GTK+ (shared libraries)
ii  libgtksourceview-3.0-1:amd64               3.24.11-2build1                            amd64        shared libraries for the GTK+ syntax highlighting widget
ii  libgtksourceview-3.0-common                3.24.11-2build1                            all          common files for the GTK+ syntax highlighting widget
ii  libgtksourceview-4-0:amd64                 4.8.3-1                                    amd64        shared libraries for the GTK+ syntax highlighting widget
ii  libgtksourceview-4-common                  4.8.3-1                                    all          common files for the GTK+ syntax highlighting widget
ii  libwebkit2gtk-4.0-37:amd64                 2.44.3-0ubuntu0.22.04.1                    amd64        Web content engine library for GTK
ii  libwebkit2gtk-4.1-0:amd64                  2.44.3-0ubuntu0.22.04.1                    amd64        Web content engine library for GTK
X-Cinnamon
x11
Distributor ID: Linuxmint
Description:    Linux Mint 21.3
Release:    21.3
Codename:   virginia

Some additional info:

  1. The app auto-updated, but has the same issue still
  2. After freezing, I left it running for some time and then the whole system froze. Not sure it is related.