Crash after call startRtmpSessionWithURL on VCSimpleSession
when i try to connect with the remote server im getting the next exception stack
2015-10-20 16:12:24.780 SampleBroadcaster[1068:374509] Creating context
2015-10-20 16:12:24.815 SampleBroadcaster[1068:374509] Context creation succeeded
Apple::AudioMixerplayPath: live, app: liveClientState: 1
ClientState: 2
ClientState: 3
2015-10-20 16:12:40.247 SampleBroadcaster[1068:374713] This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes. This will cause an exception in a future release.
Stack:(
0 CoreFoundation 0x0000000183c24f74 + 148
1 libobjc.A.dylib 0x000000019881bf80 objc_exception_throw + 56
2 CoreFoundation 0x0000000183c24ea4 + 0
3 Foundation 0x0000000184c3e5d8 + 88
4 Foundation 0x0000000184ac0a1c + 36
5 UIKit 0x000000018927f93c + 64
6 UIKit 0x0000000189280454 + 244
7 UIKit 0x00000001899a677c + 268
8 UIKit 0x000000018947dfb0 + 176
9 UIKit 0x0000000189176ff0 + 644
10 QuartzCore 0x000000018897df14 + 148
11 QuartzCore 0x0000000188978b20 + 292
12 QuartzCore 0x00000001889789e0 + 32
13 QuartzCore 0x000000018897807c + 252
14 QuartzCore 0x0000000188977dd0 + 516
15 QuartzCore 0x00000001889714bc + 80
16 CoreFoundation 0x0000000183bdbc30 + 32
17 CoreFoundation 0x0000000183bd99d4 + 372
18 CoreFoundation 0x0000000183b08de0 CFRunLoopRunSpecific + 416
19 Foundation 0x0000000184a7c7ec + 308
20 Foundation 0x0000000184ad1e14 + 88
21 SampleBroadcaster 0x0000000100103dcc _ZN9videocore5Apple13StreamSession12startNetworkEv + 344
22 SampleBroadcaster 0x0000000100103c68 ___ZN9videocore5Apple13StreamSession7connectENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEiNS2_8functionIFvRNS_14IStreamSessionElEEE_block_invoke + 32
23 libdispatch.dylib 0x00000001004b1d70 _dispatch_call_block_and_release + 24
24 libdispatch.dylib 0x00000001004b1d30 _dispatch_client_callout + 16
25 libdispatch.dylib 0x00000001004be7f0 _dispatch_queue_drain + 1036
26 libdispatch.dylib 0x00000001004b5a20 _dispatch_queue_invoke + 464
27 libdispatch.dylib 0x00000001004b1d30 _dispatch_client_callout + 16
28 libdispatch.dylib 0x00000001004c0f38 _dispatch_root_queue_drain + 2344
29 libdispatch.dylib 0x00000001004c0600 _dispatch_worker_thread3 + 132
30 libsystem_pthread.dylib 0x0000000199229478 _pthread_wqthread + 1092
31 libsystem_pthread.dylib 0x0000000199229028 start_wqthread + 4
)
2015-10-20 16:12:40.260 SampleBroadcaster[1068:374713] This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes. This will cause an exception in a future release.
Stack:(
0 CoreFoundation 0x0000000183c24f74 + 148
1 libobjc.A.dylib 0x000000019881bf80 objc_exception_throw + 56
2 CoreFoundation 0x0000000183c24ea4 + 0
3 Foundation 0x0000000184c3e5d8 + 88
4 Foundation 0x0000000184ac0a1c + 36
5 UIKit 0x000000018927f93c + 64
6 UIKit 0x00000001899a60ac + 156
7 UIKit 0x0000000189280820 + 100
8 Foundation 0x0000000184ac0aa0 + 168
9 UIKit 0x000000018927f93c + 64
10 UIKit 0x0000000189280454 + 244
11 UIKit 0x00000001899a677c + 268
12 UIKit 0x000000018947dfb0 + 176
13 UIKit 0x0000000189176ff0 + 644
14 QuartzCore 0x000000018897df14 + 148
15 QuartzCore 0x0000000188978b20 + 292
16 QuartzCore 0x00000001889789e0 + 32
17 QuartzCore 0x000000018897807c + 252
18 QuartzCore 0x0000000188977dd0 + 516
19 QuartzCore 0x00000001889714bc + 80
20 CoreFoundation 0x0000000183bdbc30 + 32
21 CoreFoundation 0x0000000183bd99d4 + 372
22 CoreFoundation 0x0000000183b08de0 CFRunLoopRunSpecific + 416
23 Foundation 0x0000000184a7c7ec + 308
24 Foundation 0x0000000184ad1e14 + 88
25 SampleBroadcaster 0x0000000100103dcc _ZN9videocore5Apple13StreamSession12startNetworkEv + 344
26 SampleBroadcaster 0x0000000100103c68 ___ZN9videocore5Apple13StreamSession7connectENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEiNS2_8functionIFvRNS_14IStreamSessionElEEE_block_invoke + 32
27 libdispatch.dylib 0x00000001004b1d70 _dispatch_call_block_and_release + 24
28 libdispatch.dylib 0x00000001004b1d30 _dispatch_client_callout + 16
29 libdispatch.dylib 0x00000001004be7f0 _dispatch_queue_drain + 1036
30 libdispatch.dylib 0x00000001004b5a20 _dispatch_queue_invoke + 464
31 libdispatch.dylib 0x00000001004b1d30 _dispatch_client_callout + 16
32 libdispatch.dylib 0x00000001004c0f38 _dispatch_root_queue_drain + 2344
33 libdispatch.dylib 0x00000001004c0600 _dispatch_worker_thread3 + 132
34 libsystem_pthread.dylib 0x0000000199229478 _pthread_wqthread + 1092
35 libsystem_pthread.dylib 0x0000000199229028 start_wqthread + 4
)
2015-10-20 16:12:40.272 SampleBroadcaster[1068:374713] This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes. This will cause an exception in a future release.
Stack:(
0 CoreFoundation 0x0000000183c24f74 + 148
1 libobjc.A.dylib 0x000000019881bf80 objc_exception_throw + 56
2 CoreFoundation 0x0000000183c24ea4 + 0
3 Foundation 0x0000000184c3e5d8 + 88
4 Foundation 0x0000000184ac4f3c + 56
5 Foundation 0x0000000184ac0afc + 260
6 UIKit 0x000000018927f93c + 64
7 UIKit 0x0000000189280454 + 244
8 UIKit 0x00000001899a677c + 268
9 UIKit 0x000000018947dfb0 + 176
10 UIKit 0x0000000189176ff0 + 644
11 QuartzCore 0x000000018897df14 + 148
12 QuartzCore 0x0000000188978b20 + 292
13 QuartzCore 0x00000001889789e0 + 32
14 QuartzCore 0x000000018897807c + 252
15 QuartzCore 0x0000000188977dd0 + 516
16 QuartzCore 0x00000001889714bc + 80
17 CoreFoundation 0x0000000183bdbc30 + 32
18 CoreFoundation 0x0000000183bd99d4 + 372
19 CoreFoundation 0x0000000183b08de0 CFRunLoopRunSpecific + 416
20 Foundation 0x0000000184a7c7ec + 308
21 Foundation 0x0000000184ad1e14 + 88
22 SampleBroadcaster 0x0000000100103dcc _ZN9videocore5Apple13StreamSession12startNetworkEv + 344
23 SampleBroadcaster 0x0000000100103c68 ___ZN9videocore5Apple13StreamSession7connectENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEiNS2_8functionIFvRNS_14IStreamSessionElEEE_block_invoke + 32
24 libdispatch.dylib 0x00000001004b1d70 _dispatch_call_block_and_release + 24
25 libdispatch.dylib 0x00000001004b1d30 _dispatch_client_callout + 16
26 libdispatch.dylib 0x00000001004be7f0 _dispatch_queue_drain + 1036
27 libdispatch.dylib 0x00000001004b5a20 _dispatch_queue_invoke + 464
28 libdispatch.dylib 0x00000001004b1d30 _dispatch_client_callout + 16
29 libdispatch.dylib 0x00000001004c0f38 _dispatch_root_queue_drain + 2344
30 libdispatch.dylib 0x00000001004c0600 _dispatch_worker_thread3 + 132
31 libsystem_pthread.dylib 0x0000000199229478 _pthread_wqthread + 1092
32 libsystem_pthread.dylib 0x0000000199229028 start_wqthread + 4
)
ClientState: 4
ClientState: 5
ClientState: 6
Request to change incoming chunk size from 128 -> 1445375560
received unknown packet type: 0x00
received server window size: 2500000
received peer bandwidth limit: 2500000 type: 66
received ping, sending pong.
Received invoke
(lldb)
@jgh- what version of rtmp handshake is used in the lib?
Hi I am also facing same issue but my app not crashing after cliet state 7 it is entering into clientstate 11 i don't how to resolve it
below is my log please help me out
ClientState: 1
2015-11-21 13:38:20.165 [6114:84511] ============================VCSessionStateStarting
ClientState: 2
ClientState: 3
ClientState: 4
ClientState: 5
ClientState: 6
received server window size: 10000000
received peer bandwidth limit: 10000000 type: 2
received ping, sending pong.
Received invoke
pktId: 1
received invoke _result
tracked command: connect
ClientState: 7
ClientState: 11
2015-11-21 13:38:21.627 [6114:84511] =========================================disconnect
@AlejandroRuiz did you connect to RTMP server please help me
@bintu1234 I decided to create my own client this is due a rtmp version incompatibility (i think so)
@AlejandroRuiz hi ,fat man ,are resolve it ? I meet it too
@AlejandroRuiz do u resolve it ? I meet the problem now ...help please
try to put callback delegate tin to main thread then the warning will be gone.
}
@iop883684 thank you, it works for me.
@iop883684 i am using red5 server and my rtmp url like rtmp://server.tv/server/streamkey.But i am unable to connect to the server please help me. I am struggling from last 1 month