View previous topic :: View next topic |
Author |
Message |
innerCore n00b
Joined: 03 Mar 2021 Posts: 18
|
Posted: Fri Sep 17, 2021 8:51 pm Post subject: [SOLVED] sway-1.6.1-r1 freezed after launching a GUI program |
|
|
Greetings, guys~
This problem occurred starting at version 1.6.x after updating today. Sorry, I don't remember exactly what the first version that has this problem is.
Edit: The problem is starting at 1.6.1. The 1.6 version is working ok.
And the reason why posting the problem of sway here but not in sway github issue page is because the USE flag 'elogind' is gone for version 1.6.1-r1, which is the current version. When I enabled the flag 'elogind' while emerging the package, the problem would no longer exist. So I guess the problem might be caused by this.
I've also tried to chmod sway binary with command 'chmod a+s', and other solutions posted on the internet, but nothing helped, the complaint message is same as below. Need some help!
Also, elogind and seatd are both installed and enabled in the system. and the system uses openrc as init.
Here's what sway complained after having manually killed:
# The message is manually typed, may not be very accurate.
Code: |
00:00:10:033 [wlr] [backend/drm/drm.c:1592] drmHandleEvent failed
00:00:10:033 [wlr] [backend/drm/legacy.c:46] connector HDMI-A-1: Failed to set DPMS property: Permission denied
00:00:10:034 [wlr] [backend/drm/drm.c:1130] connector HDMI-A-1: Failed to disable CRTC 47
|
Additionally, I can recover sway from being frozen by switching to another tty and back. But the sway will then start flickering all the time... _________________ Living in Gentoo now
Last edited by innerCore on Mon Sep 27, 2021 3:06 am; edited 5 times in total |
|
Back to top |
|
|
CooSee Veteran
Joined: 20 Nov 2004 Posts: 1438 Location: Earth
|
Posted: Fri Sep 17, 2021 9:33 pm Post subject: |
|
|
did you add your monitors to sway config, e.g.
Code: | ### Output configuration
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
#
# Wacom Tablet - Example
# input "1386:884:Wacom_Intuos_S_Pad" map_to_output HDMI-A-1
# input "1386:884:Wacom_Intuos_S_Pen" map_to_output HDMI-A-1
### 'Iiyama North America PL2773H 0'
Output 'Iiyama North America PL2773H 0' resolution 1920x1080@60Hz position 0,0
### 'BenQ Corporation BenQ GW2265 C9E07436019' ###
Output 'BenQ Corporation BenQ GW2265 C9E07436019' resolution 1920x1080@60Hz position 1920,0
focus output 'Iiyama North America PL2773H 0'
### exec swaymsg focus output HDMI-A-1 |
" You can get the names of your outputs by running" : swaymsg -t get_outputs
or are you using gui-libs/wlroots-9999 ?
i used the same sway version a week ago with elogind and almost everything was fine.
please try a stable version of wlroots and try again.
good luck _________________ " Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier " |
|
Back to top |
|
|
innerCore n00b
Joined: 03 Mar 2021 Posts: 18
|
Posted: Fri Sep 17, 2021 9:40 pm Post subject: |
|
|
Hi, CooSee.
No, I'm using wlroots-0.14.0-r1 as the command [ emerge --info gui-libs/wlroots ] shows. Also, the result of the command [ emerge -s gui-libs/wlroots ] shows that the version 'wlroot-0.14.0-r1' is the latest version, version 9999 is not shown.
I've tried to add the monitor's name to the brand-new config file copied from /etc/sway/config, sway doesn't inform any error message for config file, but the problem still remains. And launching alacritty terminals in sway seems to work but not other GUI programs.
Also, when I typed command 'swaymsg -t get_outputs' in tty without sway running, it complained about '[swaymsg/main.c: 417] Unable to restrieve socket path'
Any suggestions? _________________ Living in Gentoo now |
|
Back to top |
|
|
CooSee Veteran
Joined: 20 Nov 2004 Posts: 1438 Location: Earth
|
Posted: Fri Sep 17, 2021 10:21 pm Post subject: |
|
|
i didn't configure seatd at all.
try with lightdm.
swaymsg -t get_outputs works only in wayland enviroment like sway
and
Code: | chmod sway binary with command 'chmod a+s', and other solutions posted on the internet |
is a bad idea. _________________ " Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier "
Last edited by CooSee on Sat Sep 18, 2021 9:46 am; edited 1 time in total |
|
Back to top |
|
|
innerCore n00b
Joined: 03 Mar 2021 Posts: 18
|
Posted: Fri Sep 17, 2021 10:30 pm Post subject: |
|
|
The seatd program was installed to test if that would solve the problem for the same issue I encountered in Gentoo in the past.
After that, I didn't mask the newer packages of sway, so the problem now occurs again after updating, and I also forgot to uninstall seatd after everything was fine until now
Fine, I'll go to undo the bad idea
And thanks for the replies, I'm gonna try it out. _________________ Living in Gentoo now
Last edited by innerCore on Fri Sep 17, 2021 11:07 pm; edited 1 time in total |
|
Back to top |
|
|
CooSee Veteran
Joined: 20 Nov 2004 Posts: 1438 Location: Earth
|
Posted: Fri Sep 17, 2021 10:34 pm Post subject: |
|
|
sorry, i edited my reply regarding seatd!
what does your users .xsession-errors say?
have you emerged wlroots with x11-backend ?
because most non-wayland apps won't work without. _________________ " Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier " |
|
Back to top |
|
|
innerCore n00b
Joined: 03 Mar 2021 Posts: 18
|
Posted: Fri Sep 17, 2021 10:53 pm Post subject: |
|
|
ok, it doesn't matter bro. But I have to mention that seatd is probably not installed by myself but required by wlroots and sway, as it is shown when I type 'emerge -av --depclean sys-auth/seatd', nor it is added in 'world' package list.
And the file '.xsession-errors' doesn't exist in the home directory, since I don't use any display manager in the system. I'm gonna install one such as non-gui display manager first. If none of them works, I'll try lightdm for what you mentioned!
Quote: | have you emerged wlroots with x11-backend ? | Yes, I do have installed wlroots with that USE flag. _________________ Living in Gentoo now |
|
Back to top |
|
|
innerCore n00b
Joined: 03 Mar 2021 Posts: 18
|
Posted: Fri Sep 17, 2021 11:12 pm Post subject: |
|
|
I'm running out of energy and tired, cannot go further anymore. Gotta go to sleep, see you later.
Anyway, thanks for your help, have a nice day, sir _________________ Living in Gentoo now |
|
Back to top |
|
|
innerCore n00b
Joined: 03 Mar 2021 Posts: 18
|
Posted: Sat Sep 18, 2021 7:21 am Post subject: |
|
|
Personally, I don't really want to install a redundant program such as 'display manager' to handle such task when there already has a program 'elogind' to do that.
Do I need to report this in Gentoo Bugzilla, is it appropriate to do so? _________________ Living in Gentoo now
Last edited by innerCore on Mon Sep 27, 2021 3:01 am; edited 1 time in total |
|
Back to top |
|
|
CooSee Veteran
Joined: 20 Nov 2004 Posts: 1438 Location: Earth
|
Posted: Sat Sep 18, 2021 9:45 am Post subject: |
|
|
please try with dbus-run-session sway.
or, in debug mode, which will produce many infos about your sway session:
Code: | sway -d >sway.log 2>&1 |
_________________ " Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier " |
|
Back to top |
|
|
innerCore n00b
Joined: 03 Mar 2021 Posts: 18
|
Posted: Sat Sep 18, 2021 3:22 pm Post subject: |
|
|
Sorry for the delay to reply.
Note that the log contains events of when the sway began to freeze and itself getting killed. It's not killed or crashed by itself, but me manually via killall command
<deleted> The url link of log is in below _________________ Living in Gentoo now
Last edited by innerCore on Tue Sep 21, 2021 1:38 am; edited 5 times in total |
|
Back to top |
|
|
innerCore n00b
Joined: 03 Mar 2021 Posts: 18
|
Posted: Sat Sep 18, 2021 3:27 pm Post subject: |
|
|
<deleted> The url link of log is in below _________________ Living in Gentoo now
Last edited by innerCore on Sat Sep 18, 2021 4:05 pm; edited 3 times in total |
|
Back to top |
|
|
innerCore n00b
Joined: 03 Mar 2021 Posts: 18
|
Posted: Sat Sep 18, 2021 3:28 pm Post subject: |
|
|
<deleted> The url link of log is in below _________________ Living in Gentoo now
Last edited by innerCore on Sat Sep 18, 2021 4:04 pm; edited 4 times in total |
|
Back to top |
|
|
CooSee Veteran
Joined: 20 Nov 2004 Posts: 1438 Location: Earth
|
Posted: Sat Sep 18, 2021 3:42 pm Post subject: |
|
|
please, edit your replies and upload all the output to, e.g https://pastebin.com/
and provide only the link to it on this thread
thx
edit:
you can also delete a (double)post if it's necessary - look on the right side, there's an little x _________________ " Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier "
Last edited by CooSee on Sat Sep 18, 2021 4:08 pm; edited 1 time in total |
|
Back to top |
|
|
innerCore n00b
Joined: 03 Mar 2021 Posts: 18
|
Posted: Sat Sep 18, 2021 4:03 pm Post subject: |
|
|
I'm sorry for the inconvenience.
Here's the link: https://pastebin.com/02wNgskB _________________ Living in Gentoo now |
|
Back to top |
|
|
CooSee Veteran
Joined: 20 Nov 2004 Posts: 1438 Location: Earth
|
Posted: Sat Sep 18, 2021 4:34 pm Post subject: |
|
|
great, thx again.
i don't know much about nvidia and i hope some nvidia professional can help you here.
i would try another distro, which provides only sway iso to get sure, that this is not caused of some hardware you use
look at the second one on https://distrowatch.com/ and try out.
it'll maybe save you some time or to get some inspirations.
even i adapted some settings from them, to save time, because i never used a tiling desktop at all
until now
greetings (...programs) _________________ " Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier "
Last edited by CooSee on Sat Sep 18, 2021 4:48 pm; edited 1 time in total |
|
Back to top |
|
|
innerCore n00b
Joined: 03 Mar 2021 Posts: 18
|
Posted: Sat Sep 18, 2021 4:42 pm Post subject: |
|
|
Fine. And thanks again for your kindness and patience!
Could I post this problem to Gentoo bugzilla, Or may I need to report this to Sway developer team first?
Ok, anyway, I'm gonna try it on other distros. It's the grief pain in the ass in my case though _________________ Living in Gentoo now
Last edited by innerCore on Sat Sep 18, 2021 5:09 pm; edited 1 time in total |
|
Back to top |
|
|
CooSee Veteran
Joined: 20 Nov 2004 Posts: 1438 Location: Earth
|
Posted: Sat Sep 18, 2021 4:50 pm Post subject: |
|
|
innerCore wrote: | Fine. And thanks again for your kindness and patience!
Could I post this problem to Gentoo bugzilla, Or may I need to report this to Sway developer team first? |
you're welcome
it's your choice - you should get sure first, before opening one. _________________ " Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier " |
|
Back to top |
|
|
innerCore n00b
Joined: 03 Mar 2021 Posts: 18
|
Posted: Sat Sep 18, 2021 4:59 pm Post subject: |
|
|
Roger that, sir. I'll figure out before filing a bug. _________________ Living in Gentoo now |
|
Back to top |
|
|
innerCore n00b
Joined: 03 Mar 2021 Posts: 18
|
Posted: Sat Sep 18, 2021 7:18 pm Post subject: |
|
|
I have to deliver the good news, Mr.CooSee and Gentoo fellows who are watching this post.
I finally, thankfully solved the problem, god! By accepting keyword '~amd64' like this 'gui-libs/wlroots ~amd' which enables unstable/latest version of the package in conf file under '/etc/portage/package.accept_keywords', the '0.14.1' version will be able to install. Note: The conf file can be any name you like.
After updating package to version '0.14.1' with command 'emerge -avu gui-libs/wlroots', (or one could just simply use 'emerge -avuDN @world', the later will update the whole system), the problem is now gone!
The problem is caused by wlroots, and it seems that the newer versions have fixed this problem.
It is most, probably not caused by hardware issues, because the newer versions of a software tend to add new features, if something goes wrong, it probably gets fixed but not removed, this is just what I guess.. So, it's been fixed but not removed.. I'm not a developer, so I'm not sure of it.
Quote: | i would try another distro, which provides only sway iso to get sure, that this is not caused of some hardware you use |
_________________ Living in Gentoo now
Last edited by innerCore on Mon Sep 27, 2021 3:04 am; edited 1 time in total |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6097 Location: Dallas area
|
Posted: Sat Sep 18, 2021 8:39 pm Post subject: |
|
|
Because wayland related development is rapidly changing, I update wlroots and compositors at the same time.
The people that are doing development on wlroots are also the ones doing work on sway.
Though other compositors do keep up with wlroots also. _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
CooSee Veteran
Joined: 20 Nov 2004 Posts: 1438 Location: Earth
|
Posted: Sat Sep 18, 2021 9:54 pm Post subject: |
|
|
glad to hear.
_________________ " Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier " |
|
Back to top |
|
|
|