uspgamedev / backdoor

A deck-building roguelike cyberpunk game.
GNU General Public License v3.0
23 stars 4 forks source link

aarch64 architecture cant run game #1427

Open bl00dy1837 opened 4 years ago

bl00dy1837 commented 4 years ago

The game starts the settingsmenu works. After "New route" the game crashes.

`Error

bad light userdata pointer If i run the game on an aarch64 pinebookpro with archlinux.

Traceback

[C]: in function 'getPointer' ImageData.lua:371: in function '__index' ImageData.lua:468: in function 'getDimensions' ImageData.lua:44: in function 'mapPixel' view/sector/tilemap.lua:43: in function 'init' view/sector.lua:113: in function 'initSector' view/sector.lua:250: in function 'draw' draw.lua:25: in function 'DrawTable' draw.lua:49: in function 'allTables' gamestates/play.lua:205: in function 'draw' main.lua:110: in function 'draw' libs/steaming/res_manager.lua:62: in function 'draw' [C]: in function 'xpcall'`

It's a problem with Luajit

https://love2d.org/forums/viewtopic.php?t=86541

Kazuo256 commented 4 years ago

Hello! Thanks for submitting this issue!

Did you use the version from itch.io or did you clone the repository and run the game from source with LÖVE? If it was the latter, what version of LÖVE did you use?

From what I read in the link you passed, this might be a problem outside the code of Backdoor, but I'm still trying to understand how to circumvent the issue.

bl00dy1837 commented 4 years ago

Thank you.

I compiled the releases/tag/v0.6.0 . OS: Archlinux/Manjaro-ARM (aarch64) love version: 11.3

RenatoGeh commented 4 years ago

Hi,

I'm on Arch as well (not Manjaro though) and it works fine. Could you provide your pacman -Qi luajit output, please?

bl00dy1837 commented 4 years ago

Hi,

I'm on Arch as well (not Manjaro though) and it works fine. Could you provide your pacman -Qi luajit output, please?

Name : luajit-git Version : v2.1.0.beta3.r144.g0ad60ccb-1 Description : Just-in-time compiler and drop-in replacement for Lua 5.1Architecture : aarch64 URL : http://luajit.org/ Licenses : MIT Groups : None Provides : luajit Depends On : gcc-libs Optional Deps : None Required By : backdoor love Optional For : None Conflicts With : None Replaces : None Installed Size : 1689.71 KiB Packager : Dan Johansen <strit@manjaro.org> Build Date : Tue 10 Mar 2020 01:45:17 PM CET Install Date : Sun 28 Jun 2020 10:41:19 AM CEST Install Reason : Installed as a dependency for another package Install Script : No Validated By : Signature

RenatoGeh commented 4 years ago

I wasn't aware there was a backdoor AUR package. I have just tried it out and it built and ran fine. It seems you chose the luajit-git AUR package instead of the official luajit package. If there are no other reverse dependencies or personal reasons to have luajit-git, I would suggest trying the pacman version of luajit.

bl00dy1837 commented 4 years ago

Thank you. But in the Archlinux/Manjaro ARM repositories is the luajit Version "v2.1.0.beta3". https://archlinuxarm.org/packages/aarch64/luajit-git

Did you build you older luajit version on your own? With which version did you test?

RenatoGeh commented 4 years ago

As I said, you're running luajit-git, which is the git version of luajit. This package compiles from the git repo source and is more prone to bugs. I imagine that's the source of your problems - the latest beta version is probably the cause of this bug. I'm assuming you're using ARM64 from your comments; a quick search shows that the ARM64 package repo only has luajit-git instead of the official luajit package you normally get through pacman. Probably because ARM is not 100% supported by Arch.

That said, I suggest you do the following: download your luajit-git's tarball, manually edit its PKGBUILD so as to point to the master branch (and thus get the stable version), and finally install using makepkg -si. This should solve this issue.