You are not logged in.

#1 2024-11-12 17:35:01

Neonag
Member
Registered: 2024-11-12
Posts: 8

[SOLVED] KMail shows mail content as black box for X11

Hi,

I have a strange issue with KMail and the mail content. While the entire program is working as expected, there is a big issue with the mail window.

Maybe it is best explained with a screenshot:
Bildschirmfoto-20241112-180655.png
This is there for each and every mail and it does not go away even when toggling the HTML view.
Opening a message in a new window show the exact same issue, black window except for the menu bar.
Only way to read (some) of my mail is using the source view, which works.

The funny thing is, the content is actually there. When I start dragging it with the mouse I can see parts of it:
Bildschirmfoto-20241112-182057.png

What I have done so far to solve this issue:
* Switching to wayland solves the issue, but there are literally crashes of plasma every 30 seconds with the nvidia driver so this is not an option
* Downgrading qt5-webengine to a previous version, did not help
* Checked the system logs for hints, so far unsuccessfully

IIRC this issue was there several months ago but it went away after some updates.

Last edited by Neonag (2024-11-13 16:23:14)

Offline

#2 2024-11-12 18:04:07

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,174

Re: [SOLVED] KMail shows mail content as black box for X11

Reads like a theming issue, but then I'd wonder why it's not showing on x11, but does on Wayland. If you run kmail from a terminal/check the journal are there any pointers to issues with qt-webengine? FWIW I'd expect qt5-webengine to be irrelevant as Kmail should be ported to qt6

FWIW general env/GL setup alright? What do you get from

glxinfo -B
printenv

Offline

#3 2024-11-12 18:42:03

Neonag
Member
Registered: 2024-11-12
Posts: 8

Re: [SOLVED] KMail shows mail content as black box for X11

This is the console output

$ kmail                                                                                                                                                                                                                                                                         
qt.core.qobject.connect: QObject::disconnect: No such slot Akonadi::StatisticsProxyModel::_q_sourceDataChanged(QModelIndex, QModelIndex, QList<int>)
src/gbm_drv_common.c:131: GBM-DRV error (get_bytes_per_component): Unknown or not supported format: 808530000

src/gbm_drv_common.c:131: GBM-DRV error (get_bytes_per_component): Unknown or not supported format: 808530000

src/gbm_drv_common.c:131: GBM-DRV error (get_bytes_per_component): Unknown or not supported format: 808530000

src/gbm_drv_common.c:131: GBM-DRV error (get_bytes_per_component): Unknown or not supported format: 808530000

src/gbm_drv_common.c:131: GBM-DRV error (get_bytes_per_component): Unknown or not supported format: 808530000

src/gbm_drv_common.c:131: GBM-DRV error (get_bytes_per_component): Unknown or not supported format: 808530000

src/gbm_drv_common.c:131: GBM-DRV error (get_bytes_per_component): Unknown or not supported format: 808530000

src/gbm_drv_common.c:131: GBM-DRV error (get_bytes_per_component): Unknown or not supported format: 808530000

src/gbm_drv_common.c:131: GBM-DRV error (get_bytes_per_component): Unknown or not supported format: 808530000

src/gbm_drv_common.c:131: GBM-DRV error (get_bytes_per_component): Unknown or not supported format: 808530000

Journal does not show anything except a connection to the akonadi server.

$ glxinfo -B                                                                                                                                                                                                                                                                    
name of display: :0
display: :0  screen: 0
direct rendering: Yes
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 6144 MB
    Total available memory: 6144 MB
    Currently available dedicated video memory: 5091 MB
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 565.57.01
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6.0 NVIDIA 565.57.01
OpenGL shading language version string: 4.60 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)

OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 565.57.01
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
$ printenv                                                                                                                                                                                                                            
XZ_DEFAULTS=-T 0
SHELL_SESSION_ID=f189552a62a94d02ac2f5ded53627f3a
COLORFGBG=15;0
KDE_APPLICATIONS_AS_SCOPE=1
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
QV4_GC_TIMELIMIT=0
MEMORY_PRESSURE_WRITE=c29tZSAyMDAwMDAgMjAwMDAwMAA=
XDG_SESSION_DESKTOP=KDE
XDG_CURRENT_DESKTOP=KDE
GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/home/username/.gtkrc-2.0:/home/username/.config/gtkrc-2.0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
PWD=/home/username
KONSOLE_DBUS_WINDOW=/Windows/1
XDG_SESSION_CLASS=user
XDG_SESSION_ID=8
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1
XDG_SEAT=seat0
TERM=xterm-256color
SHLVL=1
SYSTEMD_EXEC_PID=3642
MOTD_SHOWN=pam
QT_AUTO_SCREEN_SCALE_FACTOR=0
QT_WAYLAND_RECONNECT=1
SHELL=/bin/bash
XDG_SESSION_TYPE=x11
XDG_RUNTIME_DIR=/run/user/1000
WINDOWID=75497488
XDG_MENU_PREFIX=plasma-
USER=username
PATH=/usr/lib/ccache/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/lib/rustup/bin:/home/username/workspace/scripts
QT_SCREEN_SCALE_FACTORS=DVI-D-0=1.125;HDMI-0=1.125;DP-0=1.125;DP-1=1.125;DP-2=1.125;DP-3=1.125;DP-4=1.125;DP-5=1.125;
PROFILEHOME=
XDG_VTNR=1
SSH_ASKPASS=/usr/bin/ksshaskpass
XAUTHORITY=/tmp/xauth_GweLZA
MEMORY_PRESSURE_WATCH=/sys/fs/cgroup/user.slice/user-1000.slice/user@1000.service/session.slice/plasma-plasmashell.service/memory.pressure
SESSION_MANAGER=local/bender:@/tmp/.ICE-unix/3619,unix/bender:/tmp/.ICE-unix/3619
MANAGERPID=3514
KDE_FULL_SESSION=true
XDG_CONFIG_DIRS=/home/username/.config/kdedefaults:/etc/xdg
DISPLAY=:0
MAIL=/var/spool/mail/username
LOGNAME=username
LANGUAGE=de:en_US
LANG=de_DE.UTF-8
KDE_SESSION_UID=1000
KONSOLE_DBUS_SESSION=/Sessions/2
KONSOLE_DBUS_SERVICE=:1.125
KONSOLE_VERSION=240803
INVOCATION_ID=4dce3869f0ad42f58eaeae014451f415
DEBUGINFOD_URLS=https://debuginfod.archlinux.org 
COLORTERM=truecolor
KDE_SESSION_VERSION=6
HG=/usr/bin/hg
JOURNAL_STREAM=9:43041
VISUAL=vim
PAM_KWALLET5_LOGIN=/run/user/1000/kwallet5.socket
ICEAUTHORITY=/run/user/1000/iceauth_VRxsSv
HOME=/home/username
EDITOR=vim
GTK_RC_FILES=/etc/gtk/gtkrc:/home/username/.gtkrc:/home/username/.config/gtkrc
GTK_MODULES=canberra-gtk-module
DESKTOP_SESSION=plasmax11

Offline

#4 2024-11-12 20:16:36

seth
Member
Registered: 2012-09-03
Posts: 58,659

Re: [SOLVED] KMail shows mail content as black box for X11

The funny thing is, the content is actually there. When I start dragging it with the mouse I can see parts of it:

That's a drag-and-drop window, though? You're not just selecting the text?

To test the theme situation, please switch to a "normal" light colorscheme (black on white).
Idk whether the panel is supposed to cast a shadow w/ the compositor enabled, but do you have compositing enabled?

qdbus org.kde.KWin /KWin supportInformation

Offline

#5 2024-11-13 09:45:36

Neonag
Member
Registered: 2024-11-12
Posts: 8

Re: [SOLVED] KMail shows mail content as black box for X11

seth wrote:

The funny thing is, the content is actually there. When I start dragging it with the mouse I can see parts of it:

That's a drag-and-drop window, though? You're not just selecting the text?

Apparently it is not. When I use wayland I cannot start this dragging anymore. Really weired. But I definitely don't select anything before doing that.

Issue also present with "normal" theme:
Bildschirmfoto-20241113-103118.png

Compositing is enabled, I don't know how to disable it, the option in the settings does not make any difference.

$ qdbus org.kde.KWin /KWin supportInformation                                                      
KWin-Unterstützungsinformationen:
Benutzen Sie die folgenden Informationen, wenn Sie nach Unterstützung fragen, z. B. auf https://discuss.kde.org.
Sie enthalten Informationen über die momentan laufende Instanz, welche Optionen verwendet werden,
welcher OpenGL-Treiber verwendet wird und welche Effekte laufen.
Bitte geben Sie die unten stehenden Informationen bei einem Pastebin-Dienst wie https://paste.kde.org ein, anstatt sie direkt in die Hilfediskussionen zu schreiben.

==========================

Version
=======
KWin version: 6.2.3
Qt Version: 6.8.0
Qt compile version: 6.8.0
XCB compile version: 1.17.0

Operation Mode: X11 only

Build Options
=============
KWIN_BUILD_DECORATIONS: yes
KWIN_BUILD_TABBOX: yes
KWIN_BUILD_ACTIVITIES: yes
HAVE_X11_XCB: yes
HAVE_GLX: yes

X11
===
Vendor: The X.Org Foundation
Vendor Release: 12101014
Protocol Version/Revision: 11/0
SHAPE: yes; Version: 0x11
RANDR: yes; Version: 0x14
DAMAGE: yes; Version: 0x11
Composite: yes; Version: 0x4
RENDER: yes; Version: 0xb
XFIXES: yes; Version: 0x50
SYNC: yes; Version: 0x31
GLX: yes; Version: 0x0

Decoration
==========
Plugin: org.kde.breeze
Theme: 
Plugin recommends border size: None
onAllDesktopsAvailable: true
alphaChannelSupported: true
closeOnDoubleClickOnMenu: false
decorationButtonsLeft: 0, 9
decorationButtonsRight: 3, 4, 5
borderSize: 2
gridUnit: 10
font: Noto Sans,10,-1,5,400,0,0,0,0,0,0,0,0,0,0,1,Regular
smallSpacing: 2
largeSpacing: 10

Output backend
==============
Name: KWin::X11StandaloneBackend

Cursor
======
themeName: breeze_cursors
themeSize: 24

Options
=======
focusPolicy: ClickToFocus
xwaylandCrashPolicy: 1
xwaylandMaxCrashCount: 3
nextFocusPrefersMouse: false
clickRaise: true
autoRaise: false
autoRaiseInterval: 0
delayFocusInterval: 0
shadeHover: false
shadeHoverInterval: 250
separateScreenFocus: false
placement: 4
activationDesktopPolicy: SwitchToOtherDesktop
focusPolicyIsReasonable: true
borderSnapZone: 10
windowSnapZone: 10
centerSnapZone: 0
snapOnlyWhenOverlapping: false
edgeBarrier: 100
cornerBarrier: 1
rollOverDesktops: true
focusStealingPreventionLevel: 1
operationTitlebarDblClick: 5000
operationMaxButtonLeftClick: 5000
operationMaxButtonMiddleClick: 5015
operationMaxButtonRightClick: 5014
commandActiveTitlebar1: MouseRaise
commandActiveTitlebar2: MouseLower
commandActiveTitlebar3: MouseOperationsMenu
commandInactiveTitlebar1: MouseActivateAndRaise
commandInactiveTitlebar2: MouseNothing
commandInactiveTitlebar3: MouseOperationsMenu
commandWindow1: MouseActivateRaiseAndPassClick
commandWindow2: MouseActivateAndPassClick
commandWindow3: MouseActivateAndPassClick
commandWindowWheel: MouseNothing
commandAll1: MouseUnrestrictedMove
commandAll2: MouseToggleRaiseAndLower
commandAll3: MouseUnrestrictedResize
keyCmdAllModKey: 16777251
condensedTitle: false
electricBorderMaximize: true
electricBorderTiling: true
electricBorderCornerRatio: 0.25
borderlessMaximizedWindows: false
killPingTimeout: 5000
compositingMode: 1
useCompositing: true
hiddenPreviews: 1
glSmoothScale: 1
glStrictBinding: false
glStrictBindingFollowsDriver: true
glPreferBufferSwap: AutoSwapStrategy
glPlatformInterface: 1
windowsBlockCompositing: true
allowTearing: true

Screen Edges
============
desktopSwitching: false
desktopSwitchingMovingClients: false
cursorPushBackDistance: 1x1
timeThreshold: 150
reActivateThreshold: 350
actionTopLeft: 0
actionTop: 0
actionTopRight: 0
actionRight: 0
actionBottomRight: 0
actionBottom: 0
actionBottomLeft: 0
actionLeft: 0

Screens
=======
Number of Screens: 1

Screen 0:
---------
Name: DP-0
Enabled: 1
Geometry: 0,0,2560x1440
Scale: 1
Refresh Rate: 144000
Adaptive Sync: incapable

Compositing
===========
Compositing is active
Compositing Type: OpenGL
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2
OpenGL version string: 3.1.0 NVIDIA 565.57.01
OpenGL platform interface: GLX
OpenGL shading language version string: 1.40 NVIDIA via Cg compiler
Driver: NVIDIA
Driver version: 565.57.1
GPU class: Unknown
OpenGL version: 3.1
GLSL version: 1.40
X server version: 1.21.1
Linux kernel version: 6.11.7
Direct rendering: Requires strict binding: no
Virtual Machine:  no
OpenGL 2 Shaders are used

Loaded Effects:
---------------
screenshot
outputlocator
colorpicker
zoom
screenedge
blur
contrast
sessionquit
logout
login
slidingpopups
windowaperture
slide
diminactive
squash
scale
maximize
fullscreen
frozenapp
fadingpopups
dialogparent
wobblywindows
windowview
tileseditor
overview
highlightwindow
blendchanges
startupfeedback
systembell
kscreen

Currently Active Effects:
-------------------------
blur
contrast
diminactive
scale

Effect Settings:
----------------
screenshot:

outputlocator:

colorpicker:

zoom:
zoomFactor: 1.2
mousePointer: 0
mouseTracking: 0
focusTrackingEnabled: false
textCaretTrackingEnabled: false
focusDelay: 350
moveFactor: 20
targetZoom: 1

screenedge:

blur:

contrast:

sessionquit:
pluginId: sessionquit
isActiveFullScreenEffect: false

logout:
pluginId: logout
isActiveFullScreenEffect: false

login:
pluginId: login
isActiveFullScreenEffect: false

slidingpopups:
slideInDuration: 200
slideOutDuration: 200

windowaperture:
pluginId: windowaperture
isActiveFullScreenEffect: false

slide:
horizontalGap: 45
verticalGap: 20
slideBackground: true

diminactive:
dimStrength: 10
dimPanels: false
dimDesktop: false
dimKeepAbove: false
dimByGroup: true
dimFullScreen: true

squash:
pluginId: squash
isActiveFullScreenEffect: false

scale:
pluginId: scale
isActiveFullScreenEffect: false

maximize:
pluginId: maximize
isActiveFullScreenEffect: false

fullscreen:
pluginId: fullscreen
isActiveFullScreenEffect: false

frozenapp:
pluginId: frozenapp
isActiveFullScreenEffect: false

fadingpopups:
pluginId: fadingpopups
isActiveFullScreenEffect: false

dialogparent:
pluginId: dialogparent
isActiveFullScreenEffect: false

wobblywindows:
stiffness: 0.15
drag: 0.8
moveFactor: 0.1
xTesselation: 20
yTesselation: 20
minVelocity: 0
maxVelocity: 1000
stopVelocity: 0.5
minAcceleration: 0
maxAcceleration: 1000
stopAcceleration: 0.5
moveWobble: true
resizeWobble: true

windowview:
activeView: 
delegate: 
animationDuration: 300
ignoreMinimized: false
mode: 
partialActivationFactor: 0
gestureInProgress: false
searchText: 
selectedIds: 

tileseditor:
activeView: 
delegate: 
animationDuration: 200

overview:
activeView: 
delegate: 
animationDuration: 300
ignoreMinimized: false
filterWindows: true
organizedGrid: true
overviewPartialActivationFactor: 0
overviewGestureInProgress: false
transitionPartialActivationFactor: 0
transitionGestureInProgress: false
gridPartialActivationFactor: 0
gridGestureInProgress: false
desktopOffset: 
searchText: 

highlightwindow:

blendchanges:

startupfeedback:
type: 1

systembell:

kscreen:


Loaded Plugins:
---------------
krunnerintegration
nightlight

Available Plugins:
------------------
BounceKeysPlugin
KeyNotificationPlugin
StickyKeysPlugin
buttonsrebind
eis
krunnerintegration
nightlight
screencast

Offline

#6 2024-11-13 13:08:01

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,174

Re: [SOLVED] KMail shows mail content as black box for X11

Alt+Shift+F12 by default you can use to toggle the compositor

Offline

#7 2024-11-13 14:24:13

seth
Member
Registered: 2012-09-03
Posts: 58,659

Re: [SOLVED] KMail shows mail content as black box for X11

Still black, that's an invalid texture, not the theme.
kill kmail, export these and run kmail from that shell - does it still happen?

Offline

#8 2024-11-13 15:53:09

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,174

Re: [SOLVED] KMail shows mail content as black box for X11

I'm also wondering whether the weird fractional Qt scale is leading to bugs here, can you try unsetting

QT_SCREEN_SCALE_FACTORS= kmail

also random thought, do you happen to have a static /etc/X11/xorg.conf generated by nvidia-xconfig and if so what happens if you remove that?

Offline

#9 2024-11-13 16:05:02

Neonag
Member
Registered: 2024-11-12
Posts: 8

Re: [SOLVED] KMail shows mail content as black box for X11

Alt+Shift+F12 by default you can use to toggle the compositor

Issue persists with and without compositing.

kill kmail, export these and run kmail from that shell - does it still happen?

No, it gets even worse, kmail cannot start and crashes instantly:

$ kmail
glx: failed to create dri3 screen
failed to load driver: nouveau
glx: failed to create dri3 screen
failed to load driver: nouveau
failed to create drawable
qt.core.qobject.connect: QObject::disconnect: No such slot Akonadi::StatisticsProxyModel::_q_sourceDataChanged(QModelIndex, QModelIndex, QList<int>)
failed to create drawable
Path override failed for key base::DIR_APP_DICTIONARIES and path '/usr/bin/qtwebengine_dictionaries'
Path override failed for key base::DIR_APP_DICTIONARIES and path '/usr/lib/qt6/qtwebengine_dictionaries'
Path override failed for key base::DIR_APP_DICTIONARIES and path '/usr/lib/qt6/qtwebengine_dictionaries'
src/gbm_drv_common.c:131: GBM-DRV error (get_bytes_per_component): Unknown or not supported format: 808530000

src/gbm_drv_common.c:131: GBM-DRV error (get_bytes_per_component): Unknown or not supported format: 808530000

src/gbm_drv_common.c:131: GBM-DRV error (get_bytes_per_component): Unknown or not supported format: 808530000

src/gbm_drv_common.c:131: GBM-DRV error (get_bytes_per_component): Unknown or not supported format: 808530000

src/gbm_drv_common.c:131: GBM-DRV error (get_bytes_per_component): Unknown or not supported format: 808530000

src/gbm_drv_common.c:131: GBM-DRV error (get_bytes_per_component): Unknown or not supported format: 808530000

src/gbm_drv_common.c:131: GBM-DRV error (get_bytes_per_component): Unknown or not supported format: 808530000

src/gbm_drv_common.c:131: GBM-DRV error (get_bytes_per_component): Unknown or not supported format: 808530000

src/gbm_drv_common.c:131: GBM-DRV error (get_bytes_per_component): Unknown or not supported format: 808530000

src/gbm_drv_common.c:131: GBM-DRV error (get_bytes_per_component): Unknown or not supported format: 808530000

failed to create drawable
[3619:3697:1113/165840.751941:ERROR:gl_surface_glx_qt.cpp(125)] glXCreatePbuffer failed.
[3619:3697:1113/165840.751952:ERROR:gpu_info_collector.cc(82)] gl::GLContext::CreateOffscreenGLSurface failed
[3619:3697:1113/165840.751955:ERROR:gpu_info_collector.cc(563)] Could not create surface for info collection.
failed to create drawable
[3619:3697:1113/165840.753746:ERROR:gl_surface_glx_qt.cpp(125)] glXCreatePbuffer failed.
failed to create drawable
[3619:3697:1113/165840.754281:ERROR:gl_surface_glx_qt.cpp(125)] glXCreatePbuffer failed.
[3619:3697:1113/165840.754289:ERROR:gpu_info_collector.cc(82)] gl::GLContext::CreateOffscreenGLSurface failed
[3619:3697:1113/165840.754293:ERROR:gpu_info_collector.cc(563)] Could not create surface for info collection.
*** KMail got signal 11 (Exiting)
*** Dead letters dumped.
KCrash: Application 'kmail' crashing... crashRecursionCounter = 2
Speicherzugriffsfehler (Speicherabzug geschrieben)

It looks like it's trying to use the nouveau driver, which I have not installed. Maybe it's time to give it another try?

QT_SCREEN_SCALE_FACTORS= kmail

Also no change, issue persists (and scaling does not change at all).

also random thought, do you happen to have a static /etc/X11/xorg.conf generated by nvidia-xconfig and if so what happens if you remove that?

No I don't:

$ tree /etc/X11/                                                                                                                                                                                                                                                     
/etc/X11/
├── tigervnc
│   └── Xsession
├── xinit
│   ├── xinitrc
│   ├── xinitrc.d
│   │   ├── 40-libcanberra-gtk-module.sh
│   │   ├── 50-systemd-user.sh
│   │   └── 90xbrlapi
│   └── xserverrc
└── xorg.conf.d

5 directories, 6 files

Last edited by Neonag (2024-11-13 16:06:06)

Offline

#10 2024-11-13 16:13:45

Neonag
Member
Registered: 2024-11-12
Posts: 8

Re: [SOLVED] KMail shows mail content as black box for X11

This fixes it for me

QTWEBENGINE_CHROMIUM_FLAGS="--disable-gpu-compositing" kmail

found it here https://bugs.kde.org/show_bug.cgi?id=438345

Offline

#11 2024-11-13 16:21:59

seth
Member
Registered: 2012-09-03
Posts: 58,659

Re: [SOLVED] KMail shows mail content as black box for X11

No, it gets even worse, kmail cannot start and crashes instantly:

You didn't export LIBGL_ALWAYS_SOFTWARE=1 did you?

Probably same result as QTWEBENGINE_CHROMIUM_FLAGS (but less limited)

Edit: Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Last edited by seth (2024-11-13 16:22:28)

Offline

#12 2024-11-13 16:25:31

Neonag
Member
Registered: 2024-11-12
Posts: 8

Re: [SOLVED] KMail shows mail content as black box for X11

seth wrote:

You didn't export LIBGL_ALWAYS_SOFTWARE=1 did you?

No I did not, but even when I do it crashes in a similar way, just without the nouveau errors.

I guess I can live with the CHROMIUM_FLAGS for now until I can transition to wayland eventually.

Thanks for your support

Offline

#13 2024-11-13 16:29:40

seth
Member
Registered: 2012-09-03
Posts: 58,659

Re: [SOLVED] KMail shows mail content as black box for X11

From the upstream bug:

I recently switched to wayland in Fedora 34. Both Kmail and Akgregator doesn't work properly under Wayland. They both load as black screens.
EXPECTED RESULT
Load normally, similar to X11

Pretty much everyone there seems to be using wayland so while the mitigation is universal the cause might be not.
Have you checked whether kmail maybe runs on xwayland (and software emulation) in your case?

Offline

#14 2024-11-13 17:52:22

Neonag
Member
Registered: 2024-11-12
Posts: 8

Re: [SOLVED] KMail shows mail content as black box for X11

That bug is quite old. I seem to remember that I had the same problem some time ago but with the wayland session and not X11. Now it's the other way around.

At least the kwin debug console shows KMail as X11 window. And KMail running on XWayland would be strange because running it directly in the wayland session doesn't show this issue.

Offline

#15 2024-11-13 19:40:11

seth
Member
Registered: 2012-09-03
Posts: 58,659

Re: [SOLVED] KMail shows mail content as black box for X11

the kwin debug console shows KMail as X11 window

Wow, hold on - so kmail /does/ run on xwayland in a KDE wayland session?
https://wiki.archlinux.org/title/Waylan … s_visually


Maybe also post the output of

qdbus org.kde.KWin /KWin supportInformation

in a wayland session…


KMail running on XWayland would be strange because running it directly in the wayland session doesn't show this issue.

The theory here would be that because of xwayland kmail is the same X11 client but unaccelerated in wayland and that prevents the problem (just as the environment variable)

Offline

#16 2024-11-13 19:57:20

Neonag
Member
Registered: 2024-11-12
Posts: 8

Re: [SOLVED] KMail shows mail content as black box for X11

seth wrote:

the kwin debug console shows KMail as X11 window

Wow, hold on - so kmail /does/ run on xwayland in a KDE wayland session?
https://wiki.archlinux.org/title/Waylan … s_visually

Sorry, I think I got this wrong. I checked for XWayland under X11, which does probably not make much sense.
I have now checked with

qdbus org.kde.KWin /KWin org.kde.KWin.showDebugConsole 

and this shows KMail as Wayland window. The other tools mentioned in the link do so as well.

This is the support info from a Wayland session:

$ qdbus org.kde.KWin /KWin supportInformation                                                      
KWin-Unterstützungsinformationen:
Benutzen Sie die folgenden Informationen, wenn Sie nach Unterstützung fragen, z. B. auf https://discuss.kde.org.
Sie enthalten Informationen über die momentan laufende Instanz, welche Optionen verwendet werden,
welcher OpenGL-Treiber verwendet wird und welche Effekte laufen.
Bitte geben Sie die unten stehenden Informationen bei einem Pastebin-Dienst wie https://paste.kde.org ein, anstatt sie direkt in die Hilfediskussionen zu schreiben.

==========================

Version
=======
KWin version: 6.2.3
Qt Version: 6.8.0
Qt compile version: 6.8.0
XCB compile version: 1.17.0

Operation Mode: Xwayland

Build Options
=============
KWIN_BUILD_DECORATIONS: yes
KWIN_BUILD_TABBOX: yes
KWIN_BUILD_ACTIVITIES: yes
HAVE_X11_XCB: yes
HAVE_GLX: yes

X11
===
Vendor: The X.Org Foundation
Vendor Release: 12401004
Protocol Version/Revision: 11/0
SHAPE: yes; Version: 0x11
RANDR: yes; Version: 0x14
DAMAGE: yes; Version: 0x11
Composite: yes; Version: 0x4
RENDER: yes; Version: 0xb
XFIXES: yes; Version: 0x50
SYNC: yes; Version: 0x31
GLX: yes; Version: 0x0

Decoration
==========
Plugin: org.kde.breeze
Theme: 
Plugin recommends border size: None
onAllDesktopsAvailable: true
alphaChannelSupported: true
closeOnDoubleClickOnMenu: false
decorationButtonsLeft: 0, 9
decorationButtonsRight: 3, 4, 5
borderSize: 2
gridUnit: 10
font: Noto Sans,10,-1,5,400,0,0,0,0,0,0,0,0,0,0,1,Regular
smallSpacing: 2
largeSpacing: 10

Output backend
==============
Name: DRM
Atomic Mode Setting on GPU 0: true

Cursor
======
themeName: breeze_cursors
themeSize: 24

Options
=======
focusPolicy: ClickToFocus
xwaylandCrashPolicy: 1
xwaylandMaxCrashCount: 3
nextFocusPrefersMouse: false
clickRaise: true
autoRaise: false
autoRaiseInterval: 0
delayFocusInterval: 0
shadeHover: false
shadeHoverInterval: 250
separateScreenFocus: false
placement: 4
activationDesktopPolicy: SwitchToOtherDesktop
focusPolicyIsReasonable: true
borderSnapZone: 10
windowSnapZone: 10
centerSnapZone: 0
snapOnlyWhenOverlapping: false
edgeBarrier: 100
cornerBarrier: 1
rollOverDesktops: true
focusStealingPreventionLevel: 1
operationTitlebarDblClick: 5000
operationMaxButtonLeftClick: 5000
operationMaxButtonMiddleClick: 5015
operationMaxButtonRightClick: 5014
commandActiveTitlebar1: MouseRaise
commandActiveTitlebar2: MouseLower
commandActiveTitlebar3: MouseOperationsMenu
commandInactiveTitlebar1: MouseActivateAndRaise
commandInactiveTitlebar2: MouseNothing
commandInactiveTitlebar3: MouseOperationsMenu
commandWindow1: MouseActivateRaiseAndPassClick
commandWindow2: MouseActivateAndPassClick
commandWindow3: MouseActivateAndPassClick
commandWindowWheel: MouseNothing
commandAll1: MouseUnrestrictedMove
commandAll2: MouseToggleRaiseAndLower
commandAll3: MouseUnrestrictedResize
keyCmdAllModKey: 16777251
condensedTitle: false
electricBorderMaximize: true
electricBorderTiling: true
electricBorderCornerRatio: 0.25
borderlessMaximizedWindows: false
killPingTimeout: 5000
compositingMode: 1
useCompositing: true
hiddenPreviews: 1
glSmoothScale: 1
glStrictBinding: true
glStrictBindingFollowsDriver: true
glPreferBufferSwap: AutoSwapStrategy
glPlatformInterface: 2
windowsBlockCompositing: true
allowTearing: true

Screen Edges
============
desktopSwitching: false
desktopSwitchingMovingClients: false
cursorPushBackDistance: 1x1
timeThreshold: 150
reActivateThreshold: 350
actionTopLeft: 0
actionTop: 0
actionTopRight: 0
actionRight: 0
actionBottomRight: 0
actionBottom: 0
actionBottomLeft: 0
actionLeft: 0

Screens
=======
Number of Screens: 1

Screen 0:
---------
Name: DP-1
Enabled: 1
Geometry: 0,0,2560x1440
Scale: 1
Refresh Rate: 144000
Adaptive Sync: automatic

Compositing
===========
Compositing is active
Compositing Type: OpenGL
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2
OpenGL version string: 3.1.0 NVIDIA 565.57.01
OpenGL platform interface: EGL
OpenGL shading language version string: 1.40 NVIDIA via Cg compiler
Driver: NVIDIA
Driver version: 565.57.1
GPU class: Unknown
OpenGL version: 3.1
GLSL version: 1.40
X server version: 1.24.1
Linux kernel version: 6.11.7
Direct rendering: Requires strict binding: no
Virtual Machine:  no
OpenGL 2 Shaders are used

Loaded Effects:
---------------
shakecursor
screenshot
outputlocator
colorpicker
zoom
screenedge
blur
contrast
sessionquit
logout
login
slidingpopups
windowaperture
slide
diminactive
squash
scale
maximize
fullscreen
frozenapp
fadingpopups
dialogparent
wobblywindows
windowview
tileseditor
overview
highlightwindow
blendchanges
startupfeedback
systembell
screentransform
kscreen

Currently Active Effects:
-------------------------
blur
contrast
diminactive

Effect Settings:
----------------
shakecursor:

screenshot:

outputlocator:

colorpicker:

zoom:
zoomFactor: 1.2
mousePointer: 0
mouseTracking: 0
focusTrackingEnabled: false
textCaretTrackingEnabled: false
focusDelay: 350
moveFactor: 20
targetZoom: 1

screenedge:

blur:

contrast:

sessionquit:
pluginId: sessionquit
isActiveFullScreenEffect: false

logout:
pluginId: logout
isActiveFullScreenEffect: false

login:
pluginId: login
isActiveFullScreenEffect: false

slidingpopups:
slideInDuration: 200
slideOutDuration: 200

windowaperture:
pluginId: windowaperture
isActiveFullScreenEffect: false

slide:
horizontalGap: 45
verticalGap: 20
slideBackground: true

diminactive:
dimStrength: 10
dimPanels: false
dimDesktop: false
dimKeepAbove: false
dimByGroup: true
dimFullScreen: true

squash:
pluginId: squash
isActiveFullScreenEffect: false

scale:
pluginId: scale
isActiveFullScreenEffect: false

maximize:
pluginId: maximize
isActiveFullScreenEffect: false

fullscreen:
pluginId: fullscreen
isActiveFullScreenEffect: false

frozenapp:
pluginId: frozenapp
isActiveFullScreenEffect: false

fadingpopups:
pluginId: fadingpopups
isActiveFullScreenEffect: false

dialogparent:
pluginId: dialogparent
isActiveFullScreenEffect: false

wobblywindows:
stiffness: 0.15
drag: 0.8
moveFactor: 0.1
xTesselation: 20
yTesselation: 20
minVelocity: 0
maxVelocity: 1000
stopVelocity: 0.5
minAcceleration: 0
maxAcceleration: 1000
stopAcceleration: 0.5
moveWobble: true
resizeWobble: true

windowview:
activeView: 
delegate: 
animationDuration: 300
ignoreMinimized: false
mode: ModeAllDesktops
partialActivationFactor: 0
gestureInProgress: false
searchText: 
selectedIds: 

tileseditor:
activeView: 
delegate: 
animationDuration: 200

overview:
activeView: 
delegate: 
animationDuration: 300
ignoreMinimized: false
filterWindows: true
organizedGrid: true
overviewPartialActivationFactor: 0
overviewGestureInProgress: false
transitionPartialActivationFactor: 0
transitionGestureInProgress: false
gridPartialActivationFactor: 0
gridGestureInProgress: false
desktopOffset: 
searchText: 

highlightwindow:

blendchanges:

startupfeedback:
type: 1

systembell:

screentransform:

kscreen:


Loaded Plugins:
---------------
BounceKeysPlugin
KeyNotificationPlugin
StickyKeysPlugin
buttonsrebind
eis
krunnerintegration
nightlight
screencast

Available Plugins:
------------------
BounceKeysPlugin
KeyNotificationPlugin
StickyKeysPlugin
buttonsrebind
eis
krunnerintegration
nightlight
screencast

The theory here would be that because of xwayland kmail is the same X11 client but unaccelerated in wayland and that prevents the problem (just as the environment variable)

That sounds like a nice theory, but from what I can tell it's not correct.

Offline

#17 2024-11-13 20:55:35

seth
Member
Registered: 2012-09-03
Posts: 58,659

Re: [SOLVED] KMail shows mail content as black box for X11

from what I can tell it's not correct

Nope. Because

I checked for XWayland under X11, which does probably not make much sense.

… ex falso quodlibet wink

Wayland session looks normal (doesn't fallback to software rendering) - it's probably a bug in the webengine code that at some point existed in one backend, was fixed there but then re-introduced in the other backend.

Offline

Board footer

Powered by FluxBB