TormStorm / jagex-launcher-linux

Community projects to install the Jagex Launcher and use Jagex Accounts in Linux

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installation hangs on 'checking directory size'

saladuit opened this issue · comments

Describe the bug
When pressing '+' the installation script hangs

To Reproduce
Steps to reproduce the behavior:

  1. I installed flatpack
  2. Installed Lutris
  3. copied the install script to a local jagexlauncher.yml file.
  4. pressed '+'
  5. selected install from local script
  6. the files begin to download
  7. Pressed install
  8. gets stuck on 'Checking directory size...'

Expected behavior
I expect my runelite to be installed on my system

Screenshots
If applicable, add screenshots to help explain your problem.

Please complete the following information:

                   -`                    saladuit@omega-arch 
                  .o+`                   ------------------- 
                 `ooo/                   OS: Arch Linux x86_64 
                `+oooo:                  Host: PCx0Dx 
               `+oooooo:                 Kernel: 6.4.11-zen2-1-zen 
               -+oooooo+:                Uptime: 25 mins 
             `/:-:++oooo+:               Packages: 1012 (pacman) 
            `/++++/+++++++:              Shell: zsh 5.9 
           `/++++++++++++++:             Resolution: 1920x1080 
          `/+++ooooooooooooo/`           DE: GNOME 44.3 
         ./ooosssso++osssssso+`          WM: Mutter 
        .oossssso-````/ossssss+`         WM Theme: Adwaita 
       -osssssso.      :ssssssso.        Theme: Adwaita [GTK2/3] 
      :osssssss/        osssso+++.       Icons: Adwaita [GTK2/3] 
     /ossssssss/        +ssssooo/-       Terminal: guake 
   `/ossssso+/:-        -:/+osssso+-     CPU: Intel i7-10870H (16) @ 5.000GHz 
  `+sso+:-`                 `.-/+oso:    GPU: Intel CometLake-H GT2 [UHD Graphics] 
 `++:.                           `-/+/   GPU: NVIDIA GeForce RTX 3060 Mobile / Max-Q 
 .`                                 `/   Memory: 2431MiB / 15686MiB 

Additional context
install script output:

Started initial process 7061 from /usr/bin/bash -c set -e

if [ -n "$XDG_CACHE_HOME" ]; then
    mkdir -p "$XDG_CACHE_HOME/wine"
    mv "/home/saladuit/.cache/lutris/installer/jagex-launcher/gecko/wine-gecko-2.47.4-x86_64.msi" "$XDG_CACHE_HOME/wine/"
    mv "/home/saladuit/.cache/lutris/installer/jagex-launcher/gecko_32/wine-gecko-2.47.3-x86.msi" "$XDG_CACHE_HOME/wine/"
else
    echo "XDG_CACHE_HOME is not set. Letting wine handle gecko installation."
fi

# Run the installer overriding jscript.dll and starting the jagex launcher installer in the background to monitor the install directory size.
# We need to do this because the gui window freezes normally and does not allow users to close it.
WINEPREFIX="/home/saladuit/Games/jagex-launcher" WINEARCH=win64 WINEDLLOVERRIDES="jscript.dll=n" "/home/saladuit/.local/share/lutris/runners/wine/lutris-GE-Proton8-13-x86_64/bin/wine" "/home/saladuit/.cache/lutris/installer/jagex-launcher/jagexlauncher/Jagex%20Launcher%20Installer.exe" &
# Grab the pid of the installer process
installer_process="$!"

above_200=0

 echo "PID of install process is $installer_process. Beginning installation..."

  while true 
  do
      # Checking if installer is still running
      if ps -p $installer_process > /dev/null
      then
          echo "$installer_process is still running. Continuing to check directory..."
      else
          echo "$installer_process appears to have quit. Ending loop."
          break
      fi
      echo "Checking directory size..."
      # Grab directory size for jagex launcher install directory.
      dir_size=$(((du -sh "/home/saladuit/Games/jagex-launcher/drive_c/Program Files (x86)/Jagex Launcher" 2> /dev/null) || echo '0G') | awk '{ print $1 }')
      # Remove the last character from the dir_size so the units don't show
      dir_size=$(echo "$dir_size" | sed 's/.$//')

      # If the directory size is above 200M, then add one to the above_200 variable
      if (( $dir_size > 200 )); then
          above_200=$((above_200+1))
      fi

      # If the directory is over 200M the installer is likely done and we can kill the process.
      if (( $above_200 > 1 )); then
          echo "Installation complete. Killing $installer_process"
          kill "$installer_process"
          break # Exit the while loop
      fi

      sleep 10
  done;
