Skip to content

prevent crash on disconnect, when scene is removed and code on js side still executed#52

Closed
SamuelBrucksch wants to merge 7 commits intomasterfrom
prevent-disconnect-crash
Closed

prevent crash on disconnect, when scene is removed and code on js side still executed#52
SamuelBrucksch wants to merge 7 commits intomasterfrom
prevent-disconnect-crash

Conversation

@SamuelBrucksch
Copy link
Contributor

When CP was disconnected, the react code still executed and called native functions, but the scene was already destroyed, so it crashed with error operation failed, AutoPlayRootScene scene not found

@SamuelBrucksch SamuelBrucksch marked this pull request as ready for review February 18, 2026 15:16
@SamuelBrucksch SamuelBrucksch marked this pull request as draft February 19, 2026 10:03
@Iternio-Planning-AB Iternio-Planning-AB deleted a comment from github-actions bot Feb 19, 2026
@Iternio-Planning-AB Iternio-Planning-AB deleted a comment from github-actions bot Feb 19, 2026
@SamuelBrucksch SamuelBrucksch changed the title reorder disconnect sequence to prevent crash on disconnect prevent crash on disconnect, when scene is removed Feb 19, 2026
@SamuelBrucksch SamuelBrucksch changed the title prevent crash on disconnect, when scene is removed prevent crash on disconnect, when scene is removed and code on js side still executed Feb 19, 2026
@g4rb4g3
Copy link
Contributor

g4rb4g3 commented Feb 24, 2026

Closing in favor of #54

@g4rb4g3 g4rb4g3 closed this Feb 24, 2026
@g4rb4g3 g4rb4g3 deleted the prevent-disconnect-crash branch February 24, 2026 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants