lovr-oculus-mobile icon indicating copy to clipboard operation
lovr-oculus-mobile copied to clipboard

[QUEST] ffi.load makes the entire app crash

Open Ulydev opened this issue 5 years ago • 1 comments

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")

Ulydev avatar Oct 24 '19 15:10 Ulydev

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.

mcclure avatar Oct 24 '19 21:10 mcclure