MarcoPNS / Spotify-Stream-Widget

Stream Widget for Spotify is a small Tool for Streamers to show the current Track of Spotify to your Viewers! Used by hundreds of Streamers daily 🚀 ❤️
https://widgetapp.stream/
GNU General Public License v3.0
141 stars 17 forks source link

Unhandled Exception - Win10 #69

Closed Geowil closed 2 years ago

Geowil commented 2 years ago

Getting this occasionally while the widget is running after several hours. Will happen multiple times even after closing the widget, reopening, and reconnecting to Spotify.

** Exception Text ** System.NullReferenceException: Object reference not set to an instance of an object. at Spotify_Stream_Widget.Viewer.VB$StateMachine_42__spotify_OnAccessTokenExpired.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.b__6_0(Object state)

MarcoPNS commented 2 years ago

Hi! Thank your the info. Can you upload your log file? You can find it in in the application folder under /Logs/

Geowil commented 2 years ago

2022-09-15.log Here you go.

MarcoPNS commented 2 years ago

@Geowil Thank you! Could you update to 1.5 and see if it still happens?

Geowil commented 2 years ago

Yes, it is still happening. The errors are different now that they are being handled and say what the logs say now; the auth token has expired.

MarcoPNS commented 2 years ago

Could you send me the new log file?

Geowil commented 2 years ago

2022-09-19.log 2022-09-18.log

MarcoPNS commented 2 years ago

Could you try out this beta release? https://github.com/MarcoPNS/Spotify-Stream-Widget/raw/main/Release/Spot_Widget_1_5_0_1.zip

Geowil commented 2 years ago

The errors have stopped, however the issue still happens occasionally. When it does, the widget stops updating. Here is yesterday's log. 2022-09-20.log

MarcoPNS commented 2 years ago

This is actually very interesting! The timer fails and there is no refresh. The app doesn't even try.

Thank you! I'll try to prepare a second beta. I think it should be fixed then.

MarcoPNS commented 2 years ago

The new beta should work! https://github.com/MarcoPNS/Spotify-Stream-Widget/raw/main/Release/Spot_Widget_1_5_0_2.zip

Geowil commented 2 years ago

Still getting auth issues. If the auth is lost and after attempting to reconnect the widget to Spotify, the widget crashes if auth access is lost again.