Skip to content

Conversation

@Will-ShaoHua
Copy link
Contributor

@Will-ShaoHua Will-ShaoHua commented Oct 23, 2024


java.lang.AssertionError: Thread leaked: Thread[#38,DefaultDispatcher-worker-5 @software.aws.toolkits.jetbrains.services.amazonq.project.ProjectContextController#1087,5,main] (alive) WAITING
--- its stacktrace:
 at java.base/sun.nio.ch.Net.poll(Native Method)
 at java.base/sun.nio.ch.NioSocketImpl.park(NioSocketImpl.java:191)
 at java.base/sun.nio.ch.NioSocketImpl.timedRead(NioSocketImpl.java:280)
 at java.base/sun.nio.ch.NioSocketImpl.implRead(NioSocketImpl.java:304)
 at java.base/sun.nio.ch.NioSocketImpl.read(NioSocketImpl.java:346)
 at java.base/sun.nio.ch.NioSocketImpl$1.read(NioSocketImpl.java:796)
 at java.base/java.net.Socket$SocketInputStream.read(Socket.java:1099)
 at java.base/sun.security.ssl.SSLSocketInputRecord.read(SSLSocketInputRecord.java:489)
 at java.base/sun.security.ssl.SSLSocketInputRecord.readHeader(SSLSocketInputRecord.java:483)
 at java.base/sun.security.ssl.SSLSocketInputRecord.decode(SSLSocketInputRecord.java:160)
 at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:111)
 at java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1506)
 at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1421)
 at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:455)
 at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:426)
 at java.base/sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:586)
 at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:187)
 at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1675)
 at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1599)
 at java.base/java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:531)
 at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:307)
 at com.intellij.util.io.HttpRequests.openConnection(HttpRequests.java:626)
 at com.intellij.util.io.HttpRequests$RequestImpl.getConnection(HttpRequests.java:366)
 at com.intellij.util.io.HttpRequests$RequestImpl.doReadBytes(HttpRequests.java:442)
 at com.intellij.util.io.HttpRequests$RequestImpl.readString(HttpRequests.java:431)
 at com.intellij.util.io.RequestBuilder.lambda$readString$5(RequestBuilder.java:85)
 at com.intellij.util.io.HttpRequests.doProcess(HttpRequests.java:529)
 at com.intellij.util.io.HttpRequests.process(HttpRequests.java:511)
 at com.intellij.util.io.HttpRequests$RequestBuilderImpl.connect(HttpRequests.java:340)
 at com.intellij.util.io.RequestBuilder.readString(RequestBuilder.java:85)
 at com.intellij.util.io.RequestBuilder.readString(RequestBuilder.java:89)
 at software.aws.toolkits.jetbrains.core.HttpUtilsKt.getTextFromUrl(HttpUtils.kt:18)
 at software.aws.toolkits.jetbrains.services.amazonq.project.manifest.ManifestManager.fetchFromRemoteAndSave(ManifestManager.kt:100)
 at software.aws.toolkits.jetbrains.services.amazonq.project.manifest.ManifestManager.getManifest(ManifestManager.kt:68)
 at software.aws.toolkits.jetbrains.services.amazonq.project.EncoderServer.downloadArtifactsIfNeeded(EncoderServer.kt:155)
 at software.aws.toolkits.jetbrains.services.amazonq.project.EncoderServer.downloadArtifactsAndStartServer(EncoderServer.kt:59)
 at software.aws.toolkits.jetbrains.services.amazonq.project.ProjectContextController$initJob$1.invokeSuspend(ProjectContextController.kt:28)
 at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
 at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
 at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
 at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
 at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
 at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)
---
(its trace after 10 seconds wait:) Thread[#38,DefaultDispatcher-worker-5 @software.aws.toolkits.jetbrains.services.amazonq.project.ProjectContextController#1087,5,main] (alive) WAITING

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Description

Checklist

  • My code follows the code style of this project
  • I have added tests to cover my changes
  • A short description of the change has been added to the CHANGELOG if the change is customer-facing in the IDE.
  • I have added metrics for my changes (if required)

License

I confirm that my contribution is made under the terms of the Apache 2.0 license.

@Will-ShaoHua Will-ShaoHua requested a review from a team as a code owner October 23, 2024 13:25
@Will-ShaoHua Will-ShaoHua changed the title Fix test test(amazonq) should not install and try run encoderserver in test env Oct 23, 2024
@Will-ShaoHua Will-ShaoHua requested a review from rli October 23, 2024 14:27
@Will-ShaoHua
Copy link
Contributor Author

/retryBuilds

@Will-ShaoHua Will-ShaoHua merged commit 6a849a8 into aws:main Oct 23, 2024
12 of 13 checks passed
@Will-ShaoHua Will-ShaoHua deleted the fix-test branch October 23, 2024 18:48
@Will-ShaoHua Will-ShaoHua changed the title test(amazonq) should not install and try run encoderserver in test env fix(amazonq) should not install and try run encoderserver in test env Oct 23, 2024
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

Successfully merging this pull request may close these issues.

2 participants