Bug 467125

Summary: When I mute Android emulator, Chromium is also muted at the same time
Product: [Plasma] plasmashell Reporter: Kaan Karaman <kaan94>
Component: Task Manager and Icons-Only Task ManagerAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: kdedev, nate, postix, shatz.dan
Priority: NOR    
Version: 5.27.2   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: When clicked mute icon.
Android studio
device menu

Description Kaan Karaman 2023-03-09 18:30:19 UTC
Created attachment 157157 [details]
When clicked mute icon.

STEPS TO REPRODUCE
1. Open an Android Emulator
2. Click mute icon from task bar


OBSERVED RESULT
When you clicked to mute icon for Android Emulator, it will mute also Chromium same time


EXPECTED RESULT
It should only mute Android Emulator. Chromium shouldn't be muted and continue to play songs.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.27.2
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel : 6.2.2-arch1-1
ADDITIONAL INFORMATION
Comment 1 Nate Graham 2023-03-13 19:35:01 UTC
Are these both Flat ak apps, by any chance?
Comment 2 Kaan Karaman 2023-03-13 19:38:39 UTC
(In reply to Nate Graham from comment #1)
> Are these both Flat ak apps, by any chance?

No. I installed Android emulator via Android Studio. And I installed Android Studio via Jetbrains toolbox.
I installed Chromium via pacman. I don't have flatpak packages installed. If you need to test about flatpak, I can install from flatpak and test same situation for you.
Comment 3 Nate Graham 2023-03-14 14:04:47 UTC
While both of these apps are open, can you run `pstree` and paste the output here?
Comment 4 Kaan Karaman 2023-03-14 14:07:33 UTC
(In reply to Nate Graham from comment #3)
> While both of these apps are open, can you run `pstree` and paste the output
> here?

systemd-+-NetworkManager---2*[{NetworkManager}]
        |-containerd---19*[{containerd}]
        |-containerd-shim-+-mongod---37*[{mongod}]
        |                 `-11*[{containerd-shim}]
        |-containerd-shim-+-npm start-+-node-+-node---10*[{node}]
        |                 |           |      `-5*[{node}]
        |                 |           `-10*[{npm start}]
        |                 `-11*[{containerd-shim}]
        |-containerd-shim-+-npm start-+-node-+-node---10*[{node}]
        |                 |           |      `-6*[{node}]
        |                 |           `-10*[{npm start}]
        |                 `-11*[{containerd-shim}]
        |-dbus-daemon
        |-dnsmasq---dnsmasq
        |-dockerd-+-4*[docker-proxy---7*[{docker-proxy}]]
        |         |-docker-proxy---6*[{docker-proxy}]
        |         |-3*[docker-proxy---5*[{docker-proxy}]]
        |         `-22*[{dockerd}]
        |-firewalld---{firewalld}
        |-packagekitd---2*[{packagekitd}]
        |-polkitd---2*[{polkitd}]
        |-rtkit-daemon---2*[{rtkit-daemon}]
        |-sddm-+-Xorg---{Xorg}
        |      |-sddm-helper---startplasma-x11---{startplasma-x11}
        |      `-{sddm}
        |-systemd-+-(sd-pam)
        |         |-DiscoverNotifie---4*[{DiscoverNotifie}]
        |         |-adb---5*[{adb}]
        |         |-agent---2*[{agent}]
        |         |-at-spi-bus-laun-+-dbus-daemon
        |         |                 `-3*[{at-spi-bus-laun}]
        |         |-at-spi2-registr---2*[{at-spi2-registr}]
        |         |-baloo_file---2*[{baloo_file}]
        |         |-baloorunner---2*[{baloorunner}]
        |         |-chrome_crashpad---{chrome_crashpad}
        |         |-chrome_crashpad
        |         |-crashpad_handle---2*[{crashpad_handle}]
        |         |-dbus-daemon
        |         |-dconf-service---2*[{dconf-service}]
        |         |-gmenudbusmenupr---2*[{gmenudbusmenupr}]
        |         |-imwheel
        |         |-java---81*[{java}]
        |         |-kaccess---2*[{kaccess}]
        |         |-kactivitymanage---5*[{kactivitymanage}]
        |         |-kded5---9*[{kded5}]
        |         |-kglobalaccel5---2*[{kglobalaccel5}]
        |         |-kio_http_cache_---{kio_http_cache_}
        |         |-krunner---38*[{krunner}]
        |         |-kscreen_backend---2*[{kscreen_backend}]
        |         |-ksmserver---2*[{ksmserver}]
        |         |-kwin_x11---6*[{kwin_x11}]
        |         |-obexd
        |         |-org_kde_powerde---5*[{org_kde_powerde}]
        |         |-pipewire---2*[{pipewire}]
        |         |-pipewire-pulse---{pipewire-pulse}
        |         |-plasmashell-+-chromium-+-chromium---chromium-+-chromium
        |         |             |          |                     `-12*[{chromium}]
        |         |             |          |-chromium---chromium-+-2*[chromium---6*[{chromium}]]
        |         |             |          |                     |-chromium---16*[{chromium}]
        |         |             |          |                     |-chromium---24*[{chromium}]
        |         |             |          |                     |-chromium---19*[{chromium}]
        |         |             |          |                     |-7*[chromium---12*[{chromium}]]
        |         |             |          |                     |-chromium---18*[{chromium}]
        |         |             |          |                     |-9*[chromium---14*[{chromium}]]
        |         |             |          |                     |-chromium---4*[{chromium}]
        |         |             |          |                     |-21*[chromium---13*[{chromium}]]
        |         |             |          |                     `-chromium---15*[{chromium}]
        |         |             |          |-2*[chromium---8*[{chromium}]]
        |         |             |          |-plasma-browser----2*[{plasma-browser-}]
        |         |             |          `-23*[{chromium}]
        |         |             |-konsole-+-zsh---commander
        |         |             |         |-zsh---docker-+-docker-compose---18*[{docker-compose}]
        |         |             |         |              `-11*[{docker}]
        |         |             |         |-zsh---npm start-+-node-+-4*[node---6*[{node}]]
        |         |             |         |                 |      |-6*[node---10*[{node}]]
        |         |             |         |                 |      `-10*[{node}]
        |         |             |         |                 `-10*[{npm start}]
        |         |             |         |-2*[zsh]
        |         |             |         |-2*[zsh---ssh]
        |         |             |         |-zsh---node---5*[{node}]
        |         |             |         |-zsh---pstree
        |         |             |         `-3*[{konsole}]
        |         |             `-47*[{plasmashell}]
        |         |-polkit-kde-auth---4*[{polkit-kde-auth}]
        |         |-qemu-system-x86-+-QtWebEngineProc---2*[QtWebEngineProc---13*[{QtWebEngineProc}]]
        |         |                 |-adb
        |         |                 `-102*[{qemu-system-x86}]
        |         |-wireplumber---4*[{wireplumber}]
        |         |-xdg-desktop-por---6*[{xdg-desktop-por}]
        |         |-2*[xdg-desktop-por---3*[{xdg-desktop-por}]]
        |         |-xdg-document-po-+-fusermount3
        |         |                 `-6*[{xdg-document-po}]
        |         |-xdg-permission----2*[{xdg-permission-}]
        |         |-xembedsniproxy---2*[{xembedsniproxy}]
        |         |-9*[zsh---gitstatusd---32*[{gitstatusd}]]
        |         `-18*[zsh]
        |-systemd-journal
        |-systemd-logind
        |-systemd-machine
        |-systemd-timesyn---{systemd-timesyn}
        |-systemd-udevd
        |-udisksd---4*[{udisksd}]
        `-upowerd---2*[{upowerd}]
Comment 5 Nate Graham 2023-03-15 14:46:51 UTC
It looks like Chromium is the parent process of a few apps, which will definitely cause this issue.

How exactly are you launching Android Emulator?
Comment 6 Kaan Karaman 2023-03-16 08:04:54 UTC
(In reply to Nate Graham from comment #5)
> It looks like Chromium is the parent process of a few apps, which will
> definitely cause this issue.
> 
> How exactly are you launching Android Emulator?

Mostly I am  starting console with npm start command but I tried to open Android Emulator from Android Studio > Virtual Device Manager > Start device. But same result happened again. I am adding attachment pictures for it
Comment 7 Kaan Karaman 2023-03-16 08:06:07 UTC
Created attachment 157326 [details]
Android studio
Comment 8 Kaan Karaman 2023-03-16 08:06:48 UTC
Created attachment 157327 [details]
device menu
Comment 9 Nate Graham 2023-03-27 18:53:15 UTC
There seems to be some kind of re-parenting going on, maybe.
Comment 10 shatz.dan 2024-02-09 13:33:34 UTC
I'm affected too. In my case it's Android Emulator and Spotify.
In my case Spotify is a flatpak and Emulator is installed through android studio (in /opt I believe).

One thing I noticed is that muting emulator through the sound applet in systray works as expected (leaves spotify unmuted). The issue is only with muting through the taskbar (mutes both).

Plasma: 6.0.80
Frameworks: 6.0.0
QT: 6.6.1
Wayland
KDE Neon unstable
Let me know what additional info I can provide.
Comment 11 shatz.dan 2024-02-09 13:36:02 UTC
pstree for me shows that both run as children of systemd?

├─systemd─┬─(sd-pam)
        │         ├─DiscoverNotifie───6*[{DiscoverNotifie}]
        │         ├─adb───6*[{adb}]
        │         ├─agent───2*[{agent}]
        │         ├─at-spi-bus-laun─┬─dbus-daemon
        │         │                 └─3*[{at-spi-bus-laun}]
        │         ├─at-spi2-registr───2*[{at-spi2-registr}]
        │         ├─baloo_file───{baloo_file}
        │         ├─baloorunner───3*[{baloorunner}]
        │         ├─2*[bwrap───xdg-dbus-proxy───{xdg-dbus-proxy}]
        │         ├─bwrap───spotify─┬─spotify───spotify───14*[{spotify}]
        │         │                 ├─spotify─┬─spotify───5*[{spotify}]
        │         │                 │         └─spotify───14*[{spotify}]
        │         │                 ├─spotify───10*[{spotify}]
        │         │                 └─43*[{spotify}]
        │         ├─bwrap───bwrap───telegram-deskto───34*[{telegram-deskto}]
        │         ├─crashpad_handle───2*[{crashpad_handle}]
        │         ├─dbus-daemon
        │         ├─dconf-service───2*[{dconf-service}]
        │         ├─dolphin───5*[{dolphin}]
        │         ├─firefox─┬─2*[Isolated Web Co───26*[{Isolated Web Co}]]
        │         │         ├─2*[Isolated Web Co───29*[{Isolated Web Co}]]
        │         │         ├─4*[Isolated Web Co───25*[{Isolated Web Co}]]
        │         │         ├─Privileged Cont───26*[{Privileged Cont}]
        │         │         ├─RDD Process───3*[{RDD Process}]
        │         │         ├─Socket Process───4*[{Socket Process}]
        │         │         ├─Utility Process───3*[{Utility Process}]
        │         │         ├─2*[Web Content───11*[{Web Content}]]
        │         │         ├─Web Content───10*[{Web Content}]
        │         │         ├─WebExtensions───25*[{WebExtensions}]
        │         │         ├─plasma-browser-───5*[{plasma-browser-}]
        │         │         └─130*[{firefox}]
        │         ├─flatpak-session───2*[{flatpak-session}]
        │         ├─gmenudbusmenupr───2*[{gmenudbusmenupr}]
        │         ├─gvfsd───2*[{gvfsd}]
        │         ├─gvfsd-metadata───2*[{gvfsd-metadata}]
        │         ├─java─┬─fsnotifier
        │         │      ├─java─┬─java───36*[{java}]
        │         │      │      └─59*[{java}]
        │         │      ├─java───59*[{java}]
        │         │      └─101*[{java}]
        │         ├─kactivitymanage───6*[{kactivitymanage}]
        │         ├─kalendarac───5*[{kalendarac}]
        │         ├─kdeconnectd───3*[{kdeconnectd}]
        │         ├─kded6───9*[{kded6}]
        │         ├─krunner───35*[{krunner}]
        │         ├─kscreen_osd_ser───3*[{kscreen_osd_ser}]
        │         ├─kwin_wayland_wr─┬─kwin_wayland─┬─Xwayland───4*[{Xwayland}]
        │         │                 │              └─16*[{kwin_wayland}]
        │         │                 └─{kwin_wayland_wr}
        │         ├─obexd
        │         ├─org_kde_powerde───7*[{org_kde_powerde}]
        │         ├─p11-kit-server───p11-kit-remote
        │         ├─pipewire───{pipewire}
        │         ├─pipewire-media-───{pipewire-media-}
        │         ├─plasmashell─┬─plasma-discover───25*[{plasma-discover}]
        │         │             ├─systemsettings───12*[{systemsettings}]
        │         │             └─76*[{plasmashell}]
        │         ├─polkit-kde-auth───7*[{polkit-kde-auth}]
        │         ├─pulseaudio─┬─gsettings-helpe───3*[{gsettings-helpe}]
        │         │            └─7*[{pulseaudio}]
        │         ├─qemu-system-x86─┬─QtWebEngineProc───2*[QtWebEngineProc───13*[{QtWebEngineProc}]]
        │         │                 ├─netsimd───20*[{netsimd}]
        │         │                 └─171*[{qemu-system-x86}]
Comment 12 TraceyC 2024-09-26 19:23:09 UTC
This is the same bug as 375943, please follow that report to keep track of progress. Thanks!

*** This bug has been marked as a duplicate of bug 375943 ***