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 234272 - IDE freezes when working with HTML editor
Summary: IDE freezes when working with HTML editor
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: JDK Problems (show other bugs)
Version: 7.4
Hardware: PC Mac OS X
: P2 normal (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-12 15:00 UTC by Vladimir Riha
Modified: 2013-09-01 01:24 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
3 thread dumps taken after each other (9.93 KB, application/zip)
2013-08-12 15:00 UTC, Vladimir Riha
Details
IDE log (72.68 KB, application/octet-stream)
2013-08-12 15:01 UTC, Vladimir Riha
Details
HTML file before inserting HTML table (510 bytes, text/html)
2013-08-12 15:05 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2013-08-12 15:00:32 UTC
Created attachment 138590 [details]
3 thread dumps taken after each other

It happened to me twice today while I was working with HTML editor, the last time it was:
 - some HTML page from project A was running in Chrome with NB integration
 - I opened HTML page from project B and start editing
 - after (in this case) inserting table using Palette, cursor changed to busy state ("circle with rainbow color") and UI became irresponsive but I can see the memory bar in toolbar is still being updated, but I cannot interact with IDE in any way.

I'm attaching 3 thread dumps taken several seconds apart each other.


  Product Version         = NetBeans IDE Dev (Build 201308112300) (#ebde07cee663)
  Operating System        = Mac OS X version 10.8.4 running on x86_64
  Java; VM; Vendor        = 1.7.0_40; Java HotSpot(TM) 64-Bit Server VM 24.0-b55; Oracle Corporation
  Runtime                 = Java(TM) SE Runtime Environment 1.7.0_40-b39
  Java Home               = /Users/tester/Downloads/jdk1.7.0_40.jdk/Contents/
Comment 1 Vladimir Riha 2013-08-12 15:01:02 UTC
Created attachment 138592 [details]
IDE log
Comment 2 Vladimir Riha 2013-08-12 15:05:05 UTC
Created attachment 138593 [details]
HTML file before inserting HTML table
Comment 3 Vladimir Riha 2013-08-13 10:35:29 UTC
I've just seen it with XHTML but all my attempts to take thread dump were unsuccessful (I tried jvisualvm, jstack and plain old kill -QUIT). Please evaluate.  

Same OS, JDK and build as in description
Comment 4 Marek Fukala 2013-08-13 13:13:44 UTC
Very similar to issue 218897 - deadlock between EDT and AppKit thread - a JDK bug however supposedly fixed in 7u10 b12.
Comment 5 Marek Fukala 2013-08-13 13:25:21 UTC
Passing to platform upon agreement with Standa. 

Just from the glimpse to the original JDK bug [1] the evaluation and fix seems strange to me.

1. http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7200762
Comment 6 Vladimir Riha 2013-08-13 13:29:04 UTC
Thank you Marku, I'm trying to reproduce but without luck
Comment 7 Stanislav Aubrecht 2013-08-28 14:01:11 UTC
I noticed there is a NPE from our dnd support in the log. That NPE may put the AppKit thread into undefined state (it seems to be stuck in sun.awt.dnd.SunDropTargetContextPeer.handleDropMessage).

I fixed that NPE in core-main 8beba30b693c, please reopen if still reproducible, thanks.
Comment 8 Vladimir Riha 2013-08-28 14:04:20 UTC
Of course, will do. Thank you.
Comment 9 Quality Engineering 2013-09-01 01:24:49 UTC
Integrated into 'main-silver', will be available in build *201309010001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/8beba30b693c
User: S. Aubrecht <saubrecht@netbeans.org>
Log: #234272 - NPE