Skip to content

Log ui with id 'MAIN' was already added. Existing uis error after opening project for the first time and disabling "Show the log in the editor window" #273

Description

@Undefined-User

Description

I using version 1.1.6 and uncheck Settings > Version Control > Log > Show the log in the editor window and Settings > Appearance and Behavior > System Settings > Store project settings in the project root directory, when first open an project, I will see error text below, I need reopen project to recover:

Unhandled exception in [Kernel@0ekej3op7gm0bas5q6pi, Rete(abortOnError=false, commands=capacity=2147483647,data=[onReceive], reteState=kotlinx.coroutines.flow.StateFlowImpl@66a3ffec, dbSource=ReteDbSource(reteState=kotlinx.coroutines.flow.StateFlowImpl@66a3ffec)), DbSourceContextElement(kernel Kernel@0ekej3op7gm0bas5q6pi), ComponentManager(ProjectImpl@1904948679), ClientId(value=Host), CoroutineName(UI scope of Vcs Project Log for [/Volumes/T9_APFS/kwai/github/rebased]), Dispatchers.EDT.immediate]

com.intellij.openapi.diagnostic.UnhandledException: Log ui with id 'MAIN' was already added. Existing uis:
git4idea.ui.branch.dashboard.BranchesVcsLogUi@b68acf3
	at com.intellij.openapi.application.impl.ExceptionsKt.processUnhandledException(exceptions.kt:55)
	at com.intellij.openapi.application.impl.CoroutineExceptionHandlerImpl.handleException(CoroutineExceptionHandlerImpl.kt:27)
	at kotlinx.coroutines.internal.CoroutineExceptionHandlerImpl_commonKt.handleUncaughtCoroutineException(CoroutineExceptionHandlerImpl.common.kt:34)
	at kotlinx.coroutines.CoroutineExceptionHandlerKt.handleCoroutineException(CoroutineExceptionHandler.kt:31)
	at kotlinx.coroutines.StandaloneCoroutine.handleJobException(Builders.common.kt:192)
	at kotlinx.coroutines.JobSupport.finalizeFinishingState(JobSupport.kt:229)
	at kotlinx.coroutines.JobSupport.tryMakeCompletingSlowPath(JobSupport.kt:953)
	at kotlinx.coroutines.JobSupport.tryMakeCompleting(JobSupport.kt:901)
	at kotlinx.coroutines.JobSupport.makeCompletingOnce$kotlinx_coroutines_core(JobSupport.kt:866)
	at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:99)
	at kotlinx.coroutines.debug.internal.DebugProbesImpl$CoroutineOwner.resumeWith(DebugProbesImpl.kt:545)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:47)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
	at com.intellij.openapi.application.impl.DispatchedRunnable.run(DispatchedRunnable.kt:42)
	at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:236)
	at com.intellij.openapi.application.TransactionGuardImpl.access$100(TransactionGuardImpl.java:22)
	at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:218)
	at com.intellij.openapi.application.impl.NonBlockingFlushQueue.runNextEvent$lambda$1$1$0(NonBlockingFlushQueue.kt:334)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:928)
	at com.intellij.openapi.application.impl.NonBlockingFlushQueue.runNextEvent$lambda$1$1(NonBlockingFlushQueue.kt:333)
	at com.intellij.concurrency.ThreadContext.resetThreadContext(threadContext.kt:294)
	at com.intellij.openapi.application.impl.NonBlockingFlushQueue.runNextEvent$lambda$1(NonBlockingFlushQueue.kt:330)
	at com.intellij.platform.locking.impl.NestedLocksThreadingSupport.tryRunWriteIntentReadAction(NestedLocksThreadingSupport.kt:747)
	at com.intellij.openapi.application.impl.NonBlockingFlushQueue.runNextEvent(NonBlockingFlushQueue.kt:326)
	at com.intellij.openapi.application.impl.NonBlockingFlushQueue.flushNow(NonBlockingFlushQueue.kt:305)
	at com.intellij.openapi.application.impl.NonBlockingFlushQueue.FLUSH_NOW$lambda$0(NonBlockingFlushQueue.kt:167)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:323)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:732)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:711)
	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.kt:721)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.kt:574)
	at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$0$0$0(IdeEventQueue.kt:378)
	at com.intellij.ide.IdeEventQueueKt.performActivity$lambda$0(IdeEventQueue.kt:1111)
	at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:106)
	at com.intellij.ide.IdeEventQueueKt.performActivity(IdeEventQueue.kt:1111)
	at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$0(IdeEventQueue.kt:376)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:416)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)
Caused by: com.intellij.vcs.log.impl.CannotAddVcsLogWindowException: Log ui with id 'MAIN' was already added. Existing uis:
git4idea.ui.branch.dashboard.BranchesVcsLogUi@b68acf3
	at com.intellij.vcs.log.impl.VcsLogManager.createLogUi(VcsLogManager.kt:222)
	at com.intellij.vcs.log.impl.IdeVcsLogManager$createUi$1$1.emit(IdeVcsLogManager.kt:70)
	at com.intellij.vcs.log.impl.IdeVcsLogManager$createUi$1$1.emit(IdeVcsLogManager.kt:62)
	at kotlinx.coroutines.flow.internal.FlowValueWrapperInternalKt.emitInternal(FlowValueWrapperInternal.kt:39)
	at kotlinx.coroutines.flow.StateFlowImpl.collect(StateFlow.kt:406)
	at kotlinx.coroutines.flow.StateFlowImpl$collect$1.invokeSuspend(StateFlow.kt)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:34)
	... 31 more
	Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [Kernel@0ekej3op7gm0bas5q6pi, Rete(abortOnError=false, commands=capacity=2147483647,data=[onReceive], reteState=kotlinx.coroutines.flow.StateFlowImpl@66a3ffec, dbSource=ReteDbSource(reteState=kotlinx.coroutines.flow.StateFlowImpl@66a3ffec)), DbSourceContextElement(kernel Kernel@0ekej3op7gm0bas5q6pi), ComponentManager(ProjectImpl@1904948679), ClientId(value=Host), CoroutineName(UI scope of Vcs Project Log for [/Volumes/T9_APFS/kwai/github/rebased]), StandaloneCoroutine{Cancelled}@17af1e9, Dispatchers.EDT.immediate]
Caused by: java.lang.Throwable: Creation trace for git4idea.ui.branch.dashboard.BranchesVcsLogUi@b68acf3
	at com.intellij.vcs.log.impl.VcsLogManager.createLogUi(VcsLogManager.kt:227)
	at com.intellij.vcs.log.impl.IdeVcsLogManager$createUi$1$1.emit(IdeVcsLogManager.kt:70)
	at com.intellij.vcs.log.impl.IdeVcsLogManager$createUi$1$1.emit(IdeVcsLogManager.kt:62)
	at kotlinx.coroutines.flow.internal.FlowValueWrapperInternalKt.emitInternal(FlowValueWrapperInternal.kt:39)
	at kotlinx.coroutines.flow.StateFlowImpl.collect(StateFlow.kt:406)
	at com.intellij.vcs.log.impl.IdeVcsLogManager$createUi$1.invokeSuspend(IdeVcsLogManager.kt:62)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:34)
	at kotlinx.coroutines.internal.DispatchedContinuationKt.resumeCancellableWith(DispatchedContinuation.kt:379)
	at kotlinx.coroutines.intrinsics.CancellableKt.startCoroutineCancellable(Cancellable.kt:26)
	at kotlinx.coroutines.CoroutineStart.invoke(CoroutineStart.kt:358)
	at kotlinx.coroutines.AbstractCoroutine.start(AbstractCoroutine.kt:134)
	at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch(Builders.common.kt:53)
	at kotlinx.coroutines.BuildersKt.launch(Unknown Source)
	at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch$default(Builders.common.kt:44)
	at kotlinx.coroutines.BuildersKt.launch$default(Unknown Source)
	at com.intellij.vcs.log.impl.IdeVcsLogManager.createUi(IdeVcsLogManager.kt:61)
	at com.intellij.vcs.log.impl.IdeVcsProjectLog$createLogManager$3$1.invokeSuspend(IdeVcsProjectLog.kt:62)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:34)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
	at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:221)
	... 26 more

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions