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 148583 - [65cat] org.rubyforge.debugcommons.RubyDebuggerException: Unable to read added breakpoint number in the specified timeout [15s]
Summary: [65cat] org.rubyforge.debugcommons.RubyDebuggerException: Unable to read adde...
Status: RESOLVED FIXED
Alias: None
Product: ruby
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Martin Krauskopf
URL: http://statistics.netbeans.org/except...
Keywords:
: 138462 148589 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-09-28 23:30 UTC by esmithbss
Modified: 2009-07-09 15:30 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 119824


Attachments
stacktrace (916 bytes, text/plain)
2008-09-28 23:31 UTC, esmithbss
Details
Log File (49.18 KB, text/plain)
2008-09-29 03:47 UTC, esmithbss
Details
stacktrace (916 bytes, text/plain)
2008-09-29 03:56 UTC, esmithbss
Details
stacktrace (916 bytes, text/plain)
2008-09-30 08:35 UTC, esmithbss
Details
Log File from 6.5 FCS (56.90 KB, text/plain)
2008-11-21 21:12 UTC, esmithbss
Details
stacktrace (916 bytes, text/plain)
2009-02-16 12:38 UTC, Martin Fousek
Details
stacktrace (916 bytes, text/plain)
2009-03-19 11:33 UTC, Martin Fousek
Details
stacktrace (1.43 KB, text/plain)
2009-04-17 04:26 UTC, fede_silva
Details
stacktrace (1.43 KB, text/plain)
2009-07-09 15:30 UTC, Tomas Danek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description esmithbss 2008-09-28 23:30:59 UTC
Build: NetBeans IDE Dev (Build 200809270201)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-rc-b28
OS: Linux, 2.6.24-21-generic, i386

User Comments:
esmithbss: Just turned off my glassfish instance used for ruby debugging.  Switched tabs in Bottom right panel to second debugger instance running separate program.



Stacktrace: 
org.rubyforge.debugcommons.RubyDebuggerException: Unable to read added breakpoint number in the specified timeout [15s]
        at org.rubyforge.debugcommons.ReadersSupport.poll(ReadersSupport.java:200)
        at org.rubyforge.debugcommons.ReadersSupport.readAddedBreakpointNo(ReadersSupport.java:176)
        at org.rubyforge.debugcommons.RubyDebuggerProxy.addBreakpoint(RubyDebuggerProxy.java:177)
        at org.netbeans.modules.ruby.debugger.breakpoints.RubyBreakpointManager.addLineBreakpoint(RubyBreakpointManager.java:90)
        at org.netbeans.modules.ruby.debugger.breakpoints.RubyBreakpointActionProvider.doAction(RubyBreakpointActionProvider.java:89)
        at org.netbeans.spi.debugger.ActionsProvider$1.run(ActionsProvider.java:105)
Comment 1 esmithbss 2008-09-28 23:31:09 UTC
Created attachment 70752 [details]
stacktrace
Comment 2 esmithbss 2008-09-29 03:47:31 UTC
Created attachment 70757 [details]
Log File
Comment 3 esmithbss 2008-09-29 03:56:04 UTC
Build: NetBeans IDE Dev (Build 200809270201)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-rc-b28
OS: Linux, 2.6.24-21-generic, i386

User Comments: 
Attempting to view source within my browser for a page that has a breakpoint associated with it.

Stacktrace: 
org.rubyforge.debugcommons.RubyDebuggerException: Unable to read added breakpoint number in the specified timeout [15s]
        at org.rubyforge.debugcommons.ReadersSupport.poll(ReadersSupport.java:200)
        at org.rubyforge.debugcommons.ReadersSupport.readAddedBreakpointNo(ReadersSupport.java:176)
        at org.rubyforge.debugcommons.RubyDebuggerProxy.addBreakpoint(RubyDebuggerProxy.java:177)
        at org.netbeans.modules.ruby.debugger.breakpoints.RubyBreakpointManager.addLineBreakpoint(RubyBreakpointManager.java:90)
        at org.netbeans.modules.ruby.debugger.breakpoints.RubyBreakpointActionProvider.doAction(RubyBreakpointActionProvider.java:89)
        at org.netbeans.spi.debugger.ActionsProvider$1.run(ActionsProvider.java:105)
Comment 4 esmithbss 2008-09-29 03:56:07 UTC
Created attachment 70758 [details]
stacktrace
Comment 5 Peter Pis 2008-09-29 08:22:02 UTC
Reassigning to ruby.
Comment 6 esmithbss 2008-09-30 08:35:43 UTC
Build: NetBeans IDE Dev (Build 200809290201)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-rc-b28
OS: Linux, 2.6.24-21-generic, i386

User Comments: 
Debugging the application switching back and forth between IDE and Browser

Stacktrace: 
org.rubyforge.debugcommons.RubyDebuggerException: Unable to read added breakpoint number in the specified timeout [15s]
        at org.rubyforge.debugcommons.ReadersSupport.poll(ReadersSupport.java:200)
        at org.rubyforge.debugcommons.ReadersSupport.readAddedBreakpointNo(ReadersSupport.java:176)
        at org.rubyforge.debugcommons.RubyDebuggerProxy.addBreakpoint(RubyDebuggerProxy.java:177)
        at org.netbeans.modules.ruby.debugger.breakpoints.RubyBreakpointManager.addLineBreakpoint(RubyBreakpointManager.java:90)
        at org.netbeans.modules.ruby.debugger.breakpoints.RubyBreakpointActionProvider.doAction(RubyBreakpointActionProvider.java:89)
        at org.netbeans.spi.debugger.ActionsProvider$1.run(ActionsProvider.java:105)
Comment 7 esmithbss 2008-09-30 08:35:47 UTC
Created attachment 70872 [details]
stacktrace
Comment 8 Exceptions Reporter 2008-10-08 01:49:46 UTC
This issue has already 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=119824
Comment 9 Martin Krauskopf 2008-10-09 14:24:16 UTC
*** Issue 148589 has been marked as a duplicate of this issue. ***
Comment 10 Martin Krauskopf 2008-10-10 12:08:35 UTC
There are some problems. Likely synchronization issue. Evaluating.... relatively easy to reproduce. Hopefully in 6.5
time-frame.
Comment 11 Martin Krauskopf 2008-10-10 14:29:20 UTC
Breakpoint management needs to be properly synchronized. Will do so in the intermediate library at debug-commons.
Increasing to P2 -> visibly affects management of multiple breakpoints at once.
Comment 12 Martin Krauskopf 2008-10-10 15:55:47 UTC
Fixed. Changeset: #ddcd2254cbee

Commit message:
#148583: race condition in breakpoint management (fixed in the debug-commons-java)

debug-commons-java ChangeLog:
- Use logger per class to have more fine-grained logging
- Properly synchronize breakpoint management to prevent CME (cf.
  testRemovingBreakpointFromMultipleThreads)
- Be little bit more nicer to clients when trying to manage breakpoints
  when session is finished. (+ fixing typo)
Comment 13 Martin Krauskopf 2008-10-10 15:57:15 UTC
*** Issue 138462 has been marked as a duplicate of this issue. ***
Comment 14 Quality Engineering 2008-10-11 17:21:29 UTC
Integrated into 'main-golden', will be available in build *200810111401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/ddcd2254cbee
User: Martin Krauskopf <mkrauskopf@netbeans.org>
Log: #148583: race condition in breakpoint management (fixed in the debug-commons-java)

debug-commons-java ChangeLog:
- Use logger per class to have more fine-grained logging
- Properly synchronize breakpoint management to prevent CME (cf.
  testRemovingBreakpointFromMultipleThreads)
- Be little bit more nicer to clients when trying to manage breakpoints
  when session is finished. (+ fixing typo)
Comment 15 Exceptions Reporter 2008-11-21 21:09:38 UTC
Reopening - reproduced in NetBeans IDE 6.5 (Build 200811100001)
http://statistics.netbeans.org/exceptions/detail.do?id=141141
Comment 16 esmithbss 2008-11-21 21:11:27 UTC
Looks like this one snuck back in somehow.

Extra information can be found at http://statistics.netbeans.org/analytics/detail.do?id=119824

Comment 17 esmithbss 2008-11-21 21:12:22 UTC
Created attachment 74028 [details]
Log File from 6.5 FCS
Comment 18 Martin Krauskopf 2008-11-24 15:38:08 UTC
From the log, as well as from the code, it looks like, that it is "just" WARNING-level message. Does it somehow break
debugger functionality or does NetBeans pops up dialog with the error?
Comment 19 esmithbss 2008-11-24 17:43:41 UTC
Yes, this is popped up in the "An error has occurred" dialog that let's me file it as a bug.  It may be a warning, but
if it is, then there's a setting that is telling NB that it is severe enough to show me the dialog.
Comment 20 Martin Krauskopf 2008-11-25 08:23:20 UTC
Ok, thanks. Will double-check that.

Otherwise does the debugger stop to works for you completely then? Or just one debugger session? Or the debugger works
as expected? Just to found out how serious the issue is.
Comment 21 Martin Krauskopf 2008-11-27 12:46:56 UTC
I've added more checks to the intermediate library. Reopen, if you are able to reproduce in 7.0 dev build, thanks (you
will be notified about trunk integration here, when it is done).

Changeset: #108d74709feb
Comment 22 Quality Engineering 2008-11-28 17:27:40 UTC
Integrated into 'main-golden', will be available in build *200811281401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/108d74709feb
User: Martin Krauskopf <mkrauskopf@netbeans.org>
Log: #148583: [65cat] org.rubyforge.debugcommons.RubyDebuggerException: Unable to read added breakpoint number in the specified timeout [15s]

- do not WARN when there the backend died during breakpoint addition
Comment 23 Martin Fousek 2009-02-16 12:37:56 UTC
Build: NetBeans IDE 6.5 (Build 200811100001)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Linux, 2.6.27-9-generic, i386

User Comments: 


Stacktrace: 
org.rubyforge.debugcommons.RubyDebuggerException: Unable to read added breakpoint number in the specified timeout [15s]
        at org.rubyforge.debugcommons.ReadersSupport.poll(ReadersSupport.java:203)
        at org.rubyforge.debugcommons.ReadersSupport.readAddedBreakpointNo(ReadersSupport.java:179)
        at org.rubyforge.debugcommons.RubyDebuggerProxy.addBreakpoint(RubyDebuggerProxy.java:185)
        at org.netbeans.modules.ruby.debugger.breakpoints.RubyBreakpointManager.addLineBreakpoint(RubyBreakpointManager.java:90)
        at org.netbeans.modules.ruby.debugger.breakpoints.RubyBreakpointActionProvider.doAction(RubyBreakpointActionProvider.java:89)
        at org.netbeans.spi.debugger.ActionsProvider$1.run(ActionsProvider.java:105)
Comment 24 Martin Fousek 2009-02-16 12:38:08 UTC
Created attachment 77020 [details]
stacktrace
Comment 25 Martin Fousek 2009-03-19 11:33:40 UTC
Build: NetBeans IDE 6.5 (Build 200811100001)
VM: Java HotSpot(TM) 64-Bit Server VM, 11.3-b01, Java(TM) SE Runtime Environment, 1.6.0_13-ea-b01
OS: Linux, 2.6.27-7-generic, amd64

User Comments: 


Stacktrace: 
org.rubyforge.debugcommons.RubyDebuggerException: Unable to read added breakpoint number in the specified timeout [15s]
        at org.rubyforge.debugcommons.ReadersSupport.poll(ReadersSupport.java:203)
        at org.rubyforge.debugcommons.ReadersSupport.readAddedBreakpointNo(ReadersSupport.java:179)
        at org.rubyforge.debugcommons.RubyDebuggerProxy.addBreakpoint(RubyDebuggerProxy.java:185)
        at org.netbeans.modules.ruby.debugger.breakpoints.RubyBreakpointManager.addLineBreakpoint(RubyBreakpointManager.java:90)
        at org.netbeans.modules.ruby.debugger.breakpoints.RubyBreakpointActionProvider.doAction(RubyBreakpointActionProvider.java:89)
        at org.netbeans.spi.debugger.ActionsProvider$1.run(ActionsProvider.java:105)
Comment 26 Martin Fousek 2009-03-19 11:33:44 UTC
Created attachment 78433 [details]
stacktrace
Comment 27 fede_silva 2009-04-17 04:26:30 UTC
Build: NetBeans IDE 6.5 (Build 200811100001)
VM: Java HotSpot(TM) 64-Bit Server VM, 1.6.0_07-b06-57, Java(TM) SE Runtime Environment, 1.6.0_07-b06-153
OS: Mac OS X, 10.5.6, x86_64

User Comments: 


Stacktrace: 
org.rubyforge.debugcommons.RubyDebuggerException: Unable to read breakpoint number of the removed breakpoint (1) in the specified timeout [15s]
        at org.rubyforge.debugcommons.ReadersSupport.poll(ReadersSupport.java:203)
        at org.rubyforge.debugcommons.ReadersSupport.waitForRemovedBreakpoint(ReadersSupport.java:191)
        at org.rubyforge.debugcommons.RubyDebuggerProxy.removeBreakpoint(RubyDebuggerProxy.java:235)
        at org.rubyforge.debugcommons.RubyDebuggerProxy.removeBreakpoint(RubyDebuggerProxy.java:212)
        at org.netbeans.modules.ruby.debugger.breakpoints.RubyBreakpointManager.removeBreakpoint(RubyBreakpointManager.java:116)
        at org.netbeans.modules.ruby.debugger.breakpoints.PersistenceManager.breakpointRemoved(PersistenceManager.java:93)
Comment 28 fede_silva 2009-04-17 04:26:39 UTC
Created attachment 80309 [details]
stacktrace
Comment 29 Tomas Danek 2009-07-09 15:30:05 UTC
Build: NetBeans IDE 6.7 (Build 200906212001)
VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: Linux, 2.6.28-13-generic, i386

User Comments: 


Stacktrace: 
org.rubyforge.debugcommons.RubyDebuggerException: Unable to read breakpoint number of the removed breakpoint (1) in the specified timeout [15s]
        at org.rubyforge.debugcommons.ReadersSupport.poll(ReadersSupport.java:224)
        at org.rubyforge.debugcommons.ReadersSupport.waitForRemovedBreakpoint(ReadersSupport.java:212)
        at org.rubyforge.debugcommons.RubyDebuggerProxy.removeBreakpoint(RubyDebuggerProxy.java:264)
        at org.rubyforge.debugcommons.RubyDebuggerProxy.removeBreakpoint(RubyDebuggerProxy.java:241)
        at org.netbeans.modules.ruby.debugger.breakpoints.RubyBreakpointManager.removeBreakpoint(RubyBreakpointManager.java:116)
        at org.netbeans.modules.ruby.debugger.breakpoints.PersistenceManager.breakpointRemoved(PersistenceManager.java:95)
Comment 30 Tomas Danek 2009-07-09 15:30:15 UTC
Created attachment 84550 [details]
stacktrace