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

Release v0.7.1 fails to patch on Linux #2

Open
Lojemiru opened this issue Sep 25, 2023 · 3 comments
Open

Release v0.7.1 fails to patch on Linux #2

Lojemiru opened this issue Sep 25, 2023 · 3 comments

Comments

@Lojemiru
Copy link

Running 64-bit Arch; MiniInstaller 0.7.0 runs flawlessly, but 0.7.1 results in the following exception:

Loading Mono.Cecil
Lazily loading /home/lojemiru/Games/Heroic/TheMessenger/TheMessenger_Data/Managed/Mono.Cecil.dll
Loading Mono.Cecil.Mdb
Lazily loading /home/lojemiru/Games/Heroic/TheMessenger/TheMessenger_Data/Managed/Mono.Cecil.Mdb.dll
Loading Mono.Cecil.Pdb
Lazily loading /home/lojemiru/Games/Heroic/TheMessenger/TheMessenger_Data/Managed/Mono.Cecil.Pdb.dll
Loading MonoMod.Utils.dll
Lazily loading /home/lojemiru/Games/Heroic/TheMessenger/TheMessenger_Data/Managed/MonoMod.Utils.dll
Loading MonoMod
Lazily loading /home/lojemiru/Games/Heroic/TheMessenger/TheMessenger_Data/Managed/MonoMod.exe
Loading MonoMod.RuntimeDetour.dll
Lazily loading /home/lojemiru/Games/Heroic/TheMessenger/TheMessenger_Data/Managed/MonoMod.RuntimeDetour.dll
Loading MonoMod.RuntimeDetour.HookGen
Lazily loading /home/lojemiru/Games/Heroic/TheMessenger/TheMessenger_Data/Managed/MonoMod.RuntimeDetour.HookGen.exe
Running MonoMod for /home/lojemiru/Games/Heroic/TheMessenger/TheMessenger_Data/Managed/orig/Assembly-CSharp.dll
MonoMod 20.4.5.2
[MonoMod] Reading input file into module.
[MonoMod] [ReadMod] Loading mod dir: /home/lojemiru/Games/Heroic/TheMessenger/TheMessenger_Data/Managed
[MonoMod] [ReadMod] Loading mod: /home/lojemiru/Games/Heroic/TheMessenger/TheMessenger_Data/Managed/Assembly-CSharp.Courier.mm.dll
[MonoMod] [Main] Scanning for mods in directory.
[MonoMod] [ReadMod] Loading mod dir: /home/lojemiru/Games/Heroic/TheMessenger/TheMessenger_Data/Managed/orig
System.BadImageFormatException: Format of the executable (.exe) or library (.dll) is invalid.
  at Mono.Cecil.PE.ImageReader.ReadImage () [0x00013] in <6034b380a22b41a596c9dc29d282c0a9>:0 
  at Mono.Cecil.PE.ImageReader.ReadImage (Mono.Disposable`1[T] stream, System.String file_name) [0x00007] in <6034b380a22b41a596c9dc29d282c0a9>:0 
  at Mono.Cecil.ModuleDefinition.ReadModule (Mono.Disposable`1[T] stream, System.String fileName, Mono.Cecil.ReaderParameters parameters) [0x00006] in <6034b380a22b41a596c9dc29d282c0a9>:0 
  at Mono.Cecil.ModuleDefinition.ReadModule (System.String fileName, Mono.Cecil.ReaderParameters parameters) [0x0006c] in <6034b380a22b41a596c9dc29d282c0a9>:0 
  at MonoMod.MonoModder._ReadModule (System.String input, Mono.Cecil.ReaderParameters args) [0x0001c] in <d632e1dd2b9744adb522a5cf53d6eb09>:0 
  at MonoMod.MonoModder.MapDependency (Mono.Cecil.ModuleDefinition main, System.String name, System.String fullName, Mono.Cecil.AssemblyNameReference depRef) [0x00357] in <d632e1dd2b9744adb522a5cf53d6eb09>:0 
  at MonoMod.MonoModder.MapDependency (Mono.Cecil.ModuleDefinition main, Mono.Cecil.AssemblyNameReference depRef) [0x0000e] in <d632e1dd2b9744adb522a5cf53d6eb09>:0 
  at MonoMod.MonoModder.MapDependencies (Mono.Cecil.ModuleDefinition main) [0x00036] in <d632e1dd2b9744adb522a5cf53d6eb09>:0 
  at MonoMod.MonoModder.MapDependencies () [0x0001b] in <d632e1dd2b9744adb522a5cf53d6eb09>:0 
  at MonoMod.Program.Main (System.String[] args) [0x00254] in <d632e1dd2b9744adb522a5cf53d6eb09>:0 

System.Exception: MonoMod failed creating a patched assembly!
  at MiniInstaller.Program.RunMonoMod (System.String asmFrom, System.String asmTo) [0x00096] in <1a58955ecc4f4043b6365f6403400ef2>:0 
  at MiniInstaller.Program.Main (System.String[] args) [0x0009d] in <1a58955ecc4f4043b6365f6403400ef2>:0 

Installing Courier failed.
Please create a new issue on GitHub @ https://github.com/Brokemia/Courier
Make sure to upload your miniinstaller-log.txt
@Lojemiru
Copy link
Author

Current working assumption, given that nothing code-wise has changed since the last release to cause this, is that the release executable was built with a bad configuration.

@Brokemia
Copy link
Owner

Just noting down that I have no clue what the cause is. I think the only change was that I updated Visual Studio in between builds

@FloweryAndy
Copy link

Running 64-bit Manjaro; Ran into the same problem and same error with MiniInstaller 0.7.1
Was able to fix it by validating steam game files then deleting /managed/orig and re-running 'mono MiniInstaller.exe'
Mod loader and mods are working correctly now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants