DriverStoreExplorer icon indicating copy to clipboard operation
DriverStoreExplorer copied to clipboard

Errors. Handle is not initialized. + Value cannot be null. Parameter name: input. Windows 10 x86.

Open vodek3 opened this issue 10 months ago • 11 comments

DriverStore Explorer 0.12.xxx When choose Options -> Use Native Driver Store in Windows 10 Pro x86 RAPR 0.12.17, 0.12.30, 0.12.40 returns an error: Handle is not initialized. RAPR 0.12.4, 0.12.12 returns an error: Value cannot be null. Parameter name: input

In Windows 10 Pro x64 everything OK. DISM (10.0.19041.3636) and .NET Framework are identical in both versions of Windows 10.

Image

RAPR 0.12.17, 0.12.30, 0.12.40 returns an error: Handle is not initialized. Image

RAPR 0.12.4, 0.12.12 returns an error: Value cannot be null. Parameter name: input Image

.Net Framework installed in system:

Expand
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\CDF

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\CDF\v4.0
  HttpNamespaceReservationInstalled    REG_DWORD    0x1
  NetTcpPortSharingInstalled    REG_DWORD    0x1
  NonHttpActivationInstalled    REG_DWORD    0x1
  SMSvcHostPath    REG_SZ    C:\Windows\Microsoft.NET\Framework64\v4.0.30319\
  WMIInstalled    REG_DWORD    0x1

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v2.0.50727
  CBS    REG_DWORD    0x1
  Increment    REG_SZ    4927
  Install    REG_DWORD    0x1
  OCM    REG_DWORD    0x1
  SP    REG_DWORD    0x2
  Version    REG_SZ    2.0.50727.4927

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v2.0.50727\1028
  Install    REG_DWORD    0x1
  MSI    REG_DWORD    0x1
  OCM    REG_DWORD    0x1

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v2.0.50727\1029
  Install    REG_DWORD    0x1
  MSI    REG_DWORD    0x1
  OCM    REG_DWORD    0x1

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v2.0.50727\1030
  Install    REG_DWORD    0x1
  MSI    REG_DWORD    0x1
  OCM    REG_DWORD    0x1

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v2.0.50727\1031
  Install    REG_DWORD    0x1
  MSI    REG_DWORD    0x1
  OCM    REG_DWORD    0x1

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v2.0.50727\1032
  Install    REG_DWORD    0x1
  MSI    REG_DWORD    0x1
  OCM    REG_DWORD    0x1

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v2.0.50727\1035
  Install    REG_DWORD    0x1
  MSI    REG_DWORD    0x1
  OCM    REG_DWORD    0x1

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v2.0.50727\1036
  Install    REG_DWORD    0x1
  MSI    REG_DWORD    0x1
  OCM    REG_DWORD    0x1

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v2.0.50727\1038
  Install    REG_DWORD    0x1
  MSI    REG_DWORD    0x1
  OCM    REG_DWORD    0x1

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v2.0.50727\1040
  Install    REG_DWORD    0x1
  MSI    REG_DWORD    0x1
  OCM    REG_DWORD    0x1

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v2.0.50727\1041
  Install    REG_DWORD    0x1
  MSI    REG_DWORD    0x1
  OCM    REG_DWORD    0x1

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v2.0.50727\1042
  Install    REG_DWORD    0x1
  MSI    REG_DWORD    0x1
  OCM    REG_DWORD    0x1

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v2.0.50727\1043
  Install    REG_DWORD    0x1
  MSI    REG_DWORD    0x1
  OCM    REG_DWORD    0x1

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v2.0.50727\1044
  Install    REG_DWORD    0x1
  MSI    REG_DWORD    0x1
  OCM    REG_DWORD    0x1

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v2.0.50727\1045
  Install    REG_DWORD    0x1
  MSI    REG_DWORD    0x1
  OCM    REG_DWORD    0x1

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v2.0.50727\1046
  Install    REG_DWORD    0x1
  MSI    REG_DWORD    0x1
  OCM    REG_DWORD    0x1

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v2.0.50727\1049
  CBS    REG_DWORD    0x1
  Increment    REG_SZ    4927
  Install    REG_DWORD    0x1
  MSI    REG_DWORD    0x1
  OCM    REG_DWORD    0x1
  SP    REG_DWORD    0x2
  Version    REG_SZ    2.0.50727.4927

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v2.0.50727\1053
  Install    REG_DWORD    0x1
  MSI    REG_DWORD    0x1
  OCM    REG_DWORD    0x1

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v2.0.50727\1055
  Install    REG_DWORD    0x1
  MSI    REG_DWORD    0x1
  OCM    REG_DWORD    0x1

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v2.0.50727\2052
  Install    REG_DWORD    0x1
  MSI    REG_DWORD    0x1
  OCM    REG_DWORD    0x1

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v2.0.50727\2070
  Install    REG_DWORD    0x1
  MSI    REG_DWORD    0x1
  OCM    REG_DWORD    0x1

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v2.0.50727\3076
  Install    REG_DWORD    0x1
  MSI    REG_DWORD    0x1
  OCM    REG_DWORD    0x1

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v2.0.50727\3082
  Install    REG_DWORD    0x1
  MSI    REG_DWORD    0x1
  OCM    REG_DWORD    0x1

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v3.0
  CBS    REG_DWORD    0x1
  Increment    REG_SZ    4926
  Install    REG_DWORD    0x1
  SP    REG_DWORD    0x2
  Version    REG_SZ    3.0.30729.4926

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v3.0\Servicing

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v3.0\Servicing\Windows Workflow Foundation
  CBS    REG_DWORD    0x1
  Hotfix    REG_SZ    
  Install    REG_DWORD    0x1
  SP    REG_DWORD    0x2
  SPIndex    REG_DWORD    0x0
  SPName    REG_SZ    SP2

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v3.0\Setup
  InstallSuccess    REG_DWORD    0x1
  Version    REG_SZ    3.0.30729.4926

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v3.0\Setup\1049
  CBS    REG_DWORD    0x1
  Increment    REG_SZ    8795
  Install    REG_DWORD    0x1
  InstallSuccess    REG_DWORD    0x1
  SP    REG_DWORD    0x2
  Version    REG_SZ    3.0.30729.8795

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v3.0\Setup\Windows Communication Foundation
  InstallSuccess    REG_DWORD    0x1
  ReferenceInstallPath    REG_SZ    C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\
  RuntimeInstallPath    REG_SZ    C:\Windows\Microsoft.NET\Framework64\v3.0\Windows Communication Foundation\
  Version    REG_SZ    3.0.4506.4926

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v3.0\Setup\Windows Communication Foundation\1049
  InstallSuccess    REG_DWORD    0x1

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v3.0\Setup\Windows Presentation Foundation
  (по умолчанию)    REG_SZ    WPF v3.0.6920.4902
  InstallRoot    REG_SZ    C:\Windows\Microsoft.NET\Framework64\v3.0\WPF\
  InstallSuccess    REG_DWORD    0x1
  ProductVersion    REG_SZ    3.0.6920.4902
  Version    REG_SZ    3.0.6920.4902
  WPFCommonAssembliesPathx64    REG_SZ    C:\Windows\System32\
  WPFNonReferenceAssembliesPathx64    REG_SZ    C:\Windows\Microsoft.NET\Framework64\v3.0\WPF\
  WPFReferenceAssembliesPathx64    REG_SZ    C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v3.0\Setup\Windows Workflow Foundation
  (по умолчанию)    REG_SZ    Windows Workflow Foundation
  FileVersion    REG_SZ    3.0.4203.4926
  InstallDir    REG_SZ    C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\
  InstallSuccess    REG_DWORD    0x1
  MajorBuildNum    REG_SZ    4203
  ProductVersion    REG_SZ    3.0.0.0

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v3.5
  CBS    REG_DWORD    0x1
  Install    REG_DWORD    0x1
  InstallPath    REG_SZ    C:\Windows\Microsoft.NET\Framework64\v3.5\
  SP    REG_DWORD    0x1
  Version    REG_SZ    3.5.30729.4926

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v3.5\1049
  CBS    REG_DWORD    0x1
  Install    REG_DWORD    0x1
  SP    REG_DWORD    0x1
  Version    REG_SZ    3.5.30729.4926

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v4

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v4\Client
  CBS    REG_DWORD    0x1
  Install    REG_DWORD    0x1
  InstallPath    REG_SZ    C:\Windows\Microsoft.NET\Framework64\v4.0.30319\
  Release    REG_DWORD    0x8234d
  Servicing    REG_DWORD    0x0
  TargetVersion    REG_SZ    4.0.0
  Version    REG_SZ    4.8.09037

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v4\Client\1033
  CBS    REG_DWORD    0x1
  Install    REG_DWORD    0x1
  Release    REG_DWORD    0x8234d
  Servicing    REG_DWORD    0x0
  TargetVersion    REG_SZ    4.0.0
  Version    REG_SZ    4.8.09037

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v4\Client\1049
  CBS    REG_DWORD    0x1
  Install    REG_DWORD    0x1
  Release    REG_DWORD    0x8234d
  Servicing    REG_DWORD    0x0
  TargetVersion    REG_SZ    4.0.0
  Version    REG_SZ    4.8.09037

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v4\Full
  CBS    REG_DWORD    0x1
  Install    REG_DWORD    0x1
  InstallPath    REG_SZ    C:\Windows\Microsoft.NET\Framework64\v4.0.30319\
  Release    REG_DWORD    0x8234d
  Servicing    REG_DWORD    0x0
  TargetVersion    REG_SZ    4.0.0
  Version    REG_SZ    4.8.09037

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v4\Full\1033
  CBS    REG_DWORD    0x1
  Install    REG_DWORD    0x1
  Release    REG_DWORD    0x8234d
  Servicing    REG_DWORD    0x0
  TargetVersion    REG_SZ    4.0.0
  Version    REG_SZ    4.8.09037

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v4\Full\1049
  CBS    REG_DWORD    0x1
  Install    REG_DWORD    0x1
  Release    REG_DWORD    0x8234d
  Servicing    REG_DWORD    0x0
  TargetVersion    REG_SZ    4.0.0
  Version    REG_SZ    4.8.09037

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v4.0
  (по умолчанию)    REG_SZ    deprecated

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Net Framework Setup\NDP\v4.0\Client
  Install    REG_DWORD    0x1
  Version    REG_SZ    4.0.0.0

