ReShade causing crashes with Project64

  • Nerrel
  • Topic Author
More
5 years 3 months ago - 5 years 1 month ago #1 by Nerrel ReShade causing crashes with Project64 was created by Nerrel
Using ReShade with the most recent Project64 and GlideN64 (OpenGL) versions results in an "unable to find a suitable pixel format" error when loading a game, after which the emulator will close. The error also occurs with the Project64 video plugin, which gives an "error setting display mode" message and closes. The issue seems identical to the PCSX2 one here.

This error would occasionally happen with older GlideN64 builds and I could usually get around it by changing the Windows compatibility from 10 to 7 (or vice versa- just changing it seems to work) or by altering certain plugin settings, like disabling the stored shader cache or disabling framebuffer emulation. None of this works now, making ReShade totally incompatible with GlideN64.

The log shows "returned format: 0," which I assume is where things are going wrong:
17:52:27:383 [05236] | INFO  | Initializing crosire's ReShade version '4.0.2.489' (32-bit) built on '2018-11-21 23:57:49' loaded from "C:\\Games\\Project64 2.3\\OPENGL32.dll" to "C:\\Games\\Project64 2.3\\Project64.exe" ...
17:52:27:446 [05236] | INFO  | Registering hooks for "user32.dll" ...
17:52:27:446 [05236] | INFO  | > Libraries loaded.
17:52:27:446 [05236] | INFO  | > Found 13 match(es). Installing ...
17:52:27:462 [05236] | INFO  | Registering hooks for "ws2_32.dll" ...
17:52:27:462 [05236] | INFO  | > Libraries loaded.
17:52:27:462 [05236] | INFO  | > Found 8 match(es). Installing ...
17:52:27:478 [05236] | INFO  | Registering hooks for "C:\\WINDOWS\\system32\\d3d9.dll" ...
17:52:27:478 [05236] | INFO  | > Delayed.
17:52:27:479 [05236] | INFO  | Registering hooks for "C:\\WINDOWS\\system32\\d3d10.dll" ...
17:52:27:479 [05236] | INFO  | > Delayed.
17:52:27:479 [05236] | INFO  | Registering hooks for "C:\\WINDOWS\\system32\\d3d10_1.dll" ...
17:52:27:480 [05236] | INFO  | > Delayed.
17:52:27:480 [05236] | INFO  | Registering hooks for "C:\\WINDOWS\\system32\\d3d11.dll" ...
17:52:27:480 [05236] | INFO  | > Delayed.
17:52:27:480 [05236] | INFO  | Registering hooks for "C:\\WINDOWS\\system32\\dxgi.dll" ...
17:52:27:480 [05236] | INFO  | > Delayed.
17:52:27:480 [05236] | INFO  | Registering hooks for "C:\\WINDOWS\\system32\\opengl32.dll" ...
17:52:27:480 [05236] | INFO  | > Delayed until first call to an exported function.
17:52:27:480 [05236] | INFO  | Initialized.
17:52:27:724 [05236] | INFO  | Redirecting 'RegisterClassA(000DFAE4)' ...
17:52:27:736 [05236] | INFO  | Redirecting 'RegisterClassA(000DFAE4)' ...
17:53:11:139 [11152] | INFO  | Installing delayed hooks for "C:\\WINDOWS\\system32\\d3d11.dll" (Just loaded via 'LoadLibrary(""ext-ms-win-mininput-inputhost-l1-1-1.dll"")') ...
17:53:11:139 [11152] | INFO  | > Found 2 match(es). Installing ...
17:53:11:139 [05236] | WARN  | Ignoring 'LoadLibrary(""HID.DLL"")' call to avoid possible deadlock.
17:53:11:139 [05236] | WARN  | Ignoring 'LoadLibrary(""SETUPAPI.DLL"")' call to avoid possible deadlock.
17:53:11:139 [05236] | WARN  | Ignoring 'LoadLibrary(""WINMM.DLL"")' call to avoid possible deadlock.
17:53:11:139 [05236] | WARN  | Ignoring 'LoadLibrary(""USER32.DLL"")' call to avoid possible deadlock.
17:53:11:156 [11152] | INFO  | Installing delayed hooks for "C:\\WINDOWS\\system32\\dxgi.dll" (Just loaded via 'LoadLibrary(""ext-ms-win-mininput-inputhost-l1-1-1.dll"")') ...
17:53:11:156 [11152] | INFO  | > Found 7 match(es). Installing ...
17:53:11:756 [05236] | WARN  | Ignoring 'LoadLibrary(""C:\\Windows\\USB_Vibration\\00791800\\EZFRD32.dll"")' call to avoid possible deadlock.
17:53:12:328 [04256] | INFO  | Redirecting 'wglChoosePixelFormat(3F010E9E, 09B3FE50)' ...
17:53:12:328 [04256] | INFO  | > Dumping pixel format descriptor:
17:53:12:328 [04256] | INFO  |   +-----------------------------------------+-----------------------------------------+
17:53:12:328 [04256] | INFO  |   | Name                                    | Value                                   |
17:53:12:328 [04256] | INFO  |   +-----------------------------------------+-----------------------------------------+
17:53:12:328 [04256] | INFO  |   | Flags                                   | 0x25                                    |
17:53:12:328 [04256] | INFO  |   | ColorBits                               | 32                                      |
17:53:12:328 [04256] | INFO  |   | DepthBits                               | 32                                      |
17:53:12:328 [04256] | INFO  |   | StencilBits                             | 0                                       |
17:53:12:328 [04256] | INFO  |   +-----------------------------------------+-----------------------------------------+
17:53:12:329 [04256] | INFO  | Installing export hooks for "C:\\WINDOWS\\system32\\opengl32.dll" ...
17:53:12:329 [04256] | INFO  | > Found 360 match(es). Installing ...
17:53:12:718 [04256] | INFO  | > Returned format: 0
17:53:14:262 [04256] | INFO  | Redirecting 'wglMakeCurrent(00000000, 00000000)' ...
17:53:17:015 [05236] | INFO  | Exiting ...
17:53:17:015 [05236] | INFO  | Uninstalling 394 hook(s) ...
17:53:17:030 [05236] | INFO  | Exited.

Is there anything that can be done to get around this on ReShade's end? The only solution I've found is to use an old GlideN64 version and fiddle with the settings until it loads, but the emulation quality is much poorer than the current builds. This is my system information:

Windows 10x64
Nvidia GTX 970
Intel i5 6600k
16GB DDR4
Last edit: 5 years 1 month ago by Nerrel.

Please Log in or Create an account to join the conversation.

  • Nerrel
  • Topic Author
More
5 years 1 month ago #2 by Nerrel Replied by Nerrel on topic ReShade causing crashes with Project64
I switched to an AMD card and now get a different "error while creating OpenGL context" message. The log now seems to get stuck at " 'wglCreateLayerContext' failed with error code 0!" Can anyone please take a look at this? I think being unable to use ReShade at all with a popular emulator is big problem.
21:46:52:789 [07368] | INFO  | Initializing crosire's ReShade version '4.1.1.495' (32-bit) built on '2019-01-23 23:34:27' loaded from "C:\\Games\\Project64 2.3\\OPENGL32.dll" to "C:\\Games\\Project64 2.3\\Project64.exe" ...
21:46:52:851 [07368] | INFO  | Registering hooks for "user32.dll" ...
21:46:52:851 [07368] | INFO  | > Libraries loaded.
21:46:52:851 [07368] | INFO  | > Found 13 match(es). Installing ...
21:46:52:867 [07368] | INFO  | Registering hooks for "ws2_32.dll" ...
21:46:52:867 [07368] | INFO  | > Libraries loaded.
21:46:52:867 [07368] | INFO  | > Found 8 match(es). Installing ...
21:46:52:883 [07368] | INFO  | Registering hooks for "C:\\WINDOWS\\system32\\d3d9.dll" ...
21:46:52:883 [07368] | INFO  | > Delayed.
21:46:52:883 [07368] | INFO  | Registering hooks for "C:\\WINDOWS\\system32\\d3d10.dll" ...
21:46:52:883 [07368] | INFO  | > Delayed.
21:46:52:883 [07368] | INFO  | Registering hooks for "C:\\WINDOWS\\system32\\d3d10_1.dll" ...
21:46:52:883 [07368] | INFO  | > Delayed.
21:46:52:883 [07368] | INFO  | Registering hooks for "C:\\WINDOWS\\system32\\d3d11.dll" ...
21:46:52:883 [07368] | INFO  | > Delayed.
21:46:52:883 [07368] | INFO  | Registering hooks for "C:\\WINDOWS\\system32\\dxgi.dll" ...
21:46:52:883 [07368] | INFO  | > Delayed.
21:46:52:883 [07368] | INFO  | Registering hooks for "C:\\WINDOWS\\system32\\opengl32.dll" ...
21:46:52:883 [07368] | INFO  | > Delayed until first call to an exported function.
21:46:52:883 [07368] | INFO  | Initialized.
21:46:52:898 [07368] | INFO  | Redirecting 'RegisterClassA(000DFAE4)' ...
21:46:52:914 [07368] | INFO  | Redirecting 'RegisterClassA(000DFAE4)' ...
21:46:54:320 [04504] | INFO  | Installing delayed hooks for "C:\\WINDOWS\\system32\\d3d11.dll" (Just loaded via 'LoadLibrary("ext-ms-win-mininput-inputhost-l1-1-1.dll")') ...
21:46:54:320 [04504] | INFO  | > Found 2 match(es). Installing ...
21:46:54:320 [07368] | WARN  | Ignoring 'LoadLibrary("HID.DLL")' call to avoid possible deadlock.
21:46:54:320 [07368] | WARN  | Ignoring 'LoadLibrary("SETUPAPI.DLL")' call to avoid possible deadlock.
21:46:54:320 [07368] | WARN  | Ignoring 'LoadLibrary("WINMM.DLL")' call to avoid possible deadlock.
21:46:54:320 [07368] | WARN  | Ignoring 'LoadLibrary("USER32.DLL")' call to avoid possible deadlock.
21:46:54:335 [04504] | INFO  | Installing delayed hooks for "C:\\WINDOWS\\system32\\dxgi.dll" (Just loaded via 'LoadLibrary("ext-ms-win-mininput-inputhost-l1-1-1.dll")') ...
21:46:54:335 [04504] | INFO  | > Found 7 match(es). Installing ...
21:46:54:913 [09232] | INFO  | Redirecting 'wglChoosePixelFormat(620110DA, 07E5FE50)' ...
21:46:54:913 [09232] | INFO  | > Dumping pixel format descriptor:
21:46:54:913 [09232] | INFO  |   +-----------------------------------------+-----------------------------------------+
21:46:54:913 [09232] | INFO  |   | Name                                    | Value                                   |
21:46:54:913 [09232] | INFO  |   +-----------------------------------------+-----------------------------------------+
21:46:54:913 [09232] | INFO  |   | Flags                                   | 0x25                                    |
21:46:54:913 [09232] | INFO  |   | ColorBits                               | 32                                      |
21:46:54:913 [09232] | INFO  |   | DepthBits                               | 32                                      |
21:46:54:913 [09232] | INFO  |   | StencilBits                             | 0                                       |
21:46:54:913 [09232] | INFO  |   +-----------------------------------------+-----------------------------------------+
21:46:54:913 [09232] | INFO  | Installing export hooks for "C:\\WINDOWS\\system32\\opengl32.dll" ...
21:46:54:913 [09232] | INFO  | > Found 360 match(es). Installing ...
21:46:55:117 [09232] | INFO  | Redirecting 'RegisterClassExA(67DDFF0C)' ...
21:46:55:132 [09232] | INFO  | > Returned format: 14
21:46:55:132 [09232] | INFO  | Redirecting 'wglSetPixelFormat(620110DA, 14, 07E5FE50)' ...
21:46:55:132 [09232] | INFO  | Redirecting 'wglCreateContext(620110DA)' ...
21:46:55:132 [09232] | INFO  | > Passing on to 'wglCreateLayerContext' ...
21:46:55:132 [09232] | INFO  | Redirecting 'wglCreateLayerContext(620110DA, 0)' ...
21:46:55:132 [09232] | WARN  | > 'wglCreateLayerContext' failed with error code 0!
21:47:15:696 [09232] | INFO  | Redirecting 'wglMakeCurrent(00000000, 00000000)' ...
21:47:18:309 [07368] | INFO  | Exiting ...
21:47:18:309 [07368] | INFO  | Uninstalling 394 hook(s) ...
21:47:18:309 [07368] | INFO  | Exited.

Please Log in or Create an account to join the conversation.

  • crosire
More
5 years 1 month ago #3 by crosire Replied by crosire on topic ReShade causing crashes with Project64
Update to 4.2.
The following user(s) said Thank You: Nerrel

Please Log in or Create an account to join the conversation.

  • Nerrel
  • Topic Author
More
5 years 1 month ago - 5 years 1 month ago #4 by Nerrel Replied by Nerrel on topic ReShade causing crashes with Project64
Edit: This turned out to be due to AMD's driver AA being applied to Project64, disabling Pj64's profile in AMD's settings fixes the visuals. It doesn't seem to matter whether supersampling or MSAA is chosen, any setting seems to break ReShade. I don't know if it's possible to work around that or not, the driver level AA from Nvidia or AMD is a really nice enhancement over the emulator options but at the very least ReShade works now.

Thank you for fixing this!
_____________________________________________________
Sorry, didn't notice the update. It now boots up, but the image is distorted very badly. Reshade's window appears correctly and I can tell that MXAO is being applied (it needs to be flipped) but the image is otherwise garbled.


This is what the log says now:
14:32:37:888 [09632] | INFO  | Initializing crosire's ReShade version '4.2.0.538' (32-bit) built on '2019-03-01 01:21:08' loaded from "C:\\Games\\Project64 2.3\\OPENGL32.dll" to "C:\\Games\\Project64 2.3\\Project64.exe" ...
14:32:37:951 [09632] | INFO  | Registering hooks for "user32.dll" ...
14:32:37:951 [09632] | INFO  | > Libraries loaded.
14:32:37:951 [09632] | INFO  | > Found 13 match(es). Installing ...
14:32:37:966 [09632] | INFO  | Registering hooks for "ws2_32.dll" ...
14:32:37:966 [09632] | INFO  | > Libraries loaded.
14:32:37:966 [09632] | INFO  | > Found 8 match(es). Installing ...
14:32:37:982 [09632] | INFO  | Registering hooks for "C:\\WINDOWS\\system32\\d3d9.dll" ...
14:32:37:982 [09632] | INFO  | > Delayed.
14:32:37:982 [09632] | INFO  | Registering hooks for "C:\\WINDOWS\\system32\\d3d10.dll" ...
14:32:37:982 [09632] | INFO  | > Delayed.
14:32:37:982 [09632] | INFO  | Registering hooks for "C:\\WINDOWS\\system32\\d3d10_1.dll" ...
14:32:37:982 [09632] | INFO  | > Delayed.
14:32:37:982 [09632] | INFO  | Registering hooks for "C:\\WINDOWS\\system32\\d3d11.dll" ...
14:32:37:982 [09632] | INFO  | > Delayed.
14:32:37:982 [09632] | INFO  | Registering hooks for "C:\\WINDOWS\\system32\\dxgi.dll" ...
14:32:37:982 [09632] | INFO  | > Delayed.
14:32:37:982 [09632] | INFO  | Registering hooks for "C:\\WINDOWS\\system32\\opengl32.dll" ...
14:32:37:982 [09632] | INFO  | > Delayed until first call to an exported function.
14:32:37:982 [09632] | INFO  | Initialized.
14:32:37:998 [09632] | INFO  | Redirecting 'RegisterClassA(000DFAE4)' ...
14:32:38:013 [09632] | INFO  | Redirecting 'RegisterClassA(000DFAE4)' ...
14:32:40:591 [06704] | INFO  | Installing delayed hooks for "C:\\WINDOWS\\system32\\d3d11.dll" (Just loaded via 'LoadLibrary("ext-ms-win-mininput-inputhost-l1-1-1.dll")') ...
14:32:40:591 [06704] | INFO  | > Found 2 match(es). Installing ...
14:32:40:591 [09632] | WARN  | Ignoring 'LoadLibrary("HID.DLL")' call to avoid possible deadlock.
14:32:40:591 [09632] | WARN  | Ignoring 'LoadLibrary("SETUPAPI.DLL")' call to avoid possible deadlock.
14:32:40:591 [09632] | WARN  | Ignoring 'LoadLibrary("WINMM.DLL")' call to avoid possible deadlock.
14:32:40:591 [09632] | WARN  | Ignoring 'LoadLibrary("USER32.DLL")' call to avoid possible deadlock.
14:32:40:606 [06704] | INFO  | Installing delayed hooks for "C:\\WINDOWS\\system32\\dxgi.dll" (Just loaded via 'LoadLibrary("ext-ms-win-mininput-inputhost-l1-1-1.dll")') ...
14:32:40:606 [06704] | INFO  | > Found 7 match(es). Installing ...
14:32:41:309 [09632] | WARN  | Ignoring 'LoadLibrary("C:\\Windows\\USB_Vibration\\00791800\\EZFRD32.dll")' call to avoid possible deadlock.
14:32:41:887 [10012] | INFO  | Redirecting 'wglChoosePixelFormat(13010E83, 0861FE50)' ...
14:32:41:887 [10012] | INFO  | > Dumping pixel format descriptor:
14:32:41:887 [10012] | INFO  |   +-----------------------------------------+-----------------------------------------+
14:32:41:887 [10012] | INFO  |   | Name                                    | Value                                   |
14:32:41:887 [10012] | INFO  |   +-----------------------------------------+-----------------------------------------+
14:32:41:887 [10012] | INFO  |   | Flags                                   | 0x25                                    |
14:32:41:887 [10012] | INFO  |   | ColorBits                               | 32                                      |
14:32:41:887 [10012] | INFO  |   | DepthBits                               | 32                                      |
14:32:41:887 [10012] | INFO  |   | StencilBits                             | 0                                       |
14:32:41:887 [10012] | INFO  |   +-----------------------------------------+-----------------------------------------+
14:32:41:887 [10012] | INFO  | Installing export hooks for "C:\\WINDOWS\\system32\\opengl32.dll" ...
14:32:41:887 [10012] | INFO  | > Found 360 match(es). Installing ...
14:32:42:075 [10012] | INFO  | Redirecting 'RegisterClassExA(6FBBFF0C)' ...
14:32:42:090 [10012] | INFO  | > Returned format: 14
14:32:42:090 [10012] | INFO  | Redirecting 'wglSetPixelFormat(13010E83, 14, 0861FE50)' ...
14:32:42:090 [10012] | INFO  | Redirecting 'wglCreateContext(13010E83)' ...
14:32:42:090 [10012] | INFO  | > Passing on to 'wglCreateLayerContext' ...
14:32:42:090 [10012] | INFO  | Redirecting 'wglCreateLayerContext(13010E83, 0)' ...
14:32:42:106 [10012] | INFO  | > Returning OpenGL context: 00010000
14:32:42:950 [10012] | INFO  | Redirecting 'wglCreateContextAttribsARB(13010E83, 00000000, 0861FE78)' ...
14:32:42:950 [10012] | INFO  | > Requesting core OpenGL context for version 4.6 ...
14:32:42:950 [10012] | INFO  | Redirecting 'wglCreateLayerContext(13010E83, 0)' ...
14:32:42:950 [10012] | INFO  | > Returning OpenGL context: 00010001
14:32:42:950 [10012] | INFO  | > Returning OpenGL context: 00010001
14:32:42:950 [10012] | INFO  | Redirecting 'wglDeleteContext(00010000)' ...
14:32:42:950 [10012] | INFO  | > Cleaning up runtime 0D59D790 ...
14:32:43:215 [10012] | INFO  | Resizing runtime 0B1CFA70 on device context 13010E83 to 1600x1230 ...
14:32:43:215 [10012] | INFO  | Recreated runtime environment on runtime 0B1CFA70.
14:32:43:231 [04628] | INFO  | Successfully loaded "C:\\Games\\Project64 2.3\\reshade-shaders\\Shaders\\DisplayDepth.fx".
14:32:43:231 [00996] | INFO  | Successfully loaded "C:\\Games\\Project64 2.3\\reshade-shaders\\Shaders\\qUINT_bloom.fx".
14:32:43:231 [00992] | INFO  | Successfully loaded "C:\\Games\\Project64 2.3\\reshade-shaders\\Shaders\\qUINT_dof.fx".
14:32:43:231 [04984] | INFO  | Successfully loaded "C:\\Games\\Project64 2.3\\reshade-shaders\\Shaders\\AmbientLight.fx".
14:32:43:231 [03952] | INFO  | Successfully loaded "C:\\Games\\Project64 2.3\\reshade-shaders\\Shaders\\qUINT_lightroom.fx".
14:32:43:231 [06936] | INFO  | Successfully loaded "C:\\Games\\Project64 2.3\\reshade-shaders\\Shaders\\UIMask.fx".
14:32:43:231 [06876] | INFO  | Successfully loaded "C:\\Games\\Project64 2.3\\reshade-shaders\\Shaders\\qUINT_mxao.fx".
14:32:43:231 [06872] | INFO  | Successfully loaded "C:\\Games\\Project64 2.3\\reshade-shaders\\Shaders\\Vibrance.fx".
14:32:43:246 [08728] | INFO  | Successfully loaded "C:\\Games\\Project64 2.3\\reshade-shaders\\Shaders\\SMAA.fx".
14:32:43:434 [10012] | INFO  | Loading image files for textures ...
14:32:43:528 [10012] | INFO  | > Resizing image data for texture 'V__lensDBTex' from 1024x576 to 1920x1080 ...
14:32:43:590 [10012] | INFO  | > Resizing image data for texture 'V__lensDB2Tex' from 1024x576 to 1920x1080 ...
14:33:25:890 [10012] | INFO  | Saving screenshot to C:\Games\Project64 2.3\Project64 2019-03-02 14-33-25.bmp ...
14:33:45:053 [10012] | INFO  | Saving screenshot to C:\Games\Project64 2.3\Project64 2019-03-02 14-33-45.bmp ...
14:35:05:103 [10012] | INFO  | Redirecting 'wglDeleteContext(00010001)' ...
14:35:05:103 [10012] | INFO  | > Cleaning up runtime 0B1CFA70 ...
14:35:05:107 [10012] | INFO  | Destroyed runtime environment on runtime 0B1CFA70.
14:35:07:327 [09632] | INFO  | Exiting ...
14:35:07:327 [09632] | INFO  | Uninstalling 440 hook(s) ...
14:35:07:343 [09632] | WARN  | Hook for 'glDrawArraysInstancedARB' was already uninstalled.
14:35:07:343 [09632] | WARN  | Hook for 'glDrawArraysInstancedEXT' was already uninstalled.
14:35:07:343 [09632] | WARN  | Hook for 'glDrawElementsInstancedARB' was already uninstalled.
14:35:07:343 [09632] | WARN  | Hook for 'glDrawElementsInstancedEXT' was already uninstalled.
14:35:07:343 [09632] | WARN  | Hook for 'glFramebufferRenderbufferEXT' was already uninstalled.
14:35:07:343 [09632] | WARN  | Hook for 'glFramebufferTextureARB' was already uninstalled.
14:35:07:343 [09632] | WARN  | Hook for 'glFramebufferTextureEXT' was already uninstalled.
14:35:07:343 [09632] | WARN  | Hook for 'glFramebufferTexture1DEXT' was already uninstalled.
14:35:07:343 [09632] | WARN  | Hook for 'glFramebufferTexture2DEXT' was already uninstalled.
14:35:07:343 [09632] | WARN  | Hook for 'glFramebufferTexture3DEXT' was already uninstalled.
14:35:07:343 [09632] | WARN  | Hook for 'glFramebufferTextureLayerARB' was already uninstalled.
14:35:07:343 [09632] | WARN  | Hook for 'glFramebufferTextureLayerEXT' was already uninstalled.
14:35:07:343 [09632] | INFO  | Exited.
Last edit: 5 years 1 month ago by Nerrel.

Please Log in or Create an account to join the conversation.

We use cookies
We use cookies on our website. Some of them are essential for the operation of the forum. You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.