Assertion failure adding image to vertical frame via prioperty menu

• Jul 10, 2020 - 18:34
Reported version
3.4
Priority
P1 - High
Type
Functional
Frequency
Once
Severity
S2 - Critical
Reproducibility
Always
Status
closed
Regression
Yes
Workaround
Yes
Project

Development builds crash with an assertion failure if you right-click a vertical frame and choose Add / Image. that's because the handler tries to cast the value to an HBox:

https://github.com/musescore/MuseScore/commit/dde36087140d31d7ec428499a…

Previously we got away with this because a static_cast was used, now it's toHBox. It was wrong before but didn't raise an assertion failure. As far as I can see, there's no reason for any of that, just leave it as "e".

Workaround is not use a development build :-)

As far as I can tell there is no harmful effect from this other than development builds. Unlike other assertion failures, this doesn't indicate some unknown condition we aren't going to hands correctly. The cast doesn't do anything.


Comments

I don't have a 3.4 development build handy to test with, but it seems the change was implemented back then, so probably it would have affected those as well.

Fix version
3.5.1