RAPR log in Windows x86. Error. Handle is not initialized:

Expand
2025-02-24 09:22:49Z [Information]: ---------------------------------------------------------------
2025-02-24 09:22:49Z [Information]: Rapr started
2025-02-24 09:22:49Z [Information]: Scanning driver store...
2025-02-24 09:23:00Z [Information]: Ready
2025-02-24 09:23:03Z [Information]: Scanning driver store...
2025-02-24 09:23:03Z [Error]: System.InvalidOperationException: Handle is not initialized.
 at System.Runtime.InteropServices.GCHandle.FromIntPtr(IntPtr value)
 at Rapr.Utils.NativeDriverStore.EnumDriverPackages(IntPtr driverStoreHandle, String driverStoreFilename, DriverPackageInfo pDriverPackageInfo, IntPtr lParam)
 at Rapr.Utils.NativeDriverStore.NativeMethods.DriverStoreEnum(IntPtr driverStoreHandle, DriverStoreEnumFlags flags, EnumDriverPackageDelegate CallbackRoutine, IntPtr lParam)
 at Rapr.Utils.NativeDriverStore.EnumeratePackages()
 at Rapr.DSEForm.<PopulateUIWithDriverStoreEntries>b__17_0()
 at System.Threading.Tasks.Task`1.InnerInvoke()
 at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
 at Rapr.DSEForm.<PopulateUIWithDriverStoreEntries>d__17.MoveNext()
2025-02-24 09:23:09Z [Information]: Shutting down - reason UserClosing

RAPR log in Windows x86. Error. Value cannot be null. Parameter name: input:

Expand
2025-02-25 13:32:19Z [Information]: ---------------------------------------------------------------
2025-02-25 13:32:19Z [Information]: Rapr started
2025-02-25 13:32:20Z [Information]: Scanning driver store...
2025-02-25 13:32:20Z [Error]: System.ArgumentNullException: Value cannot be null.
Parameter name: input
 at System.Version.Parse(String input)
 at Rapr.Utils.NativeDriverStore.EnumDeviceObjects(IntPtr hDriverStore, DriverStoreObjectType ObjectType, String ObjectName, IntPtr lParam)
 at Rapr.Utils.NativeDriverStore.NativeMethods.DriverStoreEnumObjects(IntPtr hDriverStore, DriverStoreObjectType objectType, DRIVERSTORE_LOCK_LEVEL flags, EnumObjectsDelegate callbackRoutine, IntPtr lParam)
 at Rapr.Utils.NativeDriverStore.EnumeratePackages()
 at Rapr.DSEForm.<PopulateUIWithDriverStoreEntries>b__17_0()
 at System.Threading.Tasks.Task`1.InnerInvoke()
 at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
 at Rapr.DSEForm.<PopulateUIWithDriverStoreEntries>d__17.MoveNext()



vodek3 avatar Feb 24 '25 18:02 vodek3

Fixed the second issue, but wasn't able to repro the first issue w/ Win 7 x86. I'll try install a Win 10 x86 and try repro later.

lostindark avatar Mar 04 '25 16:03 lostindark

Hello! What about first error? ;)

vodek3 avatar Apr 18 '25 11:04 vodek3

Windows 10 22H2 32-bit with the latest updates. Deleted old Rapr.exe, log and configuration, there is no Rapr directory in the profile. Version 0.12.64 is fine; starting from 0.12.82 it gives this Handle... error. Log from v0.12.82 is like this:

2025-08-04 21:03:03Z [Error]: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\user\AppData\Local\Rapr\Rapr.exe_StrongName_2qkvgjdh5q4milxp1wrxvzhaovxuvdyo'. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileSystemEnumerableIterator1.CommonInit() at System.IO.FileSystemEnumerableIterator1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler1 resultHandler, Boolean checkHost) at System.IO.DirectoryInfo.EnumerateDirectories(String searchPattern, SearchOption searchOption) at Rapr.Program.CleanUpOldConfig() at Rapr.Program.Main() 2025-08-04 21:03:03Z [Information]: --------------------------------------------------------------- 2025-08-04 21:03:03Z [Information]: Rapr started 2025-08-04 21:03:03Z [Information]: Scanning driver store... 2025-08-04 21:03:03Z [Error]: System.InvalidOperationException: Handle is not initialized. at System.Runtime.InteropServices.GCHandle.FromIntPtr(IntPtr value) at Rapr.Utils.NativeDriverStore.EnumDriverPackages(IntPtr driverStoreHandle, String driverStoreFilename, DriverPackageInfo pDriverPackageInfo, IntPtr lParam) at Rapr.Utils.NativeDriverStore.NativeMethods.DriverStoreEnum(IntPtr driverStoreHandle, DriverStoreEnumFlags flags, EnumDriverPackageDelegate CallbackRoutine, IntPtr lParam) at Rapr.Utils.NativeDriverStore.EnumeratePackages() at Rapr.DSEForm.<PopulateUIWithDriverStoreEntries>b__19_0() at System.Threading.Tasks.Task1.InnerInvoke() at System.Threading.Tasks.Task.Execute() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Rapr.DSEForm.<PopulateUIWithDriverStoreEntries>d__19.MoveNext() 2025-08-04 21:03:09Z [Information]: Shutting down - reason UserClosing

