Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 349283 - NPE during "Clear Breakpoints Status".
Summary: NPE during "Clear Breakpoints Status".
Status: CLOSED DUPLICATE of bug 358754
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug-dsf (show other bugs)
Version: 8.0   Edit
Hardware: PC Linux
: P3 normal with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Pawel Piech CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-14 03:48 EDT by Jens Seidel CLA
Modified: 2011-09-23 23:46 EDT (History)
3 users (show)

See Also:


Attachments
Log file for the last couple of days. Shows errors for "Clear Breakpoints Status" (287.50 KB, text/plain)
2011-09-23 21:21 EDT, Aaron Hoffer CLA
no flags Details
Screen shot of the Debug view just before error dialog opens. (10.42 KB, image/gif)
2011-09-23 21:30 EDT, Aaron Hoffer CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jens Seidel CLA 2011-06-14 03:48:53 EDT
Build Identifier: 20110526-1053

eclipse.buildId=I20110519-1138
java.version=1.6.0_20
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.linuxtools.product
Command-line arguments:  -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.linuxtools.product

Error
Tue Jun 14 09:41:10 CEST 2011
An internal error occurred during: "Clear Breakpoints Status".

java.lang.NullPointerException
	at org.eclipse.cdt.dsf.mi.service.MIBreakpointsManager$24$1.run(MIBreakpointsManager.java:1400)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
	at org.eclipse.cdt.dsf.mi.service.MIBreakpointsManager$24.run(MIBreakpointsManager.java:1442)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)



Reproducible: Didn't try
Comment 1 Aaron Hoffer CLA 2011-09-23 21:21:54 EDT
Created attachment 203950 [details]
Log file for the last couple of days. Shows errors for "Clear Breakpoints Status"
Comment 2 Aaron Hoffer CLA 2011-09-23 21:29:19 EDT
I get this same error frequently. I am unable to isolate why it occurs. I have attached my log file that shows the last few days of history. It contains multiple examples of the error. I am also attaching a screen shot of the threads as they show up in the Debug view; the state of that window look out-of-the-ordinary. Here is what I know:

1. Run debug configuration of the application.
2. The application's window opens (it is a GUI app using GLUT). 
3. The application stops executing and no breakpoints are hit.
4. The threads in the Debug window do not show a call stack. There are three threads shown as part of the .exe process. The first two say "(Running: Container). The third threads says "(Running: User Request). The call stack is not displayed.
Comment 3 Aaron Hoffer CLA 2011-09-23 21:30:50 EDT
Created attachment 203951 [details]
Screen shot of the Debug view just before error dialog opens.
Comment 4 Aaron Hoffer CLA 2011-09-23 21:33:32 EDT
I forgot to add steps 4 and 5 in the previous comment.

4. Click the red square to stop debugging.
5. My applications GUI window closes.
6. Eclipse opens a dialog box and explains "Clear Breakpoints Status" experienced a java null pointer exception.

I was using at least one conditional breakpoint, but it is hard to tell if that was a factor in the dialog box opening.
Comment 5 Nobody - feel free to take it CLA 2011-09-23 23:46:05 EDT

*** This bug has been marked as a duplicate of bug 358754 ***