hyprwm / Hyprland

Hyprland is a highly customizable dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
17.92k stars 753 forks source link

Segmentation Fault on Startup #2709

Open 99MatthewBarton opened 11 months ago

99MatthewBarton commented 11 months ago

STEPS TO REPRODUCE Login from display manager.

EXPECTED OUTCOME For the past few days of using Hyprland I have been able to login normally.

OUTCOME: A black screen appears (the normal Hyprland startup since I have the logo and splash disabled), then returns to the display manager. Crash report indicates this is segmentation fault.

ATTEMPTED FIXES/NOTES Did obvious things like rebooting and pacman -Syu. I have tried reinstalling Hyprland, launching with a default config file and downgrading to previous installed version. Login through i3 works normally. I might be missing something obvious (I hope not). I'm fairly new to Linux and only started using Hyprland a few days ago. System is a Dell XPS 13 9300 with Intel i5-1035G1 CPU, integrated graphics.

LOGS/CONFIG crashreport.txt hyprland.txt coredump.txt

vaxerski commented 11 months ago

ca you git bisect if this is a regression?

99MatthewBarton commented 11 months ago

I don't have a known good version, when I reverted Hyprland, the issue persisted. That makes me think it's a conflict somewhere but the logs don't give me much direction to investigate that.

vaxerski commented 11 months ago

patch.txt try this

99MatthewBarton commented 11 months ago

I'm sorry but I can't figure out how to apply this patch.

MightyPlaza commented 11 months ago

git apply

99MatthewBarton commented 11 months ago

I'm getting:

> error: src/managers/AnimationManager.cpp: No such file or directory
> error: subprojects/wlroots: No such file or directory
99MatthewBarton commented 11 months ago

I've also tried uninstalling the packages that had been installed since Hyprland last worked, but that didn't affect the outcome.

MightyPlaza commented 11 months ago

you probably are in the wrong dir, make sure you're in Hyprland named dir

99MatthewBarton commented 11 months ago

Same issue in /usr/include/hyprland and /usr/share/hyprland.

MightyPlaza commented 11 months ago

image

99MatthewBarton commented 11 months ago

Thanks for you patience. When I run Hyprland in i3 it launches. Sorry I didn't check that earlier. When I do that I get: 00:00:00.051 [types/wlr_drm_lease_v1.c:715] No DRM backend supplied, failed to create wlr_drm_lease_v1_manager 00:00:00.051 [backend/headless/backend.c:68] Creating headless backend 00:00:00.062 [backend/x11/backend.c:164] Starting X11 backend 00:00:00.068 [backend/headless/backend.c:16] Starting headless backend [196 12:53:13.002070] [glfw error 65544]: process_desktop_settings: failed with error: [org.freedesktop.DBus.Error.ServiceUnknown] The name org.freedesktop.portal.Desktop was not provided by any .service files I can't find the Hyprland directory for some reason. When I find from root, it only shows me directories in usr/include and usr/share.

99MatthewBarton commented 11 months ago

I can launch normally into hyprland again. I have no idea what changed. The only thing I did between this reset and the last was run hyprland from terminal in i3. Thanks for your help and patience. I'll mark as closed.

99MatthewBarton commented 11 months ago

I'm still getting this issue inconsistently whenever I restart hyprland. Still aren't closer to pinpointing a solution.

vaxerski commented 11 months ago

patch.txt

try this patch

99MatthewBarton commented 11 months ago

Do you know where the pacman default Hyprland dir is?

vaxerski commented 11 months ago

you'll have to build manually from git

99MatthewBarton commented 11 months ago

Ah alright, I'll get back to you when I've tried that.

pranavrao145 commented 11 months ago

I'm on the latest commit (which at this point is 1ec0b7b59a84a07f97c3ebee9f6694bc4a1b1dcd) and I'm also experiencing this issue with SDDM. The crash logs aren't exactly the same, but I think the current problem is different from the one for which this issue was originally opened; in other words, I'm pretty sure we have the same problem right now (EDIT: and so does #2764, whose crash log is identical to mine). I did a git bisect and found this wlroots update (8c9e2e1ff1d22f7954f5e75194e9f77cacffa3f6) to be the (new?) problem. I can't apply the patches because I have no idea what commit this issue was opened on, but this info might be useful regardless.

dan-cooke commented 10 months ago

I have this problem on 0.28 (pacman latest binary) and there is an issue cloning the wlroots subrepo via yay

The git server is returning a 503.


Cloning into bare repository '/home/dan/.cache/yay/hyprland-git/wlroots'...
fatal: unable to access 'https://gitlab.freedesktop.org/wlroots/wlroots.git/': The requested URL returned error: 504
==> ERROR: Failure while downloading wlroots git repo
    Aborting...
 -> error downloading sources: /home/dan/.cache/yay/hyprland-git
         context: exit status 1
memchr commented 10 months ago

I have this problem on 0.28 (pacman latest binary) and there is an issue cloning the wlroots subrepo via yay

Cloning into bare repository '/home/dan/.cache/yay/hyprland-git/wlroots'...
fatal: unable to access 'https://gitlab.freedesktop.org/wlroots/wlroots.git/': The requested URL returned error: 504
==> ERROR: Failure while downloading wlroots git repo
    Aborting...
 -> error downloading sources: /home/dan/.cache/yay/hyprland-git
         context: exit status 1

I do not think it is appropriate to ask irrelevant questions in GitHub issues. If you come across a problem like this, please post your inquiry in the GitHub discussion or on Discord

gitlab.freedesktop.org is currently unavailable from as the registry data is being migrated from Google Cloud to a self-hosted solution. They estimate it will be between 8 and 12 UTC. However, they seem to have run into some sort of problem and have extended the downtime as it is now 17 UTC.

dan-cooke commented 10 months ago

@memchr I'm sorry but where exactly did I ask a question? I was reporting an issue that I was encountering while trying to install this package.

Last time I checked - that is what github issues is for.

memchr commented 10 months ago

@memchr I'm sorry but where exactly did I ask a question? I was reporting an issue that I was encountering while trying to install this package.

Last time I checked - that is what github issues is for.

Could you please double check the current thread you are posting to? #2709 is Segmentation Fault on Startup. I mean you no offense, but your question is not related to this issue in anyway. If you wish to report an bug, please create a new issue thread rather than randomly commenting on an existing unrelated issue.

dan-cooke commented 10 months ago

@memchr The first thing I said in my comment is that I am encountering this issue on 0.28 of Hyprland

I have this problem on 0.28 (pacman latest binary)

My issue is almost word-for-word what OP said. So I thought I would just give this thread some traction.

Apologies if this is not allowed

memchr commented 10 months ago

@memchr The first thing I said in my comment is that I am encountering this issue on 0.28 of Hyprland

I have this problem on 0.28 (pacman latest binary)

My issue is almost word-for-word what OP said. So I thought I would just give this thread some traction.

Apologies if this is not allowed

No, it is not my position to say what is allowed and what is not. I was simply suggesting that you create a new issue thread, rather than posting to a completely unrelated existing issue and confusing the people tracking this bug.

Please do a double check of the original post:

STEPS TO REPRODUCE Login from display manager.

EXPECTED OUTCOME For the past few days of using Hyprland I have been able to login normally.

OUTCOME: A black screen appears (the normal Hyprland startup since I have the logo and splash disabled), then returns to the display manager. Crash report indicates this is segmentation fault.

ATTEMPTED FIXES/NOTES Did obvious things like rebooting and pacman -Syu. I have tried reinstalling Hyprland, launching with a default config file and downgrading to previous installed version. Login through i3 works normally. I might be missing something obvious (I hope not). I'm fairly new to Linux and only started using Hyprland a few days ago. System is a Dell XPS 13 9300 with Intel i5-1035G1 CPU, integrated graphics.

Sorry if you are confused by the github's user interface, but the OP's problem is clearly completely unrelated to yours.

Please do not reply this message if possible.

dan-cooke commented 10 months ago

@memchr just to clarify, as I see now why you might think I am posting in an unrelated thread,

I am encountering this issue that OP is encountering, when trying to boot Hyprland from sddm

Aug 27 12:16:40 danarch sddm[744]: Authentication error: SDDM::Auth::ERROR_INTERNAL "Process crashed"
Aug 27 12:16:40 danarch sddm[744]: Auth: sddm-helper (--socket /tmp/sddm-auth-0197350e-a93c-41c6-803b-7ef0c33313e8 --id 1 --start /usr/local/bin/wrappedhl --user dan) crashed (exit code 1)
Aug 27 12:16:40 danarch sddm[744]: Authentication error: SDDM::Auth::ERROR_INTERNAL "Process crashed"

Aside from that my hyprland crash report is identical to OP's as I already stated, as is my coredump after the crash.

The issue I reported about freedesktop was just an aside. (tbh originally I thought it could be related)

Let's not be rude please

99MatthewBarton commented 6 months ago

I have eventually isolated the issue. The seg fault only occurs when my laptop is charging. I have no clue what the connection is, but it's consistently reproducible.