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.
Summary: | Deadlock when creating a Facelets template | ||
---|---|---|---|
Product: | editor | Reporter: | Petr Jiricka <pjiricka> |
Component: | Painting & Printing | Assignee: | issues@editor <issues> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | jbecicka, jiriprox, jjancura, mfukala, ymhsenger |
Priority: | P2 | Keywords: | RANDOM, THREAD |
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
Deadlock thread dump
The crash of nbfacelets plugin |
Description
Petr Jiricka
2007-11-28 14:19:58 UTC
Created attachment 53605 [details]
Deadlock thread dump
looks like editor infrastructure issue Well, I'm not sure if initializing colorings from SLanguageProvider.findLanguage is really necessary. IMO the initialization of Schliemann languages is still flaky. Simple calls like finding a lexer do not necessarily need to initialize every feature of the language. I might try to prevent the deadlock by not calling the highlight layer factories under the lock in HighlightingManager. The small inefficiency in possibly creating multiple versions of the layers and then throwing them away is probably acceptable. Probably not fixed just by this, but should be better. Checking in LexerBasedHighlightLayer.java; /cvs/java/editor/src/org/netbeans/modules/java/editor/semantic/LexerBasedHighlightLayer.java,v <-- LexerBasedHighlightLayer.java new revision: 1.3; previous revision: 1.2 done Is the deadlock still reproducible after Vita's fix? Created attachment 56229 [details]
The crash of nbfacelets plugin
I tried repeating the steps, but the facelets plugin crashed in the step #3. See the messages.log attached. Vito, you probably download the plugin for NB 5.1 not for NB 6.0. You should try the snapshot 6. This build contains some synchronization issues and from the attached deadlock stacktrace it can be already fixed. Ah, right, now I have the plugin version for Nb6 and it seems to work fine. All steps passed, no deadlock. I'm reassigning this back to the editor and closing it as fixed. For anybody trying to follow the steps make sure that you download the right plugin version. You are looking for something like this when installing to Nb6.x: https://nbfaceletssupport.dev.java.net/files/documents/5684/77220/nbfaceletssupport-0-6.zip Seems to work fine now. |