Giter Club home page Giter Club logo

Comments (5)

ptrthomas avatar ptrthomas commented on June 9, 2024

@jansorg can you advise ?

from intellij-plugin.

jansorg avatar jansorg commented on June 9, 2024

Thanks for reporting and providing the stack dump!

The AWT event queue thread is processing the close of the current project:

        at com.intellij.configurationStore.SaveAndSyncHandlerImpl.saveSettingsUnderModalProgress(SaveAndSyncHandlerImpl.kt:265)
	at com.intellij.openapi.project.impl.ProjectManagerImpl.closeProject(ProjectManagerImpl.kt:370)
	at com.intellij.openapi.project.impl.ProjectManagerImpl.closeProject$default(ProjectManagerImpl.kt:316)
	at com.intellij.openapi.project.impl.ProjectManagerImpl.closeAndDispose(ProjectManagerImpl.kt:416)
	at com.intellij.ide.actions.CloseProjectsActionBase.actionPerformed(CloseProjectsActionBase.kt:26)

It's launching a WriteAction and is waiting for ReadActions to finish.
Even though the KarateLexer is currently processing a file (as part of the indexing), it's unclear if it's the cause of the freeze or if it's working as intended and the dump was just taken at a moment when it was processing a .feature file.

AFAIK, the problems view is also executing a read action:


"Alarm Pool" prio=0 tid=0x0 nid=0x0 waiting on condition
     java.lang.Thread.State: TIMED_WAITING
 on com.intellij.openapi.application.impl.ReadMostlyRWLock@3c753be7
	at [email protected]/jdk.internal.misc.Unsafe.park(Native Method)
	at [email protected]/java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:252)
	at com.intellij.openapi.application.impl.ReadMostlyRWLock.waitABit(ReadMostlyRWLock.java:164)
	at com.intellij.openapi.application.impl.ReadMostlyRWLock.startRead(ReadMostlyRWLock.java:128)
	at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:921)
	at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:76)
	at com.intellij.analysis.problemsView.toolWindow.HighlightingPanel.updateStatus(HighlightingPanel.kt:150)

I checked KarateLexer and couldn't spot an obvious bug.
Even if Karate is the culprit of this freeze, we're unable to fix it without the content of the indexed .feature file. AFAIK this file is unavailable.

from intellij-plugin.

ljchen1 avatar ljchen1 commented on June 9, 2024

Even though the KarateLexer is currently processing a file (as part of the indexing), it's unclear if it's the cause of the freeze or if it's working as intended and the dump was just taken at a moment when it was processing a .feature file.

I have attached all thread dump files here. In some thread dumps, you can see it stuck in Karate related code for more than 30 seconds. Some are near 100 seconds.
IntelliJIdea2023.zip

Even if Karate is the culprit of this freeze, we're unable to fix it without the content of the indexed .feature file. AFAIK this file is unavailable.

We will ask the user about it. If we can get it, we will share it here.

from intellij-plugin.

jansorg avatar jansorg commented on June 9, 2024

Thanks! I've found and fixed a cause of an endless lexer loop. It'll be published ASAP.

from intellij-plugin.

ptrthomas avatar ptrthomas commented on June 9, 2024

new version 1.7.6.356-232 has been approved and is available: https://plugins.jetbrains.com/plugin/19232-karate/versions

from intellij-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.