-
-
Notifications
You must be signed in to change notification settings - Fork 113
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
Crash after theme selection #167
Comments
Hi, Currently the aur package is provided by someone outside of the project. The error was reported also here: https://aur.archlinux.org/packages/gittyup Officially we support only the flatpak package: https://flathub.org/apps/details/com.github.Murmele.Gittyup |
Thank u for fast response. |
I am the AUR packager. I'm happy to fix the packaging, but I believe this is actually a legitimate upstream issue and needs fixing here in the project. Somewhere in the build system ( |
Thanks. I'll keep an eye out and test, and if I get a chance try to root out the issue myself. Also if I can't find the source I might temporarily monkey patch the installed package files by search/replacing the build path to the permanent one—at least until this is fixed for all builds by default. Note that similar issues have come up with some Lua Rocks packages that try to detect their own location and then hard code it into themselves. Just to say you may be looking for something even upstream in a Lua package. (Also great to hear that you are moving towards the official libgit2 upstream!) |
Just a follow up some initial searching suggests this isn't something that can be monkey patched because the faulty path isn't anything in plain text in Lua files it is in a binary somewhere. |
@alerque I believe you could monkey patch the conf path set in src/conf/CMakeLists.txt line 13 Gittyup/src/conf/CMakeLists.txt Line 13 in f38eb16
|
@ReubenM Interesting find. Definitely a bug in the build if |
@alerque Haven't tried building it patched yet, but that appears to be the source of the issue |
I tried patching that line and still don't get a working build. I do get a build, but if the build time source paths are not available at run time (as is the case for an installed program) it still crashes prepare() {
sed -i -e '/CONF_DIR/{s!SOURCE!BINARY!;s!/conf!!}' src/conf/CMakeLists.txt
} |
@alerque maybe you can have a look through the FLATPAK if's, maybe you find something there Destination is set to: Resources |
@Emuzex Can you have a look into /usr/lib/gittyup |
Edit: Scratch the first part of my earlier comment here. Having recompiled this a few times the error is still showing up with the Having a look at where the System.lua file actually is, it looks like it is in
I could keep trying to patch it, but I think something is seriously off about this path handling. A variable named "CONF_DIR" shouldn't have a hard coded path to a theme directory. Lua includes shouldn't request just |
The binary is in /usr/lib/gittyup or? |
The binary is installed as |
Ah ok you are moving the binary: That means cd("Resources") will not work anymore. Then it will be searched in CONF_DIR. Can you try to copy the Resources folder manually to the correct place? |
What is the correct location those configuration files? /usr/share? |
Yes, I think ideally the resources should end up in |
I can introduce a DATA_INSTALL_DIR variable and use it instead of the CMAKE_SOURCE_DIR? @exactly-one-kas maybe you have also an idea |
DATA_INSTALL_DIR sounds like a much better plan than CMAKE_SOURCE_DIR! |
Looking at other vars, maybe |
...on second thought, the |
I created a pull request. Let's discuss everything there |
I think we can close this, because this is related to #217 |
After install i started gittyup, then i picked the dark theme. The program crashed instantly and now doesnt start.
Installed via yay
Console output after start gittup
Theme dir: QDir ("/home/emuzex/.cache/yay/gittyup/src/gittyup/conf", nameFilters = {""}, QDir :: SortFlags (Name | IgnoreCase), QDir :: Filters (Dirs | Files | Drives | AllEntries))
Theme dir: QDir ("/home/emuzex/.cache/yay/gittyup/src/gittyup/conf", nameFilters = {""}, QDir :: SortFlags (Name | IgnoreCase), QDir :: Filters (Dirs | Files | Drives | AllEntries))
PANIC: unprotected error in call to Lua API (cannot open /home/emuzex/.cache/yay/gittyup/src/gittyup/conf/System.lua: No such file or directory)
zsh: IOT instruction (core dumped) gittyup
System:
OS: Manjaro Linux x86_64
Host: ASUS TUF Gaming A15 FA506IU_FA506IU 1.0
Kernel: 5.15.38-1-MANJARO
CPU: AMD Ryzen 9 4900H with Radeon Graphics (16) @ 3.300GHz
GPU: NVIDIA GeForce GTX 1660 Ti Mobile
GPU: AMD ATI 06:00.0 Renoir
Memory: 31582MiB
The text was updated successfully, but these errors were encountered: