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

Crash When creating Linked Part in Master #23338

Closed
Gai-Luron opened this issue Jun 23, 2024 · 1 comment · Fixed by #23352
Closed

Crash When creating Linked Part in Master #23338

Gai-Luron opened this issue Jun 23, 2024 · 1 comment · Fixed by #23352
Assignees
Labels
crash Issues involving a crash of MuseScore P0 Priority: Critical regression MS4 Regression on a prior release

Comments

@Gai-Luron
Copy link

Issue type

Crash or freeze

Bug description

Crash When creating Linked Part in Master : OS: Windows 10 Version 2009 or later, Arch.: x86_64, MuseScore Studio version (64-bit): 4.4.0-241750505, revision: github-musescore-musescore-6ddd3a6

Steps to reproduce

1 - Create a score with different part.
2 - Create a linked part
3 -Crash

Screenshots/Screen recordings

2024-06-23.Crash.MuseScore.mp4

MuseScore Version

MuseScore Studio version (64-bit): 4.4.0-241750505, revision: github-musescore-musescore-6ddd3a6

Regression

Yes, this used to work in a previous version of MuseScore 4.x

Operating system

OS: Windows 10 Version 2009 or later, Arch.: x86_64,

Additional context

WOrk in previous version : OS: Windows 10 Version 2009 or later, Arch.: x86_64, MuseScore Studio version (64-bit): 4.4.0-241730506, revision: github-musescore-musescore-1c28ffe

@muse-bot muse-bot added crash Issues involving a crash of MuseScore regression MS4 Regression on a prior release labels Jun 23, 2024
@cbjeukendrup
Copy link
Contributor

This turns out to have been caused by #23320. This is what I wrote to @Eism about it this morning:
The problem is in DockPanelView::DockPanelMenuModel. I think that what happens is the following:

  1. m_customMenuModel wants to update its items
  2. it deletes its old ones and sets new ones
  3. That triggers DockPanelView::DockPanelMenuModel to set new items.
  4. DockPanelView::DockPanelMenuModel deletes the old items that it contains. Among these old items are the old items from m_customMenuModel. These had already been deleted, so now we’re trying to delete them again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crash Issues involving a crash of MuseScore P0 Priority: Critical regression MS4 Regression on a prior release
Projects
Development

Successfully merging a pull request may close this issue.

7 participants