MichaelJakubec / gtkjfilechooser

Automatically exported from code.google.com/p/gtkjfilechooser
1 stars 0 forks source link

File chooser causes 100% cpu load #58

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Description:
Whenever the file chooser dialog is active, it entirely occupies one cpu core. 
It should instead be 
mostly idle.

Versions:
gtkjfilechooser 1.4.5 (also tested svn, revision 297)
OpenJDK 6b18~pre2-1
Debian Unstable

Additional Information:
The culprit seems to be a thread in FindAction which is responsible for closing 
the find as you type 
box. It sits in a tight loop checking system time. I have attached a small 
patch which mostly fixes 
the problem by calling sleep with appropriate timeout (properly computed, not 
just with fixed 
intervals).

Original issue reported on code.google.com by s.tannen...@psi.de on 16 Mar 2010 at 5:00

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for your patch! The fix is now in the trunk:
http://code.google.com/p/gtkjfilechooser/source/browse/trunk/GtkJFileChooser/src
/eu/kostia/gtkjfilechooser/ui/FindAction.java

Original comment by c.ce...@gmail.com on 16 Mar 2010 at 8:53

GoogleCodeExporter commented 9 years ago
The patch is now in the last release (1.4.6) downloadable on the site.

Original comment by c.ce...@gmail.com on 28 Mar 2010 at 4:50