NativeScript / NativeScript/nativescript-cli
Exception will throw if you open URL with delay
未关闭
还没有人认领这个 Issue。
backlog
bug
debug
os: android
to-be-checked
- 主要语言
- JavaScript
- 星标
- 1.1k
- 派生
- 204
- 平均合并
- 1 天 9 小时
- 30 天内合并 PR
- 8
描述
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.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
使用 tns create app 和 tns debug android 重现该问题,包括延迟 URL 和两个标签页的情况。从 NanoWSD.java 和 NanoHTTPD.java 的堆栈帧开始,然后跟踪 Android 调试流程如何处理已关闭或延迟的连接。完成的标准是这些场景不再产生报告中的 broken-pipe 异常。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- android, java, javascript
- 领域
- cli, mobile-dev, networking
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100