Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Fixes

- Misleading screenshot capture logs on unsupported platforms ([#1180](https://github.com/getsentry/sentry-unreal/pull/1180))
- Deadlock when invoking `onConfigureScope` callback during garbage collection on Android ([#1181](https://github.com/getsentry/sentry-unreal/pull/1181))

## 1.4.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,15 @@

JNI_METHOD void Java_io_sentry_unreal_SentryBridgeJava_onConfigureScope(JNIEnv* env, jclass clazz, jlong callbackId, jobject scope)
{
FGCScopeGuard GCScopeGuard;

if (FUObjectThreadContext::Get().IsRoutingPostLoad)
{
UE_LOG(LogSentrySdk, Log, TEXT("Executing `onConfigureScope` handler is not allowed when post-loading."));
return;
}

FSentryScopeDelegate* callback = AndroidSentryScopeCallback::GetDelegateById(callbackId);

if (callback != nullptr)
{
callback->Execute(MakeShareable(new FAndroidSentryScope(scope)));
if (SentryCallbackUtils::IsCallbackSafeToRun())
{
callback->Execute(MakeShareable(new FAndroidSentryScope(scope)));
}

AndroidSentryScopeCallback::RemoveDelegate(callbackId);
}
}
Expand Down