Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
12.1
-
None
-
None
-
Product Version: Apache NetBeans IDE 12.1-beta1
Java: 12.0.2; Java HotSpot(TM) 64-Bit Server VM 12.0.2+10
Runtime: Java(TM) SE Runtime Environment 12.0.2+10
Description
Was testing 12.1 beta1 today, everything was great during my usual activity, but then this happened. An exception icon has appeared and the IDE became unresponsive for several minutes, not as much as to invoke the Windows' WerFault dialog though, the mouse cursor has changed according to the area (editor vs other UI), but I couldn't click anything, the UI appeared frozen otherwise.
I don't know if it's related to the update, but it didn't happen before.
I was looking for text occurrences in a file (using Ctrl+F), then I must have invoked some action shortcut by mistake because the content of the file have changed - there used to be a normal assignment (disregard the editor cursor position though, it has changed during my attempts to click anywhere):
After some time the IDE became responsive again, but froze shortly after that for some more time. It has been in such state until I closed it. By then it has gradually consumed around 9 GB of RAM
I was able to take a profiler snapshot and extract the exception details and UI/IDE logs during the moments when the IDE was responsive, see the attachments.
Stack trace:
java.lang.NullPointerException at java.desktop/javax.swing.text.JTextComponent.write(JTextComponent.java:1655) at java.desktop/javax.swing.JEditorPane.getText(JEditorPane.java:1451) at org.netbeans.modules.editor.search.SearchBar.showNumberOfMatches(SearchBar.java:1039) at org.netbeans.modules.editor.search.SearchBar$13.caretUpdate(SearchBar.java:502) at java.desktop/javax.swing.text.JTextComponent.fireCaretUpdate(JTextComponent.java:412) at java.desktop/javax.swing.text.JTextComponent$MutableCaretEvent.fire(JTextComponent.java:4489) at java.desktop/javax.swing.text.JTextComponent$MutableCaretEvent.mouseReleased(JTextComponent.java:4545) at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:297) at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:297) at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:297) at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:297) at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:297) at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:297) at java.desktop/java.awt.Component.processMouseEvent(Component.java:6632) at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3342) at java.desktop/java.awt.Component.processEvent(Component.java:6397) at java.desktop/java.awt.Container.processEvent(Container.java:2263) at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5008) at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321) at java.desktop/java.awt.Component.dispatchEvent(Component.java:4840) at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918) at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4547) at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488) at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307) at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2762) at java.desktop/java.awt.Component.dispatchEvent(Component.java:4840) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715) at java.base/java.security.AccessController.doPrivileged(AccessController.java:389) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95) at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745) at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743) at java.base/java.security.AccessController.doPrivileged(AccessController.java:389) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742) at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136) [catch] at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Attachments
Attachments
Issue Links
- is duplicated by
-
NETBEANS-4623 NullPointerException in BasicTextUI.getPreferredSize
- Closed
- links to