lastfm / lastfm-windows-desktop

Last.fm Desktop app for Windows (3.0)
GNU General Public License v3.0
10 stars 1 forks source link

First install crashes with a JIT exception #67

Closed ben-xo closed 6 years ago

ben-xo commented 6 years ago

Steps to reproduce:

Results: After installation, you get a JIT exception

See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.

** Exception Text ** System.NullReferenceException: Object reference not set to an instance of an object. at LastFM.Common.ApplicationConfiguration.CheckPluginDefaultStatus() at LastFM.Common.ApplicationConfiguration.Initialize() at LastFM.Common.Core.InitializeApplication() at DesktopScrobbler.ScrobblerUi.d11.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.b6_0(Object state)

** Loaded Assemblies ** mscorlib Assembly Version: 4.0.0.0 Win32 Version: 4.7.2053.0 built by: NET47REL1 CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll

Last.fm Desktop Scrobbler Assembly Version: 3.1.12.12 Win32 Version: 1.0.0.0 CodeBase: file:///C:/Program%20Files%20(x86)/Last.fm/Last.fm%20Desktop%20Scrobbler/Last.fm%20Desktop%20Scrobbler.exe

System Assembly Version: 4.0.0.0 Win32 Version: 4.7.2053.0 built by: NET47REL1 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

System.Core Assembly Version: 4.0.0.0 Win32 Version: 4.7.2053.0 built by: NET47REL1 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

LastFM.Common Assembly Version: 3.1.12.11 Win32 Version: 3.1.12.11 CodeBase: file:///C:/Program%20Files%20(x86)/Last.fm/Last.fm%20Desktop%20Scrobbler/LastFM.Common.DLL

System.Windows.Forms Assembly Version: 4.0.0.0 Win32 Version: 4.7.2053.0 built by: NET47REL1 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System.Drawing Assembly Version: 4.0.0.0 Win32 Version: 4.7.2053.0 built by: NET47REL1 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

LastFM.ApiClient Assembly Version: 3.1.12.11 Win32 Version: 1.0.0.0 CodeBase: file:///C:/Program%20Files%20(x86)/Last.fm/Last.fm%20Desktop%20Scrobbler/LastFM.ApiClient.DLL

System.Configuration Assembly Version: 4.0.0.0 Win32 Version: 4.7.2053.0 built by: NET47REL1 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

System.Xml Assembly Version: 4.0.0.0 Win32 Version: 4.7.2053.0 built by: NET47REL1 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

Newtonsoft.Json Assembly Version: 10.0.0.0 Win32 Version: 10.0.3.21018 CodeBase: file:///C:/Program%20Files%20(x86)/Last.fm/Last.fm%20Desktop%20Scrobbler/Newtonsoft.Json.DLL

** JIT Debugging ** To enable just-in-time (JIT) debugging, the .config file for this application or computer (machine.config) must have the jitDebugging value set in the system.windows.forms section. The application must also be compiled with debugging enabled.

For example:

When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the computer rather than be handled by this dialog box.

ben-xo commented 6 years ago

Fixed this one all by myself. default settings was checking plugins too early, and not initializing the plugin list properly.