SpaceRaccoonGameStudio / NPC_Optimizator

23 stars 1 forks source link

Crash with NPC using Physics Control Component #12

Open Louspirit opened 1 year ago

Louspirit commented 1 year ago

Hello,

I just added the Optimization Proxy into my NPC, which is also using Physics Control, and it crashes instantly.

Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x0000000000000194

UnrealEditor_CoreUObject!FWeakObjectPtr::Get() [D:\build\++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\WeakObjectPtr.cpp:88]
UnrealEditor_Engine!FBodyInstance::SetInstanceSimulatePhysics() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\PhysicsEngine\BodyInstance.cpp:2303]
UnrealEditor_PhysicsControl!UPhysicsControlComponent::TickComponent() [D:\build\++UE5\Sync\Engine\Plugins\Experimental\PhysicsControl\Source\PhysicsControl\Private\PhysicsControlComponent.cpp:167]
UnrealEditor_Engine!FActorComponentTickFunction::ExecuteTickHelper<<lambda_f011d35eeb8a005f9c8ee1a0523134b3> >() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Classes\GameFramework\Actor.h:4221]
UnrealEditor_Engine!FActorComponentTickFunction::ExecuteTick() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\Components\ActorComponent.cpp:1108]
UnrealEditor_Engine!FTickFunctionTask::DoTask() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\TickTaskManager.cpp:275]
UnrealEditor_Engine!TGraphTask<FTickFunctionTask>::ExecuteTask() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Public\Async\TaskGraphInterfaces.h:1310]
UnrealEditor_Core!FNamedTaskThread::ProcessTasksNamedThread() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Private\Async\TaskGraph.cpp:758]
UnrealEditor_Core!FNamedTaskThread::ProcessTasksUntilQuit() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Private\Async\TaskGraph.cpp:649]
UnrealEditor_Core!FTaskGraphCompatibilityImplementation::WaitUntilTasksComplete() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Private\Async\TaskGraph.cpp:2123]
UnrealEditor_Engine!FTickTaskSequencer::ReleaseTickGroup() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\TickTaskManager.cpp:556]
UnrealEditor_Engine!FTickTaskManager::RunTickGroup() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\TickTaskManager.cpp:1583]
UnrealEditor_Engine!UWorld::RunTickGroup() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\LevelTick.cpp:770]
UnrealEditor_Engine!UWorld::Tick() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\LevelTick.cpp:1512]
UnrealEditor_UnrealEd!UEditorEngine::Tick() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\EditorEngine.cpp:1905]
UnrealEditor_UnrealEd!UUnrealEdEngine::Tick() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\UnrealEdEngine.cpp:519]
UnrealEditor!FEngineLoop::Tick() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:5812]
UnrealEditor!GuardedMain() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Launch.cpp:188]
UnrealEditor!GuardedMainWrapper() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:107]
UnrealEditor!LaunchWindowsStartup() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:244]
UnrealEditor!WinMain() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:284]
UnrealEditor!__scrt_common_main_seh() [D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
kernel32
ntdll

edit: I'm on 5.2

afrostalin commented 1 year ago

Hey! Thanks for your report, I will check it

Louspirit commented 11 months ago

Hello,

To help you fix the matter faster or at least prevent crash, I've tried to narrow down what was causing the issue.

I tried switching all the settings one by one, and the one was causing the crash is : Skeletal Meshes / Disable Mesh Collision

While you get the fix for it, you may want to publish an update that checks for npcs using physics control components and ignore this setting if it's the case.

Thank you.

itsmikethetech commented 1 month ago

Has this been solved? Having a similar issue.