Android Studio Meerkat 卡死

297 阅读1分钟

个人遇到的Android studio 卡死情况记录分享

问题版本:Android Studio Meerkat | 2024.3.1 Patch 1
我的解决方案:禁用Windsurf插件

在AS推送更新几天后点在线更新,安装后发现过了一段时间出现卡死现象。后来发现有一个必现途径是同时开启多个项目(在工作中我经常同时维护多个分支,开启多个窗口是常见情况。)。

根据尝试和分析,发现可能问题出在插件上。


SEVERE - io.grpc.internal.ManagedChannelOrphanWrapper - *~*~*~ Previous channel ManagedChannelImpl{logId=25, target=server.codeium.com:443} was garbage collected without being shut down! ~*~*~*
    Make sure to call shutdown()/shutdownNow()
java.lang.RuntimeException: ManagedChannel allocation site
	at io.grpc.internal.ManagedChannelOrphanWrapper$ManagedChannelReference.<init>(ManagedChannelOrphanWrapper.java:102)
	at io.grpc.internal.ManagedChannelOrphanWrapper.<init>(ManagedChannelOrphanWrapper.java:60)
	at io.grpc.internal.ManagedChannelOrphanWrapper.<init>(ManagedChannelOrphanWrapper.java:51)
	at io.grpc.internal.ManagedChannelImplBuilder.build(ManagedChannelImplBuilder.java:709)
	at io.grpc.ForwardingChannelBuilder2.build(ForwardingChannelBuilder2.java:272)
	at com.codeium.intellij.language_server.LanguageServerLauncherActivity$runActivity$2.invokeSuspend(LanguageServerLauncherActivity.kt:325)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
	at kotlinx.coroutines.internal.SoftLimitedDispatcher$Worker.run(SoftLimitedDispatcher.kt:125)
	at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:99)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:608)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:873)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:763)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:750)
        

在更新之前,我本地装有一个Windsurf ide,有pro订阅。在AS更新后,AS中弹出了一个Windsurf的首页,侧边栏多了一个与Windsurf中同款的AI助手。可能在开启多个项目窗口的时候,由于Windsurf插件没有足够的测试导致出现这个问题,从而导致AS受影响卡死。

禁用Windsurf插件后再次尝试开启多个项目窗口,卡死问题消失。