xcode7 ios 64bit crash

Post here your questions about the C++ API for SFS2X

Moderators: Lapo, Bax, MBagnati

zynbasil
Posts: 25
Joined: 23 May 2016, 03:59

xcode7 ios 64bit crash

Postby zynbasil » 27 May 2016, 05:52

xcode7 ios 64bit crash

xcode7
cocos2dx 3.8.1
iphone6

client c++ support 64bit?

*****************
EXC_BREAKPOINT(code=1,subcode=*********)
#9 0x000000010048255c in Sfs2X::Core::SFSIOHandler::HandlePacketData(boost::shared_ptr<Sfs2X::Util::ByteArray>) at /Users/zynbasil/slots/client/slots_client/libs/smartfox/Core/SFSIOHandler.cpp:355
Last edited by zynbasil on 31 May 2016, 03:53, edited 1 time in total.
User avatar
Lapo
Site Admin
Posts: 20113
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: xcode7 ios 64bit crash

Postby Lapo » 27 May 2016, 07:45

Hi,
yes it does. Can you give us more details about the exception? How does this happen?
Can you reproduce it with certain steps? If so, please explain.

Also can you include the full transcript of the error? It seems like there's missing elements in the call tree.

Thanks
Lapo
--
gotoAndPlay()
...addicted to flash games
zynbasil
Posts: 25
Joined: 23 May 2016, 03:59

Re: xcode7 ios 64bit crash

Postby zynbasil » 30 May 2016, 02:32

when send request message (random crash)

iphone6 (64bit) crash
itouch5(32bit) not crash

EXC_BREAKPOINT(code=1,subcode=0x181ac57d0)

#4 0x0000000100562d28 in boost::detail::sp_counted_base::release() [inlined] at /Users/zynbasil/sfs_cocos2dx/boostios/src/boost_1_59_0/./boost/smart_ptr/detail/sp_counted_base_pt.hpp:93
#5 0x0000000100562d1c in boost::detail::shared_count::~shared_count() [inlined] at /Users/zynbasil/sfs_cocos2dx/boostios/src/boost_1_59_0/./boost/smart_ptr/detail/shared_count.hpp:467
#6 0x0000000100562d14 in boost::detail::shared_count::~shared_count() at /Users/zynbasil/sfs_cocos2dx/boostios/src/boost_1_59_0/./boost/smart_ptr/detail/shared_count.hpp:466
#7 0x00000001000da52c in boost::shared_ptr<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> > >::~shared_ptr() at /Users/zynbasil/slots/client/slots_client/proj.ios_mac/boost.framework/Headers/smart_ptr/shared_ptr.hpp:756
#8 0x00000001000da16c in boost::shared_ptr<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> > >::~shared_ptr() at /Users/zynbasil/slots/client/slots_client/proj.ios_mac/boost.framework/Headers/smart_ptr/shared_ptr.hpp:756
#9 0x000000010046a35c in Sfs2X::Util::ByteArray::WriteBytes(boost::shared_ptr<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> > >) at /Users/zynbasil/slots/client/slots_client/libs/smartfox/Util/ByteArray.cpp:253
#10 0x000000010046b298 in Sfs2X::Util::ByteArray::WriteUShort(unsigned short) at /Users/zynbasil/slots/client/slots_client/libs/smartfox/Util/ByteArray.cpp:313
#11 0x000000010046d854 in Sfs2X::Util::ByteArray::WriteUTF(boost::shared_ptr<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >) at /Users/zynbasil/slots/client/slots_client/libs/smartfox/Util/ByteArray.cpp:500
#12 0x000000010022954c in Sfs2X::Protocol::Serialization::DefaultSFSDataSerializer::EncodeSFSObjectKey(boost::shared_ptr<Sfs2X::Util::ByteArray>, boost::shared_ptr<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >) at /Users/zynbasil/slots/client/slots_client/libs/smartfox/Protocol/Serialization/DefaultSFSDataSerializer.cpp:886
#13 0x00000001002291b4 in Sfs2X::Protocol::Serialization::DefaultSFSDataSerializer::Obj2bin(boost::shared_ptr<Sfs2X::Entities::Data::ISFSObject>, boost::shared_ptr<Sfs2X::Util::ByteArray>) at /Users/zynbasil/slots/client/slots_client/libs/smartfox/Protocol/Serialization/DefaultSFSDataSerializer.cpp:78
#14 0x0000000100228e80 in Sfs2X::Protocol::Serialization::DefaultSFSDataSerializer::Object2Binary(boost::shared_ptr<Sfs2X::Entities::Data::ISFSObject>) at /Users/zynbasil/slots/client/slots_client/libs/smartfox/Protocol/Serialization/DefaultSFSDataSerializer.cpp:62
#15 0x000000010022a328 in Sfs2X::Protocol::Serialization::DefaultSFSDataSerializer::EncodeObject(boost::shared_ptr<Sfs2X::Util::ByteArray>, int, boost::shared_ptr<void>) at /Users/zynbasil/slots/client/slots_client/libs/smartfox/Protocol/Serialization/DefaultSFSDataSerializer.cpp:451
#16 0x000000010022925c in Sfs2X::Protocol::Serialization::DefaultSFSDataSerializer::Obj2bin(boost::shared_ptr<Sfs2X::Entities::Data::ISFSObject>, boost::shared_ptr<Sfs2X::Util::ByteArray>) at /Users/zynbasil/slots/client/slots_client/libs/smartfox/Protocol/Serialization/DefaultSFSDataSerializer.cpp:81
#17 0x0000000100228e80 in Sfs2X::Protocol::Serialization::DefaultSFSDataSerializer::Object2Binary(boost::shared_ptr<Sfs2X::Entities::Data::ISFSObject>) at /Users/zynbasil/slots/client/slots_client/libs/smartfox/Protocol/Serialization/DefaultSFSDataSerializer.cpp:62
#18 0x000000010035af24 in Sfs2X::Entities::Data::SFSObject::ToBinary() at /Users/zynbasil/slots/client/slots_client/libs/smartfox/Entities/Data/SFSObject.cpp:1485
#19 0x0000000100445284 in Sfs2X::Core::SFSIOHandler::OnDataWrite(boost::shared_ptr<Sfs2X::Bitswarm::IMessage>) at /Users/zynbasil/slots/client/slots_client/libs/smartfox/Core/SFSIOHandler.cpp:528
#20 0x0000000100170180 in Sfs2X::Core::SFSProtocolCodec::OnPacketWrite(boost::shared_ptr<Sfs2X::Bitswarm::IMessage>) at /Users/zynbasil/slots/client/slots_client/libs/smartfox/Core/SFSProtocolCodec.cpp:120
#21 0x000000010017aa38 in Sfs2X::Bitswarm::BitSwarmClient::Send(boost::shared_ptr<Sfs2X::Bitswarm::IMessage>) at /Users/zynbasil/slots/client/slots_client/libs/smartfox/Bitswarm/BitSwarmClient.cpp:625
#22 0x000000010013b70c in Sfs2X::SmartFox::Send(boost::shared_ptr<Sfs2X::Requests::IRequest>) at /Users/zynbasil/slots/client/slots_client/libs/smartfox/SmartFox.cpp:1001
Last edited by zynbasil on 30 May 2016, 02:39, edited 1 time in total.
zynbasil
Posts: 25
Joined: 23 May 2016, 03:59

Re: xcode7 ios 64bit crash

Postby zynbasil » 30 May 2016, 02:33

if I open xcode7 "Enable Address Sanitizer" try to debug, will not crash

I try to use "Enable Zombie Objects",catch something~~ May be is something wrong with my code
User avatar
Lapo
Site Admin
Posts: 20113
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: xcode7 ios 64bit crash

Postby Lapo » 30 May 2016, 09:39

Thanks for the update. We're still investigating this, if you have any updates let us know as we need a way to reproduce it.
Lapo

--

gotoAndPlay()

...addicted to flash games
zynbasil
Posts: 25
Joined: 23 May 2016, 03:59

Re: xcode7 ios 64bit crash

Postby zynbasil » 30 May 2016, 10:04

when I login to server, then I do nothing(only send extension request and receive),few times later~~~~crash!

xcode7
cocos2dx 3.8.1
iphone6


signal SIGABRT

#10 0x00000001003bbe1c in Sfs2X::Controllers::ExtensionController::HandleMessage(boost::shared_ptr<Sfs2X::Bitswarm::IMessage>) at /Users/zynbasil/slots/client/slots_client/libs/smartfox/Controllers/ExtensionController.cpp:52
#11 0x000000010010170c in Sfs2X::Core::SFSProtocolCodec::DispatchRequest(boost::shared_ptr<Sfs2X::Entities::Data::ISFSObject>) at /Users/zynbasil/slots/client/slots_client/libs/smartfox/Core/SFSProtocolCodec.cpp:220
#12 0x0000000100101808 in Sfs2X::Core::SFSProtocolCodec::OnPacketRead(boost::shared_ptr<Sfs2X::Util::ByteArray>) at /Users/zynbasil/slots/client/slots_client/libs/smartfox/Core/SFSProtocolCodec.cpp:93
#13 0x00000001003d6678 in Sfs2X::Core::SFSIOHandler::HandlePacketData(boost::shared_ptr<Sfs2X::Util::ByteArray>) at /Users/zynbasil/slots/client/slots_client/libs/smartfox/Core/SFSIOHandler.cpp:394
#14 0x00000001003d2804 in Sfs2X::Core::SFSIOHandler::OnDataRead(boost::shared_ptr<Sfs2X::Util::ByteArray>) at /Users/zynbasil/slots/client/slots_client/libs/smartfox/Core/SFSIOHandler.cpp:154
#15 0x0000000100108f1c in Sfs2X::Bitswarm::BitSwarmClient::OnSocketData(unsigned long long, boost::shared_ptr<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> > >) at /Users/zynbasil/slots/client/slots_client/libs/smartfox/Bitswarm/BitSwarmClient.cpp:913
#16 0x00000001001afc4c in Sfs2X::Util::DelegateOneArgument<boost::shared_ptr<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> > > >::Invoke(boost::shared_ptr<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> > >) at /Users/zynbasil/slots/client/slots_client/libs/smartfox/Core/Sockets/../../Util/DelegateOneArgument.h:54
#17 0x00000001003e2e88 in Sfs2X::Core::ThreadManager::ProcessItem(boost::shared_ptr<std::__1::map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, boost::shared_ptr<void>, std::__1::less<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const, boost::shared_ptr<void> > > > >) at /Users/zynbasil/slots/client/slots_client/libs/smartfox/Core/ThreadManager.cpp:181
#18 0x00000001003e28dc in Sfs2X::Core::ThreadManager::InThread() at /Users/zynbasil/slots/client/slots_client/libs/smartfox/Core/ThreadManager.cpp:95
#19 0x00000001003e7674 in boost::_mfi::mf0<void, Sfs2X::Core::ThreadManager>::operator()(Sfs2X::Core::ThreadManager*) const at /Users/zynbasil/slots/client/slots_client/proj.ios_mac/boost.framework/Headers/bind/mem_fn_template.hpp:49
#20 0x00000001003e75e4 in void boost::_bi::list1<boost::_bi::value<Sfs2X::Core::ThreadManager*> >::operator()<boost::_mfi::mf0<void, Sfs2X::Core::ThreadManager>, boost::_bi::list0>(boost::_bi::type<void>, boost::_mfi::mf0<void, Sfs2X::Core::ThreadManager>&, boost::_bi::list0&, int) at /Users/zynbasil/slots/client/slots_client/proj.ios_mac/boost.framework/Headers/bind/bind.hpp:255
#21 0x00000001003e7580 in boost::_bi::bind_t<void, boost::_mfi::mf0<void, Sfs2X::Core::ThreadManager>, boost::_bi::list1<boost::_bi::value<Sfs2X::Core::ThreadManager*> > >::operator()() at /Users/zynbasil/slots/client/slots_client/proj.ios_mac/boost.framework/Headers/bind/bind.hpp:895
#22 0x00000001003e74f0 in boost::detail::thread_data<boost::_bi::bind_t<void, boost::_mfi::mf0<void, Sfs2X::Core::ThreadManager>, boost::_bi::list1<boost::_bi::value<Sfs2X::Core::ThreadManager*> > > >::run() at /Users/zynbasil/slots/client/slots_client/proj.ios_mac/boost.framework/Headers/thread/detail/thread.hpp:116
#23 0x00000001004fafdc in boost::(anonymous namespace)::thread_proxy(void*) at /Users/zynbasil/sfs_cocos2dx/boostios/src/boost_1_59_0/libs/thread/src/pthread/thread.cpp:168
User avatar
Lapo
Site Admin
Posts: 20113
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: xcode7 ios 64bit crash

Postby Lapo » 30 May 2016, 13:50

Can you reproduce it all the times?
If so can you show us the code used for sending the request?

Does the connection and login work okay prior to sending the Ext. request?

Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games
zynbasil
Posts: 25
Joined: 23 May 2016, 03:59

Re: xcode7 ios 64bit crash

Postby zynbasil » 31 May 2016, 02:25

Can you reproduce it all the times?
[No ~~ Random crash]

Does the connection and login work okay prior to sending the Ext. request?
[Work fun, can sand request normally]
zynbasil
Posts: 25
Joined: 23 May 2016, 03:59

Re: xcode7 ios 64bit crash

Postby zynbasil » 31 May 2016, 02:32

New crash

signal SIGABRT

#10 0x00000001001354cc in std::__1::__allocate(unsigned long) [inlined] at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/new:168
#11 0x00000001001354c4 in std::__1::allocator<unsigned char>::allocate(unsigned long, void const*) [inlined] at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:1720
#12 0x00000001001354bc in std::__1::allocator_traits<std::__1::allocator<unsigned char> >::allocate(std::__1::allocator<unsigned char>&, unsigned long) [inlined] at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:1479
#13 0x00000001001354a8 in std::__1::__split_buffer<unsigned char, std::__1::allocator<unsigned char>&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator<unsigned char>&) at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__split_buffer:306
#14 0x0000000100134f50 in std::__1::__split_buffer<unsigned char, std::__1::allocator<unsigned char>&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator<unsigned char>&) at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__split_buffer:305
#15 0x00000001003628f0 in void std::__1::vector<unsigned char, std::__1::allocator<unsigned char> >::__push_back_slow_path<unsigned char>(unsigned char&&) at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/vector:1571
#16 0x00000001004c94c8 in std::__1::vector<unsigned char, std::__1::allocator<unsigned char> >::push_back(unsigned char&&) [inlined] at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/vector:1612
#17 0x00000001004c93ac in Sfs2X::Util::ByteArray::WriteUTF(boost::shared_ptr<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >) at /Users/zynbasil/slots/client/slots_client/libs/smartfox/Util/ByteArray.cpp:507
#18 0x0000000100283360 in Sfs2X::Protocol::Serialization::DefaultSFSDataSerializer::EncodeSFSObjectKey(boost::shared_ptr<Sfs2X::Util::ByteArray>, boost::shared_ptr<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >) at /Users/zynbasil/slots/client/slots_client/libs/smartfox/Protocol/Serialization/DefaultSFSDataSerializer.cpp:886
#19 0x0000000100282fc8 in Sfs2X::Protocol::Serialization::DefaultSFSDataSerializer::Obj2bin(boost::shared_ptr<Sfs2X::Entities::Data::ISFSObject>, boost::shared_ptr<Sfs2X::Util::ByteArray>) at /Users/zynbasil/slots/client/slots_client/libs/smartfox/Protocol/Serialization/DefaultSFSDataSerializer.cpp:78
#20 0x0000000100282c94 in Sfs2X::Protocol::Serialization::DefaultSFSDataSerializer::Object2Binary(boost::shared_ptr<Sfs2X::Entities::Data::ISFSObject>) at /Users/zynbasil/slots/client/slots_client/libs/smartfox/Protocol/Serialization/DefaultSFSDataSerializer.cpp:62
#21 0x000000010028413c in Sfs2X::Protocol::Serialization::DefaultSFSDataSerializer::EncodeObject(boost::shared_ptr<Sfs2X::Util::ByteArray>, int, boost::shared_ptr<void>) at /Users/zynbasil/slots/client/slots_client/libs/smartfox/Protocol/Serialization/DefaultSFSDataSerializer.cpp:451
#22 0x0000000100283070 in Sfs2X::Protocol::Serialization::DefaultSFSDataSerializer::Obj2bin(boost::shared_ptr<Sfs2X::Entities::Data::ISFSObject>, boost::shared_ptr<Sfs2X::Util::ByteArray>) at /Users/zynbasil/slots/client/slots_client/libs/smartfox/Protocol/Serialization/DefaultSFSDataSerializer.cpp:81
#23 0x0000000100282c94 in Sfs2X::Protocol::Serialization::DefaultSFSDataSerializer::Object2Binary(boost::shared_ptr<Sfs2X::Entities::Data::ISFSObject>) at /Users/zynbasil/slots/client/slots_client/libs/smartfox/Protocol/Serialization/DefaultSFSDataSerializer.cpp:62
#24 0x00000001003b68fc in Sfs2X::Entities::Data::SFSObject::ToBinary() at /Users/zynbasil/slots/client/slots_client/libs/smartfox/Entities/Data/SFSObject.cpp:1485
#25 0x00000001003b5a80 in Sfs2X::Entities::Data::SFSObject::GetHexDump() at /Users/zynbasil/slots/client/slots_client/libs/smartfox/Entities/Data/SFSObject.cpp:1387
#26 0x00000001001c9c00 in Sfs2X::Core::SFSProtocolCodec::OnPacketWrite(boost::shared_ptr<Sfs2X::Bitswarm::IMessage>) at /Users/zynbasil/slots/client/slots_client/libs/smartfox/Core/SFSProtocolCodec.cpp:105
#27 0x00000001001d48b8 in Sfs2X::Bitswarm::BitSwarmClient::Send(boost::shared_ptr<Sfs2X::Bitswarm::IMessage>) at /Users/zynbasil/slots/client/slots_client/libs/smartfox/Bitswarm/BitSwarmClient.cpp:625
#28 0x000000010019558c in Sfs2X::SmartFox::Send(boost::shared_ptr<Sfs2X::Requests::IRequest>) at /Users/zynbasil/slots/client/slots_client/libs/smartfox/SmartFox.cpp:1001
zynbasil
Posts: 25
Joined: 23 May 2016, 03:59

Re: xcode7 ios 64bit crash

Postby zynbasil » 31 May 2016, 02:49

new crash

EXC_BAD_ACCESS

#0 0x0000000100103124 in std::__1::__tree<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, boost::shared_ptr<void> >, std::__1::__map_value_compare<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, boost::shared_ptr<void> >, std::__1::less<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, true>, std::__1::allocator<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, boost::shared_ptr<void> > > >::destroy(std::__1::__tree_node<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, boost::shared_ptr<void> >, void*>*) at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__tree:1428
#1 0x0000000100103134 in std::__1::__tree<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, boost::shared_ptr<void> >, std::__1::__map_value_compare<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, boost::shared_ptr<void> >, std::__1::less<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, true>, std::__1::allocator<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, boost::shared_ptr<void> > > >::destroy(std::__1::__tree_node<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, boost::shared_ptr<void> >, void*>*) at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__tree:1428
#2 0x0000000100109ae8 in std::__1::__tree<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, boost::shared_ptr<void> >, std::__1::__map_value_compare<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, boost::shared_ptr<void> >, std::__1::less<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, true>, std::__1::allocator<std::__1::__value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, boost::shared_ptr<void> > > >::clear() at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__tree:1466
#3 0x00000001000df290 in std::__1::map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, boost::shared_ptr<void>, std::__1::less<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const, boost::shared_ptr<void> > > >::clear() [inlined] at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/map:1240
#4 0x00000001000df28c in Sfs2X::SmartFox::CleanEventParams(boost::shared_ptr<Sfs2X::Core::BaseEvent>) at /Users/zynbasil/slots/client/slots_client/libs/smartfox/SmartFox.cpp:1660
#5 0x00000001000df978 in Sfs2X::SmartFox::ProcessEvents() at /Users/zynbasil/slots/client/slots_client/libs/smartfox/SmartFox.cpp:1576
zynbasil
Posts: 25
Joined: 23 May 2016, 03:59

Re: xcode7 ios 64bit crash

Postby zynbasil » 31 May 2016, 03:24

new crash

signal SIGABRT

I do not know why this place will crash~~~

boost::shared_ptr<vector<unsigned char> > data (new vector<unsigned char>(utfBuffer));

***************************************
#10 0x00000001004a3270 in Sfs2X::Util::ByteArray::WriteUTF(boost::shared_ptr<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >) at /Users/zynbasil/slots/client/slots_client/libs/smartfox/Util/ByteArray.cpp:510
#11 0x000000010025a308 in Sfs2X::Protocol::Serialization::DefaultSFSDataSerializer::EncodeSFSObjectKey(boost::shared_ptr<Sfs2X::Util::ByteArray>, boost::shared_ptr<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >) at /Users/zynbasil/slots/client/slots_client/libs/smartfox/Protocol/Serialization/DefaultSFSDataSerializer.cpp:886
#12 0x0000000100259f70 in Sfs2X::Protocol::Serialization::DefaultSFSDataSerializer::Obj2bin(boost::shared_ptr<Sfs2X::Entities::Data::ISFSObject>, boost::shared_ptr<Sfs2X::Util::ByteArray>) at /Users/zynbasil/slots/client/slots_client/libs/smartfox/Protocol/Serialization/DefaultSFSDataSerializer.cpp:78
#13 0x0000000100259c3c in Sfs2X::Protocol::Serialization::DefaultSFSDataSerializer::Object2Binary(boost::shared_ptr<Sfs2X::Entities::Data::ISFSObject>) at /Users/zynbasil/slots/client/slots_client/libs/smartfox/Protocol/Serialization/DefaultSFSDataSerializer.cpp:62
#14 0x000000010025b0e4 in Sfs2X::Protocol::Serialization::DefaultSFSDataSerializer::EncodeObject(boost::shared_ptr<Sfs2X::Util::ByteArray>, int, boost::shared_ptr<void>) at /Users/zynbasil/slots/client/slots_client/libs/smartfox/Protocol/Serialization/DefaultSFSDataSerializer.cpp:451
#15 0x000000010025a018 in Sfs2X::Protocol::Serialization::DefaultSFSDataSerializer::Obj2bin(boost::shared_ptr<Sfs2X::Entities::Data::ISFSObject>, boost::shared_ptr<Sfs2X::Util::ByteArray>) at /Users/zynbasil/slots/client/slots_client/libs/smartfox/Protocol/Serialization/DefaultSFSDataSerializer.cpp:81
#16 0x0000000100259c3c in Sfs2X::Protocol::Serialization::DefaultSFSDataSerializer::Object2Binary(boost::shared_ptr<Sfs2X::Entities::Data::ISFSObject>) at /Users/zynbasil/slots/client/slots_client/libs/smartfox/Protocol/Serialization/DefaultSFSDataSerializer.cpp:62
#17 0x000000010039065c in Sfs2X::Entities::Data::SFSObject::ToBinary() at /Users/zynbasil/slots/client/slots_client/libs/smartfox/Entities/Data/SFSObject.cpp:1485
#18 0x000000010038f7e0 in Sfs2X::Entities::Data::SFSObject::GetHexDump() at /Users/zynbasil/slots/client/slots_client/libs/smartfox/Entities/Data/SFSObject.cpp:1387
#19 0x000000010019aaf8 in Sfs2X::Core::SFSProtocolCodec::OnPacketWrite(boost::shared_ptr<Sfs2X::Bitswarm::IMessage>) at /Users/zynbasil/slots/client/slots_client/libs/smartfox/Core/SFSProtocolCodec.cpp:105
#20 0x00000001001a57b0 in Sfs2X::Bitswarm::BitSwarmClient::Send(boost::shared_ptr<Sfs2X::Bitswarm::IMessage>) at /Users/zynbasil/slots/client/slots_client/libs/smartfox/Bitswarm/BitSwarmClient.cpp:625
#21 0x0000000100166484 in Sfs2X::SmartFox::Send(boost::shared_ptr<Sfs2X::Requests::IRequest>) at /Users/zynbasil/slots/client/slots_client/libs/smartfox/SmartFox.cpp:1001
zynbasil
Posts: 25
Joined: 23 May 2016, 03:59

