Latest example errors out on macOS on Love 11.5 and Love 12
Steps
- Cloned the repo
- Ran the submodule update to get rxi
-
cdinto top-level folder - Run
love . - Love2D fails with the following error:
2025-01-04 20:27:58.761 love[9619:330477] WARNING: Secure coding is automatically enabled for restorable state! However, not on all supported macOS versions of this application. Opt-in to secure coding explicitly by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState:. Error: menori/modules/core3d/gltf.lua:242: bad argument #1 to 'pack' (string expected, got userdata) stack traceback: [love "boot.lua"]:352: in function <[love "boot.lua"]:348> [C]: in function 'pack' menori/modules/core3d/gltf.lua:242: in function 'get_vertices_content' menori/modules/core3d/gltf.lua:315: in function 'init_mesh' menori/modules/core3d/gltf.lua:684: in function 'load' examples/minimal/scene.lua:28: in function 'init' menori/modules/libs/class.lua:57: in function 'Scene' main.lua:12: in main chunk [C]: in function 'require' [love "boot.lua"]:323: in function <[love "boot.lua"]:126> [C]: in function 'xpcall' [love "boot.lua"]:362: in function <[love "boot.lua"]:355> [C]: in function 'xpcall'
System Info
- Apply M3
- macOS Sonoma 14.7.1
- Love 11.5
- Menori version: f99b7c0cf01e21a311a3cb25b9f2a81e32b673e3 (latest as of today)
Tried Love 12 as well and got a slightly different error message:
I pulled the Love 12 version from here: https://github.com/love2d/love/actions/runs/12613441310
Would be happy to help with keeping this library working on Mac as I want to use it for a game, but could use some background info on what might be the issue here. Any advice would be great!
In the first case, the error occurs because LuaJIT is disabled, and processing happens through the pack function. However, this variation of the pack function is only available in version 12.
In the second case, at the moment, Menori does not support the newest version of Love from the main branch. To fix this, you need to use earlier versions. Sorry, but I cannot provide more precise instructions on which specific commit to use right now. I will try to fix the library in the near future.
Thank you for the reply! This is really good info. I'll see if I can stumble upon an older version of Love 12.