World view calls set_input_as_handled on a null viewport after camp or stairs start a battle #21
Labels
No labels
playtest
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ai-collab/animrpg202610#21
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Environment
345a28b(main), playtest branchfeat/playtest-bot@e03b0e8(PR #20), VERSION0.4.2--fixed-fps 60,Engine.time_scale4, Dummy audioSeen
world_view.gd:145: seed 1 (5x, first at frame 2582), seed 2 (9x, first at frame 668), seed 3 (6x, first at frame 593), seed 4 (10x, first at frame 607)world_view.gd:232: seed 1 (2x, first at frame 10931), seed 2 (2x, first at frame 10461), seed 3 (2x, first at frame 10013), seed 4 (2x, first at frame 10964)Repro
_on_interact.Automated:
bash tools/playtest/run.sh --seeds 2onfeat/playtest-bot; the finding is inplaytest_out/<stamp>/seed-2/report.mdExpected
Camp and interact switch to the battle scene with no script error.
Actual
GameManager.camp()/GameManager.interact()switch the scene to battle while the input event is still being handled. The world view has then left the tree,get_viewport()returns null, andget_viewport().set_input_as_handled()raises an error. The battle still starts. I don't know if the unhandled event reaches anything else.Snapshot on the frame after the camp error (seed 2;
sceneis empty because the change is in flight):Snapshot after the stairs error:
Screenshots
Camp and the dungeon stairs mark the input handled before
GameManagerstarts the battle, so the viewport call does not run after the world view is gone.Playtest seeds 1, 2, and 3 (
playtest_out/20261108-113911) record no script error on those transitions.#54