fholger / farcry_vrmod

Far Cry in Virtual Reality
https://farcryvr.de/
Other
119 stars 10 forks source link

The memory could not be "read" #9

Closed HappyStoat closed 1 year ago

HappyStoat commented 1 year ago

Hi there, right after I start the FarCryVR.bat, I get this error, in parallel to the black screen (nothing happends):

Logged at Tuesday, August 01, 2023 15:53:50 FileVersion: 1.1.0.1230 ProductVersion: 1.1.0.1230

Exception Code: 0xC0000005 Exception Addr: 0x0023:0x38010FA3 Exception Module: Exception Description: EXCEPTION_ACCESS_VIOLATION, Attempt to read from address 0x0000000C The memory could not be "read"

Call Stack Trace: 2) function=0x38010FA3 1) function=0x0

Haha this takes me back, when I was working with the Cryengine 1 in 2004. At that time you often got to see this window.

I installed the game via stream. Even after a clean reinstall it crashes. Maybe it's because of Vridge, I use this software to test It on my smartphone. Maybe you have an idea. The normal Game works without problems. I use Windows 11 and a Nvidia GTX1650.

HappyStoat commented 1 year ago

Ah and of course thanks for your nice work!!! :)

HappyStoat commented 1 year ago

This is what the log said (May be its really the Vridge...): ... Physics initialization MovieSystem initialization Renderer initialization System: INFO: DirectX 12.0 installed System: VideoCard Detected: Intel (Unknown) Direct3D9 driver is creating... Error: Couldn't find any suitable device (Unknown)

Exception: 0xC0000005, at Address: 0x0023:0x38010FA3 Exception Code: 0xC0000005 Exception Addr: 0x0023:0x38010FA3 Exception Module: Exception Description: Attempt to read from address 0x0000000C
fholger commented 1 year ago

The log says it found an "Intel" GPU. If you really only have an Intel iGPU or an ARC card, there is a high chance that this will simply not work. If you do have an NVIDIA or AMD dedicated GPU, you may need to force the game to use it, instead, as it appears it's selecting the wrong GPU.

HappyStoat commented 1 year ago

That's a good tip! But even if I start the app with the nvidia card, the same error comes up. When I start the game normally it looks like this:

Physics initialization MovieSystem initialization Renderer initialization System: INFO: DirectX 12.0 installed System: VideoCard Detected: Intel (Unknown) Direct3D9 driver is creating... Best-match display mode: 1024x768x32 (Error=8) Creating D3D device (Adapter format: D3DFMT_X8R8G8B8, BackBuffer format: D3DFMT_A8R8G8B8, Depth format: D3DFMT_D24S8) D3D Adapter: Driver name: nvldumd.dll D3D Adapter: Driver description: NVIDIA GeForce GTX 1650 with Max-Q Design D3D Adapter: Driver version: 27.21.14.6259 D3D Adapter: Driver GUID: D7B71E3E-5CD1-11CF-806B61351BC2D635 D3D Adapter: VendorId = 4318 D3D Adapter: DeviceId = 8081 D3D Adapter: SubSysId = 359600195 D3D Adapter: Revision = 161 D3D Detected: NVidia video card D3D Driver: MaxTextureBlendStages = 8 D3D Driver: MaxSimultaneousTextures = 8 Using '8888' pixel texture format Using 'Alpha8' pixel texture format Using 'Alpha8Lum8' pixel texture format Using 'V16U16' pixel texture format ... ..

HappyStoat commented 1 year ago

The Sandbox Editor works as well, by the way

fholger commented 1 year ago

You mean it still says "Intel" GPU? Then it is still selecting the wrong GPU. You could try to add the following line in the FarCryVR.bat at the beginning: set DXVK_FILTER_DEVICE_NAME=NVIDIA

Not sure what else to suggest.

HappyStoat commented 1 year ago

I will give it a try, but perhaps only the GPUs found are listed in the logs, regardless of which one is actually used. This is what the log says when I completly disable the intel GPU:

Physics initialization MovieSystem initialization Renderer initialization System: INFO: DirectX 12.0 installed System: VideoCard Detected: Unknown () Direct3D9 driver is creating... Error: Couldn't find any suitable device (Unknown)

Exception: 0xC0000005, at Address: 0x0023:0x38010FA3 Exception Code: 0xC0000005 Exception Addr: 0x0023:0x38010FA3 Exception Module: Exception Description: Attempt to read from address 0x0000000C
HappyStoat commented 1 year ago

I will try a different driver as well

HappyStoat commented 1 year ago

Okay it really was the graphics driver, it's working now... Thank you for your help!!