Crash when clicking non-visible tablature rest

• Aug 18, 2014 - 00:35
Type
Functional
Severity
S2 - Critical
Status
closed
Project

1. Create tablature score without rests.
2. Hold Shift and Command.
3. Click where a rest would be.

Result: Crash.

Note: See attached log.

Using MuseScore 2.0 Nightly Build (24700da) - Mac 10.7.5.


Comments

I can't reproduce on Linux (using Ctrl in place of Command). Could be Mac only, but I wouldn't mind seeing more detailed steps. Could you post a specific score and show via screenshot exactly where to click?

Title Crash when clicking non-visible tablature rest [Mac] Crash when clicking non-visible tablature rest

Yes, holding Command and Shift, then click.

As far as I know, there isn't a reason to do this.

I'll change the title to include Mac, unless it is found to be otherwise.

Title [Mac] Crash when clicking non-visible tablature rest Crash when clicking non-visible tablature rest

Title change: not only on Mac. As described in previous comment #4, I can reproduce under Windows7.

Well, I still can't reproduce, but can guess that maybe we are trying to draw the rest, but it has a bbox() of zero (the Object Debugger says so, anyhow). So perhaps adding a test for zero bbox() and returning if so would stop the crash. I don't know, doesn't really make sense to me that adding the test for mmrest here would cause a crash, seems it shouldn't change anything because this is test is always always going to be false. Unless maybe it's not initialized correctly.