Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Ulydev opened this issue Oct 24, 2019 · 1 comment
Open

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

Ulydev opened this issue Oct 24, 2019 · 1 comment

Comments

@Ulydev
Copy link

Ulydev commented Oct 24, 2019

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
Copy link
Owner

mcclure commented Oct 24, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants