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

Fix segfault when using Viewer and browser UI #444

Merged
merged 2 commits into from
Jun 28, 2018

Conversation

karjonas
Copy link
Contributor

When the browser is connecting to Brayns it changes the viewport size in preRender(). Since the Viewer is unaware of this change then the Viewer will try to draw the resized buffer with an incorrect viewport size. If the buffer is shrunk then this can lead to a segfault. Now instead, the actual width and height of the buffer is stored when rendering and then used when the Viewer is drawing.

When the browser is connecting to Brayns it changes the viewport size in preRender(). Since the Viewer is unaware of this change then the Viewer will try to draw the resized buffer with an incorrect viewport size. If the buffer is shrunk then this can lead to a segfault. Now instead, the actual width and height of the buffer is stored when rendering and then used when the Viewer is drawing.
@karjonas karjonas requested review from tribal-tec and favreau June 27, 2018 14:57
@karjonas karjonas merged commit 76b0d6a into BlueBrain:master Jun 28, 2018
@karjonas karjonas deleted the viewer_segfault branch June 28, 2018 07:54
@tribal-tec tribal-tec added the bug label Jun 28, 2018
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.

3 participants