alibaba / wax

Wax is a framework that lets you write native iPhone apps in Lua.
http://github.com/probablycorey/wax
MIT License
1.84k stars 280 forks source link

Bad access crash on 32-bit devices #42

Open luohui8891 opened 8 years ago

luohui8891 commented 8 years ago

Hey, do you have any idea about this crash issue? Which object is dealloc? The block or parameter of the block? We invoked the block in the main thread by dispatch_async. Does it caused the crash?

luohui8891 commented 8 years ago

FYI, I notice that the crash issue only occurs on 32-bit devices.

intheway commented 8 years ago

0 libobjc.A.dylib 0x213b3a82 objc_msgSend + 1 1 TapatalkFree 0xd53a63 wax_fromInstance (wax_helpers.m:228) means a none object is treat as object. so objc_msgSend failed. check your grammar by reference the wiki. to see detailed reason, please paste your OC and lua code.