musescore / MuseScore

MuseScore is an open source and free music notation software. For support, contribution, bug reports, visit MuseScore.org. Fork and make pull requests!
https://musescore.org
Other
12.14k stars 2.63k forks source link

[MU4 Issue] Hidden elements cannot be selected until zoom level change with navigator open #14970

Open SamYeh opened 1 year ago

SamYeh commented 1 year ago

Describe the bug In some cases, hidden elements cannot be selected by mouse clicks.

To Reproduce Example score (download link) image

  1. Try selecting one of the hidden dynamics with a mouse click.

    • If it can be selected, click on another hidden element and observe that it cannot be selected.
    • If it cannot be selected, change the zoom level and try again. Observe that it can now be selected.
  2. Go to step 1.

  3. Do the same thing with non-hidden elements and observe that they don't have the problem.

Expected behavior Hidden elements can be selected just like non-hidden ones.

Platform information

Tantacrul commented 1 year ago

Hi there. Thanks for logging this. Unfortunately, I'm unable to reproduce any problem with selection on this score. Could you record a video to help us understand?

Thanks again!

SamYeh commented 1 year ago

Interesting... After downloading RC2 (MuseScoreNightly-223400502-4.0_rc-40c5b42-x86_64), I tested the bug against it and couldn't repro. I then test it against RC1 (MuseScoreNightly-223400502-4.0_rc-40c5b42-x86_64), with which I had experienced the bug, and could no longer repro, either.

Sorry about the confusion. Closing.

Jojo-Schmitz commented 1 year ago

RC2 (MuseScoreNightly-223400502-4.0_rc-40c5b42-x86_64), ... RC1 (MuseScoreNightly-223400502-4.0_rc-40c5b42-x86_64),

Really the same thing and neither is an RC

SamYeh commented 1 year ago

Reopening as I'm experiencing the bug again with MuseScoreNightly-223430306-master-ff7e63c-x86_64. Please see the video below.

Since mouse clicks are not usually visible in screen capture, I made the screen flash as I click.

The video shows:

  1. I clicked on the hidden f three times but it wouldn't get selected.
  2. I changed the zoom (with Ctrl + mouse wheel) and then clicked on the hidden f again. It was selected.
  3. I clicked on the hidden p three times but it wouldn't get selected.
  4. I changed the zoom again, and then clicked, now the hidden p was selected.

The remainder of the video shows that panning has the same effect as zooming in making hidden elements selectable.

https://user-images.githubusercontent.com/10248807/206795224-f2e06785-3b1d-4a80-b271-36f6425cd857.mp4

I can also repro with MuseScoreNightly-223370502-4.0_rc-d050fb0-x86_64 now, although I couldn't repro with the same build 3 days ago.

SamYeh commented 1 year ago

@Tantacrul Could you please reopen this issue? It seems that I don't have the permission to do so. Thanks!

Tantacrul commented 1 year ago

Can anyone else reproduce this?

MarcSabatella commented 1 year ago

I work with invisible elements a fair amount and have never encountered this, but I just tried deliberately for a few minutes and still have never encountered this. I see the in video that the Navigator is enabled which I never normally would have, but I tried it that way, still no problems.

SamYeh commented 1 year ago

@MarcSabatella You are spot on! I closed the navigator and the problem went away. I open it again and the problem still didn't show up. It seemed like the problem surfaces only when MU4 is launched with the navigator open.

MarcSabatella commented 1 year ago

Now confirmed. What a weird bug! To reproduce, try this exactly:

1) open mu4 2) open any random score 3) open navigator 4) close mu4 5) reopen mu4 6) open any score containing invisible elements, or create a score and add invisible elements 7) verify navigator is open (since it was open when you closed it at stop 4) 8) try to click an invisible element

Failure. But then zoom a little and try again, and selection works.

MiguelVicenteGarcia commented 8 months ago

Never encountered this problem until last version (4.2) when it started to happen exactly as described. Changing zoom does somehow enable the selection for one hidden element. To select another one I have to change zoom again. In Win 10.