New issue
 Projects > cocos2d-x > Issues > Bug #6001

Node::stopAllActions() crash

Bug #6001 [New]
hdwkboy 2014-10-28 13:53

当我停止一个精灵的动作时出现以下crash,用的是cocos2d-x 3.x. 当精灵比较少得时候不出现,当我的游戏运行一段时间后如果出现大量的精灵是就会crash。我看了这时候的内存大约在50M左右。

这时候这个crash的精灵动作是:先run一个循环的帧动画然后run一个MoveBy的动作.

Thread 0 Crashed:
0 libsystem_kernel.dylib 0x3ad091f0 pthread_kill + 8
1 libsystem_pthread.dylib 0x3ad717b3 pthread_kill + 55
2 libsystem_c.dylib 0x3acb9ff5 abort + 73
3 libsystem_malloc.dylib 0x3ad30d21 free + 377
4 MyGame iOS 0x0013b8cb std::
1::__hash_table<std::__1::__hash_value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, cocos2d::Value>, std::__1::__unordered_map_hasher<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::__hash_value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, cocos2d::Value>, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, true>, std::__1::__unordered_map_equal<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::__hash_value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, cocos2d::Value>, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, cocos2d::Value> > >::~__hash_table() (__hash_table:1291)
5 MyGame iOS 0x0013b825 std::__1::__hash_table<std::__1::__hash_value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, cocos2d::Value>, std::__1::__unordered_map_hasher<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::__hash_value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, cocos2d::Value>, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, true>, std::__1::__unordered_map_equal<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::__hash_value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, cocos2d::Value>, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, cocos2d::Value> > >::~__hash_table() (__hash_table:1286)
6 MyGame iOS 0x00140575 std::__1::unordered_map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, cocos2d::Value, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<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, cocos2d::Value> > >::~unordered_map() (__hash_table:1163)
7 MyGame iOS 0x0013a6b1 std::__1::unordered_map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, cocos2d::Value, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<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, cocos2d::Value> > >::~unordered_map() (__hash_table:1163)
8 MyGame iOS 0x00140d71 cocos2d::AnimationFrame::~AnimationFrame() (CCAnimation.cpp:71)
9 MyGame iOS 0x00140e09 cocos2d::AnimationFrame::~AnimationFrame() (CCAnimation.cpp:67)
10 MyGame iOS 0x00140e49 cocos2d::AnimationFrame::~AnimationFrame() (CCAnimation.cpp:67)
11 MyGame iOS 0x00193329 cocos2d::Ref::release() (CCRef.cpp:133)
12 MyGame iOS 0x000a105d cocos2d::Vectorcocos2d::AnimationFrame*::clear() (CCVector.h:394)
13 MyGame iOS 0x000a0f33 cocos2d::Vectorcocos2d::AnimationFrame*::~Vector() (CCVector.h:88)
14 MyGame iOS 0x0009f501 cocos2d::Vectorcocos2d::AnimationFrame*::~Vector() (CCVector.h:86)
15 MyGame iOS 0x0014144d cocos2d::Animation::~Animation() (CCAnimation.cpp:163)
16 MyGame iOS 0x0014147d cocos2d::Animation::~Animation() (CCAnimation.cpp:161)
17 MyGame iOS 0x001414bd cocos2d::Animation::~Animation() (CCAnimation.cpp:161)
18 MyGame iOS 0x00193329 cocos2d::Ref::release() (CCRef.cpp:133)
19 MyGame iOS 0x0009e4f5 cocos2d::Animate::~Animate() (CCActionInterval.cpp:2188)
20 MyGame iOS 0x0009e5e1 cocos2d::Animate::~Animate() (CCActionInterval.cpp:2187)
21 MyGame iOS 0x0009e621 cocos2d::Animate::~Animate() (CCActionInterval.cpp:2187)
22 MyGame iOS 0x00193329 cocos2d::Ref::release() (CCRef.cpp:133)
23 MyGame iOS 0x0015589d cocos2d::ccArrayRemoveAllObjects(cocos2d::_ccArray*) (ccCArray.cpp:195)
24 MyGame iOS 0x000a43d7 cocos2d::ActionManager::removeAllActionsFromTarget(cocos2d::Node*) (CCActionManager.cpp:224)
25 MyGame iOS 0x000a942d cocos2d::Node::stopAllActions() (CCNode.cpp:1421)

Atom PDF

Status:New
Start date:2014-10-28
Priority:Low
Due date:
Assignee:-
% Done:

0%

Category:-
Target version:-