fix: SG-42890: Fix BADACCESS X error when running RVIO commands on Rocky Linux 9#1249
Open
eloisebrosseau wants to merge 2 commits intoAcademySoftwareFoundation:mainfrom
Open
fix: SG-42890: Fix BADACCESS X error when running RVIO commands on Rocky Linux 9#1249eloisebrosseau wants to merge 2 commits intoAcademySoftwareFoundation:mainfrom
eloisebrosseau wants to merge 2 commits intoAcademySoftwareFoundation:mainfrom
Conversation
5a3dc82 to
cd783d0
Compare
bernie-laberge
approved these changes
Apr 30, 2026
Contributor
bernie-laberge
left a comment
There was a problem hiding this comment.
Nice fix and cleanup !
Thank you @eloisebrosseau !
cedrik-fuoco-adsk
approved these changes
May 1, 2026
rogernelson
approved these changes
May 4, 2026
Contributor
rogernelson
left a comment
There was a problem hiding this comment.
Nice and clean, good job!
Signed-off-by: Éloïse Brosseau <eloise.brosseau@autodesk.com>
Signed-off-by: Éloïse Brosseau <eloise.brosseau@autodesk.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SG-42890: Fix BADACCESS X error when running RVIO commands on Rocky Linux 9
Summarize your change.
Describe the reason for the change.
#310 added
MovieRV::uninitin the main function of RVIO to fix a GL error on exit on Rocky Linux 9. However, in a more recent version of the Rocky Linux 9, we are now getting a BADACCESS X error when running RVIO commands from the command line. An alert panel is also being displayed when submitting an image sequence through Screening Room after each step. This was caused by the main thread trying to access the OpenGL rendering context used by the writer thread when callingMovieRV::uninitat the end of the main function.It seems that the initial GL error was actually caused by the FBOVideoDevice raw pointer created as a dummy video device at the beginning of the main RVIO function by the main thread to avoid a segmentation fault. This raw pointer was never deleted, and this was causing a GL error when the
GLSyncObjectARBSyncdestructor was called at the end of the program. Replacing the raw pointer with a unique_ptr fixed the leaking pointer that was the root cause of the GL error.MovieRV::uninitwas not technically needed to fix the original GL error, but it's a good practice to keep it to make sure we uninit any FBOs that were allocated. The only difference is that it should have been called by the writer thread instead of the main thread since it is the one that actually created and used the FBOVideoDevice and the OpenGL rendering context during the execution of RVIO.Describe what you have tested and on which operating system.
Submitting an image sequence through Screening Room was tested on Rocky Linux 9.6, Windows 11, and macOS 26.3.
The following commands that were called during the submit process of Screening Room were also manually called from the command line to make sure no error remains:
rvio movie.####.dpx -o /tmp/thumb.#.jpgrvio movie.####.dpx -o /tmp/out.movrvio movie.####.dpx -resize 240 132 -outres 1200 132 -o /tmp/filmstrip.jpg