History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-25528
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Peter Gromov
Reporter: Anton Zhulitov
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

A file hangs IDEA

Created: 25 Mar 08 15:16   Updated: 22 Apr 08 17:31
Component/s: Editor. Editing Text, J2EE.JSP
Fix Version/s: Selena 7.0.4

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: 1. Text File ideadump (37 kb)
2. File tree.jsp (4 kb)

Environment: win
Issue Links:
Duplicate
 
This issue is duplicated by:
IDEA-17784 IDEA hangs when parsing jsp file Closed

Build: 7,757
Fixed in build: 8,253
Severity: Extreme


 Description  « Hide
Idea hangs once while i was editing file.
I restarted computer and try to open the file, it was not opening in edior, but shown as openened in title of structure view and path string higher then editor.
Then i copied code from wordpad to new file, Idea hangs once more. CPU usage 99% no reactoions, no iterface redrawing on hide/show window.

 All   Comments   Work Log   Change History      Sort Order:
Dmitry Jemerov - 25 Mar 08 15:29
Could you please take a thread dump during the hang?

Anton Zhulitov - 25 Mar 08 16:10
Sorry but how to do it.

by the way

<%@ include file="<%=" %> is a key for a bug to ocure.

I changed it to

<jsp:include page="#{item.include}"/>

and we working Ok.



Anton Zhulitov - 25 Mar 08 17:32
here are the dump

Anton Zhulitov - 25 Mar 08 17:37
by the way, before i kill it.

memory usage was rising from 50m to 120 m about a 1m per second, around 120 the rising slows and gone only to 122 im several minutes

Good luck.


Alexander Chernikov - 25 Mar 08 18:01
7757: reproduced as described by reporter. The infinite chain of exceptions is in log:
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
	at java.lang.String.substring(String.java:1938)
	at com.intellij.psi.impl.source.resolve.reference.impl.providers.JavaClassReferenceProvider.getReferencesByElement(JavaClassReferenceProvider.java:23)
	at com.intellij.psi.impl.source.resolve.reference.impl.providers.JavaClassReferenceProvider.getReferencesByElement(JavaClassReferenceProvider.java:41)
	at com.intellij.psi.impl.source.resolve.ResolveUtil.getReferencesFromProviders(ResolveUtil.java:56)
	at com.intellij.psi.impl.source.xml.XmlAttributeValueImpl.getReferences(XmlAttributeValueImpl.java:2)
	at com.intellij.psi.jsp.JspUtil.resolvePsiFileReferenceInAttribute(JspUtil.java:226)
	at com.intellij.psi.jsp.JspUtil.resolveFileReferenceInAttribute(JspUtil.java:215)
	at com.intellij.psi.jsp.JspUtil.resolveIncludeDirective(JspUtil.java:242)
	at com.intellij.lang.jsp.JspFileViewProviderImpl.getKnownPrefixesInner(JspFileViewProviderImpl.java:144)
	at com.intellij.lang.jsp.JspFileViewProviderImpl.access$100(JspFileViewProviderImpl.java:40)
	at com.intellij.lang.jsp.JspFileViewProviderImpl$1.compute(JspFileViewProviderImpl.java:59)
	at com.intellij.lang.jsp.JspFileViewProviderImpl$1.compute(JspFileViewProviderImpl.java:56)
	at com.intellij.openapi.util.FieldCache.get(FieldCache.java:51)
	at com.intellij.lang.jsp.JspFileViewProviderImpl.getKeyPrefixes(JspFileViewProviderImpl.java:78)
	at com.intellij.lang.jsp.JspFileViewProviderImpl.getTemplateDataLanguage(JspFileViewProviderImpl.java:73)
	at com.intellij.lang.jsp.JspFileViewProviderImpl.getRelevantLanguages(JspFileViewProviderImpl.java:179)
	at com.intellij.psi.impl.smartPointers.SmartPointerManagerImpl.synchronizePointers(SmartPointerManagerImpl.java:85)
	at com.intellij.psi.impl.PsiDocumentManagerImpl.commit(PsiDocumentManagerImpl.java:202)
	at com.intellij.psi.impl.PsiDocumentManagerImpl$1.run(PsiDocumentManagerImpl.java:1)
	at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:98)
	at com.intellij.psi.impl.PsiDocumentManagerImpl.a(PsiDocumentManagerImpl.java:24)
	at com.intellij.psi.impl.PsiDocumentManagerImpl.commitDocument(PsiDocumentManagerImpl.java:172)
	at com.intellij.psi.impl.PsiDocumentManagerImpl.commitAllDocuments(PsiDocumentManagerImpl.java:146)
	at com.intellij.codeInsight.daemon.impl.TextEditorBackgroundHighlighter.a(TextEditorBackgroundHighlighter.java:28)
	at com.intellij.codeInsight.daemon.impl.TextEditorBackgroundHighlighter.createPassesForEditor(TextEditorBackgroundHighlighter.java:8)
	at com.intellij.codeInsight.daemon.impl.TextEditorBackgroundHighlighter.createPassesForEditor(TextEditorBackgroundHighlighter.java:9)
	at com.intellij.codeInsight.daemon.impl.DaemonCodeAnalyzerImpl$2.run(DaemonCodeAnalyzerImpl.java:10)
	at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:19)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
	at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:131)
	at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:132)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:136)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
2008-03-25 18:00:10,072 [1423464]  ERROR - pplication.impl.LaterInvocator - IntelliJ IDEA 7.0.3  Build #7757 
2008-03-25 18:00:10,072 [1423464]  ERROR - pplication.impl.LaterInvocator - JDK: 1.6.0_04 
2008-03-25 18:00:10,072 [1423464]  ERROR - pplication.impl.LaterInvocator - VM: Java HotSpot(TM) Client VM 
2008-03-25 18:00:10,072 [1423464]  ERROR - pplication.impl.LaterInvocator - Vendor: Sun Microsystems Inc. 
2008-03-25 18:00:10,072 [1423464]  ERROR - pplication.impl.LaterInvocator - OS: Windows XP 
2008-03-25 18:00:10,072 [1423464]  ERROR - pplication.impl.LaterInvocator - Last Action: EditorLeft 

Alexander Chernikov - 27 Mar 08 17:02
7773, 8254: fix confirmed. Covers described case:
<%@ include file="<%=" %>