{"action":"created","issue":{"url":"https://api.github.com/repos/cocos2d/cocos2d-js/issues/1776","labels_url":"https://api.github.com/repos/cocos2d/cocos2d-js/issues/1776/labels{/name}","comments_url":"https://api.github.com/repos/cocos2d/cocos2d-js/issues/1776/comments","events_url":"https://api.github.com/repos/cocos2d/cocos2d-js/issues/1776/events","html_url":"https://github.com/cocos2d/cocos2d-js/issues/1776","id":92131758,"number":1776,"title":"cocos2d::SpriteFrame::getTexture() in IOS","user":{"login":"siddhanth","id":1996238,"avatar_url":"https://avatars.githubusercontent.com/u/1996238?v=3","gravatar_id":"","url":"https://api.github.com/users/siddhanth","html_url":"https://github.com/siddhanth","followers_url":"https://api.github.com/users/siddhanth/followers","following_url":"https://api.github.com/users/siddhanth/following{/other_user}","gists_url":"https://api.github.com/users/siddhanth/gists{/gist_id}","starred_url":"https://api.github.com/users/siddhanth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/siddhanth/subscriptions","organizations_url":"https://api.github.com/users/siddhanth/orgs","repos_url":"https://api.github.com/users/siddhanth/repos","events_url":"https://api.github.com/users/siddhanth/events{/privacy}","received_events_url":"https://api.github.com/users/siddhanth/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-30T15:59:57Z","updated_at":"2015-07-02T11:04:19Z","closed_at":null,"body":"Hi i keep getting this crash on IOS device, but am not able to figure out exactly why is it happening. I am using crashlytics for bug reporting but even from there i am not able to make much out of it. Have attached the log trace for the issue. Is it a know issue or is there something which can fix this ?\r\n```\r\nd : Crashed: com.apple.main-thread\r\n0  MyApp                         0x00000001008195a4 cocos2d::SpriteFrame::getTexture() + 2098468\r\n1  MyApp                         0x0000000100812ff4 cocos2d::Sprite::initWithSpriteFrame(cocos2d::SpriteFrame*) + 2072436\r\n2  MyApp                         0x0000000100525f84 js_cocos2dx_Sprite_initWithSpriteFrameName(JSContext*, unsigned int, JS::Value*) + 581860\r\n3  MyApp                         0x0000000100711694 js::Invoke(JSContext*, JS::CallArgs, js::MaybeConstruct) + 1017364\r\n4  MyApp                         0x000000010070d55c Interpret(JSContext*, js::RunState&) + 1000668\r\n5  MyApp                         0x0000000100706694 js::RunScript(JSContext*, js::RunState&) + 972308\r\n6  MyApp                         0x00000001007117a0 js::Invoke(JSContext*, JS::CallArgs, js::MaybeConstruct) + 1017632\r\n7  MyApp                         0x0000000100711ae4 js::Invoke(JSContext*, JS::Value const&, JS::Value const&, unsigned int, JS::Value const*, JS::MutableHandle<JS::Value>) + 1018468\r\n8  MyApp                         0x0000000100639a80 JS_CallFunctionName(JSContext*, JS::Handle<JSObject*>, char const*, JS::HandleValueArray const&, JS::MutableHandle<JS::Value>) + 133632\r\n9  MyApp                         0x0000000100595d74 ScriptingCore::executeFunctionWithOwner(JS::Value, char const*, JS::HandleValueArray const&, JS::MutableHandle<JS::Value>) + 12632\r\n10 MyApp                         0x0000000100595dcc ScriptingCore::executeFunctionWithOwner(JS::Value, char const*, JS::HandleValueArray const&) + 12720\r\n11 MyApp                         0x00000001005280b8 js_cocos2dx_Sprite_constructor(JSContext*, unsigned int, JS::Value*) + 590360\r\n12 MyApp                         0x0000000100711c4c js::InvokeConstructor(JSContext*, JS::CallArgs) + 1018828\r\n13 MyApp                         0x000000010070d548 Interpret(JSContext*, js::RunState&) + 1000648\r\n14 MyApp                         0x0000000100706694 js::RunScript(JSContext*, js::RunState&) + 972308\r\n15 MyApp                         0x00000001007117a0 js::Invoke(JSContext*, JS::CallArgs, js::MaybeConstruct) + 1017632\r\n16 MyApp                         0x000000010065f874 js::CallOrConstructBoundFunction(JSContext*, unsigned int, JS::Value*) + 288756\r\n17 MyApp                         0x0000000100711694 js::Invoke(JSContext*, JS::CallArgs, js::MaybeConstruct) + 1017364\r\n18 MyApp                         0x0000000100711ae4 js::Invoke(JSContext*, JS::Value const&, JS::Value const&, unsigned int, JS::Value const*, JS::MutableHandle<JS::Value>) + 1018468\r\n19 MyApp                         0x0000000100639b18 JS_CallFunctionValue(JSContext*, JS::Handle<JSObject*>, JS::Handle<JS::Value>, JS::HandleValueArray const&, JS::MutableHandle<JS::Value>) + 133784\r\n20 MyApp                         0x0000000100584a50 JSFunctionWrapper::invoke(unsigned int, JS::Value*, JS::MutableHandle<JS::Value>) + 896\r\n21 MyApp                         0x0000000100559c48 std::__1::__function::__func<js_cocos2dx_MenuItemSprite_initWithNormalSprite(JSContext*, unsigned int, JS::Value*)::$_17, std::__1::allocator<js_cocos2dx_MenuItemSprite_initWithNormalSprite(JSContext*, unsigned int, JS::Value*)::$_17>, void (cocos2d::Ref*)>::operator()(cocos2d::Ref*&&) + 794024\r\n22 MyApp                         0x00000001007737f0 std::__1::function<void (cocos2d::Ref*)>::operator()(cocos2d::Ref*) const + 1419120\r\n23 MyApp                         0x00000001007f9700 cocos2d::MenuItem::activate() + 1967744\r\n24 MyApp                         0x00000001007f8764 cocos2d::Menu::onTouchEnded(cocos2d::Touch*, cocos2d::Event*) + 1963748\r\n25 MyApp                         0x0000000100851bc8 std::__1::function<void (cocos2d::Touch*, cocos2d::Event*)>::operator()(cocos2d::Touch*, cocos2d::Event*) const + 2329416\r\n26 MyApp                         0x000000010084f894 std::__1::__function::__func<cocos2d::EventDispatcher::dispatchTouchEvent(cocos2d::EventTouch*)::$_3, std::__1::allocator<cocos2d::EventDispatcher::dispatchTouchEvent(cocos2d::EventTouch*)::$_3>, bool (cocos2d::EventListener*)>::operator()(cocos2d::EventListener*&&) + 2320404\r\n27 MyApp                         0x0000000100850554 std::__1::function<bool (cocos2d::EventListener*)>::operator()(cocos2d::EventListener*) const + 2323668\r\n28 MyApp                         0x000000010084cce0 cocos2d::EventDispatcher::dispatchEventToListeners(cocos2d::EventDispatcher::EventListenerVector*, std::__1::function<bool (cocos2d::EventListener*)> const&) + 2309216\r\n29 MyApp                         0x000000010084d13c cocos2d::EventDispatcher::dispatchTouchEvent(cocos2d::EventTouch*) + 2310332\r\n30 MyApp                         0x000000010084ce44 cocos2d::EventDispatcher::dispatchEvent(cocos2d::Event*) + 2309572\r\n31 MyApp                         0x0000000100862818 cocos2d::GLView::handleTouchesOfEndOrCancel(cocos2d::EventTouch::EventCode, int, long*, float*, float*) + 2398104\r\n32 MyApp                         0x0000000100858b4c -[CCEAGLView touchesEnded:withEvent:] + 2357964\r\n33 UIKit                          0x0000000186c68a2c -[UIWindow _sendTouchesForEvent:] + 700\r\n34 UIKit                          0x0000000186c61f68 -[UIWindow sendEvent:] + 684\r\n35 UIKit                          0x0000000186c3518c -[UIApplication sendEvent:] + 264\r\n36 UIKit                          0x0000000186ed6324 _UIApplicationHandleEventFromQueueEvent + 15424\r\n37 UIKit                          0x0000000186c336a0 _UIApplicationHandleEventQueue + 1716\r\n38 CoreFoundation                 0x00000001821ac240 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24\r\n39 CoreFoundation                 0x00000001821ab4e4 __CFRunLoopDoSources0 + 264\r\n40 CoreFoundation                 0x00000001821a9594 __CFRunLoopRun + 712\r\n41 CoreFoundation                 0x00000001820d52d4 CFRunLoopRunSpecific + 396\r\n42 GraphicsServices               0x000000018b8eb6fc GSEventRunModal + 168\r\n43 UIKit                          0x0000000186c9afac UIApplicationMain + 1488\r\n44 MyApp                         0x00000001000c7694 main (main.m:8)\r\n45 libdyld.dylib                  0x0000000194096a08 start + 4\r\n```"},"comment":{"url":"https://api.github.com/repos/cocos2d/cocos2d-js/issues/comments/117999291","html_url":"https://github.com/cocos2d/cocos2d-js/issues/1776#issuecomment-117999291","issue_url":"https://api.github.com/repos/cocos2d/cocos2d-js/issues/1776","id":117999291,"user":{"login":"pandamicro","id":632460,"avatar_url":"https://avatars.githubusercontent.com/u/632460?v=3","gravatar_id":"","url":"https://api.github.com/users/pandamicro","html_url":"https://github.com/pandamicro","followers_url":"https://api.github.com/users/pandamicro/followers","following_url":"https://api.github.com/users/pandamicro/following{/other_user}","gists_url":"https://api.github.com/users/pandamicro/gists{/gist_id}","starred_url":"https://api.github.com/users/pandamicro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pandamicro/subscriptions","organizations_url":"https://api.github.com/users/pandamicro/orgs","repos_url":"https://api.github.com/users/pandamicro/repos","events_url":"https://api.github.com/users/pandamicro/events{/privacy}","received_events_url":"https://api.github.com/users/pandamicro/received_events","type":"User","site_admin":false},"created_at":"2015-07-02T11:04:19Z","updated_at":"2015-07-02T11:04:19Z","body":"It's probably because your Texture2d object have been released , please check"}}