Skip to content

fix: SG-43602: Fix crash when adding a session file alongside media files#1294

Open
markreidvfx wants to merge 1 commit into
AcademySoftwareFoundation:mainfrom
markreidvfx:nas_contrib_session_media_crash_v1
Open

fix: SG-43602: Fix crash when adding a session file alongside media files#1294
markreidvfx wants to merge 1 commit into
AcademySoftwareFoundation:mainfrom
markreidvfx:nas_contrib_session_media_crash_v1

Conversation

@markreidvfx

@markreidvfx markreidvfx commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Linked issues

N/A

Summarize your change.

Fix a crash when loading an .rv session file alongside media files. A single session file mixed with media was not triggering merge mode, so the session import would overwrite the graph while media files were still being loaded, causing memory corruption.

Describe what you have tested and on which operating system.

Tested on Rocky Linux 9.

To reproduce on unpatched OpenRV:

rv /path/to/some_image.exr session.rv

The crash is more likely when the session file is the last argument or in the middle of multiple files.

If possible, provide screenshots.

N/A

When addSources received a single .rv session file mixed with one or
more media files, the merge flag was not set because the check required
rvFileCount > 1. Without merge mode the session file and media files
are loaded into the same graph concurrently, leading to memory
corruption and crashes. Change the condition to trigger merge when any
.rv file is present alongside other inputs.

Signed-off-by: Mark Reid <markreid@netflixanimation.com>
@bernie-laberge bernie-laberge changed the title fix: Fix crash when adding a session file alongside media files fix: SG-43602: Fix crash when adding a session file alongside media files Jun 8, 2026
@bernie-laberge bernie-laberge added PR: Acknowledged New PR has been acknowledge by the TSC PR: Triaging PR is been triaged, this will set the priority for the TSC to review and test the PR community Contribution from the Open RV Community PR: Planned_P1 PR will be review and set soon. Expect 1 to 4 weeks delay. and removed PR: Acknowledged New PR has been acknowledge by the TSC PR: Triaging PR is been triaged, this will set the priority for the TSC to review and test the PR labels Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community Contribution from the Open RV Community PR: Planned_P1 PR will be review and set soon. Expect 1 to 4 weeks delay.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants