Hello, i have a problem since one day, i can’t open my project and continue my development because the project crash during opening.
Logs:
[2017.06.15-10.29.07:646][
0]LogUdpMessaging: Initializing bridge
on interface 0.0.0.0:0 to multicast
group 230.0.0.1:6666.[2017.06.15-10.29.08:448][
0]LogThreadingWindows:Error: Runnable
thread crashed.[2017.06.15-10.29.08:448][
0]LogWindows:Error: === Critical
error: ===[2017.06.15-10.29.08:448][
0]LogWindows:Error:[2017.06.15-10.29.08:448][
0]LogWindows:Error: Fatal error![2017.06.15-10.29.08:448][
0]LogWindows:Error:[2017.06.15-10.29.08:448][
0]LogWindows:Error: Unhandled
Exception: EXCEPTION_ACCESS_VIOLATION
reading address 0x000007dc[2017.06.15-10.29.08:448][
0]LogWindows:Error:[2017.06.15-10.29.08:448][
0]LogWindows:Error:
UE4Editor-Engine.dll!0x00000000CFA295E4[2017.06.15-10.29.08:448][
0]LogWindows:Error:
UE4Editor-Test.dll!UReceiverWorker::Init()
[d:\programmation\test\mcoclient\test\source\test\receiverworker.cpp:41][2017.06.15-10.29.08:448][
0]LogWindows:Error:
UE4Editor-Core.dll!0x00000000DE00E593[2017.06.15-10.29.08:448][
0]LogWindows:Error:
UE4Editor-Core.dll!0x00000000DE008DE9[2017.06.15-10.29.08:448][
0]LogWindows:Error:
KERNEL32.DLL!0x00000000245C2774[2017.06.15-10.29.08:448][
0]LogWindows:Error:
ntdll.dll!0x0000000025150D61[2017.06.15-10.29.08:448][
0]LogWindows:Error:
ntdll.dll!0x0000000025150D61[2017.06.15-10.29.08:448][
0]LogWindows:Error:[2017.06.15-10.29.08:448][
0]LogWindows:Error: Crash in runnable
thread
I don’t understand what is the problem because my Init function of the ReceiverWorker is really basic:
bool UReceiverWorker::Init()
{
if (GEngine)
{
if (GEngine->GetWorld())
{
if (GEngine->GetWorld()->GetGameInstance())
{
if (Cast<UMCOGameInstance>(GEngine->GetWorld()->GetGameInstance()))
Cast<UMCOGameInstance>(GEngine->GetWorld()->GetGameInstance())->InitSession();
else
GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Red, FString::Printf(TEXT("problem MCOInstance")));
}
else
GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Red, FString::Printf(TEXT("problem Instance")));
}
else
GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Red, FString::Printf(TEXT("problem World")));
}
else
GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Red, FString::Printf(TEXT("problem Gengine")));
/*if(GetOuter())
GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Red, FString::Printf(TEXT("GetOuter OK")));
if(GetOuter()->GetWorld())
GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Red, FString::Printf(TEXT("GetWorld OK")));*/
_isRunning = true;
return true;
}
Thank you to help me if someone get an idea to solve this critical issue…
PS: My receiverworker is derived from UObject and FRunnable to be able to use Tick call.
class TEST_API UReceiverWorker :
public UObject, public FRunnable