Skip to content

Scripting fixes#2082

Merged
RTUnreal merged 8 commits intomasterfrom
scripting_fixes
Feb 21, 2026
Merged

Scripting fixes#2082
RTUnreal merged 8 commits intomasterfrom
scripting_fixes

Conversation

@RTUnreal
Copy link
Collaborator

This fixes a crash in assignment-client and changes the register API to force having a ScopeGuard.

Fixes: #2067

Copy link
Collaborator

@ada-tv ada-tv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks ok, assignment client isn't crashing with entity server scripts or the example agent script

the assignment client log is full of QObject::moveToThread: Current thread is not the object's thread and something is starting and killing an agent client repeatedly, but i don't think it's related, it might be the agent client just trying to run an empty script and restarting itself because it thinks it crashed after the empty script has finished

@RTUnreal RTUnreal added the QA approved This pull request has been successfully tested label Feb 18, 2026
Copy link
Member

@ksuprynowicz ksuprynowicz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!
There's one place where I think script variable may be destroyed after the script guard.
Other that this all looks good :)

@ksuprynowicz ksuprynowicz added the needs CR This pull request needs to be code reviewed label Feb 18, 2026
@ksuprynowicz ksuprynowicz added CR approved This pull request has been successfully code reviewed and removed needs CR This pull request needs to be code reviewed labels Feb 21, 2026
@RTUnreal RTUnreal merged commit 70fc236 into master Feb 21, 2026
6 checks passed
@RTUnreal RTUnreal deleted the scripting_fixes branch February 21, 2026 18:21
@RTUnreal RTUnreal restored the scripting_fixes branch February 22, 2026 12:48
@RTUnreal RTUnreal deleted the scripting_fixes branch February 25, 2026 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CR approved This pull request has been successfully code reviewed QA approved This pull request has been successfully tested

Projects

None yet

Development

Successfully merging this pull request may close these issues.

V8 Scope crash in Agent assignment client

3 participants