High CPU Usage When Showing the Beginning of a Score (0.9.6 regression)

• Mar 31, 2010 - 17:25
Type
Functional
Severity
S4 - Minor
Status
closed
Project

Using prerelease 0.9.6 built from source, revision 2925M on Ubuntu 9.10

Scrolling to the left of a score and letting it sit there will result in maxed out CPU usage. Scrolling to the bottom and letting it sit there will let it idle. Dragging it back over from the "hot spot" will reduce the CPU usage back to zero.

See the following video for a detailed presentation. The CPU monitor is at the bottom right of my screen (poorly pointed out by the "line")

http://dl.dropbox.com/u/373797/cpusmashing.ogv

Here's the accompanied terminal output:

$ mscore

** (:3656): CRITICAL **: atk_object_set_name: assertion `name != NULL' failed
Alsa_driver: the interface doesn't support mmap-based access.
init ALSA audio driver failed
init ALSA driver failed
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
unknown symbol , symbols 216
unknown symbol , symbols 216
preferences.checkUpdateStartup: 72
lastupdate: 31.03.2010 07:24:20.810


Comments

On my computer CPU increases to 12-17 percent when panning past the left edge of the first page. At idle the CPU is about 1-4 percent. (Tested using r. 2924 nightly, CPU does not increase with 0.9.5 stable)

I can confirm the bug for r2926 on Ubuntu 9.10. It happens only when navigator is open.

STR:

  1. Ensure that navigator is open, load a score
  2. Drag the frame in navigator fully to the left
  3. Click into the score and drag it to the right (just a little bit)
  4. Press F12 to close the navigator

Actual results: 100% CPU after step 3, drops back to almost zero after step 4.

Status (old) active fixed

Presumably fixed by r2928 (this is the only checkin since r2616 with modifications to navigator.cpp).