Community
cancel
Showing results for 
Search instead for 
Did you mean: 
lee__ocean
Beginner
65 Views

ios sdk crash

Crashed: Thread
0  CCwork                         0x1030c1494 std::__1::function<void (sio::message::list const&)>::function(std::__1::function<void (sio::message::list const&)> const&) + 630816
1  CCwork                         0x1030c6d70 std::__1::function<void (sio::message::list const&)>::operator=(std::__1::function<void (sio::message::list const&)> const&) + 653564
2  CCwork                         0x1030c6d70 std::__1::function<void (sio::message::list const&)>::operator=(std::__1::function<void (sio::message::list const&)> const&) + 653564
3  CCwork                         0x1030c6c78 std::__1::deque<ics::conference::ConferenceSocketSignalingChannel::SioMessage, std::__1::allocator<ics::conference::ConferenceSocketSignalingChannel::SioMessage> >::pop_front() + 653316
4  CCwork                         0x103155ab8 sio::socket::impl::on_socketio_ack(int, sio::message::list const&) + 1238596
5  CCwork                         0x10315570c sio::socket::impl::on_message_packet(sio::packet const&) + 1237656
6  CCwork                         0x103164938 sio::client_impl::on_decode(sio::packet const&) + 39296
7  CCwork                         0x10315e438 sio::packet_manager::put_payload(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) + 13440
8  CCwork                         0x103164850 sio::client_impl::on_message(std::__1::weak_ptr<void>, std::__1::shared_ptr<websocketpp::message_buffer::message<websocketpp::message_buffer::alloc::con_msg_manager> >) + 39064
9  CCwork                         0x10316a9b4 void std::__1::__invoke_void_return_wrapper<void>::__call<std::__1::__bind<void (sio::client_impl::*)(std::__1::weak_ptr<void>, std::__1::shared_ptr<websocketpp::message_buffer::message<websocketpp::message_buffer::alloc::con_msg_manager> >), sio::client_impl*, std::__1::placeholders::__ph<1>&, std::__1::placeholders::__ph<2>&>&, std::__1::weak_ptr<void>, std::__1::shared_ptr<websocketpp::message_buffer::message<websocketpp::message_buffer::alloc::con_msg_manager> > >(std::__1::__bind<void (sio::client_impl::*)(std::__1::weak_ptr<void>, std::__1::shared_ptr<websocketpp::message_buffer::message<websocketpp::message_buffer::alloc::con_msg_manager> >), sio::client_impl*, std::__1::placeholders::__ph<1>&, std::__1::placeholders::__ph<2>&>&&&, std::__1::weak_ptr<void>&&, std::__1::shared_ptr<websocketpp::message_buffer::message<websocketpp::message_buffer::alloc::con_msg_manager> >&&) + 3768
10 CCwork                         0x10316dff8 websocketpp::connection<websocketpp::config::asio_client>::handle_read_frame(std::__1::error_code const&, unsigned long) + 2020
11 CCwork                         0x10317a6b0 std::__1::function<void (std::__1::error_code const&, unsigned long)>::operator()(std::__1::error_code const&, unsigned long) const + 1292
12 CCwork                         0x10317dec8 websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::handle_async_read(boost::system::error_code const&, unsigned long) + 636
13 CCwork                         0x10317ed4c boost::asio::detail::completion_handler<boost::asio::detail::binder2<std::__1::__bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::*)(boost::system::error_code const&, unsigned long), std::__1::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config> >, std::__1::placeholders::__ph<1>&, std::__1::placeholders::__ph<2>&>, boost::system::error_code, unsigned long> >::do_complete(boost::asio::detail::task_io_service*, boost::asio::detail::task_io_service_operation*, boost::system::error_code const&, unsigned long) + 104
14 CCwork                         0x10317ec78 void boost::asio::detail::strand_service::dispatch<boost::asio::detail::binder2<std::__1::__bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::*)(boost::system::error_code const&, unsigned long), std::__1::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config> >, std::__1::placeholders::__ph<1>&, std::__1::placeholders::__ph<2>&>, boost::system::error_code, unsigned long> >(boost::asio::detail::strand_service::strand_impl*&, boost::asio::detail::binder2<std::__1::__bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::*)(boost::system::error_code const&, unsigned long), std::__1::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config> >, std::__1::placeholders::__ph<1>&, std::__1::placeholders::__ph<2>&>, boost::system::error_code, unsigned long>&) + 1776
15 CCwork                         0x10317eb28 boost::asio::async_result<boost::asio::handler_type<boost::asio::detail::binder2<std::__1::__bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::*)(boost::system::error_code const&, unsigned long), std::__1::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config> >, std::__1::placeholders::__ph<1>&, std::__1::placeholders::__ph<2>&>, boost::system::error_code, unsigned long>, void ()>::type>::type boost::asio::io_service::strand::dispatch<boost::asio::detail::binder2<std::__1::__bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::*)(boost::system::error_code const&, unsigned long), std::__1::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config> >, std::__1::placeholders::__ph<1>&, std::__1::placeholders::__ph<2>&>, boost::system::error_code, unsigned long> >(boost::asio::detail::binder2<std::__1::__bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::*)(boost::system::error_code const&, unsigned long), std::__1::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config> >, std::__1::placeholders::__ph<1>&, std::__1::placeholders::__ph<2>&>, boost::system::error_code, unsigned long>&&) + 1440
16 CCwork                         0x10317ea84 void boost::asio::detail::wrapped_handler<boost::asio::io_service::strand, std::__1::__bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config>::*)(boost::system::error_code const&, unsigned long), std::__1::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_client::transport_config> >, std::__1::placeholders::__ph<1>&, std::__1::placeholders::__ph<2>&>, boost::asio::detail::is_continuation_if_running>::operator()<boost::system::error_code, unsigned long>(boost::system::error_code const&, unsigned long const&) + 1276
17 CCwork                         0x10317a6b0 std::__1::function<void (std::__1::error_code const&, unsigned long)>::operator()(std::__1::error_code const&, unsigned long) const + 1292
18 CCwork                         0x10317bec8 boost::asio::detail::read_op<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_at_least_t, websocketpp::transport::asio::custom_alloc_handler<std::__1::function<void (boost::system::error_code const&, unsigned long)> > >::operator()(boost::system::error_code const&, unsigned long, int) + 7460
19 CCwork                         0x10317c2a8 boost::asio::detail::reactive_socket_recv_op<boost::asio::mutable_buffers_1, boost::asio::detail::read_op<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_at_least_t, websocketpp::transport::asio::custom_alloc_handler<std::__1::function<void (boost::system::error_code const&, unsigned long)> > > >::do_complete(boost::asio::detail::task_io_service*, boost::asio::detail::task_io_service_operation*, boost::system::error_code const&, unsigned long) + 168
20 CCwork                         0x10316b940 boost::asio::detail::task_io_service::do_run_one(boost::asio::detail::scoped_lock<boost::asio::detail::posix_mutex>&, boost::asio::detail::task_io_service_thread_info&, boost::system::error_code const&) + 1212
21 CCwork                         0x10316b690 boost::asio::detail::task_io_service::run(boost::system::error_code&) + 524
22 CCwork                         0x103165e08 sio::client_impl::run_loop() + 44624
23 CCwork                         0x10316b02c void* std::__1::__thread_proxy<std::__1::tuple<std::__1::__bind<void (sio::client_impl::*)(), sio::client_impl*> > >(void*) + 84
24 libsystem_pthread.dylib        0x181039220 _pthread_body + 272
25 libsystem_pthread.dylib        0x181039110 _pthread_body + 290
26 libsystem_pthread.dylib        0x181037b10 thread_start + 4
 
使用ios sdk 4.0.1频繁崩溃,重现的场景是,创建一个ConferenceClient对象之后退出会议调用leave,再创建一个新的ConferenceClient对象进入新的会议,前一个ConferenceClient频繁崩溃,如果不调用leave目前看不会出现崩溃现象,这种形式的崩溃在android sdk和windows sdk也存在,通过阅读android反编译的代码来看应该是多线程访问对象未同步加锁造成的
 
Crashed: Thread
0  CCwork                         0x101da8930 std::__1::shared_ptr<ics::conference::Participant>::~shared_ptr() + 716280
1  CCwork                         0x101d75f1c ics::conference::ConferenceInfo::RemoveParticipantById(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) + 508900
2  CCwork                         0x101d7f1c4 ics::conference::ConferenceClient::TriggerOnUserLeft(std::__1::shared_ptr<sio::message>) + 546444
3  CCwork                         0x101d7f26c ics::conference::ConferenceClient::OnUserLeft(std::__1::shared_ptr<sio::message>) + 546612
4  CCwork                         0x101d96668 std::__1::function<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::shared_ptr<sio::message> const&, bool, sio::message::list&)>::~function() + 641840
5  CCwork                         0x1019a1514 std::__1::function<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::shared_ptr<sio::message> const&, bool, sio::message::list&)>::operator()(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::shared_ptr<sio::message> const&, bool, sio::message::list&) const + 212
6  CCwork                         0x1019a0ee0 sio::socket::impl::on_socketio_event(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, sio::message::list&&) + 4309159648
7  CCwork                         0x1019a0dcc sio::socket::impl::on_message_packet(sio::packet const&) + 4309159372
8  CCwork                         0x1019b0098 sio::client_impl::on_decode(sio::packet const&) + 39732
9  CCwork                         0x1019a9a80 sio::packet_manager::put_payload(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) + 13596
10 CCwork                         0x1019aff24 sio::client_impl::on_message(std::__1::weak_ptr<void>, std::__1::shared_ptr<websocketpp::message_buffer::message<websocketpp::message_buffer::alloc::con_msg_manager> >) + 39360
11 CCwork                         0x1019b657c void std::__1::__invoke_void_return_wrapper<void>::__call<std::__1::__bind<void (sio::client_impl::*)(std::__1::weak_ptr<void>, std::__1::shared_ptr<websocketpp::message_buffer::message<websocketpp::message_buffer::alloc::con_msg_manager> >), sio::client_impl*, std::__1::placeholders::__ph<1>&, std::__1::placeholders::__ph<2>&>&, std::__1::weak_ptr<void>, std::__1::shared_ptr<websocketpp::message_buffer::message<websocketpp::message_buffer::alloc::con_msg_manager> > >(std::__1::__bind<void (sio::client_impl::*)(std::__1::weak_ptr<void>, std::__1::shared_ptr<websocketpp::message_buffer::message<websocketpp::message_buffer::alloc::con_msg_manager> >), sio::client_impl*, std::__1::placeholders::__ph<1>&, std::__1::placeholders::__ph<2>&>&&&, std::__1::weak_ptr<void>&&, std::__1::shared_ptr<websocketpp::message_buffer::message<websocketpp::message_buffer::alloc::con_msg_manager> >&&) + 3768
12 CCwork                         0x1019b9c6c websocketpp::connection<websocketpp::config::asio_tls_client>::handle_read_frame(std::__1::error_code const&, unsigned long) + 2020
13 CCwork                         0x1019c9734 std::__1::function<void (std::__1::error_code const&, unsigned long)>::operator()(std::__1::error_code const&, unsigned long) const + 748
14 CCwork                         0x1019cdce4 websocketpp::transport::asio::connection<websocketpp::config::asio_tls_client::transport_config>::handle_async_read(boost::system::error_code const&, unsigned long) + 564
15 CCwork                         0x1019cec94 boost::asio::detail::completion_handler<boost::asio::detail::binder2<std::__1::__bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_tls_client::transport_config>::*)(boost::system::error_code const&, unsigned long), std::__1::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_tls_client::transport_config> >, std::__1::placeholders::__ph<1>&, std::__1::placeholders::__ph<2>&>, boost::system::error_code, unsigned long> >::do_complete(boost::asio::detail::task_io_service*, boost::asio::detail::task_io_service_operation*, boost::system::error_code const&, unsigned long) + 104
16 CCwork                         0x1019cebc0 void boost::asio::detail::strand_service::dispatch<boost::asio::detail::binder2<std::__1::__bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_tls_client::transport_config>::*)(boost::system::error_code const&, unsigned long), std::__1::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_tls_client::transport_config> >, std::__1::placeholders::__ph<1>&, std::__1::placeholders::__ph<2>&>, boost::system::error_code, unsigned long> >(boost::asio::detail::strand_service::strand_impl*&, boost::asio::detail::binder2<std::__1::__bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_tls_client::transport_config>::*)(boost::system::error_code const&, unsigned long), std::__1::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_tls_client::transport_config> >, std::__1::placeholders::__ph<1>&, std::__1::placeholders::__ph<2>&>, boost::system::error_code, unsigned long>&) + 1776
17 CCwork                         0x1019cea70 boost::asio::async_result<boost::asio::handler_type<boost::asio::detail::binder2<std::__1::__bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_tls_client::transport_config>::*)(boost::system::error_code const&, unsigned long), std::__1::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_tls_client::transport_config> >, std::__1::placeholders::__ph<1>&, std::__1::placeholders::__ph<2>&>, boost::system::error_code, unsigned long>, void ()>::type>::type boost::asio::io_service::strand::dispatch<boost::asio::detail::binder2<std::__1::__bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_tls_client::transport_config>::*)(boost::system::error_code const&, unsigned long), std::__1::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_tls_client::transport_config> >, std::__1::placeholders::__ph<1>&, std::__1::placeholders::__ph<2>&>, boost::system::error_code, unsigned long> >(boost::asio::detail::binder2<std::__1::__bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_tls_client::transport_config>::*)(boost::system::error_code const&, unsigned long), std::__1::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_tls_client::transport_config> >, std::__1::placeholders::__ph<1>&, std::__1::placeholders::__ph<2>&>, boost::system::error_code, unsigned long>&&) + 1440
18 CCwork                         0x1019ce9cc void boost::asio::detail::wrapped_handler<boost::asio::io_service::strand, std::__1::__bind<void (websocketpp::transport::asio::connection<websocketpp::config::asio_tls_client::transport_config>::*)(boost::system::error_code const&, unsigned long), std::__1::shared_ptr<websocketpp::transport::asio::connection<websocketpp::config::asio_tls_client::transport_config> >, std::__1::placeholders::__ph<1>&, std::__1::placeholders::__ph<2>&>, boost::asio::detail::is_continuation_if_running>::operator()<boost::system::error_code, unsigned long>(boost::system::error_code const&, unsigned long const&) + 1276
19 CCwork                         0x1019c9734 std::__1::function<void (std::__1::error_code const&, unsigned long)>::operator()(std::__1::error_code const&, unsigned long) const + 748
20 CCwork                         0x1019caf4c boost::asio::detail::read_op<boost::asio::ssl::stream<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> > >, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_at_least_t, websocketpp::transport::asio::custom_alloc_handler<std::__1::function<void (boost::system::error_code const&, unsigned long)> > >::operator()(boost::system::error_code const&, unsigned long, int) + 6916
21 CCwork                         0x1019cb9d8 boost::asio::detail::reactive_socket_recv_op<boost::asio::mutable_buffers_1, boost::asio::ssl::detail::io_op<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, boost::asio::ssl::detail::read_op<boost::asio::mutable_buffers_1>, boost::asio::detail::read_op<boost::asio::ssl::stream<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> > >, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_at_least_t, websocketpp::transport::asio::custom_alloc_handler<std::__1::function<void (boost::system::error_code const&, unsigned long)> > > > >::do_complete(boost::asio::detail::task_io_service*, boost::asio::detail::task_io_service_operation*, boost::system::error_code const&, unsigned long) + 116
22 CCwork                         0x1019b7660 boost::asio::detail::task_io_service::do_run_one(boost::asio::detail::scoped_lock<boost::asio::detail::posix_mutex>&, boost::asio::detail::task_io_service_thread_info&, boost::system::error_code const&) + 1212
23 CCwork                         0x1019b73b0 boost::asio::detail::task_io_service::run(boost::system::error_code&) + 524
24 CCwork                         0x1019b1568 sio::client_impl::run_loop() + 45060
25 CCwork                         0x1019b6d4c void* std::__1::__thread_proxy<std::__1::tuple<std::__1::__bind<void (sio::client_impl::*)(), sio::client_impl*> > >(void*) + 84
26 libsystem_pthread.dylib        0x183fd432c _pthread_body + 308
27 libsystem_pthread.dylib        0x183fd41f8 _pthread_body + 310
28 libsystem_pthread.dylib        0x183fd2c38 thread_start + 4
 
这是ios另一个崩溃,也跟频繁进入退出会议有关
 
Tags (2)
0 Kudos
0 Replies