Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gemini Plugin for IntelliJ is Causing Hangs #3202

Open
bcwhite-code opened this issue May 28, 2024 · 5 comments
Open

Gemini Plugin for IntelliJ is Causing Hangs #3202

bcwhite-code opened this issue May 28, 2024 · 5 comments

Comments

@bcwhite-code
Copy link

Every so often, sometimes multiple times per day, IntelliJ hangs with no way to recovery other than "end task" is the task Manager.

JetBrains support confirms that it's a problem with my Google plugin.
https://youtrack.jetbrains.com/issue/IDEA-353776

  • IDE type (e.g. IntelliJ, Pycharm): IntelliJ IDEA Ultimate Edition
  • IDE version: Build #IU-241.17011.79, built on May 22, 2024
  • Gemini Code Assist version: 24.5.1-api-version-223
  • Operating System: Windows 10
"AWT-EventQueue-0" prio=0 tid=0x0 nid=0x0 waiting on condition
     java.lang.Thread.State: WAITING
 on com.intellij.util.concurrency.Semaphore$Sync@2caafe65
	at [email protected]/jdk.internal.misc.Unsafe.park(Native Method)
	at [email protected]/java.util.concurrent.locks.LockSupport.park(LockSupport.java:211)
	at [email protected]/java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:715)
	at [email protected]/java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1047)
	at com.intellij.util.concurrency.Semaphore.waitForUnsafe(Semaphore.java:87)
	at com.intellij.util.concurrency.Semaphore.waitFor(Semaphore.java:79)
	at com.intellij.codeInsight.completion.AsyncCompletion.startThread(CompletionThreading.kt:105)
	at com.intellij.codeInsight.completion.CodeCompletionHandlerBase.startContributorThread(CodeCompletionHandlerBase.java:374)
	at com.intellij.codeInsight.completion.CodeCompletionHandlerBase.lambda$scheduleContributorsAfterAsyncCommit$6(CodeCompletionHandlerBase.java:325)
	at com.intellij.codeInsight.completion.CodeCompletionHandlerBase$$Lambda$7543/0x00000001039b8248.accept(Unknown Source)
	at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission.lambda$safeTransferToEdt$7(NonBlockingReadActionImpl.java:728)
	at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission$$Lambda$2862/0x00000001019b4000.run(Unknown Source)
	at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:209)
	at com.intellij.openapi.application.TransactionGuardImpl.access$100(TransactionGuardImpl.java:22)
	at com.intellij.openapi.application.TransactionGuardImpl$1.run(TransactionGuardImpl.java:191)
	at com.intellij.openapi.application.impl.RwLockHolder.runIntendedWriteActionOnCurrentThread(RwLockHolder.kt:204)
	at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:830)
	at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:419)
	at com.intellij.openapi.application.impl.RwLockHolder.runWithEnabledImplicitRead(RwLockHolder.kt:138)
	at com.intellij.openapi.application.impl.RwLockHolder.runWithImplicitRead(RwLockHolder.kt:129)
	at com.intellij.openapi.application.impl.ApplicationImpl.runWithImplicitRead(ApplicationImpl.java:1152)
	at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:81)
	at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:123)
	at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:43)
	at com.intellij.openapi.application.impl.FlushQueue$$Lambda$551/0x0000000100600d40.run(Unknown Source)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:792)
@ivanporty
Copy link
Contributor

Thanks for the report @bcwhite-code. We are looking into this

@ivanporty
Copy link
Contributor

This should be fixed in the latest release 24.6.1. Please update the plugin and let is know if this works for you or otherwise reopen. Thank you for your report again.

@imanabu
Copy link

imanabu commented Jun 13, 2024

I have 24.6.1, and this still freezes up. Typically this "seems" to happen when IntelliJ is trying to suggest a code completion inline with the editor. I will disable automatic generation for longer... options and see.

@ivanporty ivanporty reopened this Jun 13, 2024
@ivanporty
Copy link
Contributor

@imanabu thank you for your report. We would like to take a deeper look at this - could you please record a screencast of what is going on with freezes? How bad is the freeze - does it slow down, or hangs?
And, please submit the feedback -> Gemini status bar, Submit feedback with all logs, and add description that this is for GitHub issue #3202 by imanabu.
Thank you!

@sripasg
Copy link
Collaborator

sripasg commented Jun 20, 2024

@imanabu - it would be super helpful to get the feedback using the submit feedback mechanism as described in the previous comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants