You are not logged in.

#1 2018-04-12 18:55:27

cyrf0006
Member
Registered: 2016-02-05
Posts: 45

Xsession freezes randomly

I report a problem I am having with a new desktop. After BL installation, the xsession / display freezes randomly (several times per day). I can move the mouse, but cannot click or use keyboard keys.

However I can switch to console mode (e.g., ctl+alt+F4), login and do stuff normally.

I wonder if it a driver issue. I have an intel graphic card (avoided Nvidia on purpose). I also noticed that my firefox display seems to be slow but not sure if related.

After freezing, there is this error message in .xsession-errors:

###!!! [Child][MessageChannel] Error: (msgtype=0x460102,name=PContent::Msg_AsyncMessage) Channel closing: too late to send/recv, messages will be lost

###!!! [Child][MessageChannel] Error: (msgtype=0x460102,name=PContent::Msg_AsyncMessage) Channel closing: too late to send/recv, messages will be lost

###!!! [Child][MessageChannel] Error: (msgtype=0x460102,name=PContent::Msg_AsyncMessage) Channel closing: too late to send/recv, messages will be lost

###!!! [Child][MessageChannel] Error: (msgtype=0x460102,name=PContent::Msg_AsyncMessage) Channel closing: too late to send/recv, messages will be lost

###!!! [Child][MessageChannel] Error: (msgtype=0x2C0048,name=PBrowser::Msg___delete__) Channel closing: too late to send/recv, messages will be lost

###!!! [Child][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost

###!!! [Child][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost

###!!! [Child][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost

###!!! [Child][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost

###!!! [Child][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost

###!!! [Child][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost

###!!! [Child][MessageChannel] Error: (msgtype=0x4600AB,name=PContent::Msg_ConsoleMessage) Channel closing: too late to send/recv, messages will be lost

There is also an enormous amount of messages like:

(firefox-esr:1313): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' failed

(firefox-esr:1313): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' failed

(firefox-esr:1313): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' failed

(firefox-esr:1313): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' failed

I am not sure where to start investigating

Offline

#2 2018-04-12 19:06:22

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: Xsession freezes randomly

cyrf0006 wrote:

I have an intel graphic card

Which one?

The next release will allow you to drop the Intel DDX driver in favour of Xorg's built-in modesetting version, that should be less buggy.

I am not sure where to start investigating

The systemd journal is usually good for this, try this command from the console next time you experience the problem:

sudo journalctl -rx

“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#3 2018-04-12 19:09:53

vinzv
Member
Registered: 2017-09-12
Posts: 185
Website

Re: Xsession freezes randomly

First: is your system up to date?
Second: Did you recently install some addons in Firefox? If so, try deactivating them. Otherwise you could use Firefox in safe mode by running firefox-esr -safe-mode for a while and see if the freezing problem persists.

Offline

#4 2019-04-11 16:05:12

cyrf0006
Member
Registered: 2016-02-05
Posts: 45

Re: Xsession freezes randomly

I am coming back to this persisting problem I had last year. I executed this after 2 crashes and got the same result.

sudo journalctl -rx
Apr 11 13:08:51 orwell kernel: DMAR: [INTR-REMAP] Request device [00:00.0] fault index 1f [fault reason 38] Blocked an interrupt request due to source-id verification failure
Apr 11 13:08:51 orwell kernel: DMAR: DRHD: handling fault status reg 2

There is a lot of comments posted of similar problem associated with IOMMU support (e.g., intel_iommu=off), but not sure how to proceed to test this.

Anyone experienced this problem with BL/debian?

My graphic card is a AMD/ATI Radeon.

Last edited by cyrf0006 (2019-04-11 16:08:40)

Offline

#5 2019-04-11 18:22:44

ohnonot
...again
Registered: 2015-09-29
Posts: 3,671
Website

Re: Xsession freezes randomly

when you switch consoles, can you
- enter 'htop' and see what/if something is eating your resources
- enter 'journalctl -b > sometextfile'
- enter 'dmesg > anothertextfile'
then
- tell us what you found with htop
- upload sometextfile and anothertextfile to a pastebin, e.g. http://paste.debian.net/

Offline

#6 2019-04-24 14:02:30

cyrf0006
Member
Registered: 2016-02-05
Posts: 45

Re: Xsession freezes randomly

ohnonot wrote:

- tell us what you found with htop

This process sucks most of the memory:

  941 root       20   0  733M  152M 78624 S 54.1  0.5  1h59:22 /usr/bin/X :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch

More htop output is here: http://paste.debian.net/1079137/

- enter 'journalctl -b > sometextfile'

Here maybe this line is informative (it appears at the moment of the last 2 crashes):

Apr 24 12:50:24 orwell kernel: DMAR: DRHD: handling fault status reg 2
Apr 24 12:50:24 orwell kernel: DMAR: [INTR-REMAP] Request device [00:00.0] fault index 1f [fault reason 38] Blocked an interrupt request due to source-id verification failure
Apr 24 11:02:15 orwell systemd-udevd[13445]: failed to execute '/lib/udev/mtp-probe' 'mtp-probe /sys/devices/pci0000:00/0000:00:14.0/usb3/3-11 3 4': No such file or directory

More journalctl output is found here: http://paste.debian.net/1079144/
and full dmseg here: http://paste.debian.net/1079141/

Last edited by cyrf0006 (2019-04-24 15:46:34)

Offline

#7 2019-04-25 04:47:55

ohnonot
...again
Registered: 2015-09-29
Posts: 3,671
Website

Re: Xsession freezes randomly

cyrf0006 wrote:

This process sucks most of the memory:

  941 root       20   0  733M  152M 78624 S 54.1  0.5  1h59:22 /usr/bin/X :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch

More htop output is here: http://paste.debian.net/1079137/

according to the pastebin it's CPU, not MEM. but same difference. X seems to be the culprit here, but that can be misleading - what's

/usr/bin/wish -f /usr/bin/stopwatch

???

what are the specs of this machine? cpu speed & cores, RAM?

the other two pastes don't tell me much.
that was at the time of the freeze???
maybe don't connect any USB devices and see if that's better. Or try to reproduce the freeze by connecting USB devices (a smartphone?).

also show us:

lspci -k | grep -iEA5 'vga|3d|display'
uname -rv
sudo apt update

Last edited by ohnonot (2019-04-25 04:49:58)

Offline

#8 2019-04-29 17:06:18

cyrf0006
Member
Registered: 2016-02-05
Posts: 45

Re: Xsession freezes randomly

ohnonot wrote:

that was at the time of the freeze???

Yes, the last thing in journalctl before freezing is always an error related to DMAR. Following this suggestion, I thought I had fixed the problem by adding to /boot/grub/grub.cfg

iommu_intel=off

But it looks like this is not the right solution (although I am not sure I understand if I am handling this bug fix correctly...). It seems that I was able to do a longer stretch without freezing, but during the last freeze I was not even able to switch to a console (I had to jump start by powering off manually).


what's /usr/bin/wish -f /usr/bin/stopwatch ???

Just a stopwatch... To manage my productivity (not related to the problem)

what are the specs of this machine? cpu speed & cores, RAM?

4 dual cores, 32GB RAM. I have 2 kind of memory drives (Flash and HDD).


also show us:

$ lspci -k | grep -iEA5 'vga|3d|display'
03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Device 682c
	Subsystem: Dell Device 2b1e
	Kernel driver in use: radeon
03:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Cape Verde/Pitcairn HDMI Audio [Radeon HD 7700/7800 Series]
	Subsystem: Dell Device aab0
	Kernel driver in use: snd_hda_intel
$ uname -rv
4.9.0-0.bpo.6-amd64 #1 SMP Debian 4.9.88-1+deb9u1~bpo8+1 (2018-05-13)
$sudo apt update

See update output here: http://paste.debian.net/1080576/

Offline

#9 2019-04-29 20:33:50

ohnonot
...again
Registered: 2015-09-29
Posts: 3,671
Website

Re: Xsession freezes randomly

cyrf0006 wrote:

I thought I had fixed the problem by adding to /boot/grub/grub.cfg

iommu_intel=off

But it looks like this is not the right solution (although I am not sure I understand if I am handling this bug fix correctly...).

this option should be added to /etc/default/grub, after which you run 'sudo update-grub'.

though i really don't understand how this bug could be related to your problem.

Offline

#10 2019-04-30 17:35:10

cyrf0006
Member
Registered: 2016-02-05
Posts: 45

Re: Xsession freezes randomly

ohnonot wrote:

though i really don't understand how this bug could be related to your problem.

I am searching for DMAR-related problems since everytime I freeze (and excatly at the time of the freeze) I have this kind of error message:

Apr 24 12:50:24 orwell kernel: DMAR: DRHD: handling fault status reg 2
Apr 24 12:50:24 orwell kernel: DMAR: [INTR-REMAP] Request device [00:00.0] fault index 1f [fault reason 38] Blocked an interrupt request due to source-id verification failure

To be honest I don't know what it means. Could it be un-related?

Offline

#11 2019-05-16 14:45:39

cyrf0006
Member
Registered: 2016-02-05
Posts: 45

Re: Xsession freezes randomly

Hi,
I request once more your help to solve this very annoying issue. While the above attempt seem to have improved the frequency for freezing problems (now one or twice a day compare to 5-6 times before), I just can't work like that.

100% of the time the problems comes with this error message:

$ sudo journalctl

Apr 24 12:50:24 orwell kernel: DMAR: DRHD: handling fault status reg 2
Apr 24 12:50:24 orwell kernel: DMAR: [INTR-REMAP] Request device [00:00.0] fault index 1f [fault reason 38] Blocked an interrupt request due to source-id verification failure

If it helps, I can also add that the computer freezes when fast actions happening (e.g. watching a video always leads a freezing where I could still hear the sound but can't control anything).

Any thoughts?

Last edited by cyrf0006 (2019-05-16 14:46:24)

Offline

#12 2019-05-16 15:52:53

damo
....moderator....
Registered: 2015-08-20
Posts: 4,876

Re: Xsession freezes randomly

The error message indicates an intel graphics issue, eg: https://bbs.archlinux.org/viewtopic.php?id=176398

The fix there was intel_iommu=igfx_off


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

Board footer

Powered by FluxBB