Author Topic: HandleClick NullReferenceException on multiple actions  (Read 1084 times)

DevilBlackDeath

  • Newbie
  • *
  • Posts: 3
Hello,

I'm new to the forum but have been using MusicBee for years now. Just want to add before reporting my bug that it's the best music software out there and it lets you handle your music library in amazing ways.

So my bug is not a big one. Whenever I create a playlist, analyse music, auto-tag by album and actions like these, I get this error (likely not always with the same random characters, but it's always in the same vein) :

Quote
MusicBee v3.3.7367.38620D  (Win10.0), 12 Mar 2020 11:37:

System.NullReferenceException: Object reference not set to an instance of an object.
   at #=zziapYCHkKIL0B5EplaYmmhGl87_u.#=zH6w$9kE=.#=zmI807nKDVUeRC1reKHl1b6Y=(String[][] #=zg6BFEgAPwPO3)
   at #=zziapYCHkKIL0B5EplaYmmhGl87_u.#=zizd53H1Kk$8e(IList`1 #=zwl3UI6s=, TagCode #=z1VUn09w=, Boolean #=z8LwBDv0bkZ7B)
   at #=zziapYCHkKIL0B5EplaYmmhGl87_u.#=z7nUA$PMMuk7v(String #=zumsg5SI=, List`1 #=zvHGv1A$k5XdK, Boolean #=z3sxbwE4=)
   at #=zziapYCHkKIL0B5EplaYmmhGl87_u.#=zo3JS0rNL4vf$4b3cRQ==(String #=zcc8Jzz4=, List`1 #=zkvN9$m7QiXHD, Boolean #=z3sxbwE4=)
   at #=zADbnadLxl1TKH02_Qzso3yQ4IyJJ.#=zbCbCmL8=.#=z8qGFd8A=(ApplicationCommand #=zYPDjVpU=, Object #=zV8gvbZE=, IList`1 #=zwl3UI6s=)
   at #=z4EgwUhxpom0N1K03jT6eNkk=.OnClick(EventArgs #=zHB5no$s=)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

It doesn't result in the cancellation of the action that has always been, until now, completed successfully. It just shows up at the end of it !
As the log shows I'm already running the latest version.

Thanks in advance and thanks again for all the great work.

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 34976
can you send me a link to your settings file (help/ support/ view settings) and a screenshot of the application just before you trigger the error

DevilBlackDeath

  • Newbie
  • *
  • Posts: 3
Hey ! Here is my settings file :
https://jpst.it/23owu

It's almost exclusively imported settings from my previous installs (my settings have traveled through at least 2 or 3 computers and even more clean Windows install  :P )

As for the screenshot it's hard as it's mostly the standard UI and it only happens when I try those actions (one of which just being right click a song and add it to a playlist). I'll try to do that last one and make a screenshot of it.

Hey, here you go for the picture, this is one of the action that would trigger that kind of error, followed by the exact error message I got from clicking it :
https://imgur.com/a/tzCfRDP

Quote
MusicBee v3.3.7367.38620D  (Win10.0), 12 Mar 2020 13:09:

System.NullReferenceException: Object reference not set to an instance of an object.
   at #=zziapYCHkKIL0B5EplaYmmhGl87_u.#=zH6w$9kE=.#=zmI807nKDVUeRC1reKHl1b6Y=(String[][] #=zg6BFEgAPwPO3)
   at #=zziapYCHkKIL0B5EplaYmmhGl87_u.#=zizd53H1Kk$8e(IList`1 #=zwl3UI6s=, TagCode #=z1VUn09w=, Boolean #=z8LwBDv0bkZ7B)
   at #=zziapYCHkKIL0B5EplaYmmhGl87_u.#=zD61boNyaDiPe(#=zKG9L0hExTpfpzuHiLIrDo50= #=zIKh4fYU=, List`1 #=zwl3UI6s=, List`1 #=zeIcKakd9nNCL)
   at #=zADbnadLxl1TKH02_Qzso3yQ4IyJJ.#=zbCbCmL8=.#=z8qGFd8A=(ApplicationCommand #=zYPDjVpU=, Object #=zV8gvbZE=, IList`1 #=zwl3UI6s=)
   at #=z5aHGmCYdx9Nx8_fjNthAzPXKlrsa.#=zmB5BdgaiC08Gr5$vMg==(Object #=z4OVDJ6s=, EventArgs #=zHB5no$s=)
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Last Edit: March 12, 2020, 01:10:40 PM by DevilBlackDeath

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 34976
Your settings file is a bit wonky for the column browser and I dont know how it happened other than perhaps some issue with an upgrade from an old MB version.
You need to change this in the settings file (make sure MB is closed at the time)
Code
<NavigatorTrackBrowserPrimaryFilter>59</NavigatorTrackBrowserPrimaryFilter>
<NavigatorTrackBrowserPrimary2Filter>0</NavigatorTrackBrowserPrimary2Filter>
<NavigatorTrackBrowserSecondaryFilter>32</NavigatorTrackBrowserSecondaryFilter>
<NavigatorTrackBrowserTertiaryFilter>30</NavigatorTrackBrowserTertiaryFilter>
to
Code
<NavigatorTrackBrowserPrimaryFilter>59</NavigatorTrackBrowserPrimaryFilter>
<NavigatorTrackBrowserPrimary2Filter>32</NavigatorTrackBrowserPrimary2Filter>
<NavigatorTrackBrowserSecondaryFilter>30</NavigatorTrackBrowserSecondaryFilter>
<NavigatorTrackBrowserTertiaryFilter>0</NavigatorTrackBrowserTertiaryFilter>

DevilBlackDeath

  • Newbie
  • *
  • Posts: 3
Thanks a lot, that worked :) Doesn't seem to trigger the bug anymore !