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 101261 - IDE is hanging while debugging application
Summary: IDE is hanging while debugging application
Status: VERIFIED FIXED
Alias: None
Product: ruby
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Martin Krauskopf
URL:
Keywords: THREAD
Depends on:
Blocks:
 
Reported: 2007-04-17 05:25 UTC by pcmreddy
Modified: 2009-05-22 09:56 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Thread dump from IDE. (82.07 KB, text/plain)
2007-04-17 05:26 UTC, pcmreddy
Details
messages.log (44.06 KB, text/plain)
2007-04-17 06:18 UTC, pcmreddy
Details
uigestures (447.95 KB, application/octet-stream)
2007-04-17 06:19 UTC, pcmreddy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pcmreddy 2007-04-17 05:25:56 UTC
Observed couple of times with the same application.

NB Build used :
http://bits.nbextras.org/netbeans/6.0/nightly/200704161405/installers/

Ruby from : 
http://deadlock.nbextras.org/hudson/job/ruby/

Test app can be found here : 
 http://weblogs.java.net/blog/bleonard/

Installed Native Ruby on the same system
Installed GEM ruby-debug-ide

IDE hanged for ever, had to use task manager to kill "Java" process.
See attached thread dump.
Comment 1 pcmreddy 2007-04-17 05:26:36 UTC
Created attachment 41024 [details]
Thread dump from IDE.
Comment 2 pcmreddy 2007-04-17 05:28:02 UTC
Machine configuration :

Centrino Duo : 2.16 GHz 2GB RAM XP SP2
JDK 1.6.0
Comment 3 Martin Krauskopf 2007-04-17 06:11:58 UTC
Will take a look at it.
Comment 4 Martin Krauskopf 2007-04-17 06:16:12 UTC
pcmreddy thanks for all the feedback. You may also set up some logging (easily):

http://wiki.netbeans.org/wiki/view/RubyDebugging#section-RubyDebugging-HowToFileABug

and attach your $USER_DIR/var/log/message.log as described in the wiki. It could
solve help a lot of problems. Thanks.
Comment 5 pcmreddy 2007-04-17 06:18:18 UTC
Created attachment 41027 [details]
messages.log
Comment 6 pcmreddy 2007-04-17 06:19:15 UTC
Created attachment 41028 [details]
uigestures
Comment 7 Martin Krauskopf 2007-04-17 06:24:20 UTC
Thanks. But only message.log with enabled logging is useful. The logging needs
to be set up as described in the wiki. In this case I'll hopefully to be able to
catch the deadlock problem from the attached thread dump.
Comment 8 pcmreddy 2007-04-17 06:25:25 UTC
OK. I will try to reproduce this problem with debug enabled.
Comment 9 Martin Krauskopf 2007-04-17 14:13:28 UTC
I see the problem. There are too much pending debugger actions which fill up
default RequestProcessor so that no-one else in the IDE has a chance post its
action. Did you keep e.g. the F8 pressed for awhile when the debugger was in
some inconsistent state? I'll try to do something with.
Comment 10 Martin Krauskopf 2007-04-17 15:27:03 UTC
Fixed. There might be at maximum approximately ten pending events now.

debugger/src/org/netbeans/modules/ruby/debugger/RubyDebuggerActionProvider.java;
new revision: 1.8; previous revision: 1.7
debugger/test/unit/src/org/netbeans/modules/ruby/debugger/RubyDebuggerTest.java;
new revision: 1.16; previous revision: 1.15
Comment 11 Jiri Kovalsky 2007-07-03 14:15:12 UTC
Reassigning this issue to newly created 'ruby' component.
Comment 12 Jiri Kovalsky 2007-07-03 14:45:45 UTC
Changing target milestone of all resolved Ruby issues from TBD to 6.0 Beta 1 build.
Comment 13 Martin Schovanek 2009-05-22 09:56:55 UTC
v.