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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with starting OpenGothic on 2nd GFX card. #451

Open
dreimer1986 opened this issue May 7, 2023 · 14 comments
Open

Problems with starting OpenGothic on 2nd GFX card. #451

dreimer1986 opened this issue May 7, 2023 · 14 comments
Labels
bug Something isn't working

Comments

@dreimer1986
Copy link

Out of desperate HDMI 2.1 need I added a AMD Radeon RX6500 XT to my GeForce RTX 2080 WIndows 11 system. When I let Windows decide which card to use I get this:

---crashlog(SIGSEGV)---
GPU: ?
0x00007ff7cc788806: dbg::call_stack<64>::collect in C:\Users\Daniel\Desktop\opengothic_win\Gothic2Notr.exe
0x00007ff7cc788132: CrashLog::dumpStack in C:\Users\Daniel\Desktop\opengothic_win\Gothic2Notr.exe
0x00007ff7cc7883eb: signalHandler in C:\Users\Daniel\Desktop\opengothic_win\Gothic2Notr.exe
0x00007ff988f37ade: seh_filter_exe in C:\WINDOWS\SYSTEM32\ucrtbased.dll
0x00007ff7ccb16c58: `__scrt_common_main_seh'::`1'::filt$0 in C:\Users\Daniel\Desktop\opengothic_win\Gothic2Notr.exe
0x00007ff9b1f7c96b: _C_specific_handler in C:\WINDOWS\SYSTEM32\VCRUNTIME140D.dll
0x00007ff9de473cff: _chkstk in C:\WINDOWS\SYSTEM32\ntdll.dll
0x00007ff9de3ee456: RtlFindCharInUnicodeString in C:\WINDOWS\SYSTEM32\ntdll.dll
0x00007ff9de472cee: KiUserExceptionDispatcher in C:\WINDOWS\SYSTEM32\ntdll.dll
0x00007ff935c5c7a4: boost::serialization::singleton<boost::serialization::extended_type_info_typeid<_SC_SI_DESCRIPTOR_VALUES> >::singleton<boost::serialization::extended_type_info_typeid<_SC_SI_DESCRIPTOR_VALUES> > in C:\WINDOWS\System32\DriverStore\FileRepository\u0391400.inf_amd64_78dd64c613d4c112\B391098\amdvlk64.dll
0x00007ff935c1f6dc: boost::serialization::singleton<boost::serialization::extended_type_info_typeid<_SC_SI_DESCRIPTOR_VALUES> >::singleton<boost::serialization::extended_type_info_typeid<_SC_SI_DESCRIPTOR_VALUES> > in C:\WINDOWS\System32\DriverStore\FileRepository\u0391400.inf_amd64_78dd64c613d4c112\B391098\amdvlk64.dll
0x00007ff935c1d687: boost::serialization::singleton<boost::serialization::extended_type_info_typeid<_SC_SI_DESCRIPTOR_VALUES> >::singleton<boost::serialization::extended_type_info_typeid<_SC_SI_DESCRIPTOR_VALUES> > in C:\WINDOWS\System32\DriverStore\FileRepository\u0391400.inf_amd64_78dd64c613d4c112\B391098\amdvlk64.dll
0x00007ff935c1d399: boost::serialization::singleton<boost::serialization::extended_type_info_typeid<_SC_SI_DESCRIPTOR_VALUES> >::singleton<boost::serialization::extended_type_info_typeid<_SC_SI_DESCRIPTOR_VALUES> > in C:\WINDOWS\System32\DriverStore\FileRepository\u0391400.inf_amd64_78dd64c613d4c112\B391098\amdvlk64.dll
0x00007ff935c1bd97: boost::serialization::singleton<boost::serialization::extended_type_info_typeid<_SC_SI_DESCRIPTOR_VALUES> >::singleton<boost::serialization::extended_type_info_typeid<_SC_SI_DESCRIPTOR_VALUES> > in C:\WINDOWS\System32\DriverStore\FileRepository\u0391400.inf_amd64_78dd64c613d4c112\B391098\amdvlk64.dll
0x00007ff935c60270: boost::serialization::singleton<boost::serialization::extended_type_info_typeid<_SC_SI_DESCRIPTOR_VALUES> >::singleton<boost::serialization::extended_type_info_typeid<_SC_SI_DESCRIPTOR_VALUES> > in C:\WINDOWS\System32\DriverStore\FileRepository\u0391400.inf_amd64_78dd64c613d4c112\B391098\amdvlk64.dll
0x00007ff935bd663f: boost::serialization::singleton<boost::serialization::extended_type_info_typeid<_SC_SI_DESCRIPTOR_VALUES> >::singleton<boost::serialization::extended_type_info_typeid<_SC_SI_DESCRIPTOR_VALUES> > in C:\WINDOWS\System32\DriverStore\FileRepository\u0391400.inf_amd64_78dd64c613d4c112\B391098\amdvlk64.dll
0x00007ff935b96ed5: boost::serialization::singleton<boost::serialization::extended_type_info_typeid<_SC_SI_DESCRIPTOR_VALUES> >::singleton<boost::serialization::extended_type_info_typeid<_SC_SI_DESCRIPTOR_VALUES> > in C:\WINDOWS\System32\DriverStore\FileRepository\u0391400.inf_amd64_78dd64c613d4c112\B391098\amdvlk64.dll
0x00007ff935b968aa: boost::serialization::singleton<boost::serialization::extended_type_info_typeid<_SC_SI_DESCRIPTOR_VALUES> >::singleton<boost::serialization::extended_type_info_typeid<_SC_SI_DESCRIPTOR_VALUES> > in C:\WINDOWS\System32\DriverStore\FileRepository\u0391400.inf_amd64_78dd64c613d4c112\B391098\amdvlk64.dll
0x00007ff935b84275: boost::serialization::singleton<boost::serialization::extended_type_info_typeid<_SC_SI_DESCRIPTOR_VALUES> >::singleton<boost::serialization::extended_type_info_typeid<_SC_SI_DESCRIPTOR_VALUES> > in C:\WINDOWS\System32\DriverStore\FileRepository\u0391400.inf_amd64_78dd64c613d4c112\B391098\amdvlk64.dll
0x00007ff9340b5635: DllMain in C:\WINDOWS\System32\DriverStore\FileRepository\u0391400.inf_amd64_78dd64c613d4c112\B391098\amdvlk64.dll
0x00007ff933ff2f69: [unknown function] in [unknown module]
0x00007ff93403e1ba: [unknown function] in [unknown module]
0x00007ff9a493590d: vkDestroyDescriptorPool in C:\WINDOWS\SYSTEM32\vulkan-1.dll
0x00007ff957554c00: Tempest::Detail::VShader::VShader in C:\Users\Daniel\Desktop\opengothic_win\Tempest.dll
0x00007ff957561f50: Tempest::VulkanApi::createShader in C:\Users\Daniel\Desktop\opengothic_win\Tempest.dll
0x00007ff957568ae5: Tempest::Device::shader in C:\Users\Daniel\Desktop\opengothic_win\Tempest.dll
0x00007ff7cc69a4e0: Shaders::ShaderSet::load in C:\Users\Daniel\Desktop\opengothic_win\Gothic2Notr.exe
0x00007ff7cc69a919: Shaders::MaterialTemplate::load in C:\Users\Daniel\Desktop\opengothic_win\Gothic2Notr.exe
0x00007ff7cc69756d: Shaders::Shaders in C:\Users\Daniel\Desktop\opengothic_win\Gothic2Notr.exe
0x00007ff7cc68be5c: Renderer::Renderer in C:\Users\Daniel\Desktop\opengothic_win\Gothic2Notr.exe
0x00007ff7cc6cff2f: MainWindow::MainWindow in C:\Users\Daniel\Desktop\opengothic_win\Gothic2Notr.exe
0x00007ff7cc6cdb45: main in C:\Users\Daniel\Desktop\opengothic_win\Gothic2Notr.exe
0x00007ff7cca8d5e9: invoke_main in C:\Users\Daniel\Desktop\opengothic_win\Gothic2Notr.exe
0x00007ff7cca8d48e: __scrt_common_main_seh in C:\Users\Daniel\Desktop\opengothic_win\Gothic2Notr.exe
0x00007ff7cca8d34e: __scrt_common_main in C:\Users\Daniel\Desktop\opengothic_win\Gothic2Notr.exe
0x00007ff7cca8d67e: mainCRTStartup in C:\Users\Daniel\Desktop\opengothic_win\Gothic2Notr.exe
0x00007ff9dd1c269d: BaseThreadInitThunk in C:\WINDOWS\System32\KERNEL32.DLL
0x00007ff9de42a9f8: RtlUserThreadStart in C:\WINDOWS\SYSTEM32\ntdll.dll

