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

Latest example errors out on macOS on Love 11.5 and Love 12 #8

Open
kfjustis opened this issue Jan 5, 2025 · 2 comments
Open

Latest example errors out on macOS on Love 11.5 and Love 12 #8

kfjustis opened this issue Jan 5, 2025 · 2 comments

Comments

@kfjustis
Copy link

kfjustis commented Jan 5, 2025

Steps

  1. Cloned the repo
  2. Ran the submodule update to get rxi
  3. cd into top-level folder
  4. Run love .
  5. 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: f99b7c0 (latest as of today)

Tried Love 12 as well and got a slightly different error message:
Screenshot 2025-01-04 at 8 39 19 PM

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!

@rozenmad
Copy link
Owner

rozenmad commented Jan 6, 2025

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.

@kfjustis
Copy link
Author

kfjustis commented Jan 6, 2025

Thank you for the reply! This is really good info. I'll see if I can stumble upon an older version of Love 12.

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