Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] sway-1.6.1-r1 freezed after launching a GUI program
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
innerCore
n00b
n00b


Joined: 03 Mar 2021
Posts: 18

PostPosted: Fri Sep 17, 2021 8:51 pm    Post subject: [SOLVED] sway-1.6.1-r1 freezed after launching a GUI program Reply with quote

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
View user's profile Send private message
CooSee
Veteran
Veteran


Joined: 20 Nov 2004
Posts: 1438
Location: Earth

PostPosted: Fri Sep 17, 2021 9:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
innerCore
n00b
n00b


Joined: 03 Mar 2021
Posts: 18

PostPosted: Fri Sep 17, 2021 9:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
CooSee
Veteran
Veteran


Joined: 20 Nov 2004
Posts: 1438
Location: Earth

PostPosted: Fri Sep 17, 2021 10:21 pm    Post subject: Reply with quote

i didn't configure seatd at all.

try with lightdm.

swaymsg -t get_outputs works only in wayland enviroment like sway 8O

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
View user's profile Send private message
innerCore
n00b
n00b


Joined: 03 Mar 2021
Posts: 18

PostPosted: Fri Sep 17, 2021 10:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
CooSee
Veteran
Veteran


Joined: 20 Nov 2004
Posts: 1438
Location: Earth

PostPosted: Fri Sep 17, 2021 10:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
innerCore
n00b
n00b


Joined: 03 Mar 2021
Posts: 18

PostPosted: Fri Sep 17, 2021 10:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
innerCore
n00b
n00b


Joined: 03 Mar 2021
Posts: 18

PostPosted: Fri Sep 17, 2021 11:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
innerCore
n00b
n00b


Joined: 03 Mar 2021
Posts: 18

PostPosted: Sat Sep 18, 2021 7:21 am    Post subject: Reply with quote

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
View user's profile Send private message
CooSee
Veteran
Veteran


Joined: 20 Nov 2004
Posts: 1438
Location: Earth

PostPosted: Sat Sep 18, 2021 9:45 am    Post subject: Reply with quote

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
View user's profile Send private message
innerCore
n00b
n00b


Joined: 03 Mar 2021
Posts: 18

PostPosted: Sat Sep 18, 2021 3:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
innerCore
n00b
n00b


Joined: 03 Mar 2021
Posts: 18

PostPosted: Sat Sep 18, 2021 3:27 pm    Post subject: Reply with quote

<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
View user's profile Send private message
innerCore
n00b
n00b


Joined: 03 Mar 2021
Posts: 18

PostPosted: Sat Sep 18, 2021 3:28 pm    Post subject: Reply with quote

<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
View user's profile Send private message
CooSee
Veteran
Veteran


Joined: 20 Nov 2004
Posts: 1438
Location: Earth

PostPosted: Sat Sep 18, 2021 3:42 pm    Post subject: Reply with quote

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 8)

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
View user's profile Send private message
innerCore
n00b
n00b


Joined: 03 Mar 2021
Posts: 18

PostPosted: Sat Sep 18, 2021 4:03 pm    Post subject: Reply with quote

I'm sorry for the inconvenience.

Here's the link: https://pastebin.com/02wNgskB
_________________
Living in Gentoo now :)
Back to top
View user's profile Send private message
CooSee
Veteran
Veteran


Joined: 20 Nov 2004
Posts: 1438
Location: Earth

PostPosted: Sat Sep 18, 2021 4:34 pm    Post subject: Reply with quote

innerCore wrote:
I'm sorry for the inconvenience.

Here's the link: https://pastebin.com/02wNgskB


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 :wink:

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 8O :D

until now :!:

greetings (...programs) 8)
_________________
" 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
View user's profile Send private message
innerCore
n00b
n00b


Joined: 03 Mar 2021
Posts: 18

PostPosted: Sat Sep 18, 2021 4:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
CooSee
Veteran
Veteran


Joined: 20 Nov 2004
Posts: 1438
Location: Earth

PostPosted: Sat Sep 18, 2021 4:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
innerCore
n00b
n00b


Joined: 03 Mar 2021
Posts: 18

PostPosted: Sat Sep 18, 2021 4:59 pm    Post subject: Reply with quote

Roger that, sir. I'll figure out before filing a bug.
_________________
Living in Gentoo now :)
Back to top
View user's profile Send private message
innerCore
n00b
n00b


Joined: 03 Mar 2021
Posts: 18

PostPosted: Sat Sep 18, 2021 7:18 pm    Post subject: Reply with quote

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 :wink:

_________________
Living in Gentoo now :)


Last edited by innerCore on Mon Sep 27, 2021 3:04 am; edited 1 time in total
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6097
Location: Dallas area

PostPosted: Sat Sep 18, 2021 8:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
CooSee
Veteran
Veteran


Joined: 20 Nov 2004
Posts: 1438
Location: Earth

PostPosted: Sat Sep 18, 2021 9:54 pm    Post subject: Reply with quote

glad to hear.

8)
_________________
" 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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum