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 268876 - IDE freeze up and must be killed when opening xml file
Summary: IDE freeze up and must be killed when opening xml file
Status: RESOLVED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Code (show other bugs)
Version: Dev
Hardware: PC Windows 10 x64
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-07 20:22 UTC by akobberup
Modified: 2016-11-25 12:38 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
example ui.xml file that will freeze the ide (281 bytes, text/plain)
2016-11-07 20:22 UTC, akobberup
Details
messages.log (101.47 KB, text/plain)
2016-11-07 20:23 UTC, akobberup
Details
Threaddump (33.35 KB, application/octet-stream)
2016-11-16 10:28 UTC, akobberup
Details
messages.log (92.34 KB, text/plain)
2016-11-23 13:54 UTC, akobberup
Details
Threaddump (31.91 KB, application/octet-stream)
2016-11-23 13:54 UTC, akobberup
Details
Thread dump (31.91 KB, application/octet-stream)
2016-11-23 14:37 UTC, akobberup
Details
ui.xml file that freezes the ide (1.07 KB, text/plain)
2016-11-23 14:38 UTC, akobberup
Details

Note You need to log in before you can comment on or make changes to this bug.
Description akobberup 2016-11-07 20:22:58 UTC
Created attachment 162814 [details]
example ui.xml file that will freeze the ide

When opening an xml file (for a gwt project) it seems the Event Dispatch Thread freezes up - when resizing the window no repaint is done.

I can open my pom and some other xml files, so its not ALL xml files - just most of my gwt ui binder files.

One of these files is attached. 

This were working in the build from october 17, but not this current build from today nov. 7th.
Comment 1 akobberup 2016-11-07 20:23:49 UTC
Created attachment 162815 [details]
messages.log
Comment 2 akobberup 2016-11-16 10:28:56 UTC
Created attachment 162927 [details]
Threaddump

I still experience the problem in a newer build.. 2016-11-14
Took a threaddump.
Comment 3 Svata Dedic 2016-11-23 13:44:36 UTC
Please try again with some recent build
Comment 4 akobberup 2016-11-23 13:54:18 UTC
Created attachment 163000 [details]
messages.log

Messages.log from new build (Build 201611230001)
Comment 5 akobberup 2016-11-23 13:54:56 UTC
Created attachment 163001 [details]
Threaddump

Threaddump from (Build 201611230001)
Comment 6 Svata Dedic 2016-11-23 14:30:53 UTC
Is it still the same ui.xml ? The threaddump shows exactly the code which have been fixed (and the fix made it into the build for sure). I've opened ui.xml (success( and tried to invoke completion at various places (success).

your threaddump shows stuck breadcrumbs during its initialization.
Comment 7 akobberup 2016-11-23 14:37:26 UTC
Created attachment 163003 [details]
Thread dump

Sorry - i will attach a new ui.xml file.
I just  tried again, and in this threaddump, the AWT-EventQueue-0 is in org.netbeans.api.lexer.TokenSequence.isInvalid
Comment 8 akobberup 2016-11-23 14:38:59 UTC
Created attachment 163004 [details]
ui.xml file that freezes the ide
Comment 9 Svata Dedic 2016-11-23 14:46:38 UTC
Strange; still no luck. Yes, TokenSequence.isInvalid is on the top, but the main suspect is the XMLSyntaxSupport a few frames below, which I reimplemented at the beginning of November.

How exactly do you work with the file - say you open a folder with the file in the project view. Then - what ?

I'm asking because when I open the file (doubleclick, Open command), the Breadcrumb initializes (stack similar to your threaddump) but execution does not even go into the loop indicated by your threaddump.

I can see a possible defect in the source, but I'd like to verify that it actually addresses your case.
Comment 10 akobberup 2016-11-23 15:12:36 UTC
It dosnt seem to change anything how i open the file.
I recorded a video of what happens when i search for the file and opens it up - you can see that after the editor show the file, everything stop responding (see the small cog turning in the search panel).

https://www.youtube.com/watch?v=lIN1D6-ZG8Y
Comment 11 Svata Dedic 2016-11-25 10:12:18 UTC
(In reply to akobberup from comment #4)
> Messages.log from new build (Build 201611230001)

This is strange - did you install a fresh build, or auto-updated: there are mixed versions of modules shown in the log:

	org.netbeans.modules.xml.catalog/2 [3.5.0.4 4 nbms-and-javadoc-663-on-20161110]
vs.
	org.netbeans.modules.project.ant/1 [1.67 201611230001]

The module supposedly containing the fix is
	org.netbeans.modules.xml.text/2 [1.60.0.1 1 nbms-and-javadoc-663-on-20161110]

that seems before the fix made it into the downloadable build.
Comment 12 akobberup 2016-11-25 11:10:05 UTC
I installed a new nb from the website - but i did not delete my old userdir when uninstaling (i hate to loose all my codetemplates, altered keymaps ect.)

I can try to export my options to a file and do a complete uninstall and reinstall to see if that will help..
Comment 13 akobberup 2016-11-25 12:28:20 UTC
I installed newest build after removing all old nb installations, and that solved the issue.

So i guess i will need to revise my "update-to-a-new-dev-build" procedure, even though it makes it hard to revert to the previous build, if it turns up that the new build is broken (happens sometimes that for example a blocker bug is killing the editor). 

Thanks for the help and patience :)
Comment 14 Svata Dedic 2016-11-25 12:38:24 UTC
Spec / impl versions of modules are rarely updated after "normal" bugfixes, so autoupdate may not pick up a module even though there was a change in its code. The module will update, eventually, after some change which demands version increase.