Same happens if I force to use the AMD. When I switch to the NVidia card all works even tough the card has no screen plugged in and is just there for specific games.

@Try
Copy link
Owner

Try commented May 7, 2023

Hi, @dreimer1986 !

Hm, I'm not really sure how such setup suppose to work :D
Looking at crash log:

0x00007ff9a493590d: vkDestroyDescriptorPool in C:\WINDOWS\SYSTEM32\vulkan-1.dll
0x00007ff957554c00: Tempest::Detail::VShader::VShader in C:\Users\Daniel\Desktop\opengothic_win\Tempest.dll

There is no call to vkDestroyDescriptorPool, in latest sources. Can you test latest nightly build, to see if it still crashes and if does - what is call-stack.

@dreimer1986
Copy link
Author

dreimer1986 commented May 8, 2023

The funny thing is... it IS the most recent one here. My own 1:1 fork, but up to date one including submodules.
This one was cleaned up completely by wiping the out folders and starting from recreating CMake Cache. Verified all Submodules are recent in MS VS Community 2022 GitHub window and did a complete rebuild. This is what comes out...

Funny thing is... Both cards work fine for games and only the newly added Radeon RX6500 XT goes haywire for OpenGothic. But I have an idea... Windows update ate the graphics driver maybe. This will take a few minutes though.

---crashlog(SIGSEGV)---
GPU: ?
0x00007ff6dd2e8306: dbg::call_stack<64>::collect in C:\Users\Daniel\Desktop\opengothic_win\Gothic2Notr.exe
0x00007ff6dd2e7c32: CrashLog::dumpStack in C:\Users\Daniel\Desktop\opengothic_win\Gothic2Notr.exe
0x00007ff6dd2e7eeb: signalHandler in C:\Users\Daniel\Desktop\opengothic_win\Gothic2Notr.exe
0x00007fff372e7ade: seh_filter_exe in C:\WINDOWS\SYSTEM32\ucrtbased.dll
0x00007ff6dd676758: `__scrt_common_main_seh'::`1'::filt$0 in C:\Users\Daniel\Desktop\opengothic_win\Gothic2Notr.exe
0x00007fff6c19c96b: _C_specific_handler in C:\WINDOWS\SYSTEM32\VCRUNTIME140D.dll
0x00007fff7d693cff: _chkstk in C:\WINDOWS\SYSTEM32\ntdll.dll
0x00007fff7d60e456: RtlFindCharInUnicodeString in C:\WINDOWS\SYSTEM32\ntdll.dll
0x00007fff7d692cee: KiUserExceptionDispatcher in C:\WINDOWS\SYSTEM32\ntdll.dll
0x00007ffe945dc7a4: boost::serialization::singleton<boost::serialization::extended_type_info_typeid<_SC_SI_DESCRIPTOR_VALUES> >::singleton<boost::serialization::extended_type_info_typeid<_SC_SI_DESCRIPTOR_VALUES> > in C:\WINDOWS\System32\DriverStore\FileRepository\u0391400.inf_amd64_78dd64c613d4c112\B391098\amdvlk64.dll
0x00007ffe9459f6dc: boost::serialization::singleton<boost::serialization::extended_type_info_typeid<_SC_SI_DESCRIPTOR_VALUES> >::singleton<boost::serialization::extended_type_info_typeid<_SC_SI_DESCRIPTOR_VALUES> > in C:\WINDOWS\System32\DriverStore\FileRepository\u0391400.inf_amd64_78dd64c613d4c112\B391098\amdvlk64.dll
0x00007ffe9459d687: boost::serialization::singleton<boost::serialization::extended_type_info_typeid<_SC_SI_DESCRIPTOR_VALUES> >::singleton<boost::serialization::extended_type_info_typeid<_SC_SI_DESCRIPTOR_VALUES> > in C:\WINDOWS\System32\DriverStore\FileRepository\u0391400.inf_amd64_78dd64c613d4c112\B391098\amdvlk64.dll
0x00007ffe9459d399: boost::serialization::singleton<boost::serialization::extended_type_info_typeid<_SC_SI_DESCRIPTOR_VALUES> >::singleton<boost::serialization::extended_type_info_typeid<_SC_SI_DESCRIPTOR_VALUES> > in C:\WINDOWS\System32\DriverStore\FileRepository\u0391400.inf_amd64_78dd64c613d4c112\B391098\amdvlk64.dll
0x00007ffe9459bd97: boost::serialization::singleton<boost::serialization::extended_type_info_typeid<_SC_SI_DESCRIPTOR_VALUES> >::singleton<boost::serialization::extended_type_info_typeid<_SC_SI_DESCRIPTOR_VALUES> > in C:\WINDOWS\System32\DriverStore\FileRepository\u0391400.inf_amd64_78dd64c613d4c112\B391098\amdvlk64.dll
0x00007ffe945e0270: boost::serialization::singleton<boost::serialization::extended_type_info_typeid<_SC_SI_DESCRIPTOR_VALUES> >::singleton<boost::serialization::extended_type_info_typeid<_SC_SI_DESCRIPTOR_VALUES> > in C:\WINDOWS\System32\DriverStore\FileRepository\u0391400.inf_amd64_78dd64c613d4c112\B391098\amdvlk64.dll
0x00007ffe9455663f: boost::serialization::singleton<boost::serialization::extended_type_info_typeid<_SC_SI_DESCRIPTOR_VALUES> >::singleton<boost::serialization::extended_type_info_typeid<_SC_SI_DESCRIPTOR_VALUES> > in C:\WINDOWS\System32\DriverStore\FileRepository\u0391400.inf_amd64_78dd64c613d4c112\B391098\amdvlk64.dll
0x00007ffe94516ed5: boost::serialization::singleton<boost::serialization::extended_type_info_typeid<_SC_SI_DESCRIPTOR_VALUES> >::singleton<boost::serialization::extended_type_info_typeid<_SC_SI_DESCRIPTOR_VALUES> > in C:\WINDOWS\System32\DriverStore\FileRepository\u0391400.inf_amd64_78dd64c613d4c112\B391098\amdvlk64.dll
0x00007ffe945168aa: boost::serialization::singleton<boost::serialization::extended_type_info_typeid<_SC_SI_DESCRIPTOR_VALUES> >::singleton<boost::serialization::extended_type_info_typeid<_SC_SI_DESCRIPTOR_VALUES> > in C:\WINDOWS\System32\DriverStore\FileRepository\u0391400.inf_amd64_78dd64c613d4c112\B391098\amdvlk64.dll
0x00007ffe94504275: boost::serialization::singleton<boost::serialization::extended_type_info_typeid<_SC_SI_DESCRIPTOR_VALUES> >::singleton<boost::serialization::extended_type_info_typeid<_SC_SI_DESCRIPTOR_VALUES> > in C:\WINDOWS\System32\DriverStore\FileRepository\u0391400.inf_amd64_78dd64c613d4c112\B391098\amdvlk64.dll
0x00007ffe92a35635: DllMain in C:\WINDOWS\System32\DriverStore\FileRepository\u0391400.inf_amd64_78dd64c613d4c112\B391098\amdvlk64.dll
0x00007ffe92972f69: [unknown function] in [unknown module]
0x00007ffe929be1ba: [unknown function] in [unknown module]
0x00007fff3712590d: vkDestroyDescriptorPool in C:\WINDOWS\SYSTEM32\vulkan-1.dll
0x00007ffea8d44c00: Tempest::Detail::VShader::VShader in C:\Users\Daniel\Desktop\opengothic_win\Tempest.dll
0x00007ffea8d51f50: Tempest::VulkanApi::createShader in C:\Users\Daniel\Desktop\opengothic_win\Tempest.dll
0x00007ffea8d58ae5: Tempest::Device::shader in C:\Users\Daniel\Desktop\opengothic_win\Tempest.dll
0x00007ff6dd1fa4f0: Shaders::ShaderSet::load in C:\Users\Daniel\Desktop\opengothic_win\Gothic2Notr.exe
0x00007ff6dd1fa929: Shaders::MaterialTemplate::load in C:\Users\Daniel\Desktop\opengothic_win\Gothic2Notr.exe
0x00007ff6dd1f757d: Shaders::Shaders in C:\Users\Daniel\Desktop\opengothic_win\Gothic2Notr.exe
0x00007ff6dd1ebe6c: Renderer::Renderer in C:\Users\Daniel\Desktop\opengothic_win\Gothic2Notr.exe
0x00007ff6dd22fa2f: MainWindow::MainWindow in C:\Users\Daniel\Desktop\opengothic_win\Gothic2Notr.exe
0x00007ff6dd22d645: main in C:\Users\Daniel\Desktop\opengothic_win\Gothic2Notr.exe
0x00007ff6dd5ed0e9: invoke_main in C:\Users\Daniel\Desktop\opengothic_win\Gothic2Notr.exe
0x00007ff6dd5ecf8e: __scrt_common_main_seh in C:\Users\Daniel\Desktop\opengothic_win\Gothic2Notr.exe
0x00007ff6dd5ece4e: __scrt_common_main in C:\Users\Daniel\Desktop\opengothic_win\Gothic2Notr.exe
0x00007ff6dd5ed17e: mainCRTStartup in C:\Users\Daniel\Desktop\opengothic_win\Gothic2Notr.exe
0x00007fff7c18269d: BaseThreadInitThunk in C:\WINDOWS\System32\KERNEL32.DLL
0x00007fff7d64a9f8: RtlUserThreadStart in C:\WINDOWS\SYSTEM32\ntdll.dll

