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 - Manipulating Swing from multiple threads (NPE at JComponent._paintImmediately)
Summary: Manipulating Swing from multiple threads (NPE at JComponent._paintImmediately)
Status: RESOLVED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: JDK Problems (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Antonin Nebuzelsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-29 13:32 UTC by Alexey Vladykin
Modified: 2011-10-06 08:30 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 168868


Attachments
stacktrace (2.80 KB, text/plain)
2010-04-29 13:32 UTC, Alexey Vladykin
Details
stacktrace (2.80 KB, text/plain)
2010-05-05 14:32 UTC, Egor Ushakov
Details
stacktrace (2.80 KB, text/plain)
2010-09-02 07:03 UTC, Alexander Simon
Details
stacktrace (2.80 KB, text/plain)
2010-12-18 14:56 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
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.