This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 62706 - 100% CPU usage after opening any Java file
Summary: 100% CPU usage after opening any Java file
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jan Lahoda
URL:
Keywords: PERFORMANCE, REGRESSION
Depends on:
Blocks:
 
Reported: 2005-08-19 22:34 UTC by Jesse Glick
Modified: 2007-11-05 13:42 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Some thread dumps; note "Image Animator 0" thread, only present after parsing a Java file (20.66 KB, text/plain)
2005-08-19 22:35 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2005-08-19 22:34:28 UTC
Regression in today's dev build, I think caused by the new animated icon for the
Java parse status.

Mustang b45 / Linux / Gnome. Start IDE and wait for CP scanning etc. to finish.
CPU usage is zero. Open any Java file and wait for it parse. Zero again. Now
press Space and Ctrl-Z to force a reparse, so that the animated icon appears and
then goes back to a green square. Now you have 100% CPU usage. Closing the file
does not help; you have to restart the IDE. But of course *any* realistic IDE
session involves editing some Java file, so every IDE session consumes 100% of
my CPU -> P1 at least for me. Leaving P2 in case it does not happen to everyone;
maybe a JDK bug?
Comment 1 Jesse Glick 2005-08-19 22:35:06 UTC
Created attachment 24097 [details]
Some thread dumps; note "Image Animator 0" thread, only present after parsing a Java file
Comment 2 Jesse Glick 2005-08-19 22:40:46 UTC
Seems that it was already fixed in CVS (and I can confirm that the change does
indeed fix my problem). So please don't change it back! :-)

Date: 2005/08/19 22:09:44
Author: jlahoda
Log:
Removing animation from the clocks icon (should help to solve problems with
commit validation).

editor/errorstripe/src/org/netbeans/modules/editor/errorstripe/resources/hodiny.gif:1.1->1.2

Comment 3 Jan Lahoda 2005-08-19 22:48:13 UTC
I will re-implement the animation by hand (once I will got a bit time), I hope
it will be possible.
Comment 4 Martin Matula 2005-08-20 00:17:43 UTC
Well, is the animation really necessary. It will unnecessarily slow down the
parsing in any case.
Comment 5 Vitezslav Stejskal 2007-11-05 13:25:43 UTC
Moving to the ui category.