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 #277745: reset pointers to Score and ScoreView in Timeline when they are destroyed #4092

Merged
merged 1 commit into from Nov 3, 2018

Conversation

dmitrio95
Copy link
Contributor

This pull request fixes this issue. The problem lays in not resetting pointer to ScoreView inside Timeline when the view is destroyed. When showing excerpts tab after closing other score the view inside it emits sizeChanged signal which triggers an Timeline::updateView slot which tries to operate on _cv pointer which already became invalid. Resetting a pointer on view destruction resolves the problem. Perhaps we could consider also disconnecting Timeline from the old view's signals when switching score and not updating Timeline when it is invisible but these are separate issues which are not addressed in this PR.

@anatoly-os anatoly-os merged commit 0b66511 into musescore:master Nov 3, 2018
@dmitrio95 dmitrio95 deleted the 277745-timeline-crash branch April 30, 2019 09:11
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.

None yet

2 participants