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

Jetbrains plugin timing out #421

Closed
MrMineO5 opened this issue Jul 20, 2022 · 5 comments
Closed

Jetbrains plugin timing out #421

MrMineO5 opened this issue Jul 20, 2022 · 5 comments
Assignees
Labels
a:bug Something isn't working in:interface-jetbrains

Comments

@MrMineO5
Copy link
Contributor

I'm not sure if I set the platform up wrong, but I am getting errors in my IntelliJ logs:

2022-07-20 18:19:48,634 [ 495191]   INFO - STDERR - (TIMEOUT,-1) Timed out after waiting 30000(ms) for a reply. address: __vertx.reply.334, repliedAddress: monitor.skywalking.service.currentService
2022-07-20 18:19:48,635 [ 495192]   INFO - STDERR - 	at io.vertx.core.eventbus.impl.ReplyHandler.handle(ReplyHandler.java:76)
2022-07-20 18:19:48,635 [ 495192]   INFO - STDERR - 	at io.vertx.core.eventbus.impl.ReplyHandler.handle(ReplyHandler.java:24)
2022-07-20 18:19:48,635 [ 495192]   INFO - STDERR - 	at io.vertx.core.impl.VertxImpl$InternalTimerHandler.handle(VertxImpl.java:899)
2022-07-20 18:19:48,635 [ 495192]   INFO - STDERR - 	at io.vertx.core.impl.VertxImpl$InternalTimerHandler.handle(VertxImpl.java:866)
2022-07-20 18:19:48,635 [ 495192]   INFO - STDERR - 	at io.vertx.core.impl.EventLoopContext.emit(EventLoopContext.java:56)
2022-07-20 18:19:48,635 [ 495192]   INFO - STDERR - 	at io.vertx.core.impl.ContextImpl.emit(ContextImpl.java:274)
2022-07-20 18:19:48,635 [ 495192]   INFO - STDERR - 	at io.vertx.core.impl.EventLoopContext.emit(EventLoopContext.java:23)
2022-07-20 18:19:48,635 [ 495192]   INFO - STDERR - 	at io.vertx.core.impl.AbstractContext.emit(AbstractContext.java:53)
2022-07-20 18:19:48,635 [ 495192]   INFO - STDERR - 	at io.vertx.core.impl.EventLoopContext.emit(EventLoopContext.java:23)
2022-07-20 18:19:48,635 [ 495192]   INFO - STDERR - 	at io.vertx.core.impl.VertxImpl$InternalTimerHandler.run(VertxImpl.java:889)
2022-07-20 18:19:48,635 [ 495192]   INFO - STDERR - 	at io.netty.util.concurrent.PromiseTask.runTask(PromiseTask.java:98)
2022-07-20 18:19:48,636 [ 495193]   INFO - STDERR - 	at io.netty.util.concurrent.ScheduledFutureTask.run(ScheduledFutureTask.java:170)
2022-07-20 18:19:48,636 [ 495193]   INFO - STDERR - 	at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)
2022-07-20 18:19:48,636 [ 495193]   INFO - STDERR - 	at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:469)
2022-07-20 18:19:48,636 [ 495193]   INFO - STDERR - 	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:503)
2022-07-20 18:19:48,636 [ 495193]   INFO - STDERR - 	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)
2022-07-20 18:19:48,636 [ 495193]   INFO - STDERR - 	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
2022-07-20 18:19:48,636 [ 495193]   INFO - STDERR - 	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
2022-07-20 18:19:48,636 [ 495193]   INFO - STDERR - 	at java.base/java.lang.Thread.run(Thread.java:829)

I think I have the platform set up correctly because before these errors start, the plugin initializes successfully:

2022-07-20 18:17:43,046 [ 369603]   INFO - STDOUT - 18:17:43.046 INFO  s.j.s.SourceMarkerPlugin - Discovering available services
2022-07-20 18:17:43,078 [ 369635]   INFO - STDOUT - 18:17:43.078 INFO  s.j.s.SourceMarkerPlugin - Live service available
2022-07-20 18:17:43,079 [ 369636]   INFO - STDOUT - 18:17:43.079 INFO  s.j.s.SourceMarkerPlugin - Live instruments available
2022-07-20 18:17:43,084 [ 369641]   INFO - STDOUT - 18:17:43.084 INFO  s.j.m.SourceMarker - Adding global source mark event listener: spp.jetbrains.sourcemarker.status.LiveStatusManager@6e5e403c
2022-07-20 18:17:43,092 [ 369649]   INFO - STDOUT - 18:17:43.091 INFO  s.j.s.SourceMarkerPlugin - Live views available
2022-07-20 18:17:43,092 [ 369649]   INFO - STDOUT - 18:17:43.092 DEBUG s.j.m.s.SkywalkingMonitor - Setting up Apache SkyWalking monitor
2022-07-20 18:17:43,093 [ 369650]   INFO - STDOUT - 18:17:43.093 DEBUG s.j.m.s.SkywalkingMonitor - Apache SkyWalking server: http://localhost:12800/graphql
2022-07-20 18:17:43,117 [ 369674]   INFO - STDOUT - 18:17:43.116 INFO  s.j.m.s.SkywalkingClient - Registering Apache SkyWalking codecs
2022-07-20 18:17:43,118 [ 369675]   INFO - STDOUT - 18:17:43.118 INFO  s.j.m.s.SkywalkingMonitor - Successfully setup Apache SkyWalking monitor
2022-07-20 18:17:43,119 [ 369676]   INFO - STDOUT - 18:17:43.118 INFO  s.j.s.p.PortalController - Initializing portal
2022-07-20 18:17:43,119 [ 369676]   INFO - STDOUT - 18:17:43.119 INFO  s.j.s.p.PortalController - Initializing portal server
2022-07-20 18:17:43,125 [ 369682]   INFO - STDOUT - 18:17:43.124 INFO  s.j.s.p.PortalController - Portal server initialized
2022-07-20 18:17:43,125 [ 369682]   INFO - STDOUT - 18:17:43.125 INFO  s.j.m.SourceMarker - Adding global source mark event listener: spp.jetbrains.sourcemarker.portal.PortalController$$Lambda$4783/0x00000001030c3440@63159e7c
2022-07-20 18:17:43,125 [ 369682]   INFO - STDOUT - 18:17:43.125 INFO  s.j.s.p.PortalController - Portal initialized
2022-07-20 18:17:43,134 [ 369691]   INFO - STDOUT - 18:17:43.134 INFO  s.j.s.s.LiveInstrumentManager - Found 0 active live status bars
@BFergerson BFergerson self-assigned this Jul 20, 2022
@BFergerson BFergerson added the a:bug Something isn't working label Jul 20, 2022
@BFergerson
Copy link
Member

It looks like that should be changed to a warning. It's just saying that it can't find any applications connected to the platform. I've fixed your other issue with downloading the probe. If you update your platform you can download the probe and connect an application to the platform so you have something to feed data to your IDE.

@MrMineO5
Copy link
Contributor Author

MrMineO5 commented Jul 20, 2022

I had a lot of difficulty actually finding this error, since all exceptions in coroutines end up throwing a fatal exception because the CoroutineExceptionHandlerImplKt class cannot be found (IDEA-277886). I ended up creating that class myself just to debug what the root cause of the issue is. I'm not sure if there is a way to fix this, since the issue originates in vertx.

@BFergerson
Copy link
Member

Apologies for the trouble. I've run into this one before and I have an idea on how to trigger it. I'll work on fixing it soon.
I'm pretty sure you can safely ignore it for now. Worst case scenario, close the file and open it again if something isn't working.

If you're able to recreate it consistently, please let me know.

@MrMineO5
Copy link
Contributor Author

MrMineO5 commented Jul 21, 2022

I managed to reproduce the error by using the jetbrains decompiler to look at com.intellij.openapi.project.Project#registerComponentInstance method. The actual error being thrown in the coroutine is

2022-07-21 09:17:56,057 [3663361]   INFO - STDERR - java.lang.NullPointerException
2022-07-21 09:17:56,057 [3663361]   INFO - STDERR - 	at spp.jetbrains.marker.source.JVMMarkerUtils.getFullyQualifiedName(JVMMarkerUtils.kt:536)
2022-07-21 09:17:56,057 [3663361]   INFO - STDERR - 	at spp.jetbrains.marker.jvm.JVMArtifactNamingService.getFullyQualifiedName(JVMArtifactNamingService.kt:41)
2022-07-21 09:17:56,058 [3663362]   INFO - STDERR - 	at spp.jetbrains.marker.impl.ArtifactNamingService.getFullyQualifiedName(ArtifactNamingService.kt:45)
2022-07-21 09:17:56,058 [3663362]   INFO - STDERR - 	at spp.jetbrains.marker.source.mark.api.MethodSourceMark.<init>(MethodSourceMark.kt:48)
2022-07-21 09:17:56,058 [3663362]   INFO - STDERR - 	at spp.jetbrains.marker.source.mark.guide.MethodGuideMark.<init>(MethodGuideMark.kt:36)
2022-07-21 09:17:56,058 [3663362]   INFO - STDERR - 	at spp.jetbrains.marker.source.SourceFileMarker.createMethodSourceMark(SourceFileMarker.kt:253)
2022-07-21 09:17:56,058 [3663362]   INFO - STDERR - 	at spp.jetbrains.marker.jvm.JVMGuideProvider.makeMethodGuideMark$lambda-0(JVMGuideProvider.kt:46)
2022-07-21 09:17:56,058 [3663362]   INFO - STDERR - 	at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:907)
2022-07-21 09:17:56,058 [3663362]   INFO - STDERR - 	at spp.jetbrains.marker.jvm.JVMGuideProvider.makeMethodGuideMark(JVMGuideProvider.kt:45)
2022-07-21 09:17:56,058 [3663362]   INFO - STDERR - 	at spp.jetbrains.marker.jvm.JVMGuideProvider.access$makeMethodGuideMark(JVMGuideProvider.kt:29)
2022-07-21 09:17:56,058 [3663362]   INFO - STDERR - 	at spp.jetbrains.marker.jvm.JVMGuideProvider$determineGuideMarks$1.visitElement(JVMGuideProvider.kt:38)
2022-07-21 09:17:56,059 [3663363]   INFO - STDERR - 	at org.jetbrains.kotlin.psi.KtElementImplStub.accept(KtElementImplStub.java:52)
2022-07-21 09:17:56,059 [3663363]   INFO - STDERR - 	at com.intellij.psi.impl.source.tree.SharedImplUtil.acceptChildren(SharedImplUtil.java:185)
2022-07-21 09:17:56,060 [3663364]   INFO - STDERR - 	at com.intellij.psi.impl.source.PsiFileImpl.acceptChildren(PsiFileImpl.java:754)
2022-07-21 09:17:56,061 [3663365]   INFO - STDERR - 	at spp.jetbrains.marker.jvm.JVMGuideProvider.determineGuideMarks(JVMGuideProvider.kt:32)
2022-07-21 09:17:56,061 [3663365]   INFO - STDERR - 	at spp.jetbrains.marker.impl.SourceGuideProvider.determineGuideMarks(SourceGuideProvider.kt:43)
2022-07-21 09:17:56,061 [3663365]   INFO - STDERR - 	at spp.jetbrains.marker.SourceMarker$getSourceFileMarker$2.invokeSuspend(SourceMarker.kt:91)
2022-07-21 09:17:56,061 [3663365]   INFO - STDERR - 	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
2022-07-21 09:17:56,061 [3663365]   INFO - STDERR - 	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
2022-07-21 09:17:56,061 [3663365]   INFO - STDERR - 	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
2022-07-21 09:17:56,061 [3663365]   INFO - STDERR - 	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
2022-07-21 09:17:56,061 [3663365]   INFO - STDERR - 	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
2022-07-21 09:17:56,061 [3663365]   INFO - STDERR - 	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)

