Menu

#260 Editor/Configurator will not open if the user's startup folder does not exist.

1.x
open
nobody
2023-11-18
2023-08-31
Kevin A
No

In VoicemeeterAPOInfo.cpp the function "wstring VoicemeeterAPOInfo::getStartupPath()",
if the user's startup folder does not exist this function will cause SHGetKnownFolderPath to not return a proper path for startupPath. This will causes a memory access violation since its reading memory from null. The editor and the configurator will not open because of it.

Discussion

  • Peter Verbeek

    Peter Verbeek - 2023-08-31

    Unfortunately this bug probably won't be fixed for a long time as the developer isn't very active. In what circumstances does this bug occur?

     
  • Andrey Ilyin

    Andrey Ilyin - 2023-11-18

    Got the same issue and start debugging.
    It crashes then folder "%APPDATA%\Microsoft\Windows\Start Menu\Programs\StartUp" doesn't exists
    It's also possible that there is no "Startup" value in the registry because I added it there first.

    HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders

     
    • Peter Verbeek

      Peter Verbeek - 2023-11-18

      On my Windows 11 laptop I have the value %USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup in HKEYCURRENTUSER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders. Btw. I didn't add this myself. The developer probably, and maybe correctly, assumed that this registry key was always available. If it indeed should be the case then the question is why it isn't available on some Windows computers.

       
      • Andrey Ilyin

        Andrey Ilyin - 2023-11-18

        If this is important: I had a replacement of the motherboard and CPU without removing the equalizer. Then I deleted the user profile and logged in a domain account later, i.e. A freshly created profile was used. (Enterprise Windows with Active Directory)

         
        • Peter Verbeek

          Peter Verbeek - 2023-11-18

          Do you think that the registry key value was deleted after deleting the (former) user profile? In principle it should remain and work nicely by the %USERPROFILE% environment variable for a new profile.

           

Log in to post a comment.