NativeScript / NativeScript/nativescript-cli
Exception will throw if you open URL with delay
Offen
Dieses Issue hat noch niemand übernommen.
backlog
bug
debug
os: android
to-be-checked
- Vorherrschende Sprache
- JavaScript
- Sterne
- 1.1k
- Forks
- 204
- Ø Merge
- 1 T. 9 Std.
- Gemergte PRs (30 T.)
- 8
Beschreibung
Tell us about the problem
exception will throw if you open URL with delay
Which platform(s) does your issue occur on?
Android
Please provide the following version numbers that your issue occurs with:
- CLI: 4.1.0-rc
- Runtime(s): 4.1.1-rc
Please tell us how to recreate the issue in as much detail as possible.
- tns create app
- tns debug android
Please don't open the URL. Open it after 10 min(for example). You will see the following exception:
System.err: java.io.IOException: Broken pipe
System.err: at android.net.LocalSocketImpl.write_native(Native Method)
System.err: at android.net.LocalSocketImpl.-wrap2(Unknown Source:0)
System.err: at android.net.LocalSocketImpl$SocketOutputStream.write(LocalSocketImpl.java:154)
System.err: at fi.iki.elonen.NanoWSD$WebSocketFrame.write(NanoWSD.java:700)
System.err: at fi.iki.elonen.NanoWSD$WebSocket.sendFrame(NanoWSD.java:271)
System.err: at fi.iki.elonen.NanoWSD$WebSocket.close(NanoWSD.java:135)
System.err: at fi.iki.elonen.NanoWSD$WebSocket.handleCloseFrame(NanoWSD.java:184)
System.err: at fi.iki.elonen.NanoWSD$WebSocket.handleWebsocketFrame(NanoWSD.java:218)
System.err: at fi.iki.elonen.NanoWSD$WebSocket.readWebsocket(NanoWSD.java:246)
System.err: at fi.iki.elonen.NanoWSD$WebSocket.access$200(NanoWSD.java:65)
System.err: at fi.iki.elonen.NanoWSD$WebSocket$1.send(NanoWSD.java:88)
System.err: at fi.iki.elonen.NanoHTTPD$HTTPSession.execute(NanoHTTPD.java:1011)
System.err: at fi.iki.elonen.NanoHTTPD$LocalClientHandler.run(NanoHTTPD.java:251)
System.err: at java.lang.Thread.run(Thread.java:764)
another case to reproduce this exception is:
- tns create app
- tns debug android
- copy URL from terminal and open 2 tabs.
- close the second tab and you will see the exception.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Reproduziere das Problem mit tns create app und tns debug android, einschließlich der Fälle mit verzögerter URL und zwei Tabs. Beginne bei den Stack-Frames NanoWSD.java und NanoHTTPD.java und verfolge anschließend, wie der Android-Debug-Ablauf mit einer geschlossenen oder verzögerten Verbindung umgeht. Als erledigt gilt die Aufgabe, wenn diese Szenarien nicht mehr die gemeldete broken-pipe-Exception erzeugen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- android, java, javascript
- Bereich
- cli, mobile-dev, networking
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100