High CPU usage by wxListBox in wxpython 2.6

Bug #875512 reported by anilg
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
wxwidgets2.6 (Ubuntu)
New
Undecided
Unassigned

Bug Description

Adding a wxListBox to any wx2.6 python app sends it to 100% CPU usage. This renders most wxwidget apps very CPU intensive.

Attached are example ListBox and ListCtrl apps. You can run these with pywx 2.6 (update-alternatives --list wx2.6.pth to ensure this is selected, in case you have both 2.6 and 2.8 installed)

lb.py - CPU goes to 90% .
lc.py - CPU remains idle

Revision history for this message
anilg (anil-verve) wrote :
Revision history for this message
anilg (anil-verve) wrote :
Revision history for this message
anilg (anil-verve) wrote :

This bug occurs in Unity, Unity 2D and classic gnome.

This is a Oneric netbook (upgraded from natty).
Package libwxgtk2.6-0 v2.6.3.2.2-5ubuntu3

If there's additional details you'd like, please let me know.

Revision history for this message
anilg (anil-verve) wrote :

Ubuntu 11.04 with 2.6.3.2.2-5ubuntu2 does not show this bevahior. Possibly, the change b/w ubuntu2 and ubuntu3 caused the issue.

Revision history for this message
anilg (anil-verve) wrote :

I just tested, and can confirm that rolling back to the natty versions of the packages resolved the issue.

Setting up libwxbase2.6-0 (2.6.3.2.2-5ubuntu2) ...
Setting up libwxgtk2.6-0 (2.6.3.2.2-5ubuntu2) ...
Setting up python-wxgtk2.6 (2.6.3.2.2-5ubuntu2) ...

This is a regression in the 2.6 wxwidget package.

Changed in wxwidgets2.6 (Ubuntu):
status: New → Incomplete
status: Incomplete → New
Revision history for this message
anilg (anil-verve) wrote :

Arr.. my bad. The issue still exists (after i installed the older packages, update-alternatives picked up wx2.8. setting it back to 2.6 - from natty- and the issue still exists.)

So I'm not sure if it's something with Unity, or with wx2.6.

I did see https://bugs.launchpad.net/ubuntu/+source/wxwidgets2.8/+bug/722375 .. any possible relation?

Revision history for this message
Trinh Nguyen (dangtrinhnt) wrote :

This issue appears in my Xubuntu 12.04 with wxPython 2.8.12.1. But, the CPU usage only raises after the my application has run for a long time (1 day or more)

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.