Public bug reported:

As title.

Tray Icon stopped working on Ubuntu 24.10 making most of the Java apps
unusable.

This bug affect both KDEE.
TrayIcon is added to the traybar but the mouse listener does not work so no way 
to listen for a click on it making it unusable.

This is a simple program that you can use to reproduce the bug.

```
import java.awt.*;
import java.awt.event.*;

public class TrayIconExample {

    public static void main(String[] args) {
        // Create a new tray icon
        SystemTray tray = SystemTray.getSystemTray();
        Image image = 
Toolkit.getDefaultToolkit().getImage("path/to/your/icon.png"); // Replace with 
the path to your image
        PopupMenu popup = new PopupMenu();
        MenuItem exitItem = new MenuItem("Exit");
        popup.add(exitItem);

        TrayIcon trayIcon = new TrayIcon(image, "My Tray Icon", popup);
        try {
            tray.add(trayIcon);
        } catch (AWTException e) {
            System.out.println("Error: tray icon not supported");
            System.exit(1);
        }

        // Add a mouse listener
        trayIcon.addMouseListener(new MouseAdapter() {
            @Override
            public void mouseClicked(MouseEvent e) {
                if (e.getButton() == MouseEvent.BUTTON1) {
                    System.out.println("Left button clicked");
                } else if (e.getButton() == MouseEvent.BUTTON2) {
                    System.out.println("Middle button clicked");
                } else if (e.getButton() == MouseEvent.BUTTON3) {
                    System.out.println("Right button clicked");

                }
            }
        });

        // Add a listener for the exit event
        exitItem.addActionListener(e -> System.exit(0));

        // Main loop to keep the application running
        while (true) {
            try {
                Thread.sleep(1000); // Check every second
            } catch (InterruptedException ex) {
                // Handle the interruption
            }
        }
    }
}
```

Click on the tray icon does not trigger any event.
This works well on GNOME.

ProblemType: Bug
DistroRelease: Ubuntu 24.10
Package: xorg 1:7.7+23ubuntu3
ProcVersionSignature: Ubuntu 6.11.0-8.8-generic 6.11.0
Uname: Linux 6.11.0-8-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
.proc.driver.nvidia.capabilities.fabric-imex-mgmt:
 DeviceFileMinor: 4323
 DeviceFileMode: 256
 DeviceFileModify: 1
.proc.driver.nvidia.capabilities.gpu0: Error: path was not a regular file.
.proc.driver.nvidia.capabilities.mig: Error: path was not a regular file.
.proc.driver.nvidia.gpus.0000.01.00.0: Error: path was not a regular file.
.proc.driver.nvidia.registry: Binary: ""
.proc.driver.nvidia.suspend: suspend hibernate resume
.proc.driver.nvidia.suspend_depth: default modeset uvm
.proc.driver.nvidia.version:
 NVRM version: NVIDIA UNIX x86_64 Kernel Module  555.58.02  Tue Jun 25 01:39:15 
UTC 2024
 GCC version:  gcc version 14.2.0 (Ubuntu 14.2.0-4ubuntu2)
ApportVersion: 2.30.0-0ubuntu4
Architecture: amd64
BootLog: Error: [Errno 13] Permission denied: '/var/log/boot.log'
CasperMD5CheckResult: pass
CompositorRunning: None
CurrentDesktop: ubuntu:GNOME
Date: Sun Oct 20 13:26:15 2024
DistUpgraded: 2024-10-11 17:53:54,705 DEBUG Running PostInstallScript: 
'/usr/lib/ubuntu-advantage/upgrade_lts_contract.py'
DistroCodename: oracular
DistroVariant: ubuntu
DkmsStatus:
 nvidia/555.58.02, 6.11.0-8-generic, x86_64: installed
 nvidia/555.58.02, 6.8.0-45-generic, x86_64: installed
ExtraDebuggingInterest: Yes
GraphicsCard:
 NVIDIA Corporation AD102 [GeForce RTX 4090] [10de:2684] (rev a1) (prog-if 00 
[VGA controller])
   Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:5102]
InstallationDate: Installed on 2023-10-19 (367 days ago)
InstallationMedia: Ubuntu Legacy 23.10 "Mantic Minotaur" - Release amd64 
(20231010)
MachineType: Micro-Star International Co., Ltd. MS-7D69
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-6.11.0-8-generic 
root=UUID=cbc210b5-5db3-4594-8ca3-d3bbae99cce1 ro quiet splash 
crashkernel=2G-4G:320M,4G-32G:512M,32G-64G:1024M,64G-128G:2048M,128G-:4096M 
vt.handoff=7
SourcePackage: xorg
Symptom: display
UpgradeStatus: Upgraded to oracular on 2024-10-11 (9 days ago)
dmi.bios.date: 07/23/2024
dmi.bios.release: 5.35
dmi.bios.vendor: American Megatrends International, LLC.
dmi.bios.version: 1.I0
dmi.board.asset.tag: To be filled by O.E.M.
dmi.board.name: MEG X670E ACE (MS-7D69)
dmi.board.vendor: Micro-Star International Co., Ltd.
dmi.board.version: 1.0
dmi.chassis.asset.tag: To be filled by O.E.M.
dmi.chassis.type: 3
dmi.chassis.vendor: Micro-Star International Co., Ltd.
dmi.chassis.version: 1.0
dmi.modalias: 
dmi:bvnAmericanMegatrendsInternational,LLC.:bvr1.I0:bd07/23/2024:br5.35:svnMicro-StarInternationalCo.,Ltd.:pnMS-7D69:pvr1.0:rvnMicro-StarInternationalCo.,Ltd.:rnMEGX670EACE(MS-7D69):rvr1.0:cvnMicro-StarInternationalCo.,Ltd.:ct3:cvr1.0:skuTobefilledbyO.E.M.:
dmi.product.family: To be filled by O.E.M.
dmi.product.name: MS-7D69
dmi.product.sku: To be filled by O.E.M.
dmi.product.version: 1.0
dmi.sys.vendor: Micro-Star International Co., Ltd.
version.compiz: compiz N/A
version.libdrm2: libdrm2 2.4.122-1
version.libgl1-mesa-dri: libgl1-mesa-dri 24.2.3-1ubuntu1
version.libgl1-mesa-glx: libgl1-mesa-glx N/A
version.nvidia-graphics-drivers: nvidia-graphics-drivers-* N/A
version.xserver-xorg-core: xserver-xorg-core 2:21.1.13-2ubuntu1
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev N/A
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:22.0.0-1build1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 
2:2.99.917+git20210115-1build1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.17-3ubuntu1

** Affects: xorg (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug oracular ubuntu

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to xorg in Ubuntu.
https://bugs.launchpad.net/bugs/2085019

Title:
  Java apps that uses tray icon are broken in KDE (Ubuntu 24.10)

Status in xorg package in Ubuntu:
  New

Bug description:
  As title.

  Tray Icon stopped working on Ubuntu 24.10 making most of the Java apps
  unusable.

  This bug affect both KDEE.
  TrayIcon is added to the traybar but the mouse listener does not work so no 
way to listen for a click on it making it unusable.

  This is a simple program that you can use to reproduce the bug.

  ```
  import java.awt.*;
  import java.awt.event.*;

  public class TrayIconExample {

      public static void main(String[] args) {
          // Create a new tray icon
          SystemTray tray = SystemTray.getSystemTray();
          Image image = 
Toolkit.getDefaultToolkit().getImage("path/to/your/icon.png"); // Replace with 
the path to your image
          PopupMenu popup = new PopupMenu();
          MenuItem exitItem = new MenuItem("Exit");
          popup.add(exitItem);

          TrayIcon trayIcon = new TrayIcon(image, "My Tray Icon", popup);
          try {
              tray.add(trayIcon);
          } catch (AWTException e) {
              System.out.println("Error: tray icon not supported");
              System.exit(1);
          }

          // Add a mouse listener
          trayIcon.addMouseListener(new MouseAdapter() {
              @Override
              public void mouseClicked(MouseEvent e) {
                  if (e.getButton() == MouseEvent.BUTTON1) {
                      System.out.println("Left button clicked");
                  } else if (e.getButton() == MouseEvent.BUTTON2) {
                      System.out.println("Middle button clicked");
                  } else if (e.getButton() == MouseEvent.BUTTON3) {
                      System.out.println("Right button clicked");

                  }
              }
          });

          // Add a listener for the exit event
          exitItem.addActionListener(e -> System.exit(0));

          // Main loop to keep the application running
          while (true) {
              try {
                  Thread.sleep(1000); // Check every second
              } catch (InterruptedException ex) {
                  // Handle the interruption
              }
          }
      }
  }
  ```

  Click on the tray icon does not trigger any event.
  This works well on GNOME.

  ProblemType: Bug
  DistroRelease: Ubuntu 24.10
  Package: xorg 1:7.7+23ubuntu3
  ProcVersionSignature: Ubuntu 6.11.0-8.8-generic 6.11.0
  Uname: Linux 6.11.0-8-generic x86_64
  NonfreeKernelModules: nvidia_modeset nvidia
  .proc.driver.nvidia.capabilities.fabric-imex-mgmt:
   DeviceFileMinor: 4323
   DeviceFileMode: 256
   DeviceFileModify: 1
  .proc.driver.nvidia.capabilities.gpu0: Error: path was not a regular file.
  .proc.driver.nvidia.capabilities.mig: Error: path was not a regular file.
  .proc.driver.nvidia.gpus.0000.01.00.0: Error: path was not a regular file.
  .proc.driver.nvidia.registry: Binary: ""
  .proc.driver.nvidia.suspend: suspend hibernate resume
  .proc.driver.nvidia.suspend_depth: default modeset uvm
  .proc.driver.nvidia.version:
   NVRM version: NVIDIA UNIX x86_64 Kernel Module  555.58.02  Tue Jun 25 
01:39:15 UTC 2024
   GCC version:  gcc version 14.2.0 (Ubuntu 14.2.0-4ubuntu2)
  ApportVersion: 2.30.0-0ubuntu4
  Architecture: amd64
  BootLog: Error: [Errno 13] Permission denied: '/var/log/boot.log'
  CasperMD5CheckResult: pass
  CompositorRunning: None
  CurrentDesktop: ubuntu:GNOME
  Date: Sun Oct 20 13:26:15 2024
  DistUpgraded: 2024-10-11 17:53:54,705 DEBUG Running PostInstallScript: 
'/usr/lib/ubuntu-advantage/upgrade_lts_contract.py'
  DistroCodename: oracular
  DistroVariant: ubuntu
  DkmsStatus:
   nvidia/555.58.02, 6.11.0-8-generic, x86_64: installed
   nvidia/555.58.02, 6.8.0-45-generic, x86_64: installed
  ExtraDebuggingInterest: Yes
  GraphicsCard:
   NVIDIA Corporation AD102 [GeForce RTX 4090] [10de:2684] (rev a1) (prog-if 00 
[VGA controller])
     Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:5102]
  InstallationDate: Installed on 2023-10-19 (367 days ago)
  InstallationMedia: Ubuntu Legacy 23.10 "Mantic Minotaur" - Release amd64 