(possibly unrelated error that showed up in the IDE at the same time)

During querying provider Kotlin source line markers (class spp.jetbrains.marker.jvm.JVMLineMarkerProvider$KotlinDescriptor)

java.lang.ClassCastException: class org.jetbrains.uast.KotlinUDeclarationsExpression cannot be cast to class org.jetbrains.uast.UMethod (org.jetbrains.uast.KotlinUDeclarationsExpression is in unnamed module of loader com.intellij.ide.plugins.cl.PluginClassLoader @14204673; org.jetbrains.uast.UMethod is in unnamed module of loader com.intellij.ide.plugins.cl.PluginClassLoader @570f9532)
	at spp.jetbrains.marker.jvm.JVMLineMarkerProvider.getMethodGutterMark(JVMLineMarkerProvider.kt:99)
	at spp.jetbrains.marker.jvm.JVMLineMarkerProvider.getLineMarkerInfo(JVMLineMarkerProvider.kt:62)
	at spp.jetbrains.marker.plugin.SourceLineMarkerProvider.getLineMarkerInfo(SourceLineMarkerProvider.kt:48)
	at com.intellij.codeInsight.daemon.impl.LineMarkersPass.queryProviders(LineMarkersPass.java:171)
	at com.intellij.codeInsight.daemon.impl.LineMarkersPass.lambda$doCollectInformation$3(LineMarkersPass.java:96)
	at com.intellij.codeInsight.daemon.impl.Divider.divideInsideAndOutsideInOneRoot(Divider.java:87)
	at com.intellij.codeInsight.daemon.impl.LineMarkersPass.doCollectInformation(LineMarkersPass.java:91)
	at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:57)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$1(PassExecutorService.java:419)
	at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1152)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$2(PassExecutorService.java:412)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$12(CoreProgressManager.java:608)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:683)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:639)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:607)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:60)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.doRun(PassExecutorService.java:411)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$run$0(PassExecutorService.java:387)
	at com.intellij.openapi.application.impl.ReadMostlyRWLock.executeByImpatientReader(ReadMostlyRWLock.java:174)
	at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:213)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:385)
	at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1.exec(JobLauncherImpl.java:184)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)

@BFergerson BFergerson added this to the v0.6.1 milestone Jul 22, 2022
@BFergerson BFergerson removed this from the v0.6.1 milestone Jul 22, 2022
@BFergerson BFergerson added in:interface-jetbrains a:bug Something isn't working and removed a:bug Something isn't working in:live-platform labels Jul 25, 2022
BFergerson added a commit to sourceplusplus/jetbrains-commander that referenced this issue Aug 3, 2022
refactor: return null on no service instead of throwing err

ref: sourceplusplus/sourceplusplus#421
BFergerson added a commit to sourceplusplus/interface-jetbrains that referenced this issue Aug 3, 2022
refactor: return null on no service instead of throwing err

ref: sourceplusplus/sourceplusplus#421
@BFergerson
Copy link
Member

sourceplusplus/interface-jetbrains#785 created for the timeout issue and sourceplusplus/interface-jetbrains@fcae8c6 is a temporary fix for the NPE.

Just saw the third issue. I'm aware of that issue happening. I'll leave this issue open until I catch it.

BFergerson added a commit to sourceplusplus/interface-jetbrains that referenced this issue Aug 3, 2022
* refactor: added logging

* fix: trigger indicator stopped on guide mark removed

* fix: added warning for no service
refactor: return null on no service instead of throwing err

ref: sourceplusplus/sourceplusplus#421

* refactor: remove unused code

* fix: ensure live plugins closed before opening again
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:bug Something isn't working in:interface-jetbrains
Projects
Archived in project
Development

No branches or pull requests

2 participants