Skip to content

[Linux] PeacockPatcher throws ArgumentOutOfRange #666

@TheChilliPL

Description

@TheChilliPL

Describe the bug
PeacockPatcher throws ArgumentOutOfRange exception on Linux when trying to start it at the same time as Hitman.

To reproduce
Start Hitman, start PeacockPatcher, error appears.

Additional context

Full error message
See the end of this message for details on invoking \njust-in-time (JIT) debugging instead of this dialog box.\n\n************** Exception Text **************\nSystem.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
  at System.Collections.ArrayList.get_Item (System.Int32 index) [0x0000d] in <38321ff9ca414e9780777c9c907d64fc>:0 
  at System.Diagnostics.ProcessModuleCollection.get_Item (System.Int32 index) [0x00006] in <6ed45bbd5bbf45719e7b728dda16d75e>:0 
  at System.Diagnostics.Process.get_MainModule () [0x00031] in <6ed45bbd5bbf45719e7b728dda16d75e>:0 
  at (wrapper remoting-invoke-with-check) System.Diagnostics.Process.get_MainModule()
  at HitmanPatcher.MemoryPatcher.Patch (System.Diagnostics.Process process, HitmanPatcher.MemoryPatcher+Options patchOptions) [0x00033] in <25ec36bd5e9e4beabba9d7b912689e94>:0 
  at HitmanPatcher.MemoryPatcher.PatchAllProcesses (HitmanPatcher.ILoggingProvider logger, HitmanPatcher.MemoryPatcher+Options patchOptions) [0x000cc] in <25ec36bd5e9e4beabba9d7b912689e94>:0 
  at HitmanPatcher.MainForm.<.ctor>b__5_0 (System.Object sender, System.EventArgs args) [0x00007] in <25ec36bd5e9e4beabba9d7b912689e94>:0 
  at System.Windows.Forms.Timer.OnTick (System.EventArgs e) [0x0000a] in <43da1abbe33c4377b44aa4b40fa6b915>:0 
  at System.Windows.Forms.Timer+TimerNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x0002c] in <43da1abbe33c4377b44aa4b40fa6b915>:0 
  at System.Windows.Forms.NativeWindow.Callback (System.Windows.Forms.Message& m) [0x00025] in <43da1abbe33c4377b44aa4b40fa6b915>:0 

\n************** Loaded Assemblies **************\nmscorlib\n    Assembly Version: 4.0.0.0\n    Win32 Version: 4.6.57.0\n    CodeBase: file:///X:/.local/share/Steam/compatibilitytools.d/GE-Proton-latest/files/share/wine/mono/wine-mono/lib/mono/4.5/mscorlib.dll\n----------------------------------------\nPeacockPatcher\n    Assembly Version: 9.0.1.0\n    Win32 Version: 9.0.1.0\n    CodeBase: file:///S:/Peacock/PeacockPatcher.exe\n----------------------------------------\nSystem.Core\n    Assembly Version: 4.0.0.0\n    Win32 Version: 4.6.57.0\n    CodeBase: file:///X:/.local/share/Steam/compatibilitytools.d/GE-Proton-latest/files/share/wine/mono/wine-mono/lib/mono/gac/System.Core/4.0.0.0__b77a5c561934e089/System.Core.dll\n----------------------------------------\nSystem\n    Assembly Version: 4.0.0.0\n    Win32 Version: 4.6.57.0\n    CodeBase: file:///X:/.local/share/Steam/compatibilitytools.d/GE-Proton-latest/files/share/wine/mono/wine-mono/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll\n----------------------------------------\nSystem.Windows.Forms\n    Assembly Version: 4.0.0.0\n    Win32 Version: 4.6.57.0\n    CodeBase: file:///X:/.local/share/Steam/compatibilitytools.d/GE-Proton-latest/files/share/wine/mono/wine-mono/lib/mono/gac/System.Windows.Forms/4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll\n----------------------------------------\nSystem.Drawing\n    Assembly Version: 4.0.0.0\n    Win32 Version: 4.6.57.0\n    CodeBase: file:///X:/.local/share/Steam/compatibilitytools.d/GE-Proton-latest/files/share/wine/mono/wine-mono/lib/mono/gac/System.Drawing/4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll\n----------------------------------------\nAccessibility\n    Assembly Version: 4.0.0.0\n    Win32 Version: \n    CodeBase: file:///X:/.local/share/Steam/compatibilitytools.d/GE-Proton-latest/files/share/wine/mono/wine-mono/lib/mono/gac/Accessibility/4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll\n----------------------------------------\nSystem.Configuration\n    Assembly Version: 4.0.0.0\n    Win32 Version: 4.6.57.0\n    CodeBase: file:///X:/.local/share/Steam/compatibilitytools.d/GE-Proton-latest/files/share/wine/mono/wine-mono/lib/mono/gac/System.Configuration/4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll\n----------------------------------------\nWineMono.I18N\n    Assembly Version: 4.0.0.0\n    Win32 Version: 4.0.0.0\n    CodeBase: file:///X:/.local/share/Steam/compatibilitytools.d/GE-Proton-latest/files/share/wine/mono/wine-mono/lib/mono/gac/WineMono.I18N/4.0.0.0__0738eb9f132ed756/WineMono.I18N.dll\n----------------------------------------\nWineMono.I18N.West\n    Assembly Version: 4.0.0.0\n    Win32 Version: 4.0.0.0\n    CodeBase: file:///X:/.local/share/Steam/compatibilitytools.d/GE-Proton-latest/files/share/wine/mono/wine-mono/lib/mono/gac/WineMono.I18N.West/4.0.0.0__0738eb9f132ed756/WineMono.I18N.West.dll\n----------------------------------------\n\n************** JIT Debugging **************\n

Metadata

Metadata

Assignees

No one assigned

    Labels

    patcherIssues or pull requests targeting the patcher.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions