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

fixed stretched bend crash #24785

Merged
merged 1 commit into from
Sep 18, 2024
Merged

Conversation

alexpavlov96
Copy link
Contributor

@alexpavlov96 alexpavlov96 commented Sep 17, 2024

(with --gp-experimental flag)

if untilNextSegment is false, it's wrong to adjust coordinates by X. And it can lead to crash cause the segments of another bend may not be filled (ASSERT added)
It's being adjusted after bend is already layouted for the first time with chord, when fillStretchedSegments is called with untilNextSegment = true.

crash.gp.zip

@mikekirin
Copy link
Contributor

Any idea why there is a wrong data?

@alexpavlov96
Copy link
Contributor Author

Any idea why there is a wrong data?

it's just because it's not filled yet when it's being addressed.
It's weird idea of mine, to call the layout twice: initial time to layout bend with fixed length, then second time when all system is layouted - to "stretch" it. Soon it all will go to past anyway

@alexpavlov96 alexpavlov96 merged commit 1f711ac into musescore:master Sep 18, 2024
11 checks passed
@alexpavlov96 alexpavlov96 deleted the gp_bend_crash branch September 18, 2024 12:08
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.

3 participants