Comments (18)
f8022a0 seems to be the bad commit.
from regreet.
Huh, strange. I was thinking of opening an issue with upstream GTK due to the bug that @fufexan helped narrow down, but put off since they wanted a minimal reproducible code with the bug.
I guess they fixed it in the meantime, and so I'm going to close this. Let me know if it still affects a few people, and then I'll re-open it.
from regreet.
Could you clear the log file, and attach one with the failing session/v0.1.1? The sessions at the start and at the end are all successful sessions.
from regreet.
regreet_log.txt
It's probably repeated about 7 times. That's the count it took for me to login to another tty and stop greetd.
from regreet.
The logs aren't revealing anything. Is there anything elsewhere, like greetd/sway/systemd logs? If not, you might have to bisect this. Try commit ccffff8, because everything up till then should just be fixes.
from regreet.
ccffff8
works fine. I've now started bisecting, checking f8022a0
.
from regreet.
Ah, so it's the multi-monitor thing. A few more questions:
- How many monitors do you have?
- What's your GTK version?
- Could you post the terminal output of running ReGreet (within Sway/Cage)? There might be some GTK-related info.
from regreet.
- Only the builtin laptop screen at the time of the crashes
ldd
sayslibgtk-4.so.1 => /nix/store/yg6mrlwckqc24a3k6ds4hx56m4nq2lpm-gtk4-4.10.3/lib/libgtk-4.so.1
- I will try. In the meantime, I found something from
dmesg
Jun 21 14:27:13 io kernel: traps: regreet[267527] general protection fault ip:7f270247da49 sp:7ffdd9187a10 error:0 in libgtk-4.so.1.1000.3[7f27020b9000+412000]
from regreet.
This is gonna be a weird debugging session, but:
- Could you try building from the latest
main
branch, but after commenting out this line (add a//
at the start of the line):Line 374 in 61d871a
- If it doesn't work, try additionally commenting out these lines (which removes the function
post_view
):Lines 330 to 338 in 61d871a
- If that still doesn't work, try adding
return;
right before this line (effectively ignoring the functionchoose_monitor
):Line 133 in 61d871a
Let me know which step worked for you.
from regreet.
Trying suggestion #1 it does not crash anymore. ReGreet is now "maximized" and not fullscreen (borders and titlebar are showing).
from regreet.
Okay, so for some reason, the GTK function fullscreen_on_monitor
leads to a crash on your system. I'll have to investigate if that function has some caveats that apply to your case that I didn't consider. If I can't find any, we'll have to raise an issue upstream.
from regreet.
@rharish101 @fufexan I am having the same issue on NixOS unstable. For a long time I thought it was because NixOS had a new release, but using a different greeter works fine for now.
from regreet.
Sorry for the long delay. I couldn't find anything in the documentation about weird behaviours with fullscreen_on_monitor
. Since it's been a while, @fufexan could you try with the latest GTK version? If it still doesn't work, I can open an issue upstream and tag you.
from regreet.
@rharish101 tried with the latest version in nixpkgs, and it behaves the same.
from regreet.
I have the same issue what I also noticed was that my themes aren't applied during the flickering as well. For some reason a workaround for this on sway seems to be to add this line to my sway config:
output DP-1 pos 0 0
for reference my whole config:
exec ${pkgs.dbus}/bin/dbus-update-activation-environment --systemd --all
output DP-1 pos 0 0
input * {
xkb_numlock enabled
}
seat seat0 xcursor_theme Bibata-Modern-Classic 24
xwayland disable
bindsym Mod4+shift+e exec swaynag \
-t warning \
-m 'What do you want to do?' \
-b 'Poweroff' 'systemctl poweroff' \
-b 'Reboot' 'systemctl reboot'
exec "${lib.getExe config.programs.regreet.package} -l debug; swaymsg exit"
The workaround might be a fluke that happened a lot in succession, because the bug itself isn't something I'm able to reproduce consistently which leads me to think that the issue has something to do with how my monitors behave.
EDIT: I am sorry lately my "workaround" isn't really working. With cage at least greetd properly crashes and restarts until it works. There has also been an instance where I was able to see an error that the GTK-theme couldn't be applied.
I hope a fix is found soon.
from regreet.
I just enabled this software in my NixOS config, and it runs fine without crashing.
from regreet.
can confirm this issue is solved for me, too
from regreet.
Works for me on NixOS 24.05 with Hyprland, on Regreet 0.1.1, the only issue that occurs for me is #11.
from regreet.
Related Issues (20)
- Error when shutting down or restarting HOT 3
- Default environment HOT 3
- Override or remove "Welcome back!" message?
- Set window size option HOT 6
- Background image not showing HOT 3
- ReGreet does not start on wlroots 0.17.0-1 HOT 3
- Sway doesn't behave properly when ran through regreet HOT 6
- How can i disable secondary and tertiary monitors in Sway with ReGreet? HOT 2
- Skip selecting session HOT 4
- On first boot, clicking 'Login' causes sway to restart HOT 2
- Starting a session from ReGreet doesn't seem to set env vars from `~/.config/environment.d/` HOT 2
- How can I change the xkb keyboard layout in greeter? HOT 1
- How can I load env variable from /etc/profile.d for my graphic session? HOT 1
- Launching Xorg / X11 window managers HOT 2
- Keep the UI while the compositor is loading HOT 1
- any plan for localization? HOT 1
- Background image not showing HOT 7
- Regreet not detecting greetd at boot HOT 1
- Fingerprint login support HOT 2
- Having to install it twice for it to work. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from regreet.