jhen0409 / jhen0409/react-native-debugger

iOS: Simulator socket connection times out due to debugger

オープン
#32 コメント 21 件 リアクション 6 件 担当者 0 名 GitHub で見る
upstream
主要言語
JavaScript
スター
10.4k
フォーク
815
PR マージ指標
30日以内にマージされた PR はありません

説明

Hi there! Thanks for the debugger, I use it daily and find it very helpful. 😀

After I rebuild in Xcode and launch the simulator, the socket connection to the debugger times out roughly 5 seconds after starting the app and the simulator crashes. Once I reload the simulator using command + R, I no longer have socket connection issues until the next time I rebuild.

Here's a screenshot of the crash screen on the simulator:
glass

Here are some excerpts from my Xcode log that may be helpful:
```
2016-12-09 16:10:56.114498 bulbasaur[21709:8268397] [] __tcp_connection_start_block_invoke 53 sending event TCP_CONNECTION_EVENT_TLS_HANDSHAKE_COMPLETE in response to state ready and error (null)
2016-12-09 16:10:56.114739 bulbasaur[21709:8268397] [] tcp_connection_event_notify 53 event: TCP_CONNECTION_EVENT_TLS_HANDSHAKE_COMPLETE, reason: nw_connection event, should deliver: true
2016-12-09 16:10:56.115090 bulbasaur[21709:8268397] [] tcp_connection_get_statistics DNS: 3ms/4ms since start, TCP: 16ms/277ms since start, TLS: 11ms/287ms since start
2016-12-09 16:11:24.680962 bulbasaur[21709:8256238] [] tcp_connection_cancel 50
2016-12-09 16:11:24.681405 bulbasaur[21709:8268396] [] nw_socket_handle_socket_event Event mask: 0x4
2016-12-09 16:11:24.681745 bulbasaur[21709:8256238] [] tcp_connection_cancel 51
2016-12-09 16:11:24.682188 bulbasaur[21709:8268396] [] nw_socket_handle_socket_event Socket received WRITE_CLOSE event
2016-12-09 16:11:24.683606 bulbasaur[21709:8268396] [] __nw_socket_service_writes_block_invoke sendmsg(fd 20, 31 bytes): socket has been closed
2016-12-09 16:11:24.683948 bulbasaur[21709:8268396] [] nw_endpoint_flow_protocol_error [50.2 *IP address* cancelled socket-flow (null)] Socket protocol sent error: [32] Broken pipe
```

cc @kkemple

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、Xcode で再ビルドして iOS Simulator を起動した後に障害を再現し、そのうえでタイムアウト前後の、提供されている Xcode socket および TLS のログを確認します。再ビルド後もデバッガーソケットを使用でき、シミュレーターがクラッシュせず、復旧のために Command+R も必要としなくなれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
electron, javascript, react-native
領域
devtools, mobile, networking
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。