Page 1 of 1

RendDX9\TextureManager.cpp Crash/Freeze

Posted: 2025-04-26 21:44
by Racer-X
Hi, I started playing PR recently after some months. In the meanwhile I updated my graphics drivers, now I have a problem which I didn't have before.

When playing on Kashan (so far it has only been on this map) my game either crashes or freezes when flying jets or helis. When it freezes it also looks like some textures glitch out/disappear. This freeze can sometimes be solved by alt tabbing and going back, but sometimes it just crashes when I do that. Sometimes it just instantly crashes and gives the following message (but not always, sometimes crash without any message):

Image

Seems it might be caused by textures not loading correctly or too slow when high up or going fast. Flying jets still works fine on Silent Eagle, Khamisiyah, Damascus, Falklands. So far I only have this issue on Kashan.

My graphics cards:
Intel Iris Xe Graphics
Intel Arc A730M Graphics

I have already tried the following:
- Downloaded the Dx9 DLL file from PR forums and replaced the one in Windows folder
- Reinstalled graphics drivers
- Downgraded my graphics drivers as far back as possible from Intel site (still a newer version than I had before updating)
- Set high performance in graphics settings for PRBF2.exe (although it still shows the Iris Xe card in the Support info from the launcher)
- Cleared shader cache

Thanks for reading and appreciate any advice.
(the crash log from support info differs per case, but it always seems dll files from windows folder)

Code: Select all

System Information
------------------
    Operating System: Microsoft Windows 11 Home (10.0.26100)
        Architecture: 64-bit
     Current Culture: English (Netherlands)
         Motherboard: MEDION N68630
           Processor: 12th Gen Intel(R) Core(TM) i7-12700H (Physical: 14, Logical: 20)
              Memory: 16,00 GB
        DIMM Modules: Controller0-ChannelA-DIMM0: 8,00 GB @ 4800 MHz
                      Controller1-ChannelA-DIMM0: 8,00 GB @ 4800 MHz
           Page File: 1,25 GB
      .NET Framework: 4.6+ Release Build: 533320, Runtime: 4.0.30319.42000

Display Information
-------------------
   Display Device(s): Generic PnP Monitor on Intel(R) Iris(R) Xe Graphics
     Display Mode(s): 2560 x 1600 (32 bit) @ 165 Hz
      Driver Version: 32.0.101.6458
      Display Memory: 2,00 GB
       Multisampling: 2, 4, 8
                 DPI: 144 (150%)

Audio Information
-----------------
    Primary Playback: Microsoft Sound Mapper
   Primary Recording: Microphone Array (IntelĀ® Smart 
    Open AL Renderer: Software
                 EAX: True
             EAX 1.0: False
             EAX 2.0: True
             EAX 3.0: False
             EAX 4.0: False
             EAX 5.0: False
               X-RAM: False

Disk Information
----------------
        Install Path: C:\Games\Project Reality\Project Reality BF2
                      Free: 434,50 GB, Total: 921,78 GB, FS: NTFS, SSD: True
            Mod Path: C:\Games\Project Reality\Project Reality BF2\mods\pr
                      Free: 434,50 GB, Total: 921,78 GB, FS: NTFS, SSD: True
       Profiles Path: C:\Users\mtraj\Documents\ProjectReality\Profiles
                      Free: 434,50 GB, Total: 921,78 GB, FS: NTFS, SSD: True
      Update DL Path: C:\Users\mtraj\AppData\Local\Project Reality\Project Reality BF2\Downloads
                      Free: 434,50 GB, Total: 921,78 GB, FS: NTFS, SSD: True
     Update Log Path: C:\Users\mtraj\AppData\Local\Project Reality\Project Reality BF2\UpdateLogs
                      Free: 434,50 GB, Total: 921,78 GB, FS: NTFS, SSD: True

Game Information
----------------
      Installed Mods: pr
         Current Mod: pr
             Version: Standalone - 1.0
          PR Version: 1.8.1.2
            Language: english
     Debug Available: False
       Large Address: True
  Supported Hardware: None
Missing dependencies: None
Ignored dependencies: None

Profile Information
-------------------
        Profile 0001: Racer-X
                Type: Online
   Last Used Profile: True
          View Intro: False
          Fullscreen: True
        Display Mode: 2560x1600@165Hz
  Display Mode Valid: True
     Graphics Scheme: Medium
       Multisampling: Off
               VSync: False
     Terrain Quality: Low
     Effects Quality: High
    Geometry Quality: Low
     Texture Quality: Medium
    Lighting Quality: Low
     Dynamic Shadows: Medium
      Dynamic Lights: Medium
   Texture Filtering: Medium
   Statics Lod-Scale: 1,0
Overgrowth Lod-Scale: 1,0
Use advanced shaders: False
      Audio Provider: Hardware
      Provider Valid: True
       Audio Quality: Medium
                 EAX: True
PRLauncher.log
-------------------
Project Reality Log File
PRLauncher.exe started at: 2025-04-26T23:15:21

Warning: Error 1 in WinApi parsing modulesC:\WINDOWS\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_b03884da4eae8654\igc32.dll
Warning: Error 1 in WinApi parsing modulesC:\WINDOWS\SYSTEM32\VERSION.dll
Warning: Error 1 in WinApi parsing modulesC:\WINDOWS\System32\DriverStore\FileRepository\iigd_dch_d.inf_amd64_ed0a5b68fd56b74f\IntelControlLib32.dll
Warning: Error 1 in WinApi parsing modulesC:\WINDOWS\system32\rsaenh.dll
Warning: Error 1 in WinApi parsing modulesC:\WINDOWS\SYSTEM32\avrt.dll
Error: Debug assertion failed!

Version: 1.8.1.2
Module: RendDX9
File: C:\dice\Projects\BF2Branches\Patch_1_50\Code\BF2\RendDX9\TextureManager.cpp
Line: 453

Text: Failed to create dx texture even after going managed: Ran out of memory

Current confile:
PlayerManager created
ObjectManager created
GameLogic created
Serversettings created

Warning: Error in SendToClient


 > An existing connection was forcibly closed by the remote host
Warning: Error in SendToClient


 > An existing connection was forcibly closed by the remote host


Re: RendDX9\TextureManager.cpp Crash/Freeze

Posted: 2025-04-27 14:24
by bad_nade
Racer-X wrote: 2025-04-26 21:44 Hi, I started playing PR recently after some months. In the meanwhile I updated my graphics drivers, now I have a problem which I didn't have before.

When playing on Kashan (so far it has only been on this map) my game either crashes or freezes when flying jets or helis. When it freezes it also looks like some textures glitch out/disappear. This freeze can sometimes be solved by alt tabbing and going back, but sometimes it just crashes when I do that. Sometimes it just instantly crashes and gives the following message (but not always, sometimes crash without any message):

Image

Seems it might be caused by textures not loading correctly or too slow when high up or going fast. Flying jets still works fine on Silent Eagle, Khamisiyah, Damascus, Falklands. So far I only have this issue on Kashan.

My graphics cards:
Intel Iris Xe Graphics
Intel Arc A730M Graphics

I have already tried the following:
- Downloaded the Dx9 DLL file from PR forums and replaced the one in Windows folder
- Reinstalled graphics drivers
- Downgraded my graphics drivers as far back as possible from Intel site (still a newer version than I had before updating)
- Set high performance in graphics settings for PRBF2.exe (although it still shows the Iris Xe card in the Support info from the launcher)
- Cleared shader cache

Thanks for reading and appreciate any advice.
(the crash log from support info differs per case, but it always seems dll files from windows folder)

Code: Select all

System Information
------------------
    Operating System: Microsoft Windows 11 Home (10.0.26100)
        Architecture: 64-bit
     Current Culture: English (Netherlands)
         Motherboard: MEDION N68630
           Processor: 12th Gen Intel(R) Core(TM) i7-12700H (Physical: 14, Logical: 20)
              Memory: 16,00 GB
        DIMM Modules: Controller0-ChannelA-DIMM0: 8,00 GB @ 4800 MHz
                      Controller1-ChannelA-DIMM0: 8,00 GB @ 4800 MHz
           Page File: 1,25 GB
      .NET Framework: 4.6+ Release Build: 533320, Runtime: 4.0.30319.42000

Display Information
-------------------
   Display Device(s): Generic PnP Monitor on Intel(R) Iris(R) Xe Graphics
     Display Mode(s): 2560 x 1600 (32 bit) @ 165 Hz
      Driver Version: 32.0.101.6458
      Display Memory: 2,00 GB
       Multisampling: 2, 4, 8
                 DPI: 144 (150%)

Audio Information
-----------------
    Primary Playback: Microsoft Sound Mapper
   Primary Recording: Microphone Array (IntelĀ® Smart 
    Open AL Renderer: Software
                 EAX: True
             EAX 1.0: False
             EAX 2.0: True
             EAX 3.0: False
             EAX 4.0: False
             EAX 5.0: False
               X-RAM: False

Disk Information
----------------
        Install Path: C:\Games\Project Reality\Project Reality BF2
                      Free: 434,50 GB, Total: 921,78 GB, FS: NTFS, SSD: True
            Mod Path: C:\Games\Project Reality\Project Reality BF2\mods\pr
                      Free: 434,50 GB, Total: 921,78 GB, FS: NTFS, SSD: True
       Profiles Path: C:\Users\mtraj\Documents\ProjectReality\Profiles
                      Free: 434,50 GB, Total: 921,78 GB, FS: NTFS, SSD: True
      Update DL Path: C:\Users\mtraj\AppData\Local\Project Reality\Project Reality BF2\Downloads
                      Free: 434,50 GB, Total: 921,78 GB, FS: NTFS, SSD: True
     Update Log Path: C:\Users\mtraj\AppData\Local\Project Reality\Project Reality BF2\UpdateLogs
                      Free: 434,50 GB, Total: 921,78 GB, FS: NTFS, SSD: True

Game Information
----------------
      Installed Mods: pr
         Current Mod: pr
             Version: Standalone - 1.0
          PR Version: 1.8.1.2
            Language: english
     Debug Available: False
       Large Address: True
  Supported Hardware: None
Missing dependencies: None
Ignored dependencies: None

Profile Information
-------------------
        Profile 0001: Racer-X
                Type: Online
   Last Used Profile: True
          View Intro: False
          Fullscreen: True
        Display Mode: 2560x1600@165Hz
  Display Mode Valid: True
     Graphics Scheme: Medium
       Multisampling: Off
               VSync: False
     Terrain Quality: Low
     Effects Quality: High
    Geometry Quality: Low
     Texture Quality: Medium
    Lighting Quality: Low
     Dynamic Shadows: Medium
      Dynamic Lights: Medium
   Texture Filtering: Medium
   Statics Lod-Scale: 1,0
Overgrowth Lod-Scale: 1,0
Use advanced shaders: False
      Audio Provider: Hardware
      Provider Valid: True
       Audio Quality: Medium
                 EAX: True
PRLauncher.log
-------------------
Project Reality Log File
PRLauncher.exe started at: 2025-04-26T23:15:21

Warning: Error 1 in WinApi parsing modulesC:\WINDOWS\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_b03884da4eae8654\igc32.dll
Warning: Error 1 in WinApi parsing modulesC:\WINDOWS\SYSTEM32\VERSION.dll
Warning: Error 1 in WinApi parsing modulesC:\WINDOWS\System32\DriverStore\FileRepository\iigd_dch_d.inf_amd64_ed0a5b68fd56b74f\IntelControlLib32.dll
Warning: Error 1 in WinApi parsing modulesC:\WINDOWS\system32\rsaenh.dll
Warning: Error 1 in WinApi parsing modulesC:\WINDOWS\SYSTEM32\avrt.dll
Error: Debug assertion failed!

Version: 1.8.1.2
Module: RendDX9
File: C:\dice\Projects\BF2Branches\Patch_1_50\Code\BF2\RendDX9\TextureManager.cpp
Line: 453

Text: Failed to create dx texture even after going managed: Ran out of memory

Current confile:
PlayerManager created
ObjectManager created
GameLogic created
Serversettings created

Warning: Error in SendToClient


 > An existing connection was forcibly closed by the remote host
Warning: Error in SendToClient


 > An existing connection was forcibly closed by the remote host

Intel GPUs since 12th Gen integrated don't have native DirectX9 support anymore. Instead they use DX9 to DX12 compatibility layer that is installed with the driver. Unfortunately, quality and stability of Intel drivers aren't quite there yet. That's why, in addition to updating drivers, it's better to bypass Intel's DX9 compatibility layer by using dxvk. It's not made specifically for Windows but it works on Windows as well.

Download the latest dxvk.tar.gz package from their GitHub releases page (v2.6.1 as of this writing). Keep extracting files from the archive until you have 32-bit d3d9.dll in your hands. Copy it to your PR install folder. It's the same folder where PRBF2.exe application is. Then create a text file named dxvk.conf and add this line into it

Code: Select all

d3d9.deviceLossOnFocusLoss = True
Save the dxvk.conf file in the same folder with d3d9.dll and PRBF2.exe. Make sure the file name extension is indeed .conf and not .conf.txt.

https://github.com/doitsujin/dxvk/releases/latest

Re: RendDX9\TextureManager.cpp Crash/Freeze

Posted: 2025-04-27 21:15
by Racer-X
bad_nade wrote: 2025-04-27 14:24 Intel GPUs since 12th Gen integrated don't have native DirectX9 support anymore. Instead they use DX9 to DX12 compatibility layer that is installed with the driver. Unfortunately, quality and stability of Intel drivers aren't quite there yet. That's why, in addition to updating drivers, it's better to bypass Intel's DX9 compatibility layer by using dxvk. It's not made specifically for Windows but it works on Windows as well.

Download the latest dxvk.tar.gz package from their GitHub releases page (v2.6.1 as of this writing). Keep extracting files from the archive until you have 32-bit d3d9.dll in your hands. Copy it to your PR install folder. It's the same folder where PRBF2.exe application is. Then create a text file named dxvk.conf and add this line into it

Code: Select all

d3d9.deviceLossOnFocusLoss = True
Save the dxvk.conf file in the same folder with d3d9.dll and PRBF2.exe. Make sure the file name extension is indeed .conf and not .conf.txt.

https://github.com/doitsujin/dxvk/releases/latest
Thank you, this fixed it!