lovr-oculus-mobile
lovr-oculus-mobile copied to clipboard
[QUEST] ffi.load makes the entire app crash
Hello, Loading an incorrect library file with ffi.load results in a crash. I am not sure this applies to correct library files either because I haven't successfully loaded a native library on the Quest yet. Here's an example:
local ffi = type(jit) == 'table' and jit.status() and require 'ffi'
if not ffi then return end
print("Loading incorrect lib file")
local lib = ffi.load("anything")
print("The program will crash before this line is printed")
I have sent Wohlsoft LuaJIT a fix, as of be77dbbbaac22c93 they will no longer crash in this scenario.
However, we should verify that Lovr on Quest can successfully load a native library we before we close this bug.