My game crash when vehicle touch the ground

When my vehicle is in air there is no problem but when wheels touch the ground my game crash.
and I’m getting this error:

First-chance exception at 0x00672cb7 in Game.exe: 0xC0000005: Access violation reading location 0x374a2c5c.
Unhandled exception at 0x00672cb7 in Game.exe: 0xC0000005: Access violation reading location 0x374a2c5c.

this is my call stack:
Game.exe!physx::PxVehicleUpdate::updateDrive4W() Line 2408 + 0x6 bytes C++
Game.exe!physx::PxVehicleUpdate::update() Line 3599 + 0x24 bytes C++
Game.exe!physx::PxVehicleUpdates() Line 3638 + 0x20 bytes C++

what is the problem?
I think there is some thing wrong in ray casts but I don’t know what is it.

There was a similar thread
https://devtalk.nvidia.com/default/topic/524513/

Maybe it will give you some ideas

Hello,

Without knowing version of the PhysX SDK you are using it is difficult to work out the line of code where the crash occurs. A couple of things will really help here. The first is to run in debug configuration to get a more detailed callstack. The second is to post here the PhysX SDK version that you are running.

It is possible that in checked or debug build the vehicle sdk will report the problem to the error stream. Could you please try this and verify that no errors are being reported?

The suggestions in the thread noted in the previous post are definitely valid here. Definitely worth a look.

This sounds like the vehicle code is trying to access memory that has already been deleted or hasn’t been configured properly. The obvious things to think about are: 1) have you set up the friction table (PxVehicleDrivableSurfaceToTireFrictionPairs)? 2) was PxVehicleSuspensionRaycasts called prior to PxVehicleUpdates? 3) is the array of PxRaycastQueryResult passed to PxVehicleSuspensionRaycasts still valid? 4) have any actors been deleted in-between the raycast and the vehicle update?

I’m sure this is a straightforward fix.

Thanks,

Gordon

Looks like problem was solved
http://www.gamedev.net/topic/643067-physx-vehicle-problem/

Good news. Thanks.

Gordon