{"action":"reopened","issue":{"url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/13773","labels_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/13773/labels{/name}","comments_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/13773/comments","events_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/13773/events","html_url":"https://github.com/cocos2d/cocos2d-x/issues/13773","id":105927555,"number":13773,"title":"Crash on Label release","user":{"login":"StrikerScoleriWilliams","id":10916275,"avatar_url":"https://avatars.githubusercontent.com/u/10916275?v=3","gravatar_id":"","url":"https://api.github.com/users/StrikerScoleriWilliams","html_url":"https://github.com/StrikerScoleriWilliams","followers_url":"https://api.github.com/users/StrikerScoleriWilliams/followers","following_url":"https://api.github.com/users/StrikerScoleriWilliams/following{/other_user}","gists_url":"https://api.github.com/users/StrikerScoleriWilliams/gists{/gist_id}","starred_url":"https://api.github.com/users/StrikerScoleriWilliams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StrikerScoleriWilliams/subscriptions","organizations_url":"https://api.github.com/users/StrikerScoleriWilliams/orgs","repos_url":"https://api.github.com/users/StrikerScoleriWilliams/repos","events_url":"https://api.github.com/users/StrikerScoleriWilliams/events{/privacy}","received_events_url":"https://api.github.com/users/StrikerScoleriWilliams/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-11T01:16:35Z","updated_at":"2015-09-14T06:56:40Z","closed_at":null,"body":"This crash happens when scene is quickly pushed and then popped using the Director.\r\n\r\nerror type BAD_EXE_ACCESS in CCFontAtlasCache.cpp\r\n\r\n    bool FontAtlasCache::releaseFontAtlas(FontAtlas *atlas)\r\n    {\r\n        if (nullptr != atlas)\r\n        {\r\n            for( auto &item: _atlasMap )\r\n            {\r\n                if ( item.second == atlas ) //=====================> crash line ~250\r\n                {\r\n                    if (atlas->getReferenceCount() == 1)\r\n                    {\r\n                      _atlasMap.erase(item.first);\r\n                    }\r\n                \r\n                    atlas->release();\r\n                \r\n                    return true;\r\n               }\r\n            }\r\n        }\r\n    \r\n        return false;\r\n    }\r\n\r\nQueue:\r\n![screen shot 2015-09-11 at 11 13 18 am](https://cloud.githubusercontent.com/assets/10916275/9804918/31a5ec0e-5876-11e5-9b1c-6d0d4709db34.png)"}}