(20231010)
  MachineType: Micro-Star International Co., Ltd. MS-7D69
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-6.11.0-8-generic 
root=UUID=cbc210b5-5db3-4594-8ca3-d3bbae99cce1 ro quiet splash 
crashkernel=2G-4G:320M,4G-32G:512M,32G-64G:1024M,64G-128G:2048M,128G-:4096M 
vt.handoff=7
  SourcePackage: xorg
  Symptom: display
  UpgradeStatus: Upgraded to oracular on 2024-10-11 (9 days ago)
  dmi.bios.date: 07/23/2024
  dmi.bios.release: 5.35
  dmi.bios.vendor: American Megatrends International, LLC.
  dmi.bios.version: 1.I0
  dmi.board.asset.tag: To be filled by O.E.M.
  dmi.board.name: MEG X670E ACE (MS-7D69)
  dmi.board.vendor: Micro-Star International Co., Ltd.
  dmi.board.version: 1.0
  dmi.chassis.asset.tag: To be filled by O.E.M.
  dmi.chassis.type: 3
  dmi.chassis.vendor: Micro-Star International Co., Ltd.
  dmi.chassis.version: 1.0
  dmi.modalias: 
dmi:bvnAmericanMegatrendsInternational,LLC.:bvr1.I0:bd07/23/2024:br5.35:svnMicro-StarInternationalCo.,Ltd.:pnMS-7D69:pvr1.0:rvnMicro-StarInternationalCo.,Ltd.:rnMEGX670EACE(MS-7D69):rvr1.0:cvnMicro-StarInternationalCo.,Ltd.:ct3:cvr1.0:skuTobefilledbyO.E.M.:
  dmi.product.family: To be filled by O.E.M.
  dmi.product.name: MS-7D69
  dmi.product.sku: To be filled by O.E.M.
  dmi.product.version: 1.0
  dmi.sys.vendor: Micro-Star International Co., Ltd.
  version.compiz: compiz N/A
  version.libdrm2: libdrm2 2.4.122-1
  version.libgl1-mesa-dri: libgl1-mesa-dri 24.2.3-1ubuntu1
  version.libgl1-mesa-glx: libgl1-mesa-glx N/A
  version.nvidia-graphics-drivers: nvidia-graphics-drivers-* N/A
  version.xserver-xorg-core: xserver-xorg-core 2:21.1.13-2ubuntu1
  version.xserver-xorg-input-evdev: xserver-xorg-input-evdev N/A
  version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:22.0.0-1build1
  version.xserver-xorg-video-intel: xserver-xorg-video-intel 
2:2.99.917+git20210115-1build1
  version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 
1:1.0.17-3ubuntu1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/2085019/+subscriptions


-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to