-
-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix calling beforeSend
handler during post-loading
#589
Conversation
beforeSend
handler during post-loading
USentryEvent* ProcessedEvent = EventToProcess; | ||
if(!FUObjectThreadContext::Get().IsRoutingPostLoad) | ||
{ | ||
// Executing UFUNCTION is allowed only when not post-loading |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you provide some context what this means?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Post-loading is a part of an actor lifecycle that goes right after finishing loading it from disk (i.e. when a game map opened in editor). Typically at this point some related actor's versioning or fixup behavior should be called. It's unsafe to use any blueprint-implemented functions (like HandleBeforeSend
in our case) during this stage so we've added an extra check here to avoid triggering a corresponding assertion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the explanation!
# Conflicts: # CHANGELOG.md # plugin-dev/Source/Sentry/Private/SentrySubsystem.cpp
Related to #505 (comment)