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

[ui] Check for the existence of the poses key in SfM JSON files before accessing it #2190

Merged
merged 1 commit into from
Sep 21, 2023

Conversation

cbentejac
Copy link
Contributor

Description

When parsing the input SfM JSON file of a project, there might be some instances where the poses key, unlike the views and intrinsics keys, does not exist. If that is the case, an unhandled exception is raised while connections are being made, which then causes issues for the lifetime of the Meshroom instance.

This PR checks that the poses key exists before trying to access it, which prevents raising unhandled exceptions while the active project is being set up.

When parsing the input JSON file, there might be some instances where
the `poses` key, unlike the `views` and `intrinsics` keys, does not exist.
If that is the case, an unhandled exception is raised while connections
are being made, which then causes issues for the lifetime of the Meshroom
instance.

This commit checks that the key exists before trying to access it, which
prevents raising unhandled exceptions while the active project is being
set up.
@fabiencastan fabiencastan merged commit 392f144 into develop Sep 21, 2023
3 of 4 checks passed
@fabiencastan fabiencastan deleted the fix/sfmParsing branch September 21, 2023 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants