topeterk / HitCounterManager

Free Hit Counter / Death Counter that is running in the background, so you can focus on your stream. No need to keep any windows open for a window capture any more. Initially designed for Dark Souls and similar games but supports any game.
MIT License
87 stars 19 forks source link

"Index was outside the bounds of array" Can open HCM but question marks are everywhere and all my settings/hotkeys are missing #37

Closed UkuleleAversion closed 1 month ago

UkuleleAversion commented 1 month ago

Describe the bug I click on Hit Counter Manager and it takes a while before I get any sign that it's opening such as asking me to run as admin. Then the following error occurs:

"System.IndexOutOfRangeException: Index was outside the bounds of the array. at HitCounterManager.ProfilesControl.InitializeProfilesControl(Profiles profiles, Succession Succession) at HitCounterManager.Form1.LoadSettings() at HitCounterManager.Form1.Form1_Load(Object sender, EventArgs e) at System.Windows.Forms.Form.OnLoad(EventArgs e) at System.Windows.Forms.Form.OnCreateControl() at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.Control.CreateControl() at System.Windows.Forms.Control.WmShowWindow(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.Form.WmShowWindow(Message& m) at HitCounterManager.Form1.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)"

To Reproduce Steps to reproduce the behavior:

  1. Create six new profiles, for a six tab multi-DLC no hit run.
  2. Wake up next day.
  3. Click on HCM. 5 second wait time before anything happens. HCM usually takes a second or two to open.
  4. Abovementioned error occurs.

Expected behavior I expect the Hit Counter Manager to open without this error.

Screenshots image image

Desktop (please complete the following information):

Steps I've taken to resolve the issue:

Additional context The only thing I've done differently with HCM before this problem is I started creating a multi-tab session for a multi-DLC no hit run the day before this error occurred. I've never used that feature before so maybe that's the cause?

UkuleleAversion commented 1 month ago

For now, it seems that HCM is working however I did have to re-do all of my hotkeys and stylesheet stuff. The splits, thankfully, were saved.

What fixed it for me was changing profile then closing the window and clicking "Yes" on Save Session Progress. Then when I opened it again the "???" and error message stopped showing.