Unity locks up while firefox bookmarks menu is opening

Bug #1091345 reported by B Bobo
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Unity
Invalid
High
Unassigned
5.0
New
Undecided
Unassigned
unity (Ubuntu)
Invalid
High
Unassigned

Bug Description

A common usecase for firefox in Unity is holding down the mouse button and dragging across the firefox top menu items - File, Edit, View, History, Bookmarks, Tools, Help. If you accidentally touch Bookmarks while dragging across the other menu items, the whole Unity interface effectively locks itself up until the bookmarks menu finally appears. With just 2000 bookmarks at top-level, clicking the Bookmarks menu button takes 5 seconds before the menu appears on recent, very fast computers with 8-core CPUs. This is a serious usability issue.

As the number of top-level bookmarks (bookmarks that are not stored in sub-folders) grows, the delay after clicking the Bookmarks menu button until the bookmarks popup menu appears gets longer. There is no disk I/O associated with the delay. It appears to be caused by purely CPU-bound activity.

It seems the delay is perhaps O(n^2) or worse in the number of bookmark items contained at the top-level menu.
This implies a poor choice or incorrect implementation of algorithms in sorting and / or displaying the bookmarks. With an efficient algorithm (ref. any good computer science textbook) correctly implemented, it should be possible to handle a vast number of top-level bookmarks without noticeable delay, perhaps 1,000,000s, until disk I/O starts to become an issue for first-run caching time.

Revision history for this message
B Bobo (yout-bobo123) wrote :

This is happening in Ubuntu Precise 12.04 using firefox 17.0.1, with no addons, in safe mode.

tags: added: precise
B Bobo (yout-bobo123)
summary: - Unity locks up while opening firefox bookmarks menu
+ firefox locks up Unity while bookmarks menu opens
Revision history for this message
Chris Coulson (chrisccoulson) wrote : Re: firefox locks up Unity while bookmarks menu opens

If Unity locks up when displaying a menu that isn't even rendered by Firefox, then that's surely not a Firefox bug

affects: firefox (Ubuntu) → unity (Ubuntu)
B Bobo (yout-bobo123)
summary: - firefox locks up Unity while bookmarks menu opens
+ Unity locks up while firefox bookmarks menu is opening
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Sounds directly related to bug 987060.

Changed in unity:
milestone: none → 7.0.0
importance: Undecided → High
Changed in unity (Ubuntu):
importance: Undecided → High
Revision history for this message
B Bobo (yout-bobo123) wrote :

I don't notice a memory leak, there is only excessive cpu activity, so I think this may be a different issue.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in unity (Ubuntu):
status: New → Confirmed
Stephen M. Webb (bregma)
Changed in unity:
milestone: 7.0.0 → 7.0.1
Stephen M. Webb (bregma)
Changed in unity:
status: New → Confirmed
Changed in unity:
milestone: 7.0.1 → 7.3.1
Stephen M. Webb (bregma)
Changed in unity:
milestone: 7.3.1 → 7.3.2
Stephen M. Webb (bregma)
Changed in unity:
milestone: 7.3.2 → 7.3.3
Revision history for this message
Christopher Townsend (townsend) wrote :

Removing the 7.3.3 milestone as this no longer an issue. It *could* still perhaps be an issue on 12.04, so I'm adding a task for that, so someone can investigate further sometime.

Changed in unity:
milestone: 7.3.3 → none
status: Confirmed → Invalid
Changed in unity (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.