mcclure / lovr-oculus-mobile

Android app for hosting lovr on oculus mobile platform
https://mcclure.github.io/mermaid-lovr/
Other
32 stars 10 forks source link

[QUEST] ffi.load makes the entire app crash #10

Open Ulydev opened 5 years ago

Ulydev commented 5 years ago

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")
mcclure commented 5 years ago

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.