Hi Epic Team
My Paper 2D project worked with 4.9, 4.10 but now it crash using 4.11 when the Sprite collides. Seems like this member function UEngine::GetWorldFromContextObject fails at the point check(…)
UWorld* UEngine::GetWorldFromContextObject(const UObject* Object, const bool bChecked) const
{
if (!bChecked && Object == NULL)
{
return NULL;
}
check(Object); // HERE IT FAILS
bool bSupported = true;
UWorld* World = (bChecked ? Object->GetWorldChecked(bSupported) : Object->GetWorld());
return (bSupported ? World : GWorld);
}
Do you guys have any clue why this is happening?
Here the backtrace
(gdb) bt
#0 0x00007f4e1fc2a418 in __GI_raise (sig=sig@entry=6) at …/sysdeps/unix/sysv/linux/raise.c:54
#1 0x00007f4e1fc2c01a in __GI_abort () at abort.c:89
#2 0x00007f4e2bf93648 in FGenericPlatformMisc::RequestExit (Force=true) at /home/yaakuro/UnrealEngine/Engine/Source/Runtime/Core/Private/GenericPlatform/GenericPlatformMisc.cpp:407
#3 0x00007f4e2c0a8deb in GenerateCrashInfoAndLaunchReporter (Context=…) at /home/yaakuro/UnrealEngine/Engine/Source/Runtime/Core/Private/Linux/LinuxPlatformCrashContext.cpp:406
#4 0x00007f4e2c0ac528 in PlatformCrashHandler (Signal=11, Info=0x7fffa316cbb0, Context=0x7fffa316ca80) at /home/yaakuro/UnrealEngine/Engine/Source/Runtime/Core/Private/Linux/LinuxPlatformCrashContext.cpp:450
#5
#6 FGenericPlatformMisc::RaiseException (ExceptionCode=1) at /home/yaakuro/UnrealEngine/Engine/Source/Runtime/Core/Private/GenericPlatform/GenericPlatformMisc.cpp:294
#7 0x00007f4e2c0b8f0d in FOutputDeviceLinuxError::Serialize (this=0x7f4e2c92ea70 , Msg=, Verbosity=, Category=…)
at /home/yaakuro/UnrealEngine/Engine/Source/Runtime/Core/Private/Linux/LinuxPlatformOutputDevices.cpp:112
#8 0x00007f4e2c174017 in FOutputDevice::Logf (this=, Fmt=) at /home/yaakuro/UnrealEngine/Engine/Source/Runtime/Core/Private/Misc/OutputDevice.cpp:149
#9 0x00007f4e2c165140 in FDebug::AssertFailed (Expr=, File=0x7f4e2a7ecc0b “/home/yaakuro/UnrealEngine/Engine/Source/Runtime/Engine/Private/UnrealEngine.cpp”, Line=8022, Format=)
at /home/yaakuro/UnrealEngine/Engine/Source/Runtime/Core/Private/Misc/OutputDevice.cpp:430
#10 0x00007f4e29502038 in UEngine::GetWorldFromContextObject (this=, Object=0x0, bChecked=true) at /home/yaakuro/UnrealEngine/Engine/Source/Runtime/Engine/Private/UnrealEngine.cpp:8022
#11 0x00007f4e28bd5e46 in UGameplayStatics::GetPlayerController (WorldContextObject=0x7fffa316d078, PlayerIndex=0) at /home/yaakuro/UnrealEngine/Engine/Source/Runtime/Engine/Private/GameplayStatics.cpp:45
#12 0x00007f4e28bd5f06 in UGameplayStatics::GetPlayerPawn (WorldContextObject=0x7fffa316d060, PlayerIndex=-1558785928) at /home/yaakuro/UnrealEngine/Engine/Source/Runtime/Engine/Private/GameplayStatics.cpp:69
#13 0x00007f4e298c6a22 in UGameplayStatics::execGetPlayerPawn (this=, Stack=…, Z_Param__Result=0x7fffa31733d8) at Runtime/Engine/Classes/Kismet/GameplayStatics.h:31
#14 0x00007f4e2b91a222 in UFunction::Invoke (this=, Obj=, Stack=…, Z_Param__Result=) at /home/yaakuro/UnrealEngine/Engine/Source/Runtime/CoreUObject/Private/UObject/Class.cpp:4482
#15 0x00007f4e2ba9d733 in UObject::CallFunction (this=, Stack=…, Z_Param__Result=0x7fffa31733d8, Function=)
at /home/yaakuro/UnrealEngine/Engine/Source/Runtime/CoreUObject/Private/UObject/ScriptCore.cpp:562
#16 0x00007f4e2baa8956 in FFrame::Step (this=0x7fffa3173790, Z_Param__Result=0x7fffa31733d8, Context=) at /home/yaakuro/UnrealEngine/Engine/Source/Runtime/CoreUObject/Private/UObject/ScriptCore.cpp:228
#17 UObject::ProcessContextOpcode (this=, Stack=…, Z_Param__Result=, bCanFailSilently=false) at /home/yaakuro/UnrealEngine/Engine/Source/Runtime/CoreUObject/Private/UObject/ScriptCore.cpp:1913
#18 0x00007f4e2baa801d in FFrame::Step (this=0x7fffa3173790, Context=, Z_Param__Result=) at /home/yaakuro/UnrealEngine/Engine/Source/Runtime/CoreUObject/Private/UObject/ScriptCore.cpp:228
#19 UObject::execLetObj (this=, Stack=…, Z_Param__Result=) at /home/yaakuro/UnrealEngine/Engine/Source/Runtime/CoreUObject/Private/UObject/ScriptCore.cpp:1749
#20 0x00007f4e2ba9ec41 in FFrame::Step (this=0x7fffa3173790, Context=, Z_Param__Result=) at /home/yaakuro/UnrealEngine/Engine/Source/Runtime/CoreUObject/Private/UObject/ScriptCore.cpp:228
#21 UObject::ProcessInternal (this=, Stack=…, Z_Param__Result=) at /home/yaakuro/UnrealEngine/Engine/Source/Runtime/CoreUObject/Private/UObject/ScriptCore.cpp:811
#22 0x00007f4e2ba9d3b3 in UObject::CallFunction (this=, Stack=…, Z_Param__Result=0x7fffa3173a70, Function=)
at /home/yaakuro/UnrealEngine/Engine/Source/Runtime/CoreUObject/Private/UObject/ScriptCore.cpp:683
#23 0x00007f4e2ba9ec41 in FFrame::Step (this=0x7fffa3173cf0, Context=, Z_Param__Result=) at /home/yaakuro/UnrealEngine/Engine/Source/Runtime/CoreUObject/Private/UObject/ScriptCore.cpp:228
#24 UObject::ProcessInternal (this=, Stack=…, Z_Param__Result=) at /home/yaakuro/UnrealEngine/Engine/Source/Runtime/CoreUObject/Private/UObject/ScriptCore.cpp:811
#25 0x00007f4e2b91a222 in UFunction::Invoke (this=, Obj=, Stack=…, Z_Param__Result=) at /home/yaakuro/UnrealEngine/Engine/Source/Runtime/CoreUObject/Private/UObject/Class.cpp:4482
#26 0x00007f4e2baa2465 in UObject::ProcessEvent (this=, Function=, Parms=0x7fffa3173ee8) at /home/yaakuro/UnrealEngine/Engine/Source/Runtime/CoreUObject/Private/UObject/ScriptCore.cpp:1147
#27 0x00007f4e296a5aa9 in AActor::ReceiveAnyDamage (this=0x7f4d900a7c00, Damage=-1.915944e-29, DamageType=, InstigatedBy=, DamageCauser=0x4b30b000)
at /home/yaakuro/UnrealEngine/Engine/Intermediate/Build/Linux/B4D820EA/UE4Editor/Inc/Engine/Engine.generated.1.cpp:2413
#28 0x00007f4e285a4c4f in AActor::TakeDamage (this=, DamageAmount=, DamageEvent=…, EventInstigator=, DamageCauser=)
at /home/yaakuro/UnrealEngine/Engine/Source/Runtime/Engine/Private/Actor.cpp:1958
#29 0x00007f4e28bd766f in UGameplayStatics::ApplyDamage (DamagedActor=, BaseDamage=, EventInstigator=, DamageCauser=, DamageTypeClass=…)
at /home/yaakuro/UnrealEngine/Engine/Source/Runtime/Engine/Private/GameplayStatics.cpp:291
#30 0x00007f4e298c3374 in UGameplayStatics::execApplyDamage (this=, Stack=…, Z_Param__Result=) at Runtime/Engine/Classes/Kismet/GameplayStatics.h:31
#31 0x00007f4e2b91a222 in UFunction::Invoke (this=, Obj=, Stack=…, Z_Param__Result=) at /home/yaakuro/UnrealEngine/Engine/Source/Runtime/CoreUObject/Private/UObject/Class.cpp:4482
#32 0x00007f4e2ba9d733 in UObject::CallFunction (this=, Stack=…, Z_Param__Result=0x7fffa31746d0, Function=)
at /home/yaakuro/UnrealEngine/Engine/Source/Runtime/CoreUObject/Private/UObject/ScriptCore.cpp:562
#33 0x00007f4e2baa8956 in FFrame::Step (this=0x7fffa3174880, Z_Param__Result=0x7fffa31746d0, Context=) at /home/yaakuro/UnrealEngine/Engine/Source/Runtime/CoreUObject/Private/UObject/ScriptCore.cpp:228
#34 UObject::ProcessContextOpcode (this=, Stack=…, Z_Param__Result=, bCanFailSilently=false) at /home/yaakuro/UnrealEngine/Engine/Source/Runtime/CoreUObject/Private/UObject/ScriptCore.cpp:1913
#35 0x00007f4e2ba9ec41 in FFrame::Step (this=0x7fffa3174880, Context=, Z_Param__Result=) at /home/yaakuro/UnrealEngine/Engine/Source/Runtime/CoreUObject/Private/UObject/ScriptCore.cpp:228
#36 UObject::ProcessInternal (this=, Stack=…, Z_Param__Result=) at /home/yaakuro/UnrealEngine/Engine/Source/Runtime/CoreUObject/Private/UObject/ScriptCore.cpp:811
#37 0x00007f4e2ba9d3b3 in UObject::CallFunction (this=, Stack=…, Z_Param__Result=0x7fffa3174b60, Function=)
at /home/yaakuro/UnrealEngine/Engine/Source/Runtime/CoreUObject/Private/UObject/ScriptCore.cpp:683
#38 0x00007f4e2ba9ec41 in FFrame::Step (this=0x7fffa3174ec0, Context=, Z_Param__Result=) at /home/yaakuro/UnrealEngine/Engine/Source/Runtime/CoreUObject/Private/UObject/ScriptCore.cpp:228
#39 UObject::ProcessInternal (this=, Stack=…, Z_Param__Result=) at /home/yaakuro/UnrealEngine/Engine/Source/Runtime/CoreUObject/Private/UObject/ScriptCore.cpp:811
#40 0x00007f4e2b91a222 in UFunction::Invoke (this=, Obj=, Stack=…, Z_Param__Result=) at /home/yaakuro/UnrealEngine/Engine/Source/Runtime/CoreUObject/Private/UObject/Class.cpp:4482
#41 0x00007f4e2baa2465 in UObject::ProcessEvent (this=, Function=, Parms=0x7fffa31750b0) at /home/yaakuro/UnrealEngine/Engine/Source/Runtime/CoreUObject/Private/UObject/ScriptCore.cpp:1147
#42 0x00007f4e296a5c9d in AActor::ReceiveHit (this=0x7f4db2913600, MyComp=, Other=, OtherComp=0x4b30b000, bSelfMoved=128, HitLocation=…, HitNormal=…,
NormalImpulse=, Hit=…)
at /home/yaakuro/UnrealEngine/Engine/Intermediate/Build/Linux/B4D820EA/UE4Editor/Inc/Engine/Engine.generated.1.cpp:2440
#43 0x00007f4e285b2c27 in AActor::DispatchPhysicsCollisionHit (this=0x7f4db2913600, MyInfo=…, OtherInfo=…, RigidCollisionData=…) at /home/yaakuro/UnrealEngine/Engine/Source/Runtime/Engine/Private/Actor.cpp:3700
#44 0x00007f4e2912153e in FPhysScene::DispatchPhysNotifications_AssumesLocked (this=) at /home/yaakuro/UnrealEngine/Engine/Source/Runtime/Engine/Private/PhysicsEngine/PhysScene.cpp:1149
#45 0x00007f4e29110ad8 in FPhysScene::EndFrame (this=0x7f4d900aa800, InLineBatcher=0x7f4db62b4f00) at /home/yaakuro/UnrealEngine/Engine/Source/Runtime/Engine/Private/PhysicsEngine/PhysScene.cpp:1356
#46 0x00007f4e2913f8f0 in TMemberFunctionCaller::operator()<>() (this=) at /home/yaakuro/UnrealEngine/Engine/Source/Runtime/Core/Public/Delegates/DelegateInstanceInterface_Variadics.h:161
#47 TTupleImpl>::ApplyAfter_ExplicitReturnType>(TMemberFunctionCaller&&) const (this=,