-
Notifications
You must be signed in to change notification settings - Fork 629
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
[BUG] Rofi core dump error when changing nwg-look theme #2109
Comments
@Grassism1d so, I suppose you are changing the icon theme? Which theme is working and which one is causing the crash? If you'd be able to collect a backtrace (see https://github.com/davatorium/rofi/blob/next/INSTALL.md#get-a-backtrace), it would be very helpful btw you've checked the box that you are not running rofi under wayland but two lines above you write that you user hyprland (wayland) |
Can you post your original theme files? I see something went wrong with `-dump-theme' try to see if it crashes with? rofi -no-config -show-icons -show drun |
#708 seems to be completely unrelated. That code does not exist anymore. It is also an issue from 2017. |
I had the same problem and followed your tips. I was writing a theme switcher for light and dark mode. I tried using nwg-look and I started having the |
@balduinofernando can you link the nwg-look 'thing' you use? (and if possible a backtrace) |
I've installed nwg-look and tried it, for me I cannot reproduce any crash. |
Confirm same segfault, also after nwg-look usage > nwg-look -v
nwg-look version 1.0.2 > rofi -no-config -show-icons -show drun
Segmentation fault (core dumped) rofi 1.7.8-dirty, rofi theme (rasi) is Arc-dark, from distribution sorry, never used coredumpctl before, let me know if I should take some more steps, here's last backtrace from
can confirm, removal of index.theme file fixes issue, here's contents: cat ~/.icons/default/index.theme # This file is written by nwg-look. Do not edit.
[Icon Theme]
Name=Default
Comment=Default Cursor Theme
Inherits=default |
This looks like it might be a bug in libxcb-cursor.. It looks like it is getting stuck in a recursive loop. |
# This file is written by nwg-look. Do not edit.
[Icon Theme]
Name=Default
Comment=Default Cursor Theme
Inherits=default It looks like the |
I wonder where the |
Isn't it just that this default resolves to Default (or the opposite?) which causes the theme to inherit itself and causes the infinite loop there? |
IMHO libxcb-cursor should try to catch loops in its inheritance 'tree'. I need to see if I can get a working account there to report the issue. |
Does the crash happen when some cursor theme is installed and set in nwg-look? |
I could only reproduce the crash when copy/pasting the above generated theme. |
Possibly nwg-look should not export this line at all when |
Closing, its been reported upstream. |
Rofi version (rofi -v)
Version: 1.7.8-dirty
Configuration
https://gist.github.com/Grassism1d/4695f0d75417d59ee44baa3ba42ba22d
Theme
https://gist.github.com/Grassism1d/8851f005dae5f6f18c77ca01ff922ae6
Timing report
no idea how to do that, sorry
Launch command
rofi -show drun
Step to reproduce
*step 1 - change the theme in nwg look, in "Prefrences" and "files to export" make sure the ~/.icons/default/index.theme is toggled on, then save
Expected behavior
when typing
rofi -show drun
it should open the rofi menu as usualActual behavior
If you were using a hotkey to open rofi, nothing happens. if you type
rofi -show drun
or any other various command in the terminal, this is the output(4 numbers) segmentation fault (core dumped)
This is somewhat similar to when the command output. Please read below why I could'nt give the exact info [Update] here is what it actually looks like:mid% rofi [1] 1408 segmentation fault (core dumped) rofi mid% rofi -show drun [1] 1432 segmentation fault (core dumped) rofi -show drun mid%
Additional information
[Update] after rebooting, the error appeared again.
when trying to recreate this error, I fixed it by maunally deleting the index.theme file from
~/.icons/default/
, and now it works with no errors. even if I renable the index theme in nwg-look. Im confident someone could reproduce the error though since i saw multiple posts on reddit/github having the same type of error such as this one Sorry if this makes it harder to find the root cause of the problem, again, did not expect to fix it doing thisINFO:
WM - hyprland (wayland)
Disrto - Arch Linux
Using wayland display server protocol
I've checked if the issue exists in the latest stable release
The text was updated successfully, but these errors were encountered: