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 185260

Summary: Manipulating Swing from multiple threads (NPE at JComponent._paintImmediately)
Product: platform Reporter: Alexey Vladykin <alexey_vladykin>
Component: JDK ProblemsAssignee: Antonin Nebuzelsky <anebuzelsky>
Status: RESOLVED WORKSFORME    
Severity: normal CC: alexvsimon, anebuzelsky, gorrus
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 168868
Attachments: stacktrace
stacktrace
stacktrace
stacktrace

Description Alexey Vladykin 2010-04-29 13:32:13 UTC
This bug was originally marked as duplicate of bug 118184, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 100429-0b3e6ee0f20c)
VM: Java HotSpot(TM) 64-Bit Server VM, 14.3-b01, Java(TM) SE Runtime Environment, 1.6.0_17-b04
OS: Linux

User Comments:
alexey_vladykin: Created new C/C++ project




Stacktrace: 
java.lang.NullPointerException
   at javax.swing.JComponent._paintImmediately(JComponent.java:5075)
   at javax.swing.JComponent.paintImmediately(JComponent.java:4870)
   at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:803)
   at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:714)
   at javax.swing.RepaintManager.seqPaintDirtyRegions(RepaintManager.java:694)
   at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:125)
Comment 1 Alexey Vladykin 2010-04-29 13:32:18 UTC
Created attachment 98281 [details]
stacktrace
Comment 2 Egor Ushakov 2010-05-05 14:32:24 UTC
Created attachment 98495 [details]
stacktrace
Comment 3 Alexander Simon 2010-09-02 07:03:52 UTC
Created attachment 101823 [details]
stacktrace
Comment 4 Antonin Nebuzelsky 2010-10-05 09:46:22 UTC
Evaluated in

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6524980

"The only way I can see this problem happening is if the submitter has a) overridden getGraphics to return null or is b) manipulating Swing from multiple threads."

The issue 118184 fixed some, but there are still some remaining.
Comment 5 Exceptions Reporter 2010-12-18 14:56:57 UTC
Created attachment 104242 [details]
stacktrace
Comment 6 Antonin Nebuzelsky 2011-10-06 08:30:23 UTC
No new duplicate for a year. Closing worksforme now.