Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Object reference not set to an instance of an object #87

Open
apellier opened this issue May 16, 2024 · 5 comments
Open

[Bug] Object reference not set to an instance of an object #87

apellier opened this issue May 16, 2024 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@apellier
Copy link

馃悶 Bug Report

Describe the bug

  • Hello, this is the first time I am using the tool and on launch I get an error : "Object reference not set to an instance of an object" from the .NET Framework tool. I can still continue to the download window but when I try to download anything I get an error.

Is this a regression?

As I have not use the tool yet, I can't say it's a regression.


To Reproduce

  1. Launch the .exe
  2. Login with credentials
  3. Authentification is cleared, then a window pops up with the error message
  4. Click on "Continue"
  5. Search a track or paste the track URL
  6. Click on Download
  7. Get error message + track is not downloaded

Expected behaviour

  • No error pop up should be displayed and download should proceed normally

Screenshots

image
image


Download_Errors.log

@DJDoubleD
Copy link
Owner

@apellier I have a few additional questions in order to hopefully better be able to investigate and solve this issue:

  1. What OS are you running (I can only test Windows 10 atm)?
  2. Can you make sure that you have the .net 4.8 framework installed?
  3. You say you get the error pop-up right after login. In the error window from your screenshot, there is a text area at the bottom with a very long error log. Could you please copy that entire error message, paste it in a txt file and add that file to this issue? I can't see the entire message just from the screenshot and text is easier...

@DJDoubleD DJDoubleD self-assigned this May 18, 2024
@DJDoubleD DJDoubleD added the bug Something isn't working label May 18, 2024
@xdjohn99
Copy link

@apellier I have a few additional questions in order to hopefully better be able to investigate and solve this issue:

  1. What OS are you running (I can only test Windows 10 atm)?
  2. Can you make sure that you have the .net 4.8 framework installed?
  3. You say you get the error pop-up right after login. In the error window from your screenshot, there is a text area at the bottom with a very long error log. Could you please copy that entire error message, paste it in a txt file and add that file to this issue? I can't see the entire message just from the screenshot and text is easier...

I have the same issue. It started happening a few days ago, after Windows 10 automatically updated the system. (In terms of timing, that's how it happened, but I'm not sure if the two are related.)

  1. WIN 10 22H2

  2. Installed

  3. Here:

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 QobuzDownloaderX.QobuzDownloaderX.MainForm_Load(Object sender, EventArgs e) in D:\a\QobuzDownloaderX-MOD\QobuzDownloaderX-MOD\QobuzDownloaderX\View\MainForm.cs:line 74
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at System.Windows.Forms.Form.OnCreateControl()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WmShowWindow(Message& m)
   at System.Windows.Forms.Form.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)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.9241.0 built by: NET481REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
QobuzDownloaderX
    Assembly Version: 1.2.5.0
    Win32 Version: 1.2.5.0
    CodeBase: file:///E:/QBDLX-MOD_1.2.5.0/QobuzDownloaderX.exe
----------------------------------------
PortableJsonSettingsProvider
    Assembly Version: 0.2.2.0
    Win32 Version: 0.2.2.0
    CodeBase: file:///E:/QBDLX-MOD_1.2.5.0/PortableJsonSettingsProvider.DLL
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.9236.0 built by: NET481REL1LAST_B
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.9037.0 built by: NET481REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.9241.0 built by: NET481REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.9181.0 built by: NET481REL1LAST_C
    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.8.9037.0 built by: NET481REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.9037.0 built by: NET481REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Accessibility
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.9037.0 built by: NET481REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Net.Http
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.9037.0 built by: NET481REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Net.Http/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Net.Http.dll
----------------------------------------
Newtonsoft.Json
    Assembly Version: 13.0.0.0
    Win32 Version: 13.0.3.27908
    CodeBase: file:///E:/QBDLX-MOD_1.2.5.0/Newtonsoft.Json.DLL
----------------------------------------
System.Numerics
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.9037.0 built by: NET481REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------
System.Xml.Linq
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.9037.0 built by: NET481REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll
----------------------------------------
System.Runtime.Serialization
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.9241.0 built by: NET481REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll
----------------------------------------
System.Data
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.9214.0 built by: NET481REL1LAST_B
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
QobuzApiSharp
    Assembly Version: 0.0.7.0
    Win32 Version: 0.0.7.0
    CodeBase: file:///E:/QBDLX-MOD_1.2.5.0/QobuzApiSharp.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:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

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.

@xdjohn99
Copy link

Additionally. The search function is still available but it cannot download.

@DJDoubleD
Copy link
Owner

I am myself on Windows 10 22H2 and I cannot reproduce this error.
The error itself seems to imply that the login succeeded but the some internal objects do not get created before the main window is opened.
From the screenshot from the main window that @apellier added, it seems normal that downloading will fail after this error occurred, since the internal user object is missing (see bottom left "Logged in as %name%" where the %name% variable is missing)

@xdjohn99 & @apellier: a few questions:

  1. Do you get this error constantly every time you run the program?
  2. Could you try some older versions and see if the error also occurs there?
    If some older version should run without the error, please let me know which version so I can investigate further.
  3. Could you please just try to re-install the latest .net framework and see if this changes anything?

@xdjohn99
Copy link

  1. Yes, every time
  2. I tried version 1.2.4.0, same problem
  3. It still doesn't work. When I discovered this issue a couple of days ago, I reinstalled it immediately through .net framework

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants