Skip to content

Conversation

@cbentejac
Copy link
Contributor

@cbentejac cbentejac commented Oct 9, 2025

Description

Nodes with dynamic sizes may end up in a state where they have no chunk (e.g. because there are no input images for the previous nodes). In this case, the first chunk is the list cannot be accessed as it does not exist yet, raising an IndexError.

We now check that there is at least an element in the chunk list before accessing it. If there is none, the default execution mode is returned instead.

@cbentejac cbentejac added this to the Meshroom 2026.1.0 milestone Oct 9, 2025
@cbentejac cbentejac self-assigned this Oct 9, 2025
@codecov
Copy link

codecov bot commented Oct 9, 2025

Codecov Report

❌ Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 80.76%. Comparing base (7cac2bf) to head (69a7043).
⚠️ Report is 24 commits behind head on develop.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
meshroom/core/node.py 0.00% 3 Missing ⚠️

❌ Your patch status has failed because the patch coverage (0.00%) is below the target coverage (70.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2912      +/-   ##
===========================================
+ Coverage    80.61%   80.76%   +0.14%     
===========================================
  Files           55       56       +1     
  Lines         7692     7751      +59     
===========================================
+ Hits          6201     6260      +59     
  Misses        1491     1491              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Nodes with dynamic sizes may end up in a state where they have no chunk
(e.g. because there are no input images for the previous nodes). In this
case, the first chunk is the list cannot be accessed as it does not
exist yet, raising an `IndexError`.

We now check that there is at least an element in the chunk list before
accessing it. If there is none, the default execution mode is returned
instead.
@cbentejac cbentejac force-pushed the fix/noComputedChunks branch from 19db216 to 69a7043 Compare October 17, 2025 08:56
@cbentejac cbentejac changed the title [core] node: Try/catch IndexErrors for nodes with dynamic sizes [core] node: Check chunk size for nodes with dynamic sizes Oct 17, 2025
@servantftransperfect servantftransperfect merged commit 480e498 into develop Oct 17, 2025
3 of 4 checks passed
@servantftransperfect servantftransperfect deleted the fix/noComputedChunks branch October 17, 2025 09:10
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.

3 participants