void-linux / void-packages

The Void source packages collection
https://voidlinux.org
Other
2.6k stars 2.16k forks source link

love: alignment problem (+ reference to possible patch) #31234

Closed ralvgh closed 2 years ago

ralvgh commented 3 years ago

System

Expected behavior

According to "Making a Game" on love2d-wiki/Getting Started a window opens with text "Hello World".

Actual behavior

An error message is displayed instead saying

Error

wrap_Math.lua:35: Cannot push love object to Lua: unexpected alignment (pointer is 0x02263fe8 but alignment should be 16)

Traceback

[C]: in function '_getRandomGenerator'
wrap_Math.lua:35: in main chunk
[C]: at 0xb7b63480
[C]: in function 'require'
[C]: in function 'xpcall'
[C]: in function 'xpcall'

Steps to reproduce the behavior

 $ mkdir getting.started && cd getting.started
 $ cat > main.lua
 function love.draw()
     love.graphics.print("Hello World", 400, 300)
 end

 zip -9 -r getting.started.love .

 /usr/bin/love getting.started.love

Possible patch

Using a patch written by pgimeno on love-11.3-linux-i686.tar.gz the problem vanishes for me.

ericonr commented 3 years ago

@ralvgh could you make a PR importing the patch? It sounds reasonable to me...

tallero commented 2 years ago

patch doesn't work for me

github-actions[bot] commented 2 years ago

Issues become stale 90 days after last activity and are closed 14 days after that. If this issue is still relevant bump it or assign it.