Skip to content

Commit 78b2f12

Browse files
authored
Update Unreal SDK sample project (#996)
* Add stack overflow crash utility * Update sample app UI * Change base engine version for sample app
1 parent 8896f1f commit 78b2f12

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

sample/Content/UI/W_SentryDemo.uasset

2.55 KB
Binary file not shown.

sample/SentryPlayground.uproject

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"FileVersion": 3,
3-
"EngineAssociation": "5.5",
3+
"EngineAssociation": "4.27",
44
"Category": "",
55
"Description": "",
66
"Modules": [

sample/Source/SentryPlayground/SentryPlaygroundUtils.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ void USentryPlaygroundUtils::Terminate(ESentryAppTerminationType Type)
3838
*addrPtr = 10;
3939
}
4040
break;
41+
case ESentryAppTerminationType::StackOverflow:
42+
char buffer[4096];
43+
FMemory::Memset((void*)buffer, 0xAA, sizeof(buffer));
44+
UE_LOG(LogTemp, VeryVerbose, TEXT("Stack addr: %p"), &buffer);
45+
Terminate(Type);
46+
break;
4147
case ESentryAppTerminationType::FastFail:
4248
{
4349
#if PLATFORM_MICROSOFT

sample/Source/SentryPlayground/SentryPlaygroundUtils.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ enum class ESentryAppTerminationType : uint8
1313
ArrayOutOfBounds,
1414
BadFunctionPtr,
1515
InvalidMemoryAccess,
16+
StackOverflow,
1617
FastFail,
1718
Assert,
1819
Ensure

0 commit comments

Comments
 (0)