irwir avatar Aug 04 '25 21:08 irwir

Windows 10 22H2 32-bit with the latest updates. Deleted old Rapr.exe, log and configuration, there is no Rapr directory in the profile. Version 0.12.64 is fine; starting from 0.12.82 it gives this Handle... error. Log from v0.12.82 is like this:

that's because v0.12.64 & earlier had the "Use DISM" option as the default option, which works correctly on 32bit/x86 Win10. it's only the "Use Native Driver Store" option that is "broken" and cannot properly access the "native" driver store on 32bit only editions of Windows {that option is also not working in v0.12.100 on my old laptop with Win10 LTSC 2021 x86; had to select "Use DISM" on such x86 platforms for DriverStore Explorer to view the entire list of installed drivers}.

Hello! What about first error? ;)

not fixed in the newest versions; so that issue remains

epman100 avatar Aug 07 '25 17:08 epman100

Same here on W10 X64 use Native Method does not show any drivers DISM option works thou

dtoxic47 avatar Aug 07 '25 22:08 dtoxic47

Wasn't able to get Native Driver Store to work on x86 system yet, so disable it and only allow DISM/PnpUtil for now.

lostindark avatar Aug 10 '25 07:08 lostindark

Same here on W10 X64 use Native Method does not show any drivers DISM option works thou

No it's not.

Image

vodek3 avatar Aug 12 '25 00:08 vodek3

Yes it is,native mode does not work,should i upload a picture or can you trust me :)

dtoxic47 avatar Aug 12 '25 05:08 dtoxic47

Yes it is,native mode does not work,should i upload a picture or can you trust me :)

Why do I need Your screenshot if I have my own where it is clear that everything works? Trust me, this is Windows 10 x64.

vodek3 avatar Aug 12 '25 20:08 vodek3

And here is my screenshot so clearly it's not working on all setups,but tell you what why don't you flip a coin Heads it works, Tails it does not work then the dev can focus on the issue or not at all i am sure that's how problems in programing are fixed these days.

So for next time instead coming to a definitive conclusion yes or no, wait for a bit more info if it works on your pc awesome,but your pc is not the same as all the pc's in the world it's just one of many.

Image

dtoxic47 avatar Aug 12 '25 20:08 dtoxic47

instead coming to a definitive conclusion

Russians have a proverb "Сколько не говори сахар - во рту от этого слаще не станет". Translated into English it sounds something like this "No matter how much you say sugar, it won't make your mouth any sweeter".

I have three computer with Windows x64. On each option "Use Native Driver Store" is work. On each installed: Microsoft Windows Pro 10.0.19045.6159 x64 DISM 10.0.19041.3636 Microsoft .Net Framework 4.0.30319/3.5/3.0/2.0.50727/1.1.4322/1.0.3705

May be problem with Your computer? Shall we flip a coin?

P.S. To be honest I have to say that I have four computers. On fourth installed: Microsoft Windows Pro 10.0.19045.5608 x86 DISM 10.0.19041.3636 Microsoft .Net Framework 4.0.30319/3.5/3.0/2.0.50727/1.1.4322/1.0.3705

And on this computer (with Windows 10 x86) option "Use Native Driver Store" does not work and has never worked. I read the logs, I took screenshots, flipped a coin, and even said "Sugar" many times. Nothing helps.... Trust me!

vodek3 avatar Aug 13 '25 12:08 vodek3