Every time I try to SetCollisionResponseToAllChannels on UDestructibleComponent on engine version 4.14.3 it crashes the editor. When I remove that line of code, it work without a problem. This issue does not happen on engine version 4.13.2. This happens on Mac OS X, not sure if this happens on Windows.
Here is the code:
AObstacle::AObstacle()
{
PrimaryActorTick.bCanEverTick = true;
Mesh = CreateDefaultSubobject<UDestructibleComponent>(TEXT("Mesh"));
check(Mesh);
Mesh->SetupAttachment(Collider);
Mesh->SetCollisionResponseToAllChannels(ECR_Ignore);
}
And here is the log:
MachineId:534EF4C0D645F0731986B29853967ABF
EpicAccountId:1c36ae59794740519aafea869e6f6ec4
SEGV_MAPERR at 0x10
UDestructibleComponent::SetCollisionResponseToAllChannels(ECollisionResponse) Address = 0x1031c1c67 (filename not found) [in UE4Editor-Engine.dylib]
AObstacle::AObstacle() Address = 0x16444d096 [/Users/ivanivemoric/Projects/UnrealEngine/Test2/Source/Test2/Obstacle.cpp, line 12] [in UE4Editor-Test2-7391.dylib]
UClass::CreateDefaultObject() Address = 0x1024c0672 (filename not found) [in UE4Editor-CoreUObject.dylib]
ProcessNewlyLoadedUObjects() Address = 0x10271bed3 (filename not found) [in UE4Editor-CoreUObject.dylib]
TBaseStaticDelegateInstance<void ()>::ExecuteIfSafe() const Address = 0x10250f5a7 (filename not found) [in UE4Editor-CoreUObject.dylib]
TBaseMulticastDelegate<void>::Broadcast() const Address = 0x1017f478a (filename not found) [in UE4Editor-Core.dylib]
FModuleManager::LoadModuleWithFailureReason(FName, EModuleLoadResult&, bool) Address = 0x101adaf7f (filename not found) [in UE4Editor-Core.dylib]
FModuleDescriptor::LoadModulesForPhase(ELoadingPhase::Type, TArray<FModuleDescriptor, FDefaultAllocator> const&, TMap<FName, EModuleLoadResult, FDefaultSetAllocator, TDefaultMapKeyFuncs<FName, EModuleLoadResult, false> >&) Address = 0x1078cc308 (filename not found) [in UE4Editor-Projects.dylib]
FProjectManager::LoadModulesForProject(ELoadingPhase::Type) Address = 0x1078e5677 (filename not found) [in UE4Editor-Projects.dylib]
FEngineLoop::LoadStartupModules() Address = 0x10171a3ef (filename not found) [in UE4Editor]
FEngineLoop::PreInit(wchar_t const*) Address = 0x10170003b (filename not found) [in UE4Editor]
GuardedMain(wchar_t const*) Address = 0x1017118a1 (filename not found) [in UE4Editor]
-[UE4AppDelegate runGameThread:] Address = 0x10171f16c (filename not found) [in UE4Editor]
-[FCocoaGameThread main] Address = 0x10193e526 (filename not found) [in UE4Editor-Core.dylib]
Unknown() Address = 0x7fffb7aefc6d (filename not found) [in Foundation]
_pthread_body Address = 0x7fffcb83aaab (filename not found) [in libsystem_pthread.dylib]
_pthread_body Address = 0x7fffcb83a9f7 (filename not found) [in libsystem_pthread.dylib]
thread_start Address = 0x7fffcb83a1fd (filename not found) [in libsystem_pthread.dylib]