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

Source directory being used for theme files again, panic at runtime #769

Open
alerque opened this issue May 21, 2024 · 9 comments
Open

Source directory being used for theme files again, panic at runtime #769

alerque opened this issue May 21, 2024 · 9 comments

Comments

@alerque
Copy link
Contributor

alerque commented May 21, 2024

Some form of the issue we saw in #167 is back for 1.4.0. Packages I built on an offline build system (Arch Linux official package builder) are throwing an error at run time:

PANIC: unprotected error in call to Lua API (cannot open /build/gittyup/src/Gittyup/conf/System.lua: No such file or directory)

This is looking for a Lua file at the path it would have been during the build process instead of looking for it where it should be installed. The file is installed at /usr/share/gittyup/Gittyup/themes/System.lua in the final package, but that location is not found and the panic happens because it only looks in where the source directory was at build time. In this case that is in a chroot on a different system and hence is not available at run time.

@ftaiolivista
Copy link

ftaiolivista commented May 24, 2024

Same for me

PANIC: unprotected error in call to Lua API (cannot open /home/user/.cache/paru/clone/gittyup/src/Gittyup/conf/System.lua: No such file or directory)
[1]    108341 IOT instruction (core dumped)  gittyup

Cannot installa anymore

@Murmele
Copy link
Owner

Murmele commented May 28, 2024

Can you show the debug output in the console? Not sure yet if there is a cmake option to enable them without the gui.

@Murmele
Copy link
Owner

Murmele commented May 28, 2024

@alerque do you have the same problem?

@ftaiolivista
Copy link

Now it seems to work. No more errors installing aur package (gittyup 1.4.0-1). I'm using paru.

@Murmele
Copy link
Owner

Murmele commented May 28, 2024

Thanks for testing

@ftaiolivista
Copy link

Sorry. I cleaned up paru cache and reinstalled gittyup and now it fail to start.

PANIC: unprotected error in call to Lua API (cannot open /home/vista/.cache/paru/clone/gittyup/src/Gittyup/conf/System.lua: No such file or directory)
[1]    85660 IOT instruction (core dumped)  gittyup .

Before was working because the file was present in the paru cache someway

@stingray21
Copy link
Contributor

stingray21 commented Jun 20, 2024

Having the same issue (on Manjaro Linux)

I can install it but then I cannot launch it, see error below

PANIC: unprotected error in call to Lua API (cannot open /tmp/pamac-build-user/gittyup/src/Gittyup/conf/System.lua: No such file or directory)
[1]    53284 IOT instruction (core dumped)  gittyup

The src folder in tmp gets deleted in the "Cleaning up" step of the install. When I then manually add it back (clone it from git), I can launch the app again.

But it seems like the tmp folder should not be the place where these files should live.

@stingray21
Copy link
Contributor

@loziniak
Copy link

@alerque can you include ↑ these ↑ changes into PKGBUILD?

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

5 participants