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

Prevent Crash in Object Detector and Tracker effects (due to child clip id) #5205

Merged
merged 9 commits into from
Apr 16, 2023

Conversation

jonoomph
Copy link
Member

@jonoomph jonoomph commented Apr 13, 2023

There have been many bad recent regressions which have broken our Object Detector and Tracker effects - mostly related to optimizations before we save project JSON - accidentally deleting some bits that are important, such as our "tracked" objects, among other Property window errors (missing or invalid child clip ids or parent ids), etc...

This PR fixes all of this, and protects the code much better against missing or invalid IDs.

…data tuple for the current selected property label: Setnry reported this error: OPENSHOT-43.
…data tuple for the current selected property label: Sentry reported this error: OPENSHOT-43. This also fixes a regression related to updating ObjectDetector and Tracker objects.
…e of ENABLE_PLAYBACK_CACHING. For example, sometimes we have already disabled this setting before changing the timeline data - and we would like it to stay disabled until further notice. This method was accidentally re-enabling the caching when we were not expecting it to.
@jonoomph
Copy link
Member Author

…hods - to ignore when an object_id is not found, or a clip has no 'objects' dict
…/ effect, and allow setting of the initial value to work correctly.
…or pickers, and other property dialog editors - to correctly update the JSON without destroying certain data or "objects"
…context menus in the Property dialog - for example, clips with no effects, or clips with no tracking data, etc... Also, making things more consistent with parent folders in context menus (None, Clips, Tracked Objects)
…simpler, and more efficient. This solves a bug on Windows also, where file paths were not matching correctly.
@jonoomph jonoomph merged commit 266092e into develop Apr 16, 2023
@jonoomph jonoomph deleted the sentry-invalid-property-data branch April 16, 2023 21:12
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.

1 participant