sway icon indicating copy to clipboard operation
sway copied to clipboard

Random freezing

Open Anakael opened this issue 5 years ago • 22 comments

Hello! I have trouble with random freezing on sway. It independent on load or other reasons so it's hard to reproduce.

My sway version - 1.0 There is my log : https://pastebin.com/29jeTuWx There is my config: https://pastebin.com/xhEfFHV4 Video driver: nouveau Os: Arch Linux

Hope for help.

Anakael avatar May 31 '19 21:05 Anakael

The debug log makes it looks like sway might be crashing, but not returning you to a tty. Are you using systemd or did you setup a different init system?

RedSoxFan avatar Jun 01 '19 01:06 RedSoxFan

I use systemd and run sway with sddm. Running with "sway" from TTY gives the same result.

Anakael avatar Jun 01 '19 09:06 Anakael

Since you are using systemd, sway should return you to a gettty/dm on a segfault. I guess there is no harm in checking coredumpctl gdb sway anyway.

Since you seem to be able to reproduce, is the following line (ignoring timestamp and pid) always the last line that sway itself logs?

2019-06-01 00:25:40 - [sway/tree/root.c:270] Recording workspace for process 11250

RedSoxFan avatar Jun 02 '19 04:06 RedSoxFan

There is a sway's dump https://pastebin.com/Txn4FCD3. I checked about "Recording workspace for process 11250" and find these strings only 2 times and it had been around freeze.

Anakael avatar Jun 02 '19 10:06 Anakael

Timestamp: Sun 2019-05-19 22:49:44 UTC (1 weeks 6 days ago)

Unfortunately, that dump is probably not related to this issue

RedSoxFan avatar Jun 02 '19 14:06 RedSoxFan

There is one more log: https://pastebin.com/vy09zvYF

Anakael avatar Jun 02 '19 18:06 Anakael

This could be #4178, this log stops at applying transaction as well.

Emantor avatar Jun 02 '19 18:06 Emantor

I have checked log one more time and didn't found anythings related to transactions.

Anakael avatar Jun 12 '19 21:06 Anakael

EDIT: please ignore this comment, happened also under Gnome/Xorg.

Hi, I have the same problem. It happens always ~1-10 mins after starting sway. The screen freezes and the sound runs in a 2-3 sec loop. Also I can't reach any ttys.

sway version: 1.1.1-3 logs: https://pastebin.com/trCMMhHU --- https://pastebin.com/xzKBfnZz video driver: mesa 19.1.3-1 os: Arch Linux, kernel 5.2.3 systemd version: 242.84-1

hope this helps. If you need more information or anything else, I would gladly help.

blueStruct avatar Jul 30 '19 17:07 blueStruct

I have the same problem. (I'll add logs and more info after my vacation).

twmr avatar Jul 30 '19 20:07 twmr

Sorry, please ignore my earlier comment, after some hours it also happened to me with Gnome on Xorg. In my case it is apparently not related to sway.

blueStruct avatar Jul 31 '19 07:07 blueStruct

It's also happening to me on Arch, very randomly when I'm just busy doing normal work.

BrendanBall avatar Jan 21 '20 05:01 BrendanBall

Take a look at your kernel logs. It may be a GPU reset, which is basically a way to say your GPU crashed. Sometimes it can recover from this, but your session is still well and truly broken when this happens.

If it does turn out that this is the problem, there isn't really anything we can do to fix it though. It would be a driver or hardware issue.

ascent12 avatar Jan 21 '20 09:01 ascent12

-> driver if hardware issue In that case it must happens on another WM. But on awesome WM, for example - everything is fine.

Anakael avatar Jan 21 '20 12:01 Anakael

In that case it must happens on another WM. But on awesome WM, for example - everything is fine.

No. wlroots doesn't use the driver in the same way as xorg-xserver. wlroots may trigger a bug xorg-xserver doesn't trigger.

emersion avatar Jan 21 '20 12:01 emersion

Happening to me as well, 3-4 times in 2h while doing nothing speciall. Everything freezes and I have to phisically hard reboot. It's a fresh Arch install, everything as you may imagine, up to date. Did not get any of this with i3-gaps

surister avatar Aug 04 '20 21:08 surister

Don't happening after swtich video card to raredon

Anakael avatar Aug 04 '20 22:08 Anakael

Happening to me as well, 3-4 times in 2h while doing nothing speciall. Everything freezes and I have to phisically hard reboot. It's a fresh Arch install, everything as you may imagine, up to date. Did not get any of this with i3-gaps

Switched back again to i3-gaps, 0 issue, I guess I will try sway in a year.

surister avatar Aug 07 '20 16:08 surister

Same here. I will grab logs on the next happening.

mizzunet avatar Nov 19 '21 12:11 mizzunet

Im having a similar issue, where sway hangs for about a minute and than continues working as if nothing happened.

I can also not switch to TTY2 with Alt+Ctrl+F2 while this is going on.

I have intel integrated graphics.

I have noticed some correlation with heavy computation loads like starting a Java compilation, but often times it happens just during a Teams meeting.

Using Arch with the latest version.

ModProg avatar Jul 26 '22 14:07 ModProg

Same here. But I can switch to another tty and kill sway. Also running Arch.

johannes-titz avatar Oct 23 '22 09:10 johannes-titz