Stopping the screen recording leaves an orphaned gjs instance running.
Affected version
Gnome Shell: 44.5
Debian: Trixie/Testing
Display Renderer: Wayland
Happens with/out Extensions enabled? Yes
Bug summary
Stopping the Shell's built-in ScreenCast by clicking stops the screen recording, and saves it to the Screencasts directory but it doesn't close the screencast process thus leaving behind a orphan
gjs
process as shown below:
This process also grows in memory size on successive uses of screencast. Below is the proof:
Note: This behavior/bug is specific to ScreenCast. I am not able to reproduce it while taking screenshots. Screenshots work fine.
Steps to reproduce
- Open the System Monitor and filter the process by searching for
gjs
. - Start the screencast, and stop it after a few seconds.
- You will see an extra running process on your list of gjs processes in the system monitor.
- Repeat step 2 and you will notice the memory consumption growing for the same screencast gjs process in the system monitor.
What happened
Gnome Shell didn't close the screencast gjs
instance when stopping the screen recording.
What did you expect to happen
Gnome Shell should close the screencast gjs
instance when stopping the screen recording, thus leaving behind no orphan processes and thus no memory leaks.