NVIDIAGameWorks / rtx-remix

Combined repo for the RTX-Remix runtime
https://www.nvidia.com/en-us/geforce/rtx-remix/
MIT License
1.38k stars 69 forks source link

[Runtime Bug]: CarolineMT2 (Metin2) - Crash after loading screen #519

Open k-rasher opened 5 months ago

k-rasher commented 5 months ago

Describe the bug

The game crashes upon loading into the world after character selection, like in video below. After analyzing .dmp file with WinDbg, it points to a nvngx_dlss.dll:

SYMBOL_NAME:  nvngx_dlss+9d8

MODULE_NAME: nvngx_dlss

IMAGE_NAME:  nvngx_dlss.dll

FAILURE_BUCKET_ID:  `NULL_CLASS_PTR_READ_c0000005_nvngx_dlss.dll!Unknown

After launching the game again, disabling DLSS and crashing in the same situation, then the .dmp file points to a module named "heap_corruption":

STACK_TEXT:  
00000000`00000000 00000000`00000000 heap_corruption!NvRemixBridge.exe+0x0

STACK_COMMAND:  ** Pseudo Context ** ManagedPseudo ** Value: ffffffff ** ; kb

SYMBOL_NAME:  heap_corruption!NvRemixBridge.exe

MODULE_NAME: heap_corruption

IMAGE_NAME:  heap_corruption

FAILURE_BUCKET_ID:  HEAP_CORRUPTION_c0000005_heap_corruption!NvRemixBridge.exe

Not sure if the info above is any relevant to actual fix of the issue, but i thought it might help. I'm attaching necesarry logs etc. below:

CarolineMT2_d3d9.log d3d9.log NvRemixBridge.log rtx.conf.txt

NvRemixBridge.exe_20240526_205407.dmp .dmp with DLSS enabled NvRemixBridge.exe_20240526_205508.dmp .dmp with DLSS disabled

https://github.com/NVIDIAGameWorks/rtx-remix/assets/27704558/78b50141-7fa3-49b6-87d3-867872406713

How do you reproduce the bug?

  1. Download the game client from a hosting of choice https://carolinemt2.pl/download
  2. Register a game account on https://carolinemt2.pl/account/register (i recommend using a polish-english translator to help yourself navigating around the website)
  3. Launch _Patcher_CarolineMT2.pl.exe to patch the game first
  4. Install RTX Remix
  5. Launch CarolineMT2.exe to launch the game
  6. Upon launching the game, you will have to mark some textures as UI in order to see anything
  7. Enter your account credentials to login, create a character (Stwórz Postać), choose Red or Blue kingdom and enter the game (WYBIERZ button or Enter key)

What is the expected behavior?

No response

Version

dxvk-remix-e62d9e4-562-release bridge-remix-c099b40-73-release

NV-LL commented 5 months ago

REMIX-3114 for tracking

nv-ajaus commented 2 months ago

Hello @xKrasheR , I made a change to fix an issue where a crash in dxvk-remix can crash again during DLSS deconstruction, which masks the original issue, leaving a NvRemixBridge crash dump file (.dmp) that we can't use to track down the original crash. I noticed that the dump file provided with this GitHub ticket seems to show a symptom of this. If and when you can, please reproduce the crash you previously reported using the latest dxvk-remix release build here (https://github.com/NVIDIAGameWorks/dxvk-remix/actions) or the build for the specific commit I made https://github.com/NVIDIAGameWorks/dxvk-remix/actions/runs/10118513607/artifacts/1745781365 , and upload a newly generated .dmp file.

Thank you!

k-rasher commented 2 months ago

after downloading latest debugoptimized bridge and dxvk builds the game keeps crashing as before but doesn't seem to generate any .dmp files in the .trex folder

nv-ajaus commented 2 months ago

I have a few follow up questions for this issue.

  1. Can you please send the CarolineMT2_d3d9.log, d3d9.log, NvRemixBridge.log? This might be the not have changed since the first issue report but I would like to double check.

  2. Can you check the folder next to the game executable for for a crash dump? If one doesn't exist, can you go into your .trex\bridge.conf file and change # client.setExceptionHandler = False to client.setExceptionHandler = True and try to repro the issue, and look for a dump file next the game executable? If you don't have a bridge.conf file in your .trex folder, you can download it here. https://github.com/NVIDIAGameWorks/bridge-remix/blob/main/bridge.conf

  3. If step 2 yields no results, using the debug optimized version of the bridge, can you change # logApiCalls = False in the .trex\bridge.conf file to logApiCalls = True and then reproduce the crash. After it reproduces, please send the d3d9.log and .trex\NvRemixBridge.log files.

Thanks!

k-rasher commented 1 month ago

sorry for the late response, unfortunately even after doing steps listed in step 2 i cant manage to get a dump file anymore, here are the asked files though:

CarolineMT2_d3d9.log

d3d9.log

NvRemixBridge.log

the dxvk/bridge builds:

dxvk-remix-a99f246-641-debugoptimized bridge-remix-8248167-93-debugoptimized

nv-ajaus commented 4 weeks ago

Hi @xKrasheR ,

I was reviewing this issue and trying to find a way forward. I think the best next step would be to see if some part of the Remix Runtime is crashing but not generating a dump file, or if the game itself is crashing. Testing this may be a bit involved but please give it a shot if you can.

If you don't already have procdump installed, you can get it from this Microsoft page https://learn.microsoft.com/en-us/sysinternals/downloads/procdump.

You will need to make a batch script file (a text file with a ".bat" file extension) with the following 2 lines:

start procdump.exe -ma -e -h <YourGame>.exe
start procdump.exe -ma -e -h NvRemixBridge.exe

Please note, you have to change to whatever the executable for your game is called. For example, hl2.exe.

  1. Launch the game, then run the .bat file. The bat file should open two console windows. If the windows close immediately, never launch, or complain that they don't know what procdump is, you'll need to add the procdump executable location to the "Path" in your Windows Environment Variables.

  2. Reproduce the crash, and send any .dmp files generated back to us.

NV-LL commented 2 weeks ago

Hi @k-rasher - checking in to see if you've been able to try the above instructions and generate any .dmp files. We also want to inform you of our stale ticket policy, namely that we will close this issue as 'went stale' if it does not receive an update in the next 2 weeks. Thank you!

k-rasher commented 2 weeks ago

for some reason a certain game update has caused remix to not work completely, upon launching the executable of the game there's an error saying "your system does not support 3d graphics" (screenshots below)

{753DA19A-7D43-4BEF-B220-F8D82BFB8471}

{27703118-521B-4716-9E4C-9FF93356E91A}

fortunately this time it managed to generate a .dmp file in the .trex folder: NvRemixBridge.exe_20241024_231917.dmp

bridge and dxvk versions used this time (the issue was present on the previously mentioned dxvk and bridge versions too):

bridge-remix-7b3d696-114-debugoptimized dxvk-remix-912a164-666-debugoptimized

NV-LL commented 1 week ago

Hey @k-rasher, thanks for the update! Will you please file a new ticket for this emergent issue? That'll help us keep better track of tickets, and we can follow up with you about it there.