Skip to content

RD. Exception in Concrete Executor logs - IDEA 2022.2.2 #1082

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

Closed
alisevych opened this issue Oct 4, 2022 · 2 comments
Closed

RD. Exception in Concrete Executor logs - IDEA 2022.2.2 #1082

alisevych opened this issue Oct 4, 2022 · 2 comments
Assignees
Labels
spec-regression Regression status-wont-fix This will not be worked on

Comments

@alisevych
Copy link
Member

alisevych commented Oct 4, 2022

Description

InterruptedException is thrown from CallsSynchronizer.stopProtocol

To Reproduce

  1. Run UTBotJava project in IntelliJ Idea 2022.1.4 / 2022.2.2

  2. Install plugin build from Engine process #2 #1067[plugin build](https://github.com/UnitTestBot/UTBotJava/actions/runs/3180816818

  3. Test generation was started (not sure which file exactly), not reproduced.

     Exception in Concrete Executor logs - IDEA 2022.2.2
    

14:10:38.054 | Error | SingleThreadScheduler | 15:Scheduler for Client59216 @coroutine#14 | | java.lang.InterruptedException
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2067)
at java.util.concurrent.ThreadPoolExecutor.awaitTermination(ThreadPoolExecutor.java:1475)
at com.jetbrains.rd.util.threading.SingleThreadScheduler$1.invoke(SingleThreadScheduler.kt:70)
at com.jetbrains.rd.util.threading.SingleThreadScheduler$1.invoke(SingleThreadScheduler.kt:66)
at com.jetbrains.rd.util.lifetime.LifetimeDefinition.destruct(RLifetime.kt:427)
at com.jetbrains.rd.util.lifetime.LifetimeDefinition.terminate(RLifetime.kt:408)
at com.jetbrains.rd.util.lifetime.LifetimeDefinition.terminate$default(RLifetime.kt:375)
at org.utbot.rd.CallsSynchronizer.stopProtocol(ClientProcessUtil.kt:108)
at org.utbot.instrumentation.process.ChildProcessKt$setup$5.invoke(ChildProcess.kt:141)
at org.utbot.instrumentation.process.ChildProcessKt$setup$5.invoke(ChildProcess.kt:139)
at org.utbot.rd.CallsSynchronizer$measureExecutionForTermination$2$1$1.invoke(ClientProcessUtil.kt:79)
at org.utbot.rd.CallsSynchronizer$measureExecutionForTermination$1.invokeSuspend(ClientProcessUtil.kt:69)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:284)
at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:85)
at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:59)
at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)
at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:38)
at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source)
at org.utbot.rd.CallsSynchronizer.measureExecutionForTermination(ClientProcessUtil.kt:66)
at org.utbot.rd.CallsSynchronizer$measureExecutionForTermination$2$1.invokeSuspend(ClientProcessUtil.kt:78)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:284)
at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:85)
at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:59)
at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)
at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:38)
at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source)
at org.utbot.rd.CallsSynchronizer$measureExecutionForTermination$2.invoke(ClientProcessUtil.kt:77)
at com.jetbrains.rd.framework.IRdEndpoint$set$1.invoke(TaskInterfaces.kt:182)
at com.jetbrains.rd.framework.IRdEndpoint$set$1.invoke(TaskInterfaces.kt:182)
at com.jetbrains.rd.framework.impl.RdCall.onWireReceived(RdTask.kt:360)
at com.jetbrains.rd.framework.MessageBroker$invoke$2$2.invoke(MessageBroker.kt:57)
at com.jetbrains.rd.framework.MessageBroker$invoke$2$2.invoke(MessageBroker.kt:56)
at com.jetbrains.rd.framework.impl.ProtocolContexts.readMessageContextAndInvoke(ProtocolContexts.kt:148)
at com.jetbrains.rd.framework.MessageBroker$invoke$2.invoke(MessageBroker.kt:56)
at com.jetbrains.rd.framework.MessageBroker$invoke$2.invoke(MessageBroker.kt:54)
at com.jetbrains.rd.util.threading.SingleThreadSchedulerBase.queue$lambda-3(SingleThreadScheduler.kt:41)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:750)

Originally posted by @alisevych in #1068 (comment)

@korifey korifey moved this to Todo in UTBot Java Oct 4, 2022
@alisevych alisevych added ctg-question Further information is requested spec-regression Regression labels Oct 4, 2022
@Domonion
Copy link
Collaborator

Domonion commented Oct 5, 2022

Cannot reproduce. During to stacktrace it is possible for this to happen when program is trying to shutdown itself gracefully, but IDEA does not wait for it and terminates problem forcefully, and so InterruptedException is thrown.

There is nothing special in it really, it works correctly anyway

@alisevych
Copy link
Member Author

Closing as not a bug

@alisevych alisevych closed this as not planned Won't fix, can't repro, duplicate, stale Oct 5, 2022
Repository owner moved this from Todo to Done in UTBot Java Oct 5, 2022
@alisevych alisevych added status-wont-fix This will not be worked on and removed ctg-question Further information is requested labels Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
spec-regression Regression status-wont-fix This will not be worked on
Projects
Archived in project
Development

No branches or pull requests

2 participants