Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat | DONATE
Crashing on iOS on 2022.3.1 after playing multiple sounds in succession — Gideros Forum

Crashing on iOS on 2022.3.1 after playing multiple sounds in succession

EricCarrEricCarr Member
edited March 23 in Bugs and issues
During gameplay on my phone, when I play the same sound in quick succession, the game sometimes crashes. Here is the exception and callstack from Xcode:

Execution:
0x10425315c <+76>: adr x1, #0x54aa8 ; "/Users/nico/git/gideros/luau/VM/src/lapi.cpp"
0x104253160 <+80>: nop
0x104253164 <+84>: adr x3, #0x550a7 ; "lua_pushlightuserdata"
0x104253168 <+88>: nop
0x10425316c <+92>: mov w2, #0x290
0x104253170 <+96>: blr x8
0x104253174 <+100>: cbnz w0, 0x104253190 ; <+128> at lapi.cpp:656:5
0x104253178 <+104>: ldr x8, [x19, #0x8]
0x10425317c <+108>: add x8, x8, #0x18 ; =0x18
0x104253180 <+112>: str x8, [x19, #0x8]
0x104253184 <+116>: ldp x29, x30, [sp, #0x10]
0x104253188 <+120>: ldp x20, x19, [sp], #0x20
0x10425318c <+124>: ret
-> 0x104253190 <+128>: brk *** CRASH HERE

Callstack:
#0 0x0000000104253190 in ::lua_pushlightuserdata(lua_State *, void *) at /Users/nico/git/gideros/luau/VM/src/lapi.cpp:656
#1 0x000000010420a3b4 in ::luaL_rawgetptr(lua_State *, int, void *) at /Users/nico/git/gideros/libgideros/luautil.cpp:232
#2 0x00000001041fa348 in (anonymous namespace)::GGSound::~GGSound() [inlined] at /Users/nico/git/gideros/luabinding/audiobinder.cpp:104
#3 0x00000001041fa308 in (anonymous namespace)::GGSound::~GGSound() at /Users/nico/git/gideros/luabinding/audiobinder.cpp:101
#4 0x00000001041fa3d4 in (anonymous namespace)::GGSound::~GGSound() at /Users/nico/git/gideros/luabinding/audiobinder.cpp:101
#5 0x00000001041f9b9c in AudioBinder::Sound_destruct(void*) at /Users/nico/git/gideros/luabinding/audiobinder.cpp:529
#6 0x000000010420ee50 in luaU_freeudata(lua_State*, Udata*, lua_Page*) at /Users/nico/git/gideros/luau/VM/src/ludata.cpp:34
#7 0x0000000104244314 in sweepgco(lua_State*, lua_Page*, GCObject*) at /Users/nico/git/gideros/luau/VM/src/lgc.cpp:691
#8 0x0000000104241edc in sweepgcopage(lua_State*, lua_Page*) [inlined] at /Users/nico/git/gideros/luau/VM/src/lgc.cpp:713
#9 0x0000000104241e9c in gcstep(lua_State*, unsigned long) at /Users/nico/git/gideros/luau/VM/src/lgc.cpp:791
#10 0x0000000104241848 in luaC_step(lua_State*, bool) at /Users/nico/git/gideros/luau/VM/src/lgc.cpp:891
#11 0x0000000104286acc in void luau_execute(lua_State*) at /Users/nico/git/gideros/luau/VM/src/lvmexecute.cpp:2174
#12 0x000000010426bcfc in luau_execute(lua_State*) at /Users/nico/git/gideros/luau/VM/src/lvmexecute.cpp:3301
#13 0x000000010423ac94 in luaD_call(lua_State*, lua_TValue*, int) at /Users/nico/git/gideros/luau/VM/src/ldo.cpp:232
#14 0x00000001042567a8 in ::lua_call(lua_State *, int, int) at /Users/nico/git/gideros/luau/VM/src/lapi.cpp:957
#15 0x00000001041aec5c in eventClosureWithData(lua_State*) at /Users/nico/git/gideros/luabinding/eventdispatcherbinder.cpp:1057
#16 0x000000010428bd10 in luau_precall(lua_State*, lua_TValue*, int) at /Users/nico/git/gideros/luau/VM/src/lvmexecute.cpp:3349
#17 0x000000010423ac60 in luaD_call(lua_State*, lua_TValue*, int) at /Users/nico/git/gideros/luau/VM/src/ldo.cpp:224
#18 0x00000001042567a8 in ::lua_call(lua_State *, int, int) at /Users/nico/git/gideros/luau/VM/src/lapi.cpp:957
#19 0x00000001041af44c in PushEventVisitor::visit(EnterFrameEvent*) at /Users/nico/git/gideros/luabinding/eventdispatcherbinder.cpp:303
#20 0x00000001041ae688 in CppLuaBridge::luaEvent(LuaEvent*) at /Users/nico/git/gideros/luabinding/eventdispatcherbinder.cpp:964
#21 0x000000010416b054 in EventDispatcher::dispatchEvent(Event*) at /Users/nico/git/gideros/libgideros/eventdispatcher.h:210
#22 0x0000000104173058 in Stage::enterFrame(int, double) at /Users/nico/git/gideros/2dsg/stage.cpp:106
#23 0x00000001041b88fc in enterFrame(lua_State*) at /Users/nico/git/gideros/luabinding/luaapplication.cpp:1204
#24 0x000000010428bd10 in luau_precall(lua_State*, lua_TValue*, int) at /Users/nico/git/gideros/luau/VM/src/lvmexecute.cpp:3349
#25 0x000000010423ac60 in luaD_call(lua_State*, lua_TValue*, int) at /Users/nico/git/gideros/luau/VM/src/ldo.cpp:224
#26 0x000000010423a894 in luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) at /Users/nico/git/gideros/luau/VM/src/ldo.cpp:116
#27 0x000000010423b4ec in luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) at /Users/nico/git/gideros/luau/VM/src/ldo.cpp:531
#28 0x0000000104256a8c in ::lua_pcall(lua_State *, int, int, int) at /Users/nico/git/gideros/luau/VM/src/lapi.cpp:998
#29 0x000000010420a26c in ::lua_pcall_traceback(lua_State *, int, int, int) at /Users/nico/git/gideros/libgideros/luautil.cpp:204
#30 0x00000001041b7db4 in LuaApplication::enterFrame(GStatus*) at /Users/nico/git/gideros/luabinding/luaapplication.cpp:1304
#31 0x00000001041ddc44 in ApplicationManager::drawFrame() at /Users/nico/git/gideros/ios/iosplayer/iosplayer/giderosapi.mm:1048
#32 0x000000010405bb2c in -[ViewController drawFrame] at /Users/eric/Documents/projects/gideros/__EXPORTS/player/player/ViewController.m:124


Likes: hgy29

+1 -1 (+1 / -0 )Share on Facebook

Comments

Sign In or Register to comment.