@dreimer1986
Copy link
Author

dreimer1986 commented May 8, 2023

OK, AMD Adrenalin Edition Software did not work as the driver WAS replaced. I cleanly reinstalled it and am now back on 23.4.3 and... it still does only work on the NVidia Card. AMD causes the error above.

EDIT: That "GPU: ?" is interesting I think? And what does boost fight with down below? And why does it check in DriverStore? Looks for me like it chose this Vulkan dll instead of the real one in system32?

Regarding what I mean with setting app to use a specific GFX card:

image

I am not on my home PC right now, but here in settings you can add any Desktop app and then choose between Energy Saving, Power mode AND select the card to use for processing. By default Windows uses the smaller AMD now. NVidia is sleeping 99% of the time and just wakes up for VR stuff. I added a Vulkan test app in there, too. It happily starts Vulkan API on both cards.

@dreimer1986
Copy link
Author

dreimer1986 commented May 12, 2023

Some "news"... I rebuilt 5d89212 and used an updated Vulkan SDK 1.3.246.1, too. Vulkan still does NOT start at all. -dx12 does fine though. I was able to verify Vulkan working anyways. Vulkan Hardware Capability Viewer says so at least. https://vulkan.gpuinfo.org/displayreport.php?id=20533 This is mine. Maybe something you need is missing?

