Skip to content
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 most of the crash causes on script engine reload/shutdown #574

Merged
merged 2 commits into from
Aug 29, 2023

Conversation

ksuprynowicz
Copy link
Member

Script reload works pretty well now.
I also temporarily disabled forced termination of script threads because it was completely unsafe and would always cause crashes. We need to do it in a better way in later PR.

@ksuprynowicz ksuprynowicz added bug Something isn't working needs CR This pull request needs to be code reviewed needs QA This pull request needs to be tested labels Aug 18, 2023
Copy link
Contributor

@AnotherFoxGuy AnotherFoxGuy left a comment

Choose a reason for hiding this comment

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

Seems to work fine on Windows, reloading all scripts and reloading all content now no longer crashes the interface

@SilverfishVR
Copy link
Contributor

SilverfishVR commented Aug 19, 2023

For me, events are repeated 5 times, so for each mouseReleaseOnEntity or hoverEnterEntity in a entity client script it is triggered 6 times:
Screenshot 2023-08-19 030441
scrip used for testing:
https://www.dropbox.com/scl/fi/fogdjy9nmyqgwkzdkrn0g/Test_minimal_entityClientScript2.js?rlkey=q20c0eylgo9ahvqht1v71c7zy&dl=1
I do not have this issue on V8_RC3 and earlier.

@ksuprynowicz
Copy link
Member Author

@SilverfishVR I just tested the newest version and it looks like issue with entity scripts is fixed. If you have some time please let me know if it works on newest build for you too.

@SilverfishVR
Copy link
Contributor

👍 It does indeed seem to work now 👍

@ksuprynowicz ksuprynowicz merged commit 6dc9c1a into master Aug 29, 2023
2 of 4 checks passed
@JulianGro JulianGro deleted the fix/script_reload2 branch July 19, 2024 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs CR This pull request needs to be code reviewed needs QA This pull request needs to be tested
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants