budgie-extras applets exit early on occasion

Bug #1999887 reported by Sam Lane
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
budgie-extras (Ubuntu)
Fix Released
Undecided
Sam Lane
Jammy
Fix Released
Medium
Sam Lane
Kinetic
Fix Released
Medium
Sam Lane
Lunar
Fix Released
Undecided
Unassigned

Bug Description

[ Impact ]

 * On some of the Budgie Extras applets, background processes are used to handle tasks, for example to show a clock on the desktop or detect USB drives. These background processes are designed to terminate when they detect they are no longer installed on the Budgie Panel. On occasion, these processes can be started prior to the Budgie Panel being fully initialized, which causes them to incorrectly assume they are no longer on the panel, and thus terminate early. This affects the following applets:

  - Budgie ShowTime Applet
  - Budgie Weathershow
  - Budgie DropBy
  - Budgie Workplace Wallpaper Switcher

 * This causes undesirable behavior, as the applets no longer work as expected. For desktop applets, the desktop display will briefly show then disappear. For DropBy and Wallpaper switcher, the applets will essentially stop working. In these cases, it will be necessary to remove and re-add the applet to the panel, or disable/re-enable the desktop component in the applet settings.

 * For all these cases, the fix is the same. By using GLib Idle.add to spawn these external process, the spawning does not occur until after the panel has had the chance to fully initialize, thus preventing the early exit.

[ Test Plan ]

 * On Budgie 22.04 or 22.10, add the following applets to the Budgie Panel:
  - Budgie ShowTime
  - Budgie Weathershow
  - Budgie DropBy
  - Budgie Workspace Wallpaper Switcher

Make sure Weathershow option to show desktop weather is enabled
Set up Workspace Wallpaper Switcher to show different wallpapers in each workspace

Reboot and log in.

1. See if the desktop clock is present
2. See if the desktop weather is present.
3. Insert a USB drive and make sure the DropBy window pops up
4. Switch workspaces and ensure the wallpaper changes

Many times one or more of the four previous items will fail. It is especially more frequent on slower machines, virtual machines, or xdrp sessions where the panel may take longer to initialize.

After applying the fix, reboot and test these 4 items again. None of them should terminate early and all items should work properly.

[ Where problems could occur ]

Visually this appears to be a cosmetic issue with a known but rather annoying workaround that needs to be applied each logon. This fix will ensure the applets will display correctly upon login.
The same fix is in Lunar and no similar issues have been reported. The worse case scenario is that the same workaround would have to be continued to be applied - and extended to lunar users as well.

[ Other Info ]

---

Ubuntu Budgie 22.04.1
Applet version 1.4.0-1ubuntu2

When starting up my system with Budgie Showtime on the panel, occasionally the desktop clock will disappear before the panel is displayed. This seems to happen more frequently on lower powered systems (like Raspberry Pi) or in virtual machines and xrdp remote sessions, where the Budgie panel might take longer to initialize.

The same issue affects the budgie-weathershow-applet desktop weather, budgie-workspace-wallpaper-applet background process, and the budgie-dropby background process.

Steps to reproduce:
While it can happen somewhat randomly, the best method I have found:
-ensure the Showtime, Weathershow, Dropby, and Workspace Wallpaper applet have been added to the panel
- select the Weathershow Applet in Budgie Desktop settings and make sure "show on desktop" is selected
-reboot
-upon login, see if ShowTime and Desktop Weather appear on the desktop
- as it can be somewhat random, I have found I can more reliably reproduce by setting my laptop to "power save" mode instead of performance, or testing in a VM

What I would expect to happen:
On first login with these applets installed, they should be remain on the desktop, and the background processes should remain active.

What happened instead:
On first login, occasionally the external processes will close before the panel is displayed.

The applets all seem to be affected by the same underlying issue where the external process is spawned before the Budgie panel is fully initialized.

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: budgie-showtime-applet 1.4.0-1ubuntu2
ProcVersionSignature: Ubuntu 5.15.0-56.62-generic 5.15.64
Uname: Linux 5.15.0-56-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: Budgie:GNOME
Date: Fri Dec 16 07:30:08 2022
InstallationDate: Installed on 2022-12-09 (6 days ago)
InstallationMedia: Ubuntu-Budgie 22.04.1 LTS "Jammy Jellyfish" - Release amd64 (20220809.1)
SourcePackage: budgie-extras
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Sam Lane (samlane00) wrote :
Changed in budgie-extras (Ubuntu):
assignee: nobody → Sam Lane (samlane00)
Sam Lane (samlane00)
summary: - desktop showtime exits early on occasion
+ budgie-extras applets exit early on occasion
description: updated
Sam Lane (samlane00)
description: updated
Sam Lane (samlane00)
description: updated
Sam Lane (samlane00)
description: updated
description: updated
description: updated
Sam Lane (samlane00)
tags: added: kinetic
Sam Lane (samlane00)
description: updated
Revision history for this message
fossfreedom (fossfreedom) wrote :

Added series and marked lunar as fixed released since confirmed resolved in this series

Changed in budgie-extras (Ubuntu Lunar):
status: New → Fix Released
Changed in budgie-extras (Ubuntu Jammy):
importance: Undecided → Medium
Changed in budgie-extras (Ubuntu Kinetic):
importance: Undecided → Medium
Changed in budgie-extras (Ubuntu Kinetic):
assignee: nobody → Sam Lane (samlane00)
Changed in budgie-extras (Ubuntu Jammy):
assignee: nobody → Sam Lane (samlane00)
Changed in budgie-extras (Ubuntu Kinetic):
status: New → In Progress
description: updated
Revision history for this message
Timo Aaltonen (tjaalton) wrote : Please test proposed package

Hello Sam, or anyone else affected,

Accepted budgie-extras into kinetic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/budgie-extras/1.5.0-1ubuntu1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-kinetic to verification-done-kinetic. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-kinetic. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in budgie-extras (Ubuntu Kinetic):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-kinetic
Changed in budgie-extras (Ubuntu Jammy):
status: New → Fix Committed
tags: added: verification-needed-jammy
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

Hello Sam, or anyone else affected,

Accepted budgie-extras into jammy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/budgie-extras/1.4.0-1ubuntu3 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-jammy to verification-done-jammy. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-jammy. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Revision history for this message
Sam Lane (samlane00) wrote :

Verified the package successfully fixed the issues n Jammy.

Installed the following applets from jammy-proposed
  - budgie-showtime-applet 1.4.0-1ubuntu3
  - budgie-weathershow-applet 1.4.0-1ubuntu3
  - budgie-dropby-applet 1.4.0-1ubuntu3
  - budgie-workspace-wallpaper-applet 1.4.0-1ubuntu3

Added all applets to the Budgie Panel
Enabled Weathershow desktop weather
Rebooted
Confirmed
 - Weather was showing on desktop
 - clock was visible on desktop
 - Dropby popped up when plugging in USB drive
 - Wallpaper changed when workspace changed
Rebooted multiple times and re-checked all items

Repeated all steps on a Jammy VM and confirmed the issue did not reoccur

tags: added: verification-done-jammy
removed: verification-needed-jammy
Revision history for this message
Sam Lane (samlane00) wrote :

Verified the package successfully fixed the issues in Kinetic.
Repeated same steps as previously done on Jammy:

Installed the following applets from kinetic-proposed
  - budgie-showtime-applet 1.5.0-1ubuntu1
  - budgie-weathershow-applet 1.5.0-1ubuntu1
  - budgie-dropby-applet 1.5.0-1ubuntu1
  - budgie-workspace-wallpaper-applet 1.5.0-1ubuntu1

Added all applets to the Budgie Panel
Enabled Weathershow desktop weather
Rebooted
Confirmed:
 - Weather was showing on desktop
 - clock was visible on desktop
 - Dropby popped up when plugging in USB drive
 - Wallpaper changed when workspace changed
Rebooted multiple times and re-checked all items

Repeated all steps on a Kinetic VM and confirmed the issue did not reoccur

tags: added: verification-done verification-done-kinetic
removed: verification-needed verification-needed-kinetic
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Update Released

The verification of the Stable Release Update for budgie-extras has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package budgie-extras - 1.5.0-1ubuntu1

---------------
budgie-extras (1.5.0-1ubuntu1) kinetic; urgency=medium

  [ Samuel Lane ]
  * Bug-fixes
    Prevent certain applets from exiting early after login
    - ensure Showtime applet stays running after login
      Use-Idle.add-to-spawn-Showtime-Desktop.patch (LP: #1999887)
    - ensure Weathershow desktop weather does not close early
      Use-Idle.add-to-spawn-desktop-weather.patch (LP: #1999887)
    - ensure background process for Dropby stays running after login
      Fix-occasional-bail-out-of-dropby-dropover-due-to-ti.patch (LP: #1999887)
    - ensure Workspace Wallpaper Switcher stays running after login
      Use-Idle.add-to-spawn-external-app.patch (LP: #1999887)

 -- David Mohammed <email address hidden> Sun, 21 May 2023 11:00:48 +0100

Changed in budgie-extras (Ubuntu Kinetic):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package budgie-extras - 1.4.0-1ubuntu3

---------------
budgie-extras (1.4.0-1ubuntu3) jammy; urgency=medium

  [ Samuel Lane ]
  * Bug-fixes
    Prevent certain applets from exiting early after login
    - ensure Showtime applet stays running after login
      Use-Idle.add-to-spawn-Showtime-Desktop.patch (LP: #1999887)
    - ensure Weathershow desktop weather does not close early
      Use-Idle.add-to-spawn-desktop-weather.patch (LP: #1999887)
    - ensure background process for Dropby stays running after login
      Fix-occasional-bail-out-of-dropby-dropover-due-to-ti.patch (LP: 1999887)
    - ensure Workspace Wallpaper Switcher stays running after login
      Use-Idle.add-to-spawn-external-app.patch (LP: #1999887)
    - fix Wallstreet when using custom directories with spaces
      Fixed-wallstreet-for-custom-dir-with-spaces.patch (LP: #1971073)
      Removed-print-statement-for-testing.patch

 -- David Mohammed <email address hidden> Sun, 21 May 2023 10:58:25 +0100

Changed in budgie-extras (Ubuntu Jammy):
status: Fix Committed → Fix Released
Changed in budgie-extras (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.