Re: xcode7 ios 64bit crash

Postby zynbasil » 31 May 2016, 03:52

when you test client c++ on iphone6,will crash?
User avatar
Lapo
Site Admin
Posts: 20113
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: xcode7 ios 64bit crash

Postby Lapo » 31 May 2016, 07:55

The problem here is that we don't have enough data to investigate.
You have posted a bunch of different errors but you haven't given any context about them.

What we need is a way to reproduce these. So can you please show us the code and the steps you are using to cause one of these errors?
Also we need you to specify if the error is reproducible at will (100% of times times) or if it's intermittent.

Probably the best idea is to post each issue in a different thread with the details I asked and we'll start from there.
Lapo

--

gotoAndPlay()

...addicted to flash games
zynbasil
Posts: 25
Joined: 23 May 2016, 03:59

Re: xcode7 ios 64bit crash

Postby zynbasil » 31 May 2016, 09:46

I write a simple. also crash (random crash)

xcode 7
cocos2dx 3.8.1

simulator(not crash)
iphone6(crash)

when iphone6 connect xcode to debug (will easy crash)
when iphone6 disconnect xcode , run the test (will not easy crash)

the message client log:(few times will crash)
recv msgres from server : Hello to you, 123
recv msgres from server : Hello to you, 123
recv msgres from server : Hello to you, 123


client

Code: Select all

//
//  TestSendScene.cpp
//  sfstest
//
//  Created by zynbasil on 16/5/31.
//
//

#include "TestSendScene.hpp"
#include "LoginRequest.h"
#include "ExtensionRequest.h"
USING_NS_CC;

Scene* TestSendScene::createScene()
{
    // 'scene' is an autorelease object
    auto scene = Scene::create();
   
    // 'layer' is an autorelease object
    auto layer = TestSendScene::create();
   
    // add layer as a child to scene
    scene->addChild(layer);
   
    return scene;
}
static TestSendScene *_shared = nullptr;

TestSendScene* TestSendScene::shared()
{
   
    return _shared;
}

bool TestSendScene::init()
{
    //////////////////////////////
    // 1. super init first
    if ( !Layer::init() )
    {
        return false;
    }
    _shared=this;
   
    Size visibleSize = Director::getInstance()->getVisibleSize();
    Vec2 origin = Director::getInstance()->getVisibleOrigin();
   
   
    mSmartFox = boost::shared_ptr<Sfs2X::SmartFox>(new Sfs2X::SmartFox(true));
    mSmartFox->ThreadSafeMode(true);
    mSmartFox->AddEventListener(SFSEvent::CONNECTION, boost::shared_ptr<EventListenerDelegate> (new EventListenerDelegate(TestSendScene::OnSmartFoxConnection, (unsigned long long)this)));
    mSmartFox->AddEventListener(SFSEvent::LOGIN, boost::shared_ptr<EventListenerDelegate> (new EventListenerDelegate(TestSendScene::OnSmartFoxLogin, (unsigned long long)this)));
    mSmartFox->AddEventListener(SFSEvent::EXTENSION_RESPONSE, boost::shared_ptr<EventListenerDelegate> (new EventListenerDelegate(TestSendScene::OnExtensionResponse, (unsigned long long)this)));
   
    mSmartFox->Connect("192.168.1.44");
   
    isLogin=false;
   
    scheduleUpdate();
    return true;
}
void TestSendScene::OnSmartFoxConnection(unsigned long long ptrContext, boost::shared_ptr<BaseEvent> ptrEvent)
{
    //if connect, login
    boost::shared_ptr<map<string, boost::shared_ptr<void> > > ptrEventParams = ptrEvent->Params();
    boost::shared_ptr<void> ptrEventParamValueSuccess = (*ptrEventParams)["success"];
    boost::shared_ptr<bool> ptrValue = (boost::static_pointer_cast<bool>)(ptrEventParamValueSuccess);
   
    if ( *ptrValue == true )
        TestSendScene::shared()->login();
   
}
void TestSendScene::OnExtensionResponse(unsigned long long ptrContext, boost::shared_ptr<BaseEvent> ptrEvent)
{
    boost::shared_ptr<map<string, boost::shared_ptr<void> > > ptrEventParams = ptrEvent->Params();
   
    boost::shared_ptr<void> ptrEventParamValueParams = (*ptrEventParams)["params"];
    boost::shared_ptr<ISFSObject> ptrNotifiedISFSObject = ((boost::static_pointer_cast<ISFSObject>)(ptrEventParamValueParams));
   
    boost::shared_ptr<string> res=ptrNotifiedISFSObject->GetUtfString("res");
    CCLOG("recv msgres from server : %s", res.get()->c_str());

}
void TestSendScene::OnSmartFoxLogin(unsigned long long ptrContext, boost::shared_ptr<BaseEvent> ptrEvent)
{
    TestSendScene::shared()->isLogin=true;
}

void TestSendScene::update(float dt)
{
    mSmartFox->ProcessEvents();
    static float time_total=0;
    time_total+=dt;
    if(time_total>1)
    {
        time_total-=1;
       
        if(isLogin)
        {
            boost::shared_ptr< ISFSObject > parameters(new SFSObject());
            boost::shared_ptr<IRequest> request (new ExtensionRequest ("hello",parameters));
            mSmartFox->Send(request);
        }
    }
}
void TestSendScene::login()
{
    boost::shared_ptr<IRequest> request (new LoginRequest("123","","box"));
   
    if(mSmartFox)
        mSmartFox->Send(request);
}

server

Code: Select all

from com.smartfoxserver.v2.core import *
from com.smartfoxserver.v2.exceptions import *
from com.smartfoxserver.v2.entities import *
from com.smartfoxserver.v2.entities.data import *
from com.smartfoxserver.bitswarm.sessions import *
from com.smartfoxserver.v2.api import *
from com.smartfoxserver.v2.util import *

from java.lang import Thread

class ServerEventListener(ISFSEventListener):
   def handleServerEvent(self, event):
      trace("Event: " + event.toString())

sfsEventListener = None
VERSION = "1.0.0"

def init():
   global sfsEventListener
   from java.io import *

   sfsEventListener = ServerEventListener()
   _base.addEventListener(SFSEventType.SERVER_READY, sfsEventListener)
   
   trace("Python extension started: ", _base, _sfsApi)
   trace("Version: ", VERSION)
   trace("Folder: ", _base.getCurrentFolder())

def destroy():
   _base.removeEventListener(SFSEventType.SERVER_READY, sfsEventListener)
   trace("Python extension destroyed: ", _base)
   
def handleClientRequest(cmd, sender, params):
   trace("Request: ", cmd, sender, params)
   
   if cmd == "hello":
      response = SFSObject()
      response.putUtfString("res", "Hello to you, " + sender.getName())   
      _base.send("hello", response, sender)
   
   
   

***************************************************************
crash
***************************************************************
boost::shared_ptr<string> format (new string("%02x"));

Code: Select all

#10   0x0000000100089ce0 in Sfs2X::Protocol::Serialization::DefaultObjectDumpFormatter::HexDump(boost::shared_ptr<Sfs2X::Util::ByteArray>, long) at /Users/zynbasil/sfs_cocos2dx/sfstest_cpp/libs/smartfox/Protocol/Serialization/DefaultObjectDumpFormatter.cpp:158
#11   0x000000010008920c in Sfs2X::Protocol::Serialization::DefaultObjectDumpFormatter::HexDump(boost::shared_ptr<Sfs2X::Util::ByteArray>) at /Users/zynbasil/sfs_cocos2dx/sfstest_cpp/libs/smartfox/Protocol/Serialization/DefaultObjectDumpFormatter.cpp:119
#12   0x000000010015b3fc in Sfs2X::Core::SFSIOHandler::OnDataRead(boost::shared_ptr<Sfs2X::Util::ByteArray>) at /Users/zynbasil/sfs_cocos2dx/sfstest_cpp/libs/smartfox/Core/SFSIOHandler.cpp:131
#13   0x000000010006867c in Sfs2X::Bitswarm::BitSwarmClient::OnSocketData(unsigned long long, boost::shared_ptr<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> > >) at /Users/zynbasil/sfs_cocos2dx/sfstest_cpp/libs/smartfox/Bitswarm/BitSwarmClient.cpp:913
#14   0x00000001000b0490 in Sfs2X::Util::DelegateOneArgument<boost::shared_ptr<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> > > >::Invoke(boost::shared_ptr<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> > >) at /Users/zynbasil/sfs_cocos2dx/sfstest_cpp/libs/smartfox/Core/Sockets/../../Util/DelegateOneArgument.h:54
#15   0x0000000100169e0c in Sfs2X::Core::ThreadManager::ProcessItem(boost::shared_ptr<std::__1::map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, boost::shared_ptr<void>, std::__1::less<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const, boost::shared_ptr<void> > > > >) at /Users/zynbasil/sfs_cocos2dx/sfstest_cpp/libs/smartfox/Core/ThreadManager.cpp:181
#16   0x0000000100169860 in Sfs2X::Core::ThreadManager::InThread() at /Users/zynbasil/sfs_cocos2dx/sfstest_cpp/libs/smartfox/Core/ThreadManager.cpp:95
#17   0x000000010016e5f8 in boost::_mfi::mf0<void, Sfs2X::Core::ThreadManager>::operator()(Sfs2X::Core::ThreadManager*) const at /Users/zynbasil/sfs_cocos2dx/sfstest_cpp/proj.ios_mac/boost.framework/Headers/bind/mem_fn_template.hpp:49
#18   0x000000010016e568 in void boost::_bi::list1<boost::_bi::value<Sfs2X::Core::ThreadManager*> >::operator()<boost::_mfi::mf0<void, Sfs2X::Core::ThreadManager>, boost::_bi::list0>(boost::_bi::type<void>, boost::_mfi::mf0<void, Sfs2X::Core::ThreadManager>&, boost::_bi::list0&, int) at /Users/zynbasil/sfs_cocos2dx/sfstest_cpp/proj.ios_mac/boost.framework/Headers/bind/bind.hpp:255
#19   0x000000010016e504 in boost::_bi::bind_t<void, boost::_mfi::mf0<void, Sfs2X::Core::ThreadManager>, boost::_bi::list1<boost::_bi::value<Sfs2X::Core::ThreadManager*> > >::operator()() at /Users/zynbasil/sfs_cocos2dx/sfstest_cpp/proj.ios_mac/boost.framework/Headers/bind/bind.hpp:895
#20   0x000000010016e474 in boost::detail::thread_data<boost::_bi::bind_t<void, boost::_mfi::mf0<void, Sfs2X::Core::ThreadManager>, boost::_bi::list1<boost::_bi::value<Sfs2X::Core::ThreadManager*> > > >::run() at /Users/zynbasil/sfs_cocos2dx/sfstest_cpp/proj.ios_mac/boost.framework/Headers/thread/detail/thread.hpp:116
#21   0x00000001001cb07c in boost::(anonymous namespace)::thread_proxy(void*) at /Users/zynbasil/sfs_cocos2dx/boostios/src/boost_1_59_0/libs/thread/src/pthread/thread.cpp:168


format = boost::shared_ptr<string>(new string("%c"));

Code: Select all

#10   0x00000001000f6410 in Sfs2X::Protocol::Serialization::DefaultObjectDumpFormatter::HexDump(boost::shared_ptr<Sfs2X::Util::ByteArray>, long) at /Users/zynbasil/sfs_cocos2dx/sfstest_cpp/libs/smartfox/Protocol/Serialization/DefaultObjectDumpFormatter.cpp:181
#11   0x00000001000f520c in Sfs2X::Protocol::Serialization::DefaultObjectDumpFormatter::HexDump(boost::shared_ptr<Sfs2X::Util::ByteArray>) at /Users/zynbasil/sfs_cocos2dx/sfstest_cpp/libs/smartfox/Protocol/Serialization/DefaultObjectDumpFormatter.cpp:119
#12   0x00000001001c73fc in Sfs2X::Core::SFSIOHandler::OnDataRead(boost::shared_ptr<Sfs2X::Util::ByteArray>) at /Users/zynbasil/sfs_cocos2dx/sfstest_cpp/libs/smartfox/Core/SFSIOHandler.cpp:131
#13   0x00000001000d467c in Sfs2X::Bitswarm::BitSwarmClient::OnSocketData(unsigned long long, boost::shared_ptr<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> > >) at /Users/zynbasil/sfs_cocos2dx/sfstest_cpp/libs/smartfox/Bitswarm/BitSwarmClient.cpp:913
#14   0x000000010011c490 in Sfs2X::Util::DelegateOneArgument<boost::shared_ptr<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> > > >::Invoke(boost::shared_ptr<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> > >) at /Users/zynbasil/sfs_cocos2dx/sfstest_cpp/libs/smartfox/Core/Sockets/../../Util/DelegateOneArgument.h:54
#15   0x00000001001d5e0c in Sfs2X::Core::ThreadManager::ProcessItem(boost::shared_ptr<std::__1::map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, boost::shared_ptr<void>, std::__1::less<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const, boost::shared_ptr<void> > > > >) at /Users/zynbasil/sfs_cocos2dx/sfstest_cpp/libs/smartfox/Core/ThreadManager.cpp:181
#16   0x00000001001d5860 in Sfs2X::Core::ThreadManager::InThread() at /Users/zynbasil/sfs_cocos2dx/sfstest_cpp/libs/smartfox/Core/ThreadManager.cpp:95
#17   0x00000001001da5f8 in boost::_mfi::mf0<void, Sfs2X::Core::ThreadManager>::operator()(Sfs2X::Core::ThreadManager*) const at /Users/zynbasil/sfs_cocos2dx/sfstest_cpp/proj.ios_mac/boost.framework/Headers/bind/mem_fn_template.hpp:49
#18   0x00000001001da568 in void boost::_bi::list1<boost::_bi::value<Sfs2X::Core::ThreadManager*> >::operator()<boost::_mfi::mf0<void, Sfs2X::Core::ThreadManager>, boost::_bi::list0>(boost::_bi::type<void>, boost::_mfi::mf0<void, Sfs2X::Core::ThreadManager>&, boost::_bi::list0&, int) at /Users/zynbasil/sfs_cocos2dx/sfstest_cpp/proj.ios_mac/boost.framework/Headers/bind/bind.hpp:255
#19   0x00000001001da504 in boost::_bi::bind_t<void, boost::_mfi::mf0<void, Sfs2X::Core::ThreadManager>, boost::_bi::list1<boost::_bi::value<Sfs2X::Core::ThreadManager*> > >::operator()() at /Users/zynbasil/sfs_cocos2dx/sfstest_cpp/proj.ios_mac/boost.framework/Headers/bind/bind.hpp:895
#20   0x00000001001da474 in boost::detail::thread_data<boost::_bi::bind_t<void, boost::_mfi::mf0<void, Sfs2X::Core::ThreadManager>, boost::_bi::list1<boost::_bi::value<Sfs2X::Core::ThreadManager*> > > >::run() at /Users/zynbasil/sfs_cocos2dx/sfstest_cpp/proj.ios_mac/boost.framework/Headers/thread/detail/thread.hpp:116
#21   0x000000010023707c in boost::(anonymous namespace)::thread_proxy(void*) at /Users/zynbasil/sfs_cocos2dx/boostios/src/boost_1_59_0/libs/thread/src/pthread/thread.cpp:168

boost::shared_ptr<vector<string> > keyList (new vector<string>());

Code: Select all

#10   0x00000001001f3998 in Sfs2X::Entities::Data::SFSObject::GetKeys() at /Users/zynbasil/sfs_cocos2dx/sfstest_cpp/libs/smartfox/Entities/Data/SFSObject.cpp:1395
#11   0x000000010016f468 in Sfs2X::Protocol::Serialization::DefaultSFSDataSerializer::Obj2bin(boost::shared_ptr<Sfs2X::Entities::Data::ISFSObject>, boost::shared_ptr<Sfs2X::Util::ByteArray>) at /Users/zynbasil/sfs_cocos2dx/sfstest_cpp/libs/smartfox/Protocol/Serialization/DefaultSFSDataSerializer.cpp:67
#12   0x000000010016f378 in Sfs2X::Protocol::Serialization::DefaultSFSDataSerializer::Object2Binary(boost::shared_ptr<Sfs2X::Entities::Data::ISFSObject>) at /Users/zynbasil/sfs_cocos2dx/sfstest_cpp/libs/smartfox/Protocol/Serialization/DefaultSFSDataSerializer.cpp:62
#13   0x00000001001f478c in Sfs2X::Entities::Data::SFSObject::ToBinary() at /Users/zynbasil/sfs_cocos2dx/sfstest_cpp/libs/smartfox/Entities/Data/SFSObject.cpp:1485
#14   0x00000001001f3910 in Sfs2X::Entities::Data::SFSObject::GetHexDump() at /Users/zynbasil/sfs_cocos2dx/sfstest_cpp/libs/smartfox/Entities/Data/SFSObject.cpp:1387
#15   0x0000000100115378 in Sfs2X::Core::SFSProtocolCodec::OnPacketWrite(boost::shared_ptr<Sfs2X::Bitswarm::IMessage>) at /Users/zynbasil/sfs_cocos2dx/sfstest_cpp/libs/smartfox/Core/SFSProtocolCodec.cpp:105
#16   0x0000000100120030 in Sfs2X::Bitswarm::BitSwarmClient::Send(boost::shared_ptr<Sfs2X::Bitswarm::IMessage>) at /Users/zynbasil/sfs_cocos2dx/sfstest_cpp/libs/smartfox/Bitswarm/BitSwarmClient.cpp:625
#17   0x00000001000e0a88 in Sfs2X::SmartFox::Send(boost::shared_ptr<Sfs2X::Requests::IRequest>) at /Users/zynbasil/sfs_cocos2dx/sfstest_cpp/libs/smartfox/SmartFox.cpp:1001
#18   0x000000010019bb98 in TestSendScene::update(float) at /Users/zynbasil/sfs_cocos2dx/sfstest_cpp/Classes/TestSendScene.cpp:102
#19   0x000000010034b36c in void cocos2d::Scheduler::scheduleUpdate<cocos2d::Node>(cocos2d::Node*, int, bool)::'lambda'(float)::operator()(float) const at /Users/zynbasil/sfs_cocos2dx/sfstest_cpp/cocos2d/build/../cocos/base/CCScheduler.h:284
#20   0x000000010034b334 in decltype(std::__1::forward<cocos2d::Node>(fp)(std::__1::forward<float>(fp0))) std::__1::__invoke<void cocos2d::Scheduler::scheduleUpdate<cocos2d::Node>(cocos2d::Node*, int, bool)::'lambda'(float)&, float>(cocos2d::Node&&, float&&) [inlined] at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__functional_base:416
#21   0x000000010034b314 in void std::__1::__invoke_void_return_wrapper<void>::__call<void cocos2d::Scheduler::scheduleUpdate<cocos2d::Node>(cocos2d::Node*, int, bool)::'lambda'(float)&, float>(void cocos2d::Scheduler::scheduleUpdate<cocos2d::Node>(cocos2d::Node*, int, bool)::'lambda'(float)&&&, float&&) at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__functional_base:468
#22   0x000000010034b140 in std::__1::__function::__func<void cocos2d::Scheduler::scheduleUpdate<cocos2d::Node>(cocos2d::Node*, int, bool)::'lambda'(float), std::__1::allocator<void cocos2d::Scheduler::scheduleUpdate<cocos2d::Node>(cocos2d::Node*, int, bool)::'lambda'(float)>, void (float)>::operator()(float&&) at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/functional:1437
#23   0x00000001002e491c in std::__1::function<void (float)>::operator()(float) const at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/functional:1817
#24   0x00000001002e27e4 in cocos2d::Scheduler::update(float) at /Users/zynbasil/sfs_cocos2dx/sfstest_cpp/cocos2d/cocos/base/CCScheduler.cpp:859
#25   0x00000001002f98e8 in cocos2d::Director::drawScene() at /Users/zynbasil/sfs_cocos2dx/sfstest_cpp/cocos2d/cocos/base/CCDirector.cpp:269
#26   0x00000001002fcda4 in cocos2d::DisplayLinkDirector::mainLoop() at /Users/zynbasil/sfs_cocos2dx/sfstest_cpp/cocos2d/cocos/base/CCDirector.cpp:1328
#27   0x0000000100460ba8 in -[CCDirectorCaller doCaller:] at /Users/zynbasil/sfs_cocos2dx/sfstest_cpp/cocos2d/cocos/platform/ios/CCDirectorCaller-ios.mm:110


more...............
chamroeun
Posts: 10
Joined: 18 Feb 2016, 17:15

Re: xcode7 ios 64bit crash

Postby chamroeun » 02 Jun 2016, 02:22

Hi,
I also face this random crash on iPhone 6(iOS 9).

It seems to have problem with iOS9.

But it runs fine on iPad mini, iphone 4,5 with iOS6,7,8

I use cocos2d-x 2.2.6

Any advice?

Thanks;

Return to “SFS2X C++ API”

Who is online

Users browsing this forum: No registered users and 2 guests