Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashes when loading mods on Linux using yuzu-mainline-git AUR package #34

Closed
anzix opened this issue Dec 26, 2023 · 5 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@anzix
Copy link

anzix commented Dec 26, 2023

Describe the bug
When you click the button to download mods from any server (Official or The Boy 181), YuzuModDownloader simply crashes leaving the downloaded xml files. No mods have been downloaded to the ~/.local/share/yuzu/load/<ID>/ folder

To Reproduce
Steps to reproduce the behavior:

  1. Build the yuzu-mainline-git package from AUR
  2. Copying the YuzuModDownloader Linux binary to the Desktop
  3. Making it executable
  4. From the terminal, I run inside the Desktop folder with the command ./YuzuModDownloader and downloading from any server (Official or TheBoy181)
  5. YuzuModDownloader crashes leaving the downloaded xml files

Expected behavior
I was expecting to download mods without crash

Screenshots
None

Desktop/Laptop (please complete the following information):

  • OS: Arch Linux, KDE Plasma 5.27.10, X11 Session, Kernel 6.6.8-zen1-1-zen
  • Yuzu Version on old 1644.r0.gd2b1ae6-1 and new 1662.r0.g6979cd3-1
  • Yuzu Installed
  • Game Title: None
  • Game Title ID: None

Additional context
Here is the program log

Unhandled exception. System.IO.DirectoryNotFoundException: Could not find a part of the path '/home/user/Desktop/"/home/user/.local/share/yuzu/load"'.
   at System.IO.Enumeration.FileSystemEnumerator`1.CreateDirectoryHandle(String, Boolean )
   at System.IO.Enumeration.FileSystemEnumerator`1.Init()
   at System.IO.Enumeration.FileSystemEnumerator`1..ctor(String, Boolean, EnumerationOptions )
   at System.IO.Enumeration.FileSystemEnumerable`1.DelegateEnumerator..ctor(FileSystemEnumerable`1, Boolean)
   at System.IO.Enumeration.FileSystemEnumerable`1..ctor(String, FindTransform, EnumerationOptions, Boolean)
   at System.IO.Enumeration.FileSystemEnumerable`1..ctor(String, FindTransform , EnumerationOptions )
   at System.IO.Enumeration.FileSystemEnumerableFactory.UserDirectories(String, String, EnumerationOptions)
   at System.IO.Directory.InternalEnumeratePaths(String, String, SearchTarget, EnumerationOptions)
   at System.IO.Directory.GetDirectories(String, String, EnumerationOptions)
   at System.IO.Directory.GetDirectories(String)
   at YuzuModDownloader.Classes.Downloaders.ModDownloader.DeleteDownloadedModArchiveFiles()
   at YuzuModDownloader.Classes.Downloaders.ModDownloader.DownloadModsAsync(List`1)
   at YuzuModDownloader.Classes.Downloaders.OfficialYuzuModDownloader.DownloadModsAsync(List`1)
   at YuzuModDownloader.MainWindow.BtnDownload_ClickAsync(Object, RoutedEventArgs)
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
   at Avalonia.Threading.SendOrPostCallbackDispatcherOperation.InvokeCore() in /_/src/Avalonia.Base/Threading/DispatcherOperation.cs:line 392
   at Avalonia.Threading.DispatcherOperation.Execute() in /_/src/Avalonia.Base/Threading/DispatcherOperation.cs:line 262
   at Avalonia.Threading.Dispatcher.ExecuteJob(DispatcherOperation) in /_/src/Avalonia.Base/Threading/Dispatcher.Queue.cs:line 117
   at Avalonia.Threading.Dispatcher.ExecuteJobsCore() in /_/src/Avalonia.Base/Threading/Dispatcher.Queue.cs:line 148
   at Avalonia.Threading.Dispatcher.Signaled() in /_/src/Avalonia.Base/Threading/Dispatcher.Queue.cs:line 128
   at Avalonia.X11.X11PlatformThreading.CheckSignaled() in /_/src/Avalonia.X11/X11PlatformThreading.cs:line 119
   at Avalonia.X11.X11PlatformThreading.RunLoop(CancellationToken) in /_/src/Avalonia.X11/X11PlatformThreading.cs:line 192
   at Avalonia.Threading.DispatcherFrame.Run(IControlledDispatcherImpl) in /_/src/Avalonia.Base/Threading/DispatcherFrame.cs:line 117
   at Avalonia.Threading.Dispatcher.PushFrame(DispatcherFrame) in /_/src/Avalonia.Base/Threading/Dispatcher.MainLoop.cs:line 53
   at Avalonia.Threading.Dispatcher.MainLoop(CancellationToken) in /_/src/Avalonia.Base/Threading/Dispatcher.MainLoop.cs:line 80
   at Avalonia.Controls.ApplicationLifetimes.ClassicDesktopStyleApplicationLifetime.Start(String[]) in /_/src/Avalonia.Controls/ApplicationLifetimes/ClassicDesktopStyleApplicationLifetime.cs:line 122
   at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime(AppBuilder, String[], ShutdownMode ) in /_/src/Avalonia.Controls/ApplicationLifetimes/ClassicDesktopStyleApplicationLifetime.cs:line 215
   at YuzuModDownloader.Program.Main(String[])
[1]    3758985 IOT instruction (core dumped)  ./YuzuModDownloader
@amakvana
Copy link
Owner

amakvana commented Jan 25, 2024

Apologies for the delayed response! Thanks for opening up the issue!

This is due to a error in the parsing of the paths, it looks like Yuzu now wraps paths with ", which at the time wasn't accounted for within my path parsing - next update will fix this.

In the meantime, as a temp fix, locate your qt-config.ini file, scroll down to and find the load_directory key, once located, remove the double quotes from the path after the = and save the file.

Be sure to make a backup of the qt-config.ini in case anything goes wrong

@amakvana amakvana added the bug Something isn't working label Jan 25, 2024
@garbear
Copy link

garbear commented Jan 26, 2024

Thanks for looking into this @amakvana! I hit the same problem, and reinitializing my qt-config.ini gave me load_directory fields without ", and now the doanloader is working correctly again.

@amakvana
Copy link
Owner

@garbear @anzix

Hi both!

Below is a Linux test build - fixing all repo's, path scraping for Linux (for Flatpak and deb installers) and some QOL UI tweaks. Please test drive and see if the issues you both were having, have been resolved.

Same instructions to run it as always:

cd ~/Desktop
chmod +x YuzuModDownloader
./YuzuModDownloader

Cheers!

YuzuModDownloader_1.4.1.0_Linux_Test_Build.zip

@anzix
Copy link
Author

anzix commented Jan 30, 2024

Yes, everything works, I can close the issue. Although some (archives) of mods have not been installed, for example "16:10 Aspect Ratio" for Animal Crossing. Outputs an error, here is the log.

./YuzuModDownloader

7-Zip (z) 22.01 (x64) : Copyright (c) 1999-2022 Igor Pavlov : 2022-07-15
 64-bit locale=ru_RU.UTF-8 Threads:12, ASM

Scanning the drive for archives:
1 file, 883 bytes (1 KiB)

Extracting archive: /home/user/.local/share/yuzu/load/01006F8002326000/32.9%20Super%20Ultrawide.zip
--
Path = /home/user/.local/share/yuzu/load/01006F8002326000/32.9%20Super%20Ultrawide.zip
Type = zip
Physical Size = 883

Everything is Ok

Folders: 2
Files: 1
Size:       515
Compressed: 883

7-Zip (z) 22.01 (x64) : Copyright (c) 1999-2022 Igor Pavlov : 2022-07-15
 64-bit locale=ru_RU.UTF-8 Threads:12, ASM

Scanning the drive for archives:
1 file, 847 bytes (1 KiB)

Extracting archive: /home/user/.local/share/yuzu/load/01006F8002326000/21.9%20Ultrawide.zip
--
Path = /home/user/.local/share/yuzu/load/01006F8002326000/21.9%20Ultrawide.zip
Type = zip
Physical Size = 847

Everything is Ok

Folders: 2
Files: 1
Size:       515
Compressed: 847

7-Zip (z) 22.01 (x64) : Copyright (c) 1999-2022 Igor Pavlov : 2022-07-15
 64-bit locale=ru_RU.UTF-8 Threads:12, ASM

Scanning the drive for archives:
1 file, 134786 bytes (132 KiB)

Extracting archive: /home/user/.local/share/yuzu/load/01006F8002326000/16.10%20Aspect%20Ratio.zip
ERROR: /home/user/.local/share/yuzu/load/01006F8002326000/16.10%20Aspect%20Ratio.zip
/home/user/.local/share/yuzu/load/01006F8002326000/16.10%20Aspect%20Ratio.zip
Open ERROR: Cannot open the file as [zip] archive


ERRORS:
Is not archive

Can't open as archive: 1
Files: 0
Size:       0
Compressed: 0

@anzix anzix closed this as completed Jan 30, 2024
@amakvana amakvana removed the question Further information is requested label Jan 30, 2024
@amakvana amakvana reopened this Feb 7, 2024
@amakvana
Copy link
Owner

amakvana commented Feb 7, 2024

Closed - Fixed in v1.4.1.0
https://github.com/amakvana/YuzuModDownloader/releases/latest

@amakvana amakvana closed this as completed Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants