You are not logged in.

#1 2021-05-28 17:17:56

Tempest002
Member
Registered: 2020-08-26
Posts: 16

[SOLVED]Constant closing of DWM when watching some youtube videos

Good Day,

i tried to fix this problem for a while now, but i cant find any clues on what may be causing it.
I made a system update (pacman syu) and after some time i noticed that dwm would close constantly when i clicked on certain youtube videos. Because of the loop in my .xinitrc dwm is then again restarted, so i get a constant flickering of the screen elements. The Video keeps playing normaly, no video or sound issues, although it is hard to click on some elements.
It happens only on some videos and only on youtube and i dont know what they have in common to cause this problem (tried different resolutions, sizes, ...). When i change or close the tab everything is normal again.

I use brave (brave-bin, aur).

I link my .xinitrc:

#!/bin/sh

# =================================================================================================
# start some nice programs
# =================================================================================================
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
 for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
  [ -x "$f" ] && . "$f"
 done
 unset f
fi


# =================================================================================================
# Einstellungen
# =================================================================================================
xrandr --output Virtual-1 --mode 1920x1080              # Display Aufloesung
xwallpaper --center ~/.local/wallpaper/Nord_Arch.png    # Hintergrundbild
setxkbmap de                                            # Tastatur Layout
nvidia-settings --assign CurrentMetaMode="nvidia-auto-select +0+0 { ForceFullCompositionPipeline = On }"


# =================================================================================================
# Prozesse
# =================================================================================================
picom --no-fading-openclose &                           # Compositor
dunst &                                                 # Benachrichtigungen aktivieren
imwheel &						# Maus Scrolling schneller machen
xbindkeys -f "/home/sebi/.config/xbindkeys/xbindkeysrc"	# Medientasten anbinden
dwmblocks &                                             # dwmblocks aktivieren


# =================================================================================================
# Loop
# =================================================================================================
while true; do
	dwm >/dev/null 2>&1
done

exec dwm	# DWM Ausfuehren

Last edited by Tempest002 (2021-05-29 17:53:26)

Offline

#2 2021-05-28 18:44:16

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 25,287

Re: [SOLVED]Constant closing of DWM when watching some youtube videos

Why do you have that loop?  And if you are going to loop, why have the `exec dwm` at the end?

But most directly relevant: don't send stderr to /dev/null - instead check what the output is on stderr.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2021-05-28 19:07:58

Tempest002
Member
Registered: 2020-08-26
Posts: 16

Re: [SOLVED]Constant closing of DWM when watching some youtube videos

This loop is a remnant from when i configured dwm, so i can easier restart it when i made changes. (i dont know why i put the exec statement there)

But here is the stderr output:

[8154:8268:0528/211058.769790:ERROR:object_proxy.cc(622)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
[8154:8268:0528/211058.770027:ERROR:object_proxy.cc(622)] Failed to call method: org.freedesktop.UPower.GetDisplayDevice: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
[8154:8268:0528/211058.770181:ERROR:object_proxy.cc(622)] Failed to call method: org.freedesktop.UPower.EnumerateDevices: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
[8154:8154:0528/211058.925977:ERROR:sharing_service.cc(218)] Device registration failed with fatal error
Failed to parse JSON adblock resources: EOF while parsing a value at line 1 column 0
dwm: fatal error: request code=139, error code=16
X Error of failed request:  BadLength (poly request too large or internal Xlib length error)
  Major opcode of failed request:  139 (RENDER)
  Minor opcode of failed request:  20 (RenderAddGlyphs)
  Serial number of failed request:  1517
  Current serial number in output stream:  1524
[8181:8181:0528/211106.388749:ERROR:connection.cc(66)] X connection error received.
[8181:8216:0528/211106.388710:ERROR:connection.cc(66)] X connection error received.
[8181:8181:0528/211106.404444:ERROR:gl_surface_egl.cc(780)] EGL Driver message (Critical) eglMakeCurrent: Failed to make the GLX context current
[8181:8181:0528/211106.406047:ERROR:gl_surface_egl.cc(780)] EGL Driver message (Critical) eglMakeCurrent: Failed to make the GLX context current
 

Last edited by Tempest002 (2021-05-28 19:13:03)

Offline

#4 2021-05-29 01:30:21

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 25,287

Re: [SOLVED]Constant closing of DWM when watching some youtube videos

Those errors appear to be from brave browser.  Have you tried with other browsers?  Does this sound like your issue?

Last edited by Trilby (2021-05-29 01:31:00)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#5 2021-05-29 08:23:37

Tempest002
Member
Registered: 2020-08-26
Posts: 16

Re: [SOLVED]Constant closing of DWM when watching some youtube videos

I tried it in brave, chromium, firefox, and surf but the error is always the same.

I dont think thats the issue, because it happens immediately after the video loads.

But i noticed that most of the videos that are crashing have, emojis or other symbols in the title and i see this error in the logs:

Major opcode of failed request:  139 (RENDER)
Minor opcode of failed request:  20 (RenderAddGlyphs)

Offline

#6 2021-05-29 12:03:43

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 25,287

Re: [SOLVED]Constant closing of DWM when watching some youtube videos

Ah, that is a more common issue:
https://groups.google.com/g/wmii/c/7bncCahYIww


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#7 2021-05-29 17:53:06

Tempest002
Member
Registered: 2020-08-26
Posts: 16

Re: [SOLVED]Constant closing of DWM when watching some youtube videos

That patch worked. This error seems to be around for a while now. I am curious, because before, dwm could render the glyphs just fine, now it crashes.

Anyway, thank you.

Offline

#8 2021-05-29 21:37:33

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 25,287

Re: [SOLVED]Constant closing of DWM when watching some youtube videos

Note that I think (I haven't used dwm in quite a while) that this issue depends on whether you have certain fonts installed (and/or configured / ignored with fontconfig).  My understanding is it is triggered when dwm tries to use a colored emoji.  That condition is never faced if there are no color emoji fonts installed *or* if there are other non-color emoji fonts of higher priority that provide the relevant gylphs.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

Board footer

Powered by FluxBB