amakvana / SwitchEmuModDownloader

SwitchEmuModDownloader - A Cross-Platform One-Click Games Mod Downloader for Switch emulators. Formerly YuzuModDownloader.
GNU General Public License v3.0
567 stars 35 forks source link

New Version: IO Exception -> dumps #13

Closed frank196612 closed 2 years ago

frank196612 commented 2 years ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Open Downlaoder
  2. Click on 'Download Yuzu Game Modes'
  3. Error Unhandled exception has accured: Details: See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.

** Exception Text ** System.IO.IOException: An attempt was made to move the file pointer before the beginning of the file.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.SeekCore(Int64 offset, SeekOrigin origin) at System.IO.FileStream.Seek(Int64 offset, SeekOrigin origin) at System.IO.Compression.ZipArchive.ReadEndOfCentralDirectory()

** Loaded Assemblies ** mscorlib Assembly Version: 4.0.0.0 Win32 Version: 4.8.4470.0 built by: NET48REL1LAST_C CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll

YuzuModDownloader Assembly Version: 1.1.0.0 Win32 Version: 1.1.0.0 CodeBase: file:///E:/Emulators/Yuzu/YuzuModDownloader.exe

System.Windows.Forms Assembly Version: 4.0.0.0 Win32 Version: 4.8.4488.0 built by: NET48REL1LAST_C CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System Assembly Version: 4.0.0.0 Win32 Version: 4.8.4488.0 built by: NET48REL1LAST_C CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

System.Drawing Assembly Version: 4.0.0.0 Win32 Version: 4.8.4395.0 built by: NET48REL1LAST_B CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

System.Configuration Assembly Version: 4.0.0.0 Win32 Version: 4.8.4341.0 built by: NET48REL1LAST_C CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

System.Core Assembly Version: 4.0.0.0 Win32 Version: 4.8.4470.0 built by: NET48REL1LAST_C CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

System.Xml Assembly Version: 4.0.0.0 Win32 Version: 4.8.4161.0 built by: NET48REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

System.IO.Compression.FileSystem Assembly Version: 4.0.0.0 Win32 Version: 4.8.4161.0 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.IO.Compression.FileSystem/v4.0_4.0.0.0__b77a5c561934e089/System.IO.Compression.FileSystem.dll

System.IO.Compression Assembly Version: 4.0.0.0 Win32 Version: 4.8.4161.0 built by: NET48REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.IO.Compression/v4.0_4.0.0.0__b77a5c561934e089/System.IO.Compression.dll

** JIT Debugging ** To enable just-in-time (JIT) debugging, the .config file for this application or computer (machine.config) must have the jitDebugging value set in the system.windows.forms section. The application must also be compiled with debugging enabled.

For example:

When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the computer rather than be handled by this dialog box.

Expected behavior Mods are being downloader, worked in the previuos version

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

Desktop/Laptop (please complete the following information):

amakvana commented 2 years ago

Couple of questions:

  1. Have you set up Yuzu and imported your games collection?
  2. Did you extract the archive and place the entire contents of the zip file (exe & dll's) into the Yuzu Root folder?
  3. Where have you currently installed Yuzu. If it's inside %programfiles% or %programfiles(x86)%, you'll need to Run as Administrator
frank196612 commented 2 years ago

Sure I did everything worked fine until the last version, I am on aportable install. New version crashes for me. Thanks for looking at this.

amakvana commented 2 years ago

I've downloaded the latest copy of Yuzu Portable along with YMD, imported my games and ran YMD but can't reproduce the error. Are you able to provide the following for me?

  1. Full Path to Yuzu Install
  2. Games imported (including Title ID's)
  3. Path to "Mod Load Root" - this can be found by opening Yuzu > Emulation > Configure > System > Filesystem.
frank196612 commented 2 years ago

So I did some testing, reinstall etc. Same issue, same problem. Let me come back to your points.

1.) E:\LaunchBox\Emulators\YuzuT all config config files are under E:\LaunchBox\Emulators\YuzuT\User 3.) E:\LaunchBox\Emulators\YuzuT\user\load 2) For testing I have only included the one XENO Blade game: Xenoblade Chronicles 2 (WLD).xci 0100E95004038000, however same thing happens for other games

As mentioned the last version did not crash. As I am running on Win11, maybe that could be the issue. I checked .Net etc.

Thanks for your support!

amakvana commented 2 years ago

Did you install LaunchBox as Admin? YuzuModDownloader may not have Write Permissions to the folder if that's the case.

Check if a yuzu folder exists in any of the directories below on your machine (assuming C: is your Windows installation directory and replacing <username>, with your machine username):

C:\Users\<username>\AppData\Local\Yuzu C:\Users\<username>\AppData\Roaming\Yuzu

If so, delete the two folders above and try running again

frank196612 commented 2 years ago

Hmmm, I deleted all yuzu files in Appdata to no avail; I will try a new yuzu install outside launchbox; Also everything was set-up as admin. The previous version worked, is this still available? I would revert back to find out, if this older version still works.

amakvana commented 2 years ago

I will try a new yuzu install outside launchbox

Try this and let me know how you get on with this. If this works fine, it must be permissions on within your directories

The previous version worked, is this still available?

I'll have to recompile the binaries as it checks against GitHub for versioning, I'll do this soon and send you a copy within here

frank196612 commented 2 years ago

Good afternoon, I belief you are right. I did a complete roll-back and reinstalled yuzu. Currently I can confirm your installer is running without breaking.

Sorry for bringing this up and I really appreciate your support.

amakvana commented 2 years ago

Sorry for bringing this up and I really appreciate your support.

No worries, anytime! Thanks for letting me know.