Skip to content

ArgumentOutOfRangeException from Debugger, leading to crash #2760

@ghost

Description

Summary

Reducing to icon Debugger gives an error output, trying to pause the emulator after that, crashes it completely.

Repro

  1. Open a rom
  2. Open debugger
  3. Reduce it to icon - first error message
  4. Pause the emulator - crash

Output

Error dialog 1 (reducing Debugger to icon):

System.ArgumentOutOfRangeException: range end < start
Nome parametro: endInclusive
Valore effettivo: -1.
   in BizHawk.Common.MutableRange`1.Overwrite(T start, T endInclusive)
   in BizHawk.Client.EmuHawk.InputRoll.IsVisible(Int32 index)
   in BizHawk.Client.EmuHawk.InputRoll.set_RowCount(Int32 value)
   in BizHawk.Client.EmuHawk.GenericDebugger.DisassemblerView_SizeChanged(Object sender, EventArgs e)
   in System.Windows.Forms.Control.OnSizeChanged(EventArgs e)
   in System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
   in System.Windows.Forms.Control.UpdateBounds()
   in System.Windows.Forms.Control.WmWindowPosChanged(Message& m)
   in System.Windows.Forms.Control.WndProc(Message& m)
   in System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Error dialog 2 (after pausing bizhawk):

System.ArgumentOutOfRangeException: range end < start
Nome parametro: endInclusive
Valore effettivo: -1.
   in BizHawk.Common.MutableRange`1.Overwrite(T start, T endInclusive)
   in BizHawk.Client.EmuHawk.InputRoll.IsVisible(Int32 index)
   in BizHawk.Client.EmuHawk.InputRoll.set_RowCount(Int32 value)
   in BizHawk.Client.EmuHawk.GenericDebugger.UpdateDisassembler()
   in BizHawk.Client.EmuHawk.GenericDebugger.FullUpdate()
   in BizHawk.Client.EmuHawk.GenericDebugger.OnPauseChanged(Boolean isPaused)
   in BizHawk.Client.EmuHawk.MainForm.TogglePause()
   in BizHawk.Client.EmuHawk.MainForm.CheckHotkey(String trigger)
   in BizHawk.Client.EmuHawk.MainForm.<ProcessInput>b__125_0(Boolean current, String trigger)
   in System.Linq.Enumerable.Aggregate[TSource,TAccumulate](IEnumerable`1 source, TAccumulate seed, Func`3 func)
   in BizHawk.Client.EmuHawk.MainForm.ProcessInput(InputCoalescer hotkeyCoalescer, ControllerInputCoalescer finalHostController, Func`2 searchHotkeyBindings, Func`2 activeControllerHasBinding)
   in BizHawk.Client.EmuHawk.MainForm.ProgramRunLoop()
   in BizHawk.Client.EmuHawk.Program.SubMain(String[] args)

Happens with and without "stay on top" checked, it doesnt make a difference

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions