bo3b / 3Dmigoto

Chiri's DX11 wrapper to enable fixing broken stereoscopic effects.
Other
688 stars 109 forks source link

[override_resource_desc] function crushed UE engine game, does not have access for virtual memory address. #345

Open StarBobis opened 2 months ago

StarBobis commented 2 months ago

Sorry to disturb , but I meet a problem will cause UE4 game crash with 3Dmigoto's modify feature. I modify this function: [override_resource_desc] to override the D3D11_BUFFER_DESC's ByteWidth, any number specified here will cause the same problem.

static void override_resource_desc(D3D11_BUFFER_DESC *desc, TextureOverride *textureOverride) { desc->ByteWidth = 12 * 250000; }

and then the UE4 game use 3dmigoto with the code above will always crush with this warning:

`<?xml version="1.0" encoding="utf-8" ?>

nvwgf2umx.dll 0xc0000005 The thread attempts to read from or write to a virtual address for which it does not have access. 0X00007FFF43310799 C:\Program Files\Snow\data\game\Game\Binaries\Win64\minidump\8b5cd28a-7cbe-4c9b-9e01-990e7c999421.dmp 29E6C019B1E7707A5FB03279B570321D 016f7e6c-335a-4169-b0e2-492be85413d0 native 1714453795 39 Game.exe 1 ` Is this a Issue that 3Dmigoto can't get enough permission in thread level or is it a UE4 engine designed way to protect their virtual memory not being modified? By the way, this feature works good in Unity game and other engine game, only UE4 and UE5 engine will show this error. Any tips will be very helpful ,thanks !