@dreimer1986
Copy link
Author

dreimer1986 commented May 21, 2023

Did you notice that GPU: ? This is a bit fishy I would say? And why does it enlist that dll file from the AMD driver x times btw?

Log only shows: OpenGothic v1.0 dev and not the rest I see on the NVIDIA card:
GPU = NVIDIA GeForce RTX 2080
Depth format = Depth32F Shadow format = Depth16

Try added a commit that referenced this issue May 21, 2023
@Try
Copy link
Owner

Try commented May 21, 2023

Hi, @dreimer1986 !

I haven't look much into this issue yet, been busy with lighting and tone-mapping..

GPU: ?

Ah, that engine issue: gpu name is set only after renderer is fully initialized.

And why does it enlist that dll file from the AMD driver x times btw?

Can be anything, recursion maybe. This part is likely fine. What is concerning is vkDestroyDescriptorPool in call-stack: there is no such call around on relevant code-path. Can you try to run the game with debugger and check closely what is going on?

@dreimer1986
Copy link
Author

image

Is that what you were looking for?

@Try
Copy link
Owner

Try commented May 21, 2023

From screenshoot:
vkDestroyDescriptorPool - not around, it is vkCreateShaderModule dunno, why crashlogger resolve this function wrongly..
Offended shader variant: "lnd_gbuffer.64.mesh"

Can you test, if vertex shader path works? Command line key is -ms 0

@dreimer1986
Copy link
Author

Yes, starts nicely:

OpenGothic v1.0 dev
GPU = AMD Radeon(TM) RX 6500 XT
Depth format = Depth32F Shadow format = Depth16

But when new game is triggered and it should hop to the intro video:
image

@Try
Copy link
Owner

Try commented May 22, 2023

But when new game is triggered and it should hop to the intro video

Crashlog please? :)
From screen-shoot can't see what exact shader is problematic.
Also if it happens to be RT-related, what is also possible: -rt 0

Taking step back to "lnd_gbuffer.64.mesh": would it be possible for you to create a bug report for AMD? Since this shader works on NV and Apple, most likely shared-compiller bug in their driver.
Here is shader binary, for bug report: lnd_gbuffer.64.mesh.zip

@dreimer1986
Copy link
Author

Can't believe I forgot it... here it is ^^