Start monitoring process.
XDG_CACHE_HOME is not set. Letting wine handle gecko installation.
PID of install process is 7062. Beginning installation...
7062 is still running. Continuing to check directory...
Checking directory size...
wineserver: using server-side synchronization.
wine: Using setpriority to control niceness in the [-10,10] range
002c:fixme:winediag:LdrInitializeThunk wine-staging 8.0 is a testing version containing experimental patches.
002c:fixme:winediag:LdrInitializeThunk Please mention your exact version when filing bug reports on winehq.org.
006c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
006c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
006c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
006c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
007c:err:hid:udev_bus_init UDEV monitor creation failed
Wine cannot find the FreeType font library.  To enable Wine to
use TrueType fonts please install a version of FreeType greater than
or equal to 2.0.5.
http://www.freetype.org
00c4:err:xrandr:xrandr14_get_adapters Failed to get adapters
00c4:err:xrandr:xrandr14_get_adapters Failed to get adapters
00c4:err:xrandr:xrandr14_get_adapters Failed to get adapters
00c4:err:xrandr:xrandr14_get_adapters Failed to get adapters
0024:fixme:ver:GetFileVersionInfoSizeExW flags 0x2 ignored
0024:fixme:ver:GetFileVersionInfoExW flags 0x2 ignored
0050:fixme:ndis:query_global_stats Unsupported OID 10114
0050:fixme:ndis:query_global_stats Unsupported OID 10114
0024:fixme:ver:GetFileVersionInfoSizeExW flags 0x2 ignored
0024:fixme:ver:GetFileVersionInfoExW flags 0x2 ignored
0104:fixme:kernelbase:AppPolicyGetThreadInitializationType FFFFFFFA, 0187FEF8
0050:fixme:ndis:query_global_stats Unsupported OID 10114
0050:fixme:ndis:query_global_stats Unsupported OID 10114
0050:fixme:mountmgr:query_property Faking StorageDeviceProperty data
0100:fixme:oleacc:find_class_data unhandled window class: L"#32769"
0100:fixme:uiautomation:uia_get_providers_for_hwnd Override provider callback currently unimplemented.
0100:fixme:uiautomation:msaa_provider_GetPropertyValue Unimplemented propertyId 30024
0100:fixme:uiautomation:msaa_fragment_get_FragmentRoot 00000000008F92B8, 000000000021FAC0: stub!
0100:err:xrandr:xrandr14_get_adapters Failed to get adapters
0120:fixme:uiautomation:uia_get_providers_for_hwnd Override provider callback currently unimplemented.
0120:fixme:uiautomation:msaa_provider_GetPropertyValue Unimplemented propertyId 30024
0120:fixme:uiautomation:msaa_fragment_get_FragmentRoot 0000000000926CE8, 0000000001B2FAA0: stub!
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...
7062 is still running. Continuing to check directory...
Checking directory size...

@saladuit There are some software/hardware configurations where the jagex installer hangs like this and we aren't entirely sure why.

To get you unblocked in the meantime, you can try this method:

  1. Grab the jagex-launcher-provided-files.yml here https://github.com/nmlynch94/jagex-launcher-linux/blob/main/resources/jagex-installer-provided-files.yml
  2. Go to the youtube guide by c00k linked on the jagex support page https://help.jagex.com/hc/en-gb/articles/13413514881937-Downloading-the-Jagex-Launcher-on-Linux
  3. In the description, download the jagex-launcher files from mediafire. I have used these files in the past without issue, but your call if you want to trust it. The other option here is to use a windows 10 VM/installation to zip up the installer files as described in his video.
  4. Run the lutris installer with this script, and for the first file selector choose the jagexlauncher.zip download from the youtube video/your VM

It should launch the jagex launcher and ask to apply an update, then allow you to login.

commented

Had the same problem, this worked for me. Cheers

@saladuit There are some software/hardware configurations where the jagex installer hangs like this and we aren't entirely sure why.

To get you unblocked in the meantime, you can try this method:

  1. Grab the jagex-launcher-provided-files.yml here https://github.com/nmlynch94/jagex-launcher-linux/blob/main/resources/jagex-installer-provided-files.yml
  2. Go to the youtube guide by c00k linked on the jagex support page https://help.jagex.com/hc/en-gb/articles/13413514881937-Downloading-the-Jagex-Launcher-on-Linux
  3. In the description, download the jagex-launcher files from mediafire. I have used these files in the past without issue, but your call if you want to trust it. The other option here is to use a windows 10 VM/installation to zip up the installer files as described in his video.
  4. Run the lutris installer with this script, and for the first file selector choose the jagexlauncher.zip download from the youtube video/your VM

It should launch the jagex launcher and ask to apply an update, then allow you to login.

Installation proceeded correctly, but I still get the following message, when trying to start the launcher:

Started initial process 3107 from gamemoderun /home/saladuit/.local/share/lutris/runners/wine/lutris-GE-Proton8-13-x86_64/bin/wine /home/saladuit/Games/jagex-launcher/drive_c/Program Files (x86)/Jagex Launcher/JagexLauncher.exe
Start monitoring process.
ERROR: ld.so: object 'libgamemodeauto.so.0' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object 'libgamemodeauto.so.0' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
fsync: up and running.
wine: Using setpriority to control niceness in the [-10,10] range
wine: could not load kernel32.dll, status c0000135
Monitored process exited.
Initial process has exited (return code: 13568)
Exit with return code 13568

I tried to installing from dependencies:

sudo pacman -S giflib lib32-giflib libpng lib32-libpng libldap lib32-libldap gnutls lib32-gnutls mpg123 lib32-mpg123 openal lib32-openal v4l-utils lib32-v4l-utils libpulse lib32-libpulse alsa-plugins lib32-alsa-plugins alsa-lib lib32-alsa-lib libjpeg-turbo lib32-libjpeg-turbo libxcomposite lib32-libxcomposite libxinerama lib32-libxinerama ncurses lib32-ncurses opencl-icd-loader lib32-opencl-icd-loader libxslt lib32-libxslt libva lib32-libva gtk3 lib32-gtk3 gst-plugins-base-libs lib32-gst-plugins-base-libs vulkan-icd-loader lib32-vulkan-icd-loader cups samba dosbox

After uninstalling runelite launcger and downloading all dependencies it worked! Cheers @IcelandicIcecream & @nmlynch94.

For future strugglers, the installation should be very quick.

@saladuit Thank you for reporting back! A couple notes: Lutris recommends to use this for wine dependencies https://github.com/lutris/docs/blob/master/WineDependencies.md. Also, I believe that error was saying gamemode was not installed properly on the system. If others have that error and following saladuit's steps don't solve it, you can likely get around it by disabling Feral Gamemode in the lutris game settings #42 (comment).