Jan
25
1 day ago
started
started time in 1 day ago
started
started time in 1 day ago
Jan
21
5 days ago
Activity icon
issue

Jacky-LinPeng issue fpillet/NSLogger

Jacky-LinPeng
Jacky-LinPeng

real device (iPhone X) connect fail!

Mac & iPhone connect the same WIFI

image

AppClient set code as: LoggerSetViewerHost(nil, "192.168.0.103" as NSString, 50000) Logger.shared.log(.app, .important, "Hello, Swift Logger Tester! 🤖")

but Xcode console output:

2022-01-21 16:10:52.884979+0800 NSLoggerTestApp[31062:1846725] [connection] nw_socket_handle_socket_event [C1:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:52.896195+0800 NSLoggerTestApp[31062:1842909] [connection] nw_connection_get_connected_socket [C1] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:52.896645+0800 NSLoggerTestApp[31062:1842909] TCP Conn 0x283f80000 Failed : error 0:61 [61] 2022-01-21 16:10:52.915042+0800 NSLoggerTestApp[31062:1846725] [connection] nw_socket_handle_socket_event [C2:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:52.917360+0800 NSLoggerTestApp[31062:1846725] [connection] nw_connection_get_connected_socket [C2] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:52.917707+0800 NSLoggerTestApp[31062:1846725] TCP Conn 0x283f800b0 Failed : error 0:61 [61] 2022-01-21 16:10:52.929680+0800 NSLoggerTestApp[31062:1846725] [connection] nw_socket_handle_socket_event [C3:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:52.931559+0800 NSLoggerTestApp[31062:1846725] [connection] nw_connection_get_connected_socket [C3] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:52.931949+0800 NSLoggerTestApp[31062:1846725] TCP Conn 0x283f9c2c0 Failed : error 0:61 [61] 2022-01-21 16:10:52.942965+0800 NSLoggerTestApp[31062:1842909] [connection] nw_socket_handle_socket_event [C4:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:52.944745+0800 NSLoggerTestApp[31062:1842909] [connection] nw_connection_get_connected_socket [C4] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:52.945048+0800 NSLoggerTestApp[31062:1842909] TCP Conn 0x283f9c370 Failed : error 0:61 [61] 2022-01-21 16:10:52.991143+0800 NSLoggerTestApp[31062:1842909] [connection] nw_socket_handle_socket_event [C5:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:52.993265+0800 NSLoggerTestApp[31062:1842909] [connection] nw_connection_get_connected_socket [C5] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:52.993593+0800 NSLoggerTestApp[31062:1842909] TCP Conn 0x283f80000 Failed : error 0:61 [61] 2022-01-21 16:10:53.019009+0800 NSLoggerTestApp[31062:1842848] [connection] nw_socket_handle_socket_event [C6:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:53.022116+0800 NSLoggerTestApp[31062:1842909] [connection] nw_connection_get_connected_socket [C6] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:53.022581+0800 NSLoggerTestApp[31062:1842909] TCP Conn 0x283f9c370 Failed : error 0:61 [61] 2022-01-21 16:10:53.031920+0800 NSLoggerTestApp[31062:1842848] [connection] nw_socket_handle_socket_event [C7:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:53.033522+0800 NSLoggerTestApp[31062:1842848] [connection] nw_connection_get_connected_socket [C7] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:53.033760+0800 NSLoggerTestApp[31062:1842848] TCP Conn 0x283f98160 Failed : error 0:61 [61] 2022-01-21 16:10:53.043162+0800 NSLoggerTestApp[31062:1842909] [connection] nw_socket_handle_socket_event [C8:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:53.052717+0800 NSLoggerTestApp[31062:1842909] [connection] nw_connection_get_connected_socket [C8] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:53.053081+0800 NSLoggerTestApp[31062:1842909] TCP Conn 0x283f80000 Failed : error 0:61 [61] 2022-01-21 16:10:53.071814+0800 NSLoggerTestApp[31062:1842909] [connection] nw_socket_handle_socket_event [C9:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:53.073365+0800 NSLoggerTestApp[31062:1842909] [connection] nw_connection_get_connected_socket [C9] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:53.073608+0800 NSLoggerTestApp[31062:1842909] TCP Conn 0x283f84000 Failed : error 0:61 [61] 2022-01-21 16:10:53.083155+0800 NSLoggerTestApp[31062:1842848] [connection] nw_socket_handle_socket_event [C10:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:53.085060+0800 NSLoggerTestApp[31062:1842848] [connection] nw_connection_get_connected_socket [C10] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:53.085300+0800 NSLoggerTestApp[31062:1842848] TCP Conn 0x283f840b0 Failed : error 0:61 [61] 2022-01-21 16:10:53.107807+0800 NSLoggerTestApp[31062:1842909] [connection] nw_socket_handle_socket_event [C11:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:53.108806+0800 NSLoggerTestApp[31062:1842909] [connection] nw_connection_get_connected_socket [C11] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:53.108944+0800 NSLoggerTestApp[31062:1842909] TCP Conn 0x283f9c370 Failed : error 0:61 [61] 2022-01-21 16:10:53.118209+0800 NSLoggerTestApp[31062:1842909] [connection] nw_socket_handle_socket_event [C12:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:53.119089+0800 NSLoggerTestApp[31062:1842909] [connection] nw_connection_get_connected_socket [C12] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:53.119202+0800 NSLoggerTestApp[31062:1842909] TCP Conn 0x283f9c160 Failed : error 0:61 [61] 2022-01-21 16:10:53.124790+0800 NSLoggerTestApp[31062:1842909] [connection] nw_socket_handle_socket_event [C13:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:53.125702+0800 NSLoggerTestApp[31062:1846725] [connection] nw_connection_get_connected_socket [C13] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:53.125828+0800 NSLoggerTestApp[31062:1846725] TCP Conn 0x283f980b0 Failed : error 0:61 [61] 2022-01-21 16:10:53.351352+0800 NSLoggerTestApp[31062:1842909] [connection] nw_socket_handle_socket_event [C14:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:53.354438+0800 NSLoggerTestApp[31062:1842909] [connection] nw_connection_get_connected_socket [C14] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:53.355015+0800 NSLoggerTestApp[31062:1842909] TCP Conn 0x283f84000 Failed : error 0:61 [61] 2022-01-21 16:10:53.364168+0800 NSLoggerTestApp[31062:1842848] [connection] nw_socket_handle_socket_event [C15:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:53.365788+0800 NSLoggerTestApp[31062:1842848] [connection] nw_connection_get_connected_socket [C15] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:53.366031+0800 NSLoggerTestApp[31062:1842848] TCP Conn 0x283f980b0 Failed : error 0:61 [61] 2022-01-21 16:10:53.377450+0800 NSLoggerTestApp[31062:1842848] [connection] nw_socket_handle_socket_event [C16:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:53.379244+0800 NSLoggerTestApp[31062:1842848] [connection] nw_connection_get_connected_socket [C16] Client called nw_connection_get_connected_socket on unconnected nw_connection

Activity icon
issue

Jacky-LinPeng issue comment fpillet/NSLogger

Jacky-LinPeng
Jacky-LinPeng

real device (iPhone X) connect fail!

Mac & iPhone connect the same WIFI

image

AppClient set code as: LoggerSetViewerHost(nil, "192.168.0.103" as NSString, 50000) Logger.shared.log(.app, .important, "Hello, Swift Logger Tester! 🤖")

but Xcode console output:

2022-01-21 16:10:52.884979+0800 NSLoggerTestApp[31062:1846725] [connection] nw_socket_handle_socket_event [C1:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:52.896195+0800 NSLoggerTestApp[31062:1842909] [connection] nw_connection_get_connected_socket [C1] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:52.896645+0800 NSLoggerTestApp[31062:1842909] TCP Conn 0x283f80000 Failed : error 0:61 [61] 2022-01-21 16:10:52.915042+0800 NSLoggerTestApp[31062:1846725] [connection] nw_socket_handle_socket_event [C2:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:52.917360+0800 NSLoggerTestApp[31062:1846725] [connection] nw_connection_get_connected_socket [C2] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:52.917707+0800 NSLoggerTestApp[31062:1846725] TCP Conn 0x283f800b0 Failed : error 0:61 [61] 2022-01-21 16:10:52.929680+0800 NSLoggerTestApp[31062:1846725] [connection] nw_socket_handle_socket_event [C3:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:52.931559+0800 NSLoggerTestApp[31062:1846725] [connection] nw_connection_get_connected_socket [C3] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:52.931949+0800 NSLoggerTestApp[31062:1846725] TCP Conn 0x283f9c2c0 Failed : error 0:61 [61] 2022-01-21 16:10:52.942965+0800 NSLoggerTestApp[31062:1842909] [connection] nw_socket_handle_socket_event [C4:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:52.944745+0800 NSLoggerTestApp[31062:1842909] [connection] nw_connection_get_connected_socket [C4] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:52.945048+0800 NSLoggerTestApp[31062:1842909] TCP Conn 0x283f9c370 Failed : error 0:61 [61] 2022-01-21 16:10:52.991143+0800 NSLoggerTestApp[31062:1842909] [connection] nw_socket_handle_socket_event [C5:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:52.993265+0800 NSLoggerTestApp[31062:1842909] [connection] nw_connection_get_connected_socket [C5] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:52.993593+0800 NSLoggerTestApp[31062:1842909] TCP Conn 0x283f80000 Failed : error 0:61 [61] 2022-01-21 16:10:53.019009+0800 NSLoggerTestApp[31062:1842848] [connection] nw_socket_handle_socket_event [C6:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:53.022116+0800 NSLoggerTestApp[31062:1842909] [connection] nw_connection_get_connected_socket [C6] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:53.022581+0800 NSLoggerTestApp[31062:1842909] TCP Conn 0x283f9c370 Failed : error 0:61 [61] 2022-01-21 16:10:53.031920+0800 NSLoggerTestApp[31062:1842848] [connection] nw_socket_handle_socket_event [C7:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:53.033522+0800 NSLoggerTestApp[31062:1842848] [connection] nw_connection_get_connected_socket [C7] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:53.033760+0800 NSLoggerTestApp[31062:1842848] TCP Conn 0x283f98160 Failed : error 0:61 [61] 2022-01-21 16:10:53.043162+0800 NSLoggerTestApp[31062:1842909] [connection] nw_socket_handle_socket_event [C8:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:53.052717+0800 NSLoggerTestApp[31062:1842909] [connection] nw_connection_get_connected_socket [C8] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:53.053081+0800 NSLoggerTestApp[31062:1842909] TCP Conn 0x283f80000 Failed : error 0:61 [61] 2022-01-21 16:10:53.071814+0800 NSLoggerTestApp[31062:1842909] [connection] nw_socket_handle_socket_event [C9:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:53.073365+0800 NSLoggerTestApp[31062:1842909] [connection] nw_connection_get_connected_socket [C9] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:53.073608+0800 NSLoggerTestApp[31062:1842909] TCP Conn 0x283f84000 Failed : error 0:61 [61] 2022-01-21 16:10:53.083155+0800 NSLoggerTestApp[31062:1842848] [connection] nw_socket_handle_socket_event [C10:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:53.085060+0800 NSLoggerTestApp[31062:1842848] [connection] nw_connection_get_connected_socket [C10] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:53.085300+0800 NSLoggerTestApp[31062:1842848] TCP Conn 0x283f840b0 Failed : error 0:61 [61] 2022-01-21 16:10:53.107807+0800 NSLoggerTestApp[31062:1842909] [connection] nw_socket_handle_socket_event [C11:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:53.108806+0800 NSLoggerTestApp[31062:1842909] [connection] nw_connection_get_connected_socket [C11] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:53.108944+0800 NSLoggerTestApp[31062:1842909] TCP Conn 0x283f9c370 Failed : error 0:61 [61] 2022-01-21 16:10:53.118209+0800 NSLoggerTestApp[31062:1842909] [connection] nw_socket_handle_socket_event [C12:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:53.119089+0800 NSLoggerTestApp[31062:1842909] [connection] nw_connection_get_connected_socket [C12] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:53.119202+0800 NSLoggerTestApp[31062:1842909] TCP Conn 0x283f9c160 Failed : error 0:61 [61] 2022-01-21 16:10:53.124790+0800 NSLoggerTestApp[31062:1842909] [connection] nw_socket_handle_socket_event [C13:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:53.125702+0800 NSLoggerTestApp[31062:1846725] [connection] nw_connection_get_connected_socket [C13] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:53.125828+0800 NSLoggerTestApp[31062:1846725] TCP Conn 0x283f980b0 Failed : error 0:61 [61] 2022-01-21 16:10:53.351352+0800 NSLoggerTestApp[31062:1842909] [connection] nw_socket_handle_socket_event [C14:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:53.354438+0800 NSLoggerTestApp[31062:1842909] [connection] nw_connection_get_connected_socket [C14] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:53.355015+0800 NSLoggerTestApp[31062:1842909] TCP Conn 0x283f84000 Failed : error 0:61 [61] 2022-01-21 16:10:53.364168+0800 NSLoggerTestApp[31062:1842848] [connection] nw_socket_handle_socket_event [C15:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:53.365788+0800 NSLoggerTestApp[31062:1842848] [connection] nw_connection_get_connected_socket [C15] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:53.366031+0800 NSLoggerTestApp[31062:1842848] TCP Conn 0x283f980b0 Failed : error 0:61 [61] 2022-01-21 16:10:53.377450+0800 NSLoggerTestApp[31062:1842848] [connection] nw_socket_handle_socket_event [C16:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:53.379244+0800 NSLoggerTestApp[31062:1842848] [connection] nw_connection_get_connected_socket [C16] Client called nw_connection_get_connected_socket on unconnected nw_connection

Jacky-LinPeng
Jacky-LinPeng

oh... I solve by Setting.... image

Activity icon
issue

Jacky-LinPeng issue comment fpillet/NSLogger

Jacky-LinPeng
Jacky-LinPeng

real device (iPhone X) connect fail!

Mac & iPhone connect the same WIFI

image

AppClient set code as: LoggerSetViewerHost(nil, "192.168.0.103" as NSString, 50000) Logger.shared.log(.app, .important, "Hello, Swift Logger Tester! 🤖")

but Xcode console output:

2022-01-21 16:10:52.884979+0800 NSLoggerTestApp[31062:1846725] [connection] nw_socket_handle_socket_event [C1:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:52.896195+0800 NSLoggerTestApp[31062:1842909] [connection] nw_connection_get_connected_socket [C1] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:52.896645+0800 NSLoggerTestApp[31062:1842909] TCP Conn 0x283f80000 Failed : error 0:61 [61] 2022-01-21 16:10:52.915042+0800 NSLoggerTestApp[31062:1846725] [connection] nw_socket_handle_socket_event [C2:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:52.917360+0800 NSLoggerTestApp[31062:1846725] [connection] nw_connection_get_connected_socket [C2] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:52.917707+0800 NSLoggerTestApp[31062:1846725] TCP Conn 0x283f800b0 Failed : error 0:61 [61] 2022-01-21 16:10:52.929680+0800 NSLoggerTestApp[31062:1846725] [connection] nw_socket_handle_socket_event [C3:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:52.931559+0800 NSLoggerTestApp[31062:1846725] [connection] nw_connection_get_connected_socket [C3] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:52.931949+0800 NSLoggerTestApp[31062:1846725] TCP Conn 0x283f9c2c0 Failed : error 0:61 [61] 2022-01-21 16:10:52.942965+0800 NSLoggerTestApp[31062:1842909] [connection] nw_socket_handle_socket_event [C4:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:52.944745+0800 NSLoggerTestApp[31062:1842909] [connection] nw_connection_get_connected_socket [C4] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:52.945048+0800 NSLoggerTestApp[31062:1842909] TCP Conn 0x283f9c370 Failed : error 0:61 [61] 2022-01-21 16:10:52.991143+0800 NSLoggerTestApp[31062:1842909] [connection] nw_socket_handle_socket_event [C5:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:52.993265+0800 NSLoggerTestApp[31062:1842909] [connection] nw_connection_get_connected_socket [C5] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:52.993593+0800 NSLoggerTestApp[31062:1842909] TCP Conn 0x283f80000 Failed : error 0:61 [61] 2022-01-21 16:10:53.019009+0800 NSLoggerTestApp[31062:1842848] [connection] nw_socket_handle_socket_event [C6:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:53.022116+0800 NSLoggerTestApp[31062:1842909] [connection] nw_connection_get_connected_socket [C6] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:53.022581+0800 NSLoggerTestApp[31062:1842909] TCP Conn 0x283f9c370 Failed : error 0:61 [61] 2022-01-21 16:10:53.031920+0800 NSLoggerTestApp[31062:1842848] [connection] nw_socket_handle_socket_event [C7:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:53.033522+0800 NSLoggerTestApp[31062:1842848] [connection] nw_connection_get_connected_socket [C7] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:53.033760+0800 NSLoggerTestApp[31062:1842848] TCP Conn 0x283f98160 Failed : error 0:61 [61] 2022-01-21 16:10:53.043162+0800 NSLoggerTestApp[31062:1842909] [connection] nw_socket_handle_socket_event [C8:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:53.052717+0800 NSLoggerTestApp[31062:1842909] [connection] nw_connection_get_connected_socket [C8] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:53.053081+0800 NSLoggerTestApp[31062:1842909] TCP Conn 0x283f80000 Failed : error 0:61 [61] 2022-01-21 16:10:53.071814+0800 NSLoggerTestApp[31062:1842909] [connection] nw_socket_handle_socket_event [C9:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:53.073365+0800 NSLoggerTestApp[31062:1842909] [connection] nw_connection_get_connected_socket [C9] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:53.073608+0800 NSLoggerTestApp[31062:1842909] TCP Conn 0x283f84000 Failed : error 0:61 [61] 2022-01-21 16:10:53.083155+0800 NSLoggerTestApp[31062:1842848] [connection] nw_socket_handle_socket_event [C10:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:53.085060+0800 NSLoggerTestApp[31062:1842848] [connection] nw_connection_get_connected_socket [C10] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:53.085300+0800 NSLoggerTestApp[31062:1842848] TCP Conn 0x283f840b0 Failed : error 0:61 [61] 2022-01-21 16:10:53.107807+0800 NSLoggerTestApp[31062:1842909] [connection] nw_socket_handle_socket_event [C11:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:53.108806+0800 NSLoggerTestApp[31062:1842909] [connection] nw_connection_get_connected_socket [C11] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:53.108944+0800 NSLoggerTestApp[31062:1842909] TCP Conn 0x283f9c370 Failed : error 0:61 [61] 2022-01-21 16:10:53.118209+0800 NSLoggerTestApp[31062:1842909] [connection] nw_socket_handle_socket_event [C12:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:53.119089+0800 NSLoggerTestApp[31062:1842909] [connection] nw_connection_get_connected_socket [C12] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:53.119202+0800 NSLoggerTestApp[31062:1842909] TCP Conn 0x283f9c160 Failed : error 0:61 [61] 2022-01-21 16:10:53.124790+0800 NSLoggerTestApp[31062:1842909] [connection] nw_socket_handle_socket_event [C13:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:53.125702+0800 NSLoggerTestApp[31062:1846725] [connection] nw_connection_get_connected_socket [C13] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:53.125828+0800 NSLoggerTestApp[31062:1846725] TCP Conn 0x283f980b0 Failed : error 0:61 [61] 2022-01-21 16:10:53.351352+0800 NSLoggerTestApp[31062:1842909] [connection] nw_socket_handle_socket_event [C14:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:53.354438+0800 NSLoggerTestApp[31062:1842909] [connection] nw_connection_get_connected_socket [C14] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:53.355015+0800 NSLoggerTestApp[31062:1842909] TCP Conn 0x283f84000 Failed : error 0:61 [61] 2022-01-21 16:10:53.364168+0800 NSLoggerTestApp[31062:1842848] [connection] nw_socket_handle_socket_event [C15:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:53.365788+0800 NSLoggerTestApp[31062:1842848] [connection] nw_connection_get_connected_socket [C15] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:53.366031+0800 NSLoggerTestApp[31062:1842848] TCP Conn 0x283f980b0 Failed : error 0:61 [61] 2022-01-21 16:10:53.377450+0800 NSLoggerTestApp[31062:1842848] [connection] nw_socket_handle_socket_event [C16:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:53.379244+0800 NSLoggerTestApp[31062:1842848] [connection] nw_connection_get_connected_socket [C16] Client called nw_connection_get_connected_socket on unconnected nw_connection

Jacky-LinPeng
Jacky-LinPeng
Activity icon
issue

Jacky-LinPeng issue fpillet/NSLogger

Jacky-LinPeng
Jacky-LinPeng

real device (iPhone X) connect fail!

Mac & iPhone connect the same WIFI

image

AppClient set code as: LoggerSetViewerHost(nil, "192.168.0.103" as NSString, 50000) Logger.shared.log(.app, .important, "Hello, Swift Logger Tester! 🤖")

but Xcode console output:

2022-01-21 16:10:52.884979+0800 NSLoggerTestApp[31062:1846725] [connection] nw_socket_handle_socket_event [C1:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:52.896195+0800 NSLoggerTestApp[31062:1842909] [connection] nw_connection_get_connected_socket [C1] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:52.896645+0800 NSLoggerTestApp[31062:1842909] TCP Conn 0x283f80000 Failed : error 0:61 [61] 2022-01-21 16:10:52.915042+0800 NSLoggerTestApp[31062:1846725] [connection] nw_socket_handle_socket_event [C2:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:52.917360+0800 NSLoggerTestApp[31062:1846725] [connection] nw_connection_get_connected_socket [C2] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:52.917707+0800 NSLoggerTestApp[31062:1846725] TCP Conn 0x283f800b0 Failed : error 0:61 [61] 2022-01-21 16:10:52.929680+0800 NSLoggerTestApp[31062:1846725] [connection] nw_socket_handle_socket_event [C3:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:52.931559+0800 NSLoggerTestApp[31062:1846725] [connection] nw_connection_get_connected_socket [C3] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:52.931949+0800 NSLoggerTestApp[31062:1846725] TCP Conn 0x283f9c2c0 Failed : error 0:61 [61] 2022-01-21 16:10:52.942965+0800 NSLoggerTestApp[31062:1842909] [connection] nw_socket_handle_socket_event [C4:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:52.944745+0800 NSLoggerTestApp[31062:1842909] [connection] nw_connection_get_connected_socket [C4] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:52.945048+0800 NSLoggerTestApp[31062:1842909] TCP Conn 0x283f9c370 Failed : error 0:61 [61] 2022-01-21 16:10:52.991143+0800 NSLoggerTestApp[31062:1842909] [connection] nw_socket_handle_socket_event [C5:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:52.993265+0800 NSLoggerTestApp[31062:1842909] [connection] nw_connection_get_connected_socket [C5] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:52.993593+0800 NSLoggerTestApp[31062:1842909] TCP Conn 0x283f80000 Failed : error 0:61 [61] 2022-01-21 16:10:53.019009+0800 NSLoggerTestApp[31062:1842848] [connection] nw_socket_handle_socket_event [C6:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:53.022116+0800 NSLoggerTestApp[31062:1842909] [connection] nw_connection_get_connected_socket [C6] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:53.022581+0800 NSLoggerTestApp[31062:1842909] TCP Conn 0x283f9c370 Failed : error 0:61 [61] 2022-01-21 16:10:53.031920+0800 NSLoggerTestApp[31062:1842848] [connection] nw_socket_handle_socket_event [C7:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:53.033522+0800 NSLoggerTestApp[31062:1842848] [connection] nw_connection_get_connected_socket [C7] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:53.033760+0800 NSLoggerTestApp[31062:1842848] TCP Conn 0x283f98160 Failed : error 0:61 [61] 2022-01-21 16:10:53.043162+0800 NSLoggerTestApp[31062:1842909] [connection] nw_socket_handle_socket_event [C8:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:53.052717+0800 NSLoggerTestApp[31062:1842909] [connection] nw_connection_get_connected_socket [C8] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:53.053081+0800 NSLoggerTestApp[31062:1842909] TCP Conn 0x283f80000 Failed : error 0:61 [61] 2022-01-21 16:10:53.071814+0800 NSLoggerTestApp[31062:1842909] [connection] nw_socket_handle_socket_event [C9:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:53.073365+0800 NSLoggerTestApp[31062:1842909] [connection] nw_connection_get_connected_socket [C9] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:53.073608+0800 NSLoggerTestApp[31062:1842909] TCP Conn 0x283f84000 Failed : error 0:61 [61] 2022-01-21 16:10:53.083155+0800 NSLoggerTestApp[31062:1842848] [connection] nw_socket_handle_socket_event [C10:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:53.085060+0800 NSLoggerTestApp[31062:1842848] [connection] nw_connection_get_connected_socket [C10] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:53.085300+0800 NSLoggerTestApp[31062:1842848] TCP Conn 0x283f840b0 Failed : error 0:61 [61] 2022-01-21 16:10:53.107807+0800 NSLoggerTestApp[31062:1842909] [connection] nw_socket_handle_socket_event [C11:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:53.108806+0800 NSLoggerTestApp[31062:1842909] [connection] nw_connection_get_connected_socket [C11] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:53.108944+0800 NSLoggerTestApp[31062:1842909] TCP Conn 0x283f9c370 Failed : error 0:61 [61] 2022-01-21 16:10:53.118209+0800 NSLoggerTestApp[31062:1842909] [connection] nw_socket_handle_socket_event [C12:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:53.119089+0800 NSLoggerTestApp[31062:1842909] [connection] nw_connection_get_connected_socket [C12] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:53.119202+0800 NSLoggerTestApp[31062:1842909] TCP Conn 0x283f9c160 Failed : error 0:61 [61] 2022-01-21 16:10:53.124790+0800 NSLoggerTestApp[31062:1842909] [connection] nw_socket_handle_socket_event [C13:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:53.125702+0800 NSLoggerTestApp[31062:1846725] [connection] nw_connection_get_connected_socket [C13] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:53.125828+0800 NSLoggerTestApp[31062:1846725] TCP Conn 0x283f980b0 Failed : error 0:61 [61] 2022-01-21 16:10:53.351352+0800 NSLoggerTestApp[31062:1842909] [connection] nw_socket_handle_socket_event [C14:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:53.354438+0800 NSLoggerTestApp[31062:1842909] [connection] nw_connection_get_connected_socket [C14] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:53.355015+0800 NSLoggerTestApp[31062:1842909] TCP Conn 0x283f84000 Failed : error 0:61 [61] 2022-01-21 16:10:53.364168+0800 NSLoggerTestApp[31062:1842848] [connection] nw_socket_handle_socket_event [C15:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:53.365788+0800 NSLoggerTestApp[31062:1842848] [connection] nw_connection_get_connected_socket [C15] Client called nw_connection_get_connected_socket on unconnected nw_connection 2022-01-21 16:10:53.366031+0800 NSLoggerTestApp[31062:1842848] TCP Conn 0x283f980b0 Failed : error 0:61 [61] 2022-01-21 16:10:53.377450+0800 NSLoggerTestApp[31062:1842848] [connection] nw_socket_handle_socket_event [C16:1] Socket SO_ERROR [61: Connection refused] 2022-01-21 16:10:53.379244+0800 NSLoggerTestApp[31062:1842848] [connection] nw_connection_get_connected_socket [C16] Client called nw_connection_get_connected_socket on unconnected nw_connection

Jan
19
1 week ago
Activity icon
issue

nk-contorra issue comment fpillet/NSLogger

nk-contorra
nk-contorra

[CRASH] crash when opening .nsloggerrawdata in Desktop Viewer

macOS: Big Sur 11.1 Desktop Viewer: 1.9.7

Client nslogger: installed by cocoapods and version is 1.9.7

How to reproduce:

  1. open an nsloggerrawdata file recorded in my iOS app
  2. open the file in Desktop Viewer
  3. 💣

Reproducing Rate: 100%

I also tried to build the Desktop Viewer myself from the master branch and crash is occurring.

And after the following change, no crash any more.

in LoggerDocument.m
- (BOOL)readFromData:(NSData *)data ofType:(NSString *)typeName error:(NSError **)outError {

LINE 312
-			NSData *subset = [NSData dataWithBytesNoCopy:(unsigned char *)p + 4 length:length];
+			NSData *subset = [NSData dataWithBytes:(unsigned char *)p + 4 length:length];

I checked the code, p is from the input param, and dataWithBytesNoCopy will hand the ownership from to subset. This could cause the input param data to be deallocated twice.

Please check my analysis, thank you.

Sorry I don't have much time to make a PR.

nk-contorra
nk-contorra

should be: NSData *subset = [NSData dataWithBytesNoCopy:(unsigned char *)p + 4 length:length freeWhenDone:NO];

Activity icon
fork

hunterzonewu forked fpillet/NSLogger

⚡ A modern, flexible logging tool
hunterzonewu Updated
fork time in 1 week ago
Jan
14
1 week ago
started
started time in 1 week ago
Jan
12
2 weeks ago
started
started time in 2 weeks ago
Previous