It looks like you're new here. If you want to get involved, click one of these buttons!
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libgideros.1.dylib 0x0000000107d2bd81 typeinfo name for GReferenced + 0 1 com.appcodingeasy.Gideros Player 0x00000001079b9b17 void EventDispatcher::removeEventListener<EnterFrameEvent, MovieClip, EnterFrameEvent>(EventType<EnterFrameEvent> const&, MovieClip*, void (MovieClip::*)(EnterFrameEvent*)) + 327 2 com.appcodingeasy.Gideros Player 0x00000001079b6d0a MovieClip::oneFrame() + 234 3 com.appcodingeasy.Gideros Player 0x0000000107971872 EventDispatcher::dispatchEvent(Event*) + 162 4 com.appcodingeasy.Gideros Player 0x00000001079c730c Stage::enterFrame(int, double) + 732 5 com.appcodingeasy.Gideros Player 0x00000001079884ba enterFrame(lua_State*) + 218 6 liblua.1.dylib 0x0000000107ce8e3f luaD_precall + 623 7 liblua.1.dylib 0x0000000107ce2ffa luaD_call + 90 8 liblua.1.dylib 0x0000000107ce8775 luaD_rawrunprotected + 85 9 liblua.1.dylib 0x0000000107ce32c4 luaD_pcall + 68 10 liblua.1.dylib 0x0000000107ce3257 lua_pcall + 279 11 libgideros.1.dylib 0x0000000107d2adff lua_pcall_traceback + 175 12 com.appcodingeasy.Gideros Player 0x0000000107987e42 LuaApplication::enterFrame(GStatus*) + 98 13 com.appcodingeasy.Gideros Player 0x000000010792acdd GLCanvas::paintGL() + 45 |
Comments
can you provide a small piece of code to reproduce the crash
Will be really hard to spot that one
I think the issue was in a character idle state sprite, with three states. Each state had a MovieClip in it. When one state had finished I randomly pick a new state from the three. The issue seemed to be that I didn't clear the event listener to pick a new state when I removed the MovieClip, so it kept running. Gideros player had enough of this sloppy code after I showed the sprite for the 40th time or so. I now clear the event listener so no new state is shown unnecessarily, and that seems to have solved it.
Thanks for listening!
Niclas
http://giderosmobile.com/forum/discussion/2818/a-warning-about-memory-management-complacency/p1