fairyglade / ly

display manager with console UI
Do What The F*ck You Want To Public License
5.33k stars 306 forks source link

ly.service crushes on tty1 can only stay after typing sway. Version 1.0.0-1 #634

Closed Sihlejosias closed 2 months ago

Sihlejosias commented 2 months ago

I'm having trouble a little bit. I run sway on my archlinux install and today in the morning I updated the system. and one of the updated packages is ly from version 0.6.0-1 to 1.0.0-1. after reboot, my system boots to tty1 console and running the following command results in:

systemct status ls 

× ly.service - TUI display manager
     Loaded: loaded (/usr/lib/systemd/system/ly.service; enabled; preset: disabled)
     Active: failed (Result: core-dump) since Fri 2024-07-05 16:22:07 SAST; 48s ago
   Duration: 413ms
 Invocation: 8c21d0d1a1b545299bb84cba2cbc03bd
    Process: 4924 ExecStart=/usr/bin/ly-dm (code=dumped, signal=ILL)
   Main PID: 4924 (code=dumped, signal=ILL)

Jul 05 16:22:07 scopion systemd[1]: Started TUI display manager.
Jul 05 16:22:07 scopion systemd[1]: ly.service: Main process exited, code=dumped, status=4/ILL
Jul 05 16:22:07 scopion systemd[1]: ly.service: Failed with result 'core-dump'.

Also Journalctl -xe yields The following:

Jul 05 15:28:40 scopion systemd-coredump[452]: [🡕] Process 445 (ly-dm) of user 0 dumped core.

                                               Module ly-dm without build-id.
                                               Stack trace of thread 445:
                                               #0  0x000000000108e852 n/a (ly-dm + 0x8e852)
                                               #1  0x000000000108d6bd n/a (ly-dm + 0x8d6bd)
                                               #2  0x000000000108d3c0 n/a (ly-dm + 0x8d3c0)
                                               #3  0x00007d2077f61c88 n/a (libc.so.6 + 0x25c88)
                                               #4  0x00007d2077f61d4c __libc_start_main (libc.so.6 + 0x25d4c)
                                               #5  0x0000000001046925 n/a (ly-dm + 0x46925)
                                               ELF object binary architecture: AMD x86-64

I have been trying to resolve this for better half of the day. any help would be appreciated.

RandCircle commented 2 months ago

I have the same issue

rmcgme commented 2 months ago

I updated on Arch yesterday and have the same issue as above with ly.

saurik commented 2 months ago

I have the same underlying issue, but can provide some more context: the instruction at 108e852 is a vmovdqa instruction, which requires AVX (which our CPUs do not have).

I don't know where the issue is, but I downloaded the code for ly, updated it to zig 0.13.0, and compiled it... which worked? So it could be a zig 0.12.0 issue, it could be an issue with one of the older dependencies ly uses which I had to upgrade, a quirk of the arch build script, or an interaction with the computer on which arch does their builds (maybe zig annoyingly defaults to trying to "detect" build flags using the build host).

interbattles commented 2 months ago

what a mess haha i tried to compile it myself , downgraded all the dependencies with it, ended up working but in the process breaking my hyprland :sob:

AnErrupTion commented 2 months ago

@saurik Oh okay, that makes more sense. @christian-heusel I know where the issue is: please compile Ly like this instead: zig build -Dcpu=baseline, because Zig compiles for the native/current CPU by default. If the build host is x86_64-linux, this should work (and for some reason when setting that exact target, Zig fails to find the system libraries). Sorry for not warning about this, I completely forgot 😅

christian-heusel commented 2 months ago

fixed in 1.0.0-2 ✅ This was kind of a mess because of https://github.com/fairyglade/ly/issues/631 😅

interbattles commented 2 months ago

latest update on arch extra repository works now :+1: close?

RandCircle commented 2 months ago

Thank you very much, works well now :+1:

Sihlejosias commented 2 months ago

Thank you very much. It's works very well.

rmcgme commented 2 months ago

Thanks very much the fix is working for me on Arch linux.

On Sun, Jul 7, 2024 at 7:28 AM Sihle Josias Makhanya < @.***> wrote:

Thank you very much. It's works very well.

— Reply to this email directly, view it on GitHub https://github.com/fairyglade/ly/issues/634#issuecomment-2211894230, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3QR2BELXZEU57LUNI2J25TZLBANRAVCNFSM6AAAAABKNLWZHKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJRHA4TIMRTGA . You are receiving this because you commented.Message ID: @.***>

-- Regards

Robbie McGougan Mob - 021 120 1161