Any time I play a track using this plugin, my MusicBee throws an error and then crashes.
MusicBee v3.4.7764.37422D (Win10.0), 6 Nov 2022 12:52:
System.NullReferenceException: Object reference not set to an instance of an object.
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_1(Object state)
at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
Initially thought it was an incompatibility with another plugin, but this same error happens even when I clear both my C:\Program Files (x86)\MusicBee\Plugins folder and my %appdata%\MusicBee\Plugins folder and only install this one. Anyone have any idea how to fix this?
Same error here, the plugin maker kindly included the source files in the plugin download so I'm sure if they are too busy, one of us can suss this out. I'll take a look sometime myself too to see what's gone wrong but I'm more of a game programmer than a native plugin programmer. I disabled the plugin for now in my install of the Windows Store version.
For me the plugin didn't ever install or work properly until I installed this other spotify plugin first https://www.getmusicbee.com/addons/plugins/340/copy-spotify-url/
was something to do with EmbedIO.dll every time I tried to install, or the plugin couldn't access musicbeeplugin.plugin until I installed that other plugin first then tried to install spotify integration plugin by navigating to the mb_Spotify-Plugin.dll using the 'Add Plugin' button in MusicBee.
I think the issue is due to missing steps that seems to only be shown in the video. After copying the files to your Plugins folder, you need to enable the mb_spotify_plugin element on Layout (1). Once this is saved, you will be taken to the Spotify page to approve access to your account. After that is approved, you can play music in Musicbee with no errors. Here are the steps I took:
1. Closed Musicbee if open
2. Downloaded the plugin ZIP file
3. Extracted the contents
4. Copied the DLL files from the Plugins folder
5. Pasted the DLL files here: C:\Program Files (x86)\MusicBee\Plugins
6. Launched Musicbee
7. While on the Music tab, opened the Edit Preferences
8. Selected the Layout (1) option
9. Clicked the Arrange Panels button
10. Placed a check next to the mb_spotify_plugin option in the Available Elements section
11. Clicked Save and Save to exit Preferences
12. Taken to a Spotify page to authorize the Music Bee Spotify PKCE to access my Spotify account
13. Clicked on Agree
14. Taken to a Success page
From there, you should see a Spotify Plugin panel visible on the Music tab (bottom right corner on default skin) that will allow you to add the currently playing Track, Album, Artist to Spotify.
I think it is the missing panel and authentication steps that are causing this error to occur.