microsoft / microsoft/vscode-java-debug

Getting 'ERROR: transport error 202: recv error: Connection reset by peer' while debugging

Aperta
#1,269 7 commenti 2 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

ai-triaged bug disconnect
Lingua principale
TypeScript
Stelle
591
Fork
429
Merge medio
1g 9h
PR unite (30g)
19

Descrizione

Environment:

  • VS Code Version: 1.73.1
  • Extension Version: Language Support for Java(TM) by Red Hat v1.13.2022111603
  • JDK Type & Version: Oracle jdk1.8.0_351 - 32bit
  • OS Type & Version: Windows 10 Enterprise

Step to Reproduce:

  • Open an existing multi-module maven project in VS Code and wait until it is fully loaded. This project is relatively huge.
  • Setup launch.json with attach and launch for Java Project
  • The launch config is working fine. Still, after a couple of minutes, I get ERROR: transport error 202: recv error: Connection reset by peer in the terminal, and the debugger is disconnected.
  • The same happens with the attach config.
  • I am able to debug successfully as long as the debugger is not disconnected.
  • When debugging in the attach config, the debugger keeps on listening, and I can attach again, but it will disconnect after a couple of minutes.
  • Even after the debugger is disconnected, the application is still active.
  • The command used to start the debugger in attach mode is:
C:\apps\jdk1.8.0_271\bin\java.exe "-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=localhost:60082" '-Xincgc -Xms64m -Xmx950m' '-Dsun.security.ssl.allowUnsafeRenegotiation="true"' '-Djava.security.policy="policy.all"' '-Dpython.home=".."' '-Dcom.ibm.mq.cfg.useIBMCipherMappings="false"' '-Xbootclasspath/p:class1 class2 ...' '-cp' '.\classpath.jar' 'mainClassName'

Note: The command above to start the debugger is mostly provided as it is the same one used to launch the actual application.

Launch Config for attach:

        {
            "type": "java",
            "name": "Attach to java debug port 60082",
            "projectName": "sarora",
            "request": "attach",
            "hostName": "localhost",
            "port": "60082"
        }

Expected Behavior:

  • The debugger should remain active and should not disconnect

Actual Behavior:

  • The debugger is disconnecting after a couple of minutes.

Related Issues:
I found this report to be similar:
https://github.com/microsoft/vscode-java-debug/issues/164
and I followed the instructions to do the needed troubleshooting but it is not working.

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia riproducendo la disconnessione con le versioni indicate di VS Code, dell’estensione, di JDK e di Windows, la configurazione di attach e il grande progetto Maven multi-modulo. Confronta il comportamento con l’issue correlata 164; il lavoro è completato quando il debugger rimane connesso mentre l’applicazione continua a essere eseguita.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
java, typescript, vscode
Ambito
devtools
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.