---crashlog(ExceptionFilter)---
GPU: AMD Radeon(TM) RX 6500 XT
0x00007ff703a8af16: dbg::call_stack<64>::collect in C:\Users\Daniel\Desktop\opengothic_win\Gothic2Notr.exe
0x00007ff703a8a842: CrashLog::dumpStack in C:\Users\Daniel\Desktop\opengothic_win\Gothic2Notr.exe
0x00007ff703a8a9fe: exceptionHandler in C:\Users\Daniel\Desktop\opengothic_win\Gothic2Notr.exe
0x00007ffacf8cb81c: UnhandledExceptionFilter in C:\WINDOWS\System32\KERNELBASE.dll
0x00007ffad1df837d: RtlMoveMemory in C:\WINDOWS\SYSTEM32\ntdll.dll
0x00007ffad1ddefa7: _C_specific_handler in C:\WINDOWS\SYSTEM32\ntdll.dll
0x00007ffad1df3cff: _chkstk in C:\WINDOWS\SYSTEM32\ntdll.dll
0x00007ffad1d6e456: RtlFindCharInUnicodeString in C:\WINDOWS\SYSTEM32\ntdll.dll
0x00007ffad1da4455: RtlRaiseException in C:\WINDOWS\SYSTEM32\ntdll.dll
0x00007ffacf7d536c: RaiseException in C:\WINDOWS\System32\KERNELBASE.dll
0x00007ffac7af4903: _NLG_Return2 in C:\WINDOWS\SYSTEM32\VCRUNTIME140_1D.dll
0x00007ffac7af3ae2: _NLG_Return2 in C:\WINDOWS\SYSTEM32\VCRUNTIME140_1D.dll
0x00007ffad1df3546: RtlCaptureContext2 in C:\WINDOWS\SYSTEM32\ntdll.dll
0x00007ffa55619d40: Tempest::Detail::VPipeline::instance in C:\Users\Daniel\Desktop\opengothic_win\Tempest.dll
0x00007ffa555fb1ca: Tempest::Detail::VCommandBuffer::setPipeline in C:\Users\Daniel\Desktop\opengothic_win\Tempest.dll
0x00007ffa5563f4d2: Tempest::Encoder<Tempest::CommandBuffer>::setUniforms in C:\Users\Daniel\Desktop\opengothic_win\Tempest.dll
0x00007ffa5563f383: Tempest::Encoder<Tempest::CommandBuffer>::setUniforms in C:\Users\Daniel\Desktop\opengothic_win\Tempest.dll
0x00007ff703990dc1: Renderer::drawShadowResolve in C:\Users\Daniel\Desktop\opengothic_win\Gothic2Notr.exe
0x00007ff703991627: Renderer::draw in C:\Users\Daniel\Desktop\opengothic_win\Gothic2Notr.exe
0x00007ff70398e721: Renderer::draw in C:\Users\Daniel\Desktop\opengothic_win\Gothic2Notr.exe
0x00007ff7039d9379: MainWindow::render in C:\Users\Daniel\Desktop\opengothic_win\Gothic2Notr.exe
0x00007ffa5567239e: Tempest::EventDispatcher::dispatchRender in C:\Users\Daniel\Desktop\opengothic_win\Tempest.dll
0x00007ffa5567b6eb: Tempest::SystemApi::dispatchRender in C:\Users\Daniel\Desktop\opengothic_win\Tempest.dll
0x00007ffa55667391: Tempest::WindowsApi::implProcessEvents in C:\Users\Daniel\Desktop\opengothic_win\Tempest.dll
0x00007ffa556671e1: Tempest::WindowsApi::implExec in C:\Users\Daniel\Desktop\opengothic_win\Tempest.dll
0x00007ffa5567ba23: Tempest::SystemApi::exec in C:\Users\Daniel\Desktop\opengothic_win\Tempest.dll
0x00007ffa5566d126: Tempest::Application::exec in C:\Users\Daniel\Desktop\opengothic_win\Tempest.dll
0x00007ff7039d0441: main in C:\Users\Daniel\Desktop\opengothic_win\Gothic2Notr.exe
0x00007ff703d90fb9: invoke_main in C:\Users\Daniel\Desktop\opengothic_win\Gothic2Notr.exe
0x00007ff703d90e5e: __scrt_common_main_seh in C:\Users\Daniel\Desktop\opengothic_win\Gothic2Notr.exe
0x00007ff703d90d1e: __scrt_common_main in C:\Users\Daniel\Desktop\opengothic_win\Gothic2Notr.exe
0x00007ff703d9104e: mainCRTStartup in C:\Users\Daniel\Desktop\opengothic_win\Gothic2Notr.exe
0x00007ffad10a269d: BaseThreadInitThunk in C:\WINDOWS\System32\KERNEL32.DLL
0x00007ffad1daa9f8: RtlUserThreadStart in C:\WINDOWS\SYSTEM32\ntdll.dll

Btw, adding -rt 0 to the -ms 0 makes it run fine. And no you need both parameters. -rt 0 alone still makes is not start at all.

Regarding bug report: I can try to... Have to check on where to do that first. So "From screen-shoot can't see what exact shader is problematic." is resolved and "lnd_gbuffer.64.mesh" is the problem here, right?

