You are not logged in.

#1 2023-05-11 17:37:42

aeonik
Member
Registered: 2018-04-04
Posts: 15

KDE Plasmashell: parent process hides child process in log messages

Hello,
I have been trying to track down why my logs were being spammed recently. I found out it's something wrong with the latest Firefox release, it spams these messages for each plugin that I have active (all plugins), and only for some websites.

Problem: it was more work than it should have been to identify where the warnings were coming from, because "plasmashell" is identified in the logs for all my desktop processes.

Example log message:

May 11 12:44:47 aeonik plasmashell[2478431]: [Child 2478431, Main Thread] WARNING: JSWindowActorChild::SendRawMessage (Conduits, ConduitClosed) not sent: !CanSend() || !mManager || !mManager->CanSend(): file /build/firefox/src/firefox-113.0/dom/ipc/jsactor/JSWindowActorChild.cpp:57

I understand in *nix systems that processes use fork() to create child processes. But I am wondering why plasmashell doesn't log messages from its children with the proper process name?

I feel like the log message should read like this instead:

May 11 12:44:47 aeonik firefox[2478431]: [Child 2478431, Main Thread] WARNING: JSWindowActorChild::SendRawMessage (Conduits, ConduitClosed) not sent: !CanSend() || !mManager || !mManager->CanSend(): file /build/firefox/src/firefox-113.0/dom/ipc/jsactor/JSWindowActorChild.cpp:57

If systemd did the same thing, then every single log message would just originate from "systemd" and be relatively useless without referencing the pids.

Here is the pstree output

        │         ├─plasmashell─┬─firefox─┬─2*[Isolated Web Co───26*[{Isolated Web Co}]]
        │         │             │         ├─7*[Isolated Web Co───27*[{Isolated Web Co}]]
        │         │             │         ├─2*[Isolated Web Co───28*[{Isolated Web Co}]]
        │         │             │         ├─Privileged Cont───26*[{Privileged Cont}]
        │         │             │         ├─RDD Process───3*[{RDD Process}]
        │         │             │         ├─Socket Process───4*[{Socket Process}]
        │         │             │         ├─Utility Process───3*[{Utility Process}]
        │         │             │         ├─3*[Web Content───19*[{Web Content}]]
        │         │             │         ├─WebExtensions───30*[{WebExtensions}]
        │         │             │         └─147*[{firefox}]
        │         │             ├─kdesu─┬─su───kdesu_stub───ksystemlog───6*[{ksystemlog}]
        │         │             │       └─6*[{kdesu}]
        │         │             ├─systemsettings───12*[{systemsettings}]
        │         │             └─95*[{plasmashell}]

I am wondering if this is expected behavior, or if I have a misconfiguration in KDE, SystemD, or XOrg.

I use startx from a tty to start my Desktop session, and have it running as my user (aka not root).

Regards,
Aeonik

Offline

#2 2023-05-13 18:26:48

bitterhalt
Member
Registered: 2022-06-19
Posts: 19

Re: KDE Plasmashell: parent process hides child process in log messages

I also got thousands of these errors with Firefox if I enable any of my extensions. I am on xorg and DWM so I think it has nothing to do with KDE.

Offline

#3 2023-05-15 12:19:15

Mr.Smith1974
Member
From: St. Petersburg, Russia
Registered: 2013-04-13
Posts: 28

Re: KDE Plasmashell: parent process hides child process in log messages

I am having the same problem. KDE and Firefox

Offline

#4 2023-05-25 09:18:08

lord_rel
Member
Registered: 2007-04-04
Posts: 36

Re: KDE Plasmashell: parent process hides child process in log messages

Same problem here kde on xorg, found the bug listing in the firefox bugzilla https://bugzilla.mozilla.org/show_bug.cgi?id=1831076 please vote so it gets more priority

Offline

#5 2023-05-25 14:22:17

seth
Member
Registered: 2012-09-03
Posts: 38,710

Re: KDE Plasmashell: parent process hides child process in log messages

I think the OPs direct concern is the error appearing as "plasmashell" process name - does anyone else get the same misnomer?

@aeonik, please post your xinitrc

Online

Board footer

Powered by FluxBB