Author Topic: Genres, Moods and Themes Manager (V1.1.0)  (Read 23078 times)

phred

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8516
Suggestions?
Yes, see if there's anything in the Error Log around the time of the crash and post it here.
Download the latest MusicBee v3.5 patch from here.
Unzip into your MusicBee directory and overwrite existing files.

----------
Check out the MusicBee Wiki.
How to post screenshots is here.

jan_axhell

  • Jr. Member
  • **
  • Posts: 49
If you mean ErrorLog.dat in .\Roaming\MusicBee, the last entry is this, but it's in italian. My PC language is Italian, but I've set MB to be in English, I don't know how to make the log to be in english...

Code
12/07/2019 15:06:59 - 6.1.7601.65536 - 3.3.7115.39210 - System.ArgumentNullException: Il valore non può essere null.
Nome parametro: key
   in System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
   in MusicBeePlugin.Core.Bot.CacheBot.Set(CacheObject obj) in E:\Projects\MusicBeeAllMusic\MusicBeePlugin.Core\Bot\CacheBot.cs:riga 105
   in proto_2(Object , ProtoReader )
   in ProtoBuf.Serializers.CompiledSerializer.ProtoBuf.Serializers.IProtoSerializer.Read(Object value, ProtoReader source)
   in ProtoBuf.Meta.RuntimeTypeModel.Deserialize(Int32 key, Object value, ProtoReader source)
   in ProtoBuf.Meta.TypeModel.DeserializeCore(ProtoReader reader, Type type, Object value, Boolean noAutoCreate)
   in ProtoBuf.Meta.TypeModel.Deserialize(Stream source, Object value, Type type, SerializationContext context)
   in ProtoBuf.Serializer.Deserialize[T](Stream source)
   in MusicBeePlugin.Core.Bot.CacheBot.LoadFile(String sourceFilePath) in E:\Projects\MusicBeeAllMusic\MusicBeePlugin.Core\Bot\CacheBot.cs:riga 153
   in MusicBeePlugin.Core.Bot.GmtBot.LoadCache() in E:\Projects\MusicBeeAllMusic\MusicBeePlugin.Core\Bot\GmtBot.cs:riga 72
   in MusicBeePlugin.Core.Bot.GmtBot..ctor(List`1 fileList, GmtBotOptions options) in E:\Projects\MusicBeeAllMusic\MusicBeePlugin.Core\Bot\GmtBot.cs:riga 54
   in MusicBeePlugin.Core.Bot.Window_LaunchBot.RunBot(GmtBotOptions options) in E:\Projects\MusicBeeAllMusic\MusicBeePlugin.Core\Bot\Window_LaunchBot.xaml.cs:riga 69
   in MusicBeePlugin.Core.Bot.Window_LaunchBot.StartBot() in E:\Projects\MusicBeeAllMusic\MusicBeePlugin.Core\Bot\Window_LaunchBot.xaml.cs:riga 64
   in MusicBeePlugin.Core.Bot.Window_LaunchBot._btn_startBot_Click(Object sender, RoutedEventArgs e) in E:\Projects\MusicBeeAllMusic\MusicBeePlugin.Core\Bot\Window_LaunchBot.xaml.cs:riga 52
   in System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   in System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   in System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   in System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
   in System.Windows.Controls.Primitives.ButtonBase.OnClick()
   in System.Windows.Controls.Button.OnClick()
   in System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
   in System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
   in System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   in System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   in System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   in System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   in System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
   in System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
   in System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   in System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   in System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   in System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   in System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   in System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   in System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
   in System.Windows.Input.InputManager.ProcessStagingArea()
   in System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   in System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   in System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   in System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   in System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   in MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   in MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   in System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   in System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   in System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   in MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   in System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
   in System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
   in System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   in System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   in #=zp3mnLl5XXxGRjcZYJbuAWZc2sGRO.Main(String[] args)

phred

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8516
I don't think there's any need to worry about the language. Steven should be able to decode it.
Download the latest MusicBee v3.5 patch from here.
Unzip into your MusicBee directory and overwrite existing files.

----------
Check out the MusicBee Wiki.
How to post screenshots is here.

jan_axhell

  • Jr. Member
  • **
  • Posts: 49
Update:
I have made the most trivial, yet so trivial that eluded me, operation: I have uninstalled GMT Bot from MusicBee, deleted the DLL from Plugins folder, started MB again without it, then closed, extracted again GMT DLL from zip to Plugins folder, and now it works.
How is this possible? It corrupted itself while using it?

Update 2:
I've figured that this happens with certain albums with no particular problem, but if I retag them with something new/different with mp3tag, they don't make MB crash anymore when launching GMT Bot.

Update 3 - One Year Later:
Happened again after no issue until today. Done again as Update 1, again solved. For some reason GMT Bot gets randomly corrupt.
Last Edit: July 01, 2020, 09:29:25 AM by jan_axhell

jan_axhell

  • Jr. Member
  • **
  • Posts: 49
I apparently had a crash on 2021-08-18 which I didn't notice until today.
I have now 2 problems

1) I cannot enable GMTmanager plugin (and maybe others)


2) MB takes hours to scan library as if it was the first time, puts new stuff inside INBOX, I can manage and tag everything, but when I close MB it says it cannot write to database because it's corrupt.

I am assuming the problem started when this apeared in the error.log
Code
18/08/2021 21:58:59 - 10.0.19043.0 - 3.4.7805.33439D - System.Reflection.TargetInvocationException: Eccezione generata dalla destinazione di una chiamata. ---> System.NullReferenceException: Riferimento a un oggetto non impostato su un'istanza di oggetto.
   in MusicBeePlugin.Core.PluginSettings.LoadSettings() in E:\Projects\MusicBeeAllMusic\MusicBeePlugin.Core\Settings\PluginSettings.cs:riga 129
   in MusicBeePlugin.Plugin.Initialise(IntPtr apiInterfacePtr)
   --- Fine della traccia dello stack dell'eccezione interna ---
   in System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   in System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   in System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   in System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
   in #=zlFwaJ1S_oYR_8J8laA==..ctor(#=zVzsNxnIpA1tczBaJkA== #=zMbi_FLA=)

and today as well
Code
05/09/2021 18:56:20 - 10.0.19043.0 - 3.4.7805.33439D - System.Reflection.TargetInvocationException: Eccezione generata dalla destinazione di una chiamata. ---> System.NullReferenceException: Riferimento a un oggetto non impostato su un'istanza di oggetto.
   in MusicBeePlugin.Core.PluginSettings.LoadSettings() in E:\Projects\MusicBeeAllMusic\MusicBeePlugin.Core\Settings\PluginSettings.cs:riga 129
   in MusicBeePlugin.Plugin.Initialise(IntPtr apiInterfacePtr)
   --- Fine della traccia dello stack dell'eccezione interna ---
   in System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   in System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   in System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   in System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
   in #=zlFwaJ1S_oYR_8J8laA==..ctor(#=zVzsNxnIpA1tczBaJkA== #=zMbi_FLA=)

There is no such "E:\Projects\MusicBeeAllMusic\MusicBeePlugin.Core\Settings\PluginSettings.cs" anywhere on my PC, I don't know where that came from.

For problem 1 I tried to uninstall plugin and manually remove it/restart MB without it/reinstalling it with no success.
For problem 2 I tried to restore previous settings and library with no success.


phred

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8516
Did you look at your previous posts relating to this plugin and (perhaps) a similar issue?
https://getmusicbee.com/forum/index.php?topic=20765.msg161973#msg161973

Going forward I suggest you post plugin related issues in thread belonging to that plugin so the plugin developer will see it. I have merged today's post to the plugin thread. Although in this case the dev hasn't been on the forum for almost three years.
Download the latest MusicBee v3.5 patch from here.
Unzip into your MusicBee directory and overwrite existing files.

----------
Check out the MusicBee Wiki.
How to post screenshots is here.

jan_axhell

  • Jr. Member
  • **
  • Posts: 49
I wrote in that very thread how I solved GMT problems in the past and I have created a new thread on purpose because my current problem is wider than the single plugin issue.

phred

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8516
Both error messages you  posted today are the same. And they relate to a plugin. The only way to isolate which plugin is causing the problem is to disable all of them and add them back in one at a time until the problem reappears. Be sure to exit and restart MB after disabling them all. And again after adding back each one.

I would guess that the GMT plugin is the problem for both the first and the second issue. Especially since the plugin writes tags it may have corrupted the database. But you'll have to wait for the plugin developer, or in his absence, Steven, to offer an explanation and/or solution.
Download the latest MusicBee v3.5 patch from here.
Unzip into your MusicBee directory and overwrite existing files.

----------
Check out the MusicBee Wiki.
How to post screenshots is here.

jan_axhell

  • Jr. Member
  • **
  • Posts: 49
Ok, about Library corruption, I have solved by applying Tools/Advanced/Rescan All Files
This time MB saved everything without whining about corruption and loaded everything fine after restart.

About GMT, no way. I have disabled ALL plugins, restarted with all disabled, uninstalled GMT, removed DLL from Plugins folder, restarted again AND another time before installing GMT back, but it gives the same error of the screenshot above.

I have tried API version plugin and it says
InterfaceVersion: 41
ApiRevision: 54
I don't know if that's some sort of inconsistency that might be involved in plugins.

EDIT
I have installed the Portable version of MusicBee and loaded settings from the other version. In this case I had no problem installing GMTManager plugin and using it out of the box. I have tried to reinstall normal version of MusicBee over itself, but nothing changed. There is something broken somewhere and I am afraid to uninstall it, I have so many custom settings and there are thing that apparently make no sense, like some plugins go in MusicBee program folder, some others go in .\Roaming\MusicBee, why scatter them?

EDIT 2
Ok, SOLVED.
GMT plugin creates a GMTManager subfolder inside .\Roaming\Musicbee
That folder contained stuff saved exactly on the date of the crash. I have deleted that folder and finally GMT plugin could be installed properly and now works.
The portable MusicBee worked immediately because it installed GMT plugin inside its own folder, which was new and did not contain the damaged GMTManager subfolder.

Well, at least next time this happens I'll have plenty of info for fixing.
Last Edit: September 06, 2021, 12:40:07 PM by jan_axhell