dxgldotorg / dxgl

DXGL DirectX-to-OpenGL Wrapper source code
https://dxgl.org
GNU Lesser General Public License v2.1
193 stars 16 forks source link

[Installer bug] Instalalltion stuck on profile_install #14

Closed AndyShade closed 7 months ago

AndyShade commented 1 year ago

2022-11-12_164118 Running under admin and not Trying all types of installer current,experimental,legacy and early builds and both archs. winver 21h2 build 19044.1706

aleex5 commented 1 year ago

the same thing happens to me, I've tried many times and it never goes beyond that.

dxgldotorg commented 10 months ago

Hello. Anyone having this problem, please open Registry Editor, navigate to HKEY_CURRENT_USER\Software\DXGL, and use File->Export to export the DXGL branch, and attach it here. That way I can investigate what causes the upgrade process to hang.

Ohrwerk commented 10 months ago

Test on Windows 7 SP1 Install path C:\Games\DXGL Clean Install I have tried it with versions DXGL-0.5.20-win32-msvc10.exe and DXGL-0.5.20-win32.exe, the setup always hangs at DXGLCFG.EXE. When I kill DXGLCFG.EXE with the taskmanager, the setup continues (same at uninst). If I then start DXGLCFG.EXE nothing happens, only in the taskmanager the program is displayed.

I could install the older DXGL-0.5.5-win32.exe version, but I can't configure anything. I get a completely different UI than under Windows XP. Sorry, but I have no idea how to upload a screenshot here.

Unfortunately there is not much in the registry DXGL-0.5.5-win32.exe

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\DXGL]

[HKEY_CURRENT_USER\Software\DXGL\DXGLTestApp]
"InstallPaths"=hex(7):43,00,3a,00,5c,00,47,00,61,00,6d,00,65,00,73,00,5c,00,44,\
  00,58,00,47,00,4c,00,00,00,00,00

[HKEY_CURRENT_USER\Software\DXGL\Global]

DXGL-0.5.20-win32-msvc10.exe

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\DXGL]
"Configuration Version"=dword:00000003

[HKEY_CURRENT_USER\Software\DXGL\Global]

[HKEY_CURRENT_USER\Software\DXGL\Profiles]

!Edit! Installed Runtimes: Microsoft .NET Framework 4.8 Microsoft Visual Basic/C++ Runtime (x86) Microsoft Visual C++ 2005 Redistributable Microsoft Visual C++ 2005 Redistributable (x64) Microsoft Visual C++ 2008 Redistributable - x64 9.0.30729.7523 Microsoft Visual C++ 2008 Redistributable - x86 9.0.30729.7523 Microsoft Visual C++ 2010 x64 Redistributable - 10.0.40219 Microsoft Visual C++ 2010 x86 Redistributable - 10.0.40219 Microsoft Visual C++ 2012 x64 Additional Runtime - 11.0.61135 Microsoft Visual C++ 2012 x64 Minimum Runtime - 11.0.61135 Microsoft Visual C++ 2012 x86 Additional Runtime - 11.0.61135 Microsoft Visual C++ 2012 x86 Minimum Runtime - 11.0.61135 Microsoft Visual C++ 2013 x64 Additional Runtime - 12.0.40664 Microsoft Visual C++ 2013 x64 Minimum Runtime - 12.0.40664 Microsoft Visual C++ 2013 x86 Additional Runtime - 12.0.40664 Microsoft Visual C++ 2013 x86 Minimum Runtime - 12.0.40664 Microsoft Visual C++ 2022 X64 Additional Runtime - 14.38.33126 Microsoft Visual C++ 2022 X64 Minimum Runtime - 14.38.33126 Microsoft Visual C++ 2022 X86 Additional Runtime - 14.38.33126 Microsoft Visual C++ 2022 X86 Minimum Runtime - 14.38.33126 Microsoft Visual Studio 2010 Tools for Office Runtime (x64) Microsoft Xbox 360 Accessories 1.2 Microsoft XNA Framework Redistributable 4.0 Refresh

dxgldotorg commented 10 months ago

Thanks for the follow-up; I will test to see if either Registry dump causes the freeze.

I'll test it probably by this weekend in a VM.

Ohrwerk commented 10 months ago

The setup of version DXGL-0.5.19-win32.exe works fine and also the UI looks as expected. DXGL-0.5.19

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\DXGL]
"Configuration Version"=dword:00000003

[HKEY_CURRENT_USER\Software\DXGL\Global]

[HKEY_CURRENT_USER\Software\DXGL\Profiles]

[HKEY_CURRENT_USER\Software\DXGL\Profiles\dxglcfg.exe-C73B3A522167CE19CC21DFE994F39C236D999E5453F2C6A556339575BE0F7875]
"InstallPath"="C:\\Games\\- DXGL -"

Did you have a debug version of 0.5.20? UÏ Screenshot v 0.5.5

dxgldotorg commented 10 months ago

Thanks, seems I may have made a mistake in a patch between 0.5.19 and 0.5.20. I'll use the attached Registry files to try to make it freeze and when I isolate the effected revision will make a patch.

Ohrwerk commented 10 months ago

👍

dxgldotorg commented 9 months ago

Sorry, things have been a bit hectic; I'll try to get to it this weekend, as I get my testing VMs re-deployed.

Ohrwerk commented 9 months ago

Just don't get stressed. Christmas is just around the corner and take some time for yourself. Nothing is more important than life. Have a nice weekend.

dxgldotorg commented 9 months ago

I've started testing already, haven't reproduced the issue yet but I'll be looking through the loops on profile_install for errors that can result in infinite loops.

dxgldotorg commented 7 months ago

I believe the changes I have made should mitigate the issue. Closing #14.

dxgldotorg commented 7 months ago

New version is now released. If you find any further issues, please use the "Create memory dump file" option in Task Manager to make a memory dump of dxglcfg. This version now has debug symbols so I can diagnose issues with this release with a memory dump.

Ohrwerk commented 7 months ago

I'm sorry to disappoint you, but the setup (dxglconfig) is still stuck. I have updated the existing working version 0.5.19. Here is the desired dump, hope it helps. https://drive.google.com/file/d/1yYzBWmMnRg5hZTX0iGiRlG1_cxvWtAPO/view?usp=sharing

dxgldotorg commented 7 months ago

Thanks for the memory dump, I have now isolated the issue. Expect another release soon.

dxgldotorg commented 7 months ago

Turns out I did something a bit stupid in the dllmain, and that was causing the process to lock up.

Please note the installer does not have debugging symbols, and was not of use to me for diagnosis.

I actually believed it was the registry code, but at least I know that code is now good.

dxgldotorg commented 7 months ago

Please try the latest release.

Ohrwerk commented 7 months ago

Yes, thank you very much. The setup is now working.