@Try Try added the bug Something isn't working label May 23, 2023
@Try
Copy link
Owner

Try commented May 23, 2023

is resolved and "lnd_gbuffer.64.mesh" is the problem here, right?

I think there are at lest 2 issues:

  1. "lnd_gbuffer.64.mesh"
    this shader makes AMD shader compiler crash, during call to vkCreateShaderModule. This is somewhat expected understandable, since RDNA2 is not mesh-shader-friendly architecture and compiler has lot of work to do there.
  2. Something is wrong (newest crash) at drawShadowResolve - I need to check this.

UPD

Btw, adding -rt 0 to the -ms 0 makes it run fine.

Oh, so both mesh-shader and raytracing(probably bindless stuff) is on amd...

@dreimer1986
Copy link
Author

I sent AMD the report you asked for with the AMD Report Tool included in the drivers. I explained shortly what I did, how I built the source and how to run it and that the application dies in silent vain only on AMD and not on the NVidia in the same PC. I attached the shader ZIP and linked them here, too.

@dreimer1986
Copy link
Author

Just some information in here regarding my problems and the current status. master branch still has the same problems, but your gdr-optimizations branch starts to behave different here. Both GI and GII start up, show the main menu and even the video. As soon as it plans to show the ingame next I get these though and these look similar to what we had before:

YES; I know your branch is not finished yet, just wanted to let you know that things changed a bit

