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 affecting resizing of large streams with small tiles #275

Merged
merged 1 commit into from
Sep 26, 2018

Conversation

rdumusc
Copy link

@rdumusc rdumusc commented Sep 26, 2018

Concurrent getTileImage() calls for the same tileIndex can occur unexpectedly when resizing a stream window. Adding a per-tile mutex is the simplest way to fix the problem and should not penalize performance too much as those events are rare. Returning an empty ImagePtr does not work (the stream blocks).

doc/Changelog.md Outdated
@@ -3,6 +3,8 @@ Changelog {#changelog}

# Release 1.5 (git master)

* [273](https://github.com/BlueBrain/Tide/pull/273):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

275

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right, thanks!

Concurrent getTileImage() calls for the same tileIndex can occur
unexpectedly when resizing a stream window. Adding a per-tile mutex is
the simplest way to fix the problem and should not penalize performance
too much as those events are rare. Returning an empty ImagePtr does not
work (the stream blocks).
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.

2 participants