---crashlog(SIGSEGV)---
GPU: AMD Radeon RX6500 XT
0x00007ff641598127: [unknown function] in [unknown module]
0x00007ff641598244: [unknown function] in [unknown module]
0x00007ff6415985e4: [unknown function] in [unknown module]
0x00007ff93dc34090: log2f in C:\WINDOWS\System32\ucrtbase.dll
0x00007ff64184f475: [unknown function] in [unknown module]
0x00007ff92eb4f73f: _C_specific_handler in C:\WINDOWS\SYSTEM32\VCRUNTIME140.dll
0x00007ff9402b441f: _chkstk in C:\WINDOWS\SYSTEM32\ntdll.dll
0x00007ff94022e466: RtlFindCharInUnicodeString in C:\WINDOWS\SYSTEM32\ntdll.dll
0x00007ff9402b340e: KiUserExceptionDispatcher in C:\WINDOWS\SYSTEM32\ntdll.dll
0x00007ff8867ae9e4: boost::serialization::singleton<boost::serialization::extended_type_info_typeid<_SC_INT_CONST> >::singleton<boost::serialization::extended_type_info_typeid<_SC_INT_CONST> > in C:\WINDOWS\System32\DriverStore\FileRepository\u0399790.inf_amd64_d65a26508a2283ab\B399690\amdvlk64.dll
0x00007ff88676624a: boost::serialization::singleton<boost::serialization::extended_type_info_typeid<_SC_INT_CONST> >::singleton<boost::serialization::extended_type_info_typeid<_SC_INT_CONST> > in C:\WINDOWS\System32\DriverStore\FileRepository\u0399790.inf_amd64_d65a26508a2283ab\B399690\amdvlk64.dll
0x00007ff886764158: boost::serialization::singleton<boost::serialization::extended_type_info_typeid<_SC_INT_CONST> >::singleton<boost::serialization::extended_type_info_typeid<_SC_INT_CONST> > in C:\WINDOWS\System32\DriverStore\FileRepository\u0399790.inf_amd64_d65a26508a2283ab\B399690\amdvlk64.dll
0x00007ff886763e79: boost::serialization::singleton<boost::serialization::extended_type_info_typeid<_SC_INT_CONST> >::singleton<boost::serialization::extended_type_info_typeid<_SC_INT_CONST> > in C:\WINDOWS\System32\DriverStore\FileRepository\u0399790.inf_amd64_d65a26508a2283ab\B399690\amdvlk64.dll
0x00007ff8867626a5: boost::serialization::singleton<boost::serialization::extended_type_info_typeid<_SC_INT_CONST> >::singleton<boost::serialization::extended_type_info_typeid<_SC_INT_CONST> > in C:\WINDOWS\System32\DriverStore\FileRepository\u0399790.inf_amd64_d65a26508a2283ab\B399690\amdvlk64.dll
0x00007ff8867b1e06: boost::serialization::singleton<boost::serialization::extended_type_info_typeid<_SC_INT_CONST> >::singleton<boost::serialization::extended_type_info_typeid<_SC_INT_CONST> > in C:\WINDOWS\System32\DriverStore\FileRepository\u0399790.inf_amd64_d65a26508a2283ab\B399690\amdvlk64.dll
0x00007ff8867140e3: boost::serialization::singleton<boost::serialization::extended_type_info_typeid<_SC_INT_CONST> >::singleton<boost::serialization::extended_type_info_typeid<_SC_INT_CONST> > in C:\WINDOWS\System32\DriverStore\FileRepository\u0399790.inf_amd64_d65a26508a2283ab\B399690\amdvlk64.dll
0x00007ff8866d6275: boost::serialization::singleton<boost::serialization::extended_type_info_typeid<_SC_INT_CONST> >::singleton<boost::serialization::extended_type_info_typeid<_SC_INT_CONST> > in C:\WINDOWS\System32\DriverStore\FileRepository\u0399790.inf_amd64_d65a26508a2283ab\B399690\amdvlk64.dll
0x00007ff8866d5f86: boost::serialization::singleton<boost::serialization::extended_type_info_typeid<_SC_INT_CONST> >::singleton<boost::serialization::extended_type_info_typeid<_SC_INT_CONST> > in C:\WINDOWS\System32\DriverStore\FileRepository\u0399790.inf_amd64_d65a26508a2283ab\B399690\amdvlk64.dll
0x00007ff8866c2c15: boost::serialization::singleton<boost::serialization::extended_type_info_typeid<_SC_INT_CONST> >::singleton<boost::serialization::extended_type_info_typeid<_SC_INT_CONST> > in C:\WINDOWS\System32\DriverStore\FileRepository\u0399790.inf_amd64_d65a26508a2283ab\B399690\amdvlk64.dll
0x00007ff884c569b9: DllMain in C:\WINDOWS\System32\DriverStore\FileRepository\u0399790.inf_amd64_d65a26508a2283ab\B399690\amdvlk64.dll
0x00007ff884b8fba1: [unknown function] in [unknown module]
0x00007ff884b92e3a: [unknown function] in [unknown module]
0x00007ff884bfb901: vk_icdNegotiateLoaderICDInterfaceVersion in C:\WINDOWS\System32\DriverStore\FileRepository\u0399790.inf_amd64_d65a26508a2283ab\B399690\amdvlk64.dll
0x00007ff884bfcb73: vk_icdNegotiateLoaderICDInterfaceVersion in C:\WINDOWS\System32\DriverStore\FileRepository\u0399790.inf_amd64_d65a26508a2283ab\B399690\amdvlk64.dll
0x00007ff884bdd60e: [unknown function] in [unknown module]
0x00007ff8e4fb9937: vkResetEvent in C:\WINDOWS\SYSTEM32\vulkan-1.dll
0x00007ff8ea5ef972: stbtt_MakeGlyphBitmapSubpixel in C:\Users\Daniel\Desktop\opengothic_win\Tempest.dll
0x00007ff8ea5f0235: stbtt_MakeGlyphBitmapSubpixel in C:\Users\Daniel\Desktop\opengothic_win\Tempest.dll
0x00007ff8ea5dac6c: stbtt_MakeGlyphBitmapSubpixel in C:\Users\Daniel\Desktop\opengothic_win\Tempest.dll
0x00007ff8ea6062ca: stbtt_MakeGlyphBitmapSubpixel in C:\Users\Daniel\Desktop\opengothic_win\Tempest.dll
0x00007ff8ea6063c5: stbtt_MakeGlyphBitmapSubpixel in C:\Users\Daniel\Desktop\opengothic_win\Tempest.dll
0x00007ff64145c60c: [unknown function] in [unknown module]
0x00007ff6414deb07: [unknown function] in [unknown module]
0x00007ff6414df08e: [unknown function] in [unknown module]
0x00007ff64151798a: [unknown function] in [unknown module]
0x00007ff8ea61b26f: stbtt_MakeGlyphBitmapSubpixel in C:\Users\Daniel\Desktop\opengothic_win\Tempest.dll
0x00007ff8ea61b08b: stbtt_MakeGlyphBitmapSubpixel in C:\Users\Daniel\Desktop\opengothic_win\Tempest.dll
0x00007ff64150abba: [unknown function] in [unknown module]
0x00007ff6417edde8: [unknown function] in [unknown module]
0x00007ff93e0f257d: BaseThreadInitThunk in C:\WINDOWS\System32\KERNEL32.DLL
0x00007ff94026aa58: RtlUserThreadStart in C:\WINDOWS\SYSTEM32\ntdll.dll

I used this build: https://ci.appveyor.com/project/Try/opengothic/build/job/vitde9mg2qc35p3d

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

2 participants