JDK-8322750 : Test "api/java_awt/interactive/SystemTrayTests.html" failed because A blue ball icon is added outside of the system tray
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 8,11,17,21,22
  • Priority: P1
  • Status: Closed
  • Resolution: Fixed
  • OS: linux
  • CPU: generic
  • Submitted: 2023-12-27
  • Updated: 2024-07-16
  • Resolved: 2024-02-16
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 17 JDK 21 JDK 22 JDK 23 JDK 8 Other
11.0.23-oracleFixed 17.0.11-oracleFixed 21.0.3-oracleFixed 22Fixed 23 b11Fixed 8u411Fixed openjdk8u412Fixed
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Relates :  
Sub Tasks
JDK-8325999 :  
Description
OS:
Linux

Environment:
Operating System: Oracle Linux Server 7.9 x64
Language: English (Regional Setting: English)
Processor: Intel® Xeon(R) 4210 CPU @ 2.20GHz × 4
Graphics: llvmpipe (LLVM 7.0, 256 bits)
OS type: 64-bit
GNOME version: 3.38.2
Memory: 6GB RAM

Operating System: Oracle Linux Server 7.9 Aarch64
Language: English (Regional Setting: English)
Graphics: llvmpipe (LLVM 7.0, 128 bits)
OS type: 64-bit
GNOME version: 3.38.2
Memory: 32 GB RAM

Reproducible: Always

Failed on Release/Build: JDK 22 b27
Is it a Regression in JDK 22 release: N/A
[If Regression] Regression introduced in JDK 22 release/build: N/A
Test result on the last GAed release for this train: N/A
Is it a platform-specific issue: Yes. This issue only happens on Linux.

General description of the problem:
A blue ball icon didn't display as expected.

Steps to reproduce:
    1. Run the test case
    2. Press the 'Add tray icon' button
    3. Observe the system tray

Actual behavior:
A blue ball icon is added outside of the system tray.

Expected behavior:
When pressing the "Add tray icon" button, the blue ball icon is added to the system tray.
Comments
[~serb] Yes, there was a configuration issue when transitioning the openjdk/jdk21u repo. It should be fixed now and the PR is ready. Thanks!
01-03-2024

Does the skara tools support "jdkXXu-critical-yes" label? the https://github.com/openjdk/jdk21u/pull/439 is not marked as green yet and an approval label on that PR was removed.
29-02-2024

[~serb] Please close the JDK 21u-dev PR and request jdk21u-critical-request (instead of the regular one). We'd want to get this into 21.0.3 (April) as a critical fix. I would think the same applies to 17, 11 and 8.
29-02-2024

Fix request (11u 8u) Mostly clean backport. The patch is slightly adjusted due to the missing https://bugs.openjdk.org/browse/JDK-8212701 in 8u and 11u. The fix was verified manually. no new issues were found by the jdk_desktop tests. Review 11u: https://github.com/openjdk/jdk11u/pull/89 Review 8u: https://github.com/openjdk/jdk8u/pull/53
29-02-2024

Fix request (21u 17u) Clean backport. The fix was verified manually. no new issues were found by the jdk_desktop tests. Review 21u: https://github.com/openjdk/jdk21u/pull/439 Review 17u: https://github.com/openjdk/jdk17u/pull/389
29-02-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk8u/pull/53 Date: 2024-02-28 05:33:25 +0000
28-02-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk11u/pull/89 Date: 2024-02-28 05:31:58 +0000
28-02-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk17u/pull/389 Date: 2024-02-28 05:30:10 +0000
28-02-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk21u/pull/439 Date: 2024-02-28 05:15:18 +0000
28-02-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk8u-dev/pull/458 Date: 2024-02-26 21:30:20 +0000
27-02-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk11u-dev/pull/2534 Date: 2024-02-20 18:21:13 +0000
26-02-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk21u-dev/pull/266 Date: 2024-02-16 17:40:22 +0000
20-02-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk17u-dev/pull/2212 Date: 2024-02-16 17:54:08 +0000
20-02-2024

working on backports for openjdk 8,11,17 and 21
20-02-2024

Don't this bug should be marked as conformance/tck-red 8+?
16-02-2024

Restoring the "Resolved-in-build" field (it was erased when the bug was mistakenly reopened)
16-02-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk22/pull/111 Date: 2024-02-15 20:12:08 +0000
15-02-2024

Fix request approved by Project Lead.
15-02-2024

Fix request 22: This affects Linux only and fixes a JCK conformance issue that was found to fail on all OpenJDK releases due to an external bug in the Gnome Shell. It is already fixed externally, but not all systems will receive the update. The bug is that the tray icon has visibility issues on affected Gnome Shell versions. There is no workaround available. Estimated risks are low, as we are only disabling SystemTray support on affected Linux configurations. All CI and related manual conformance tests are pass. https://github.com/openjdk/jdk/commit/5a988a5087d0afbb577c6715fd5e1e44564888cb
15-02-2024

Changeset: 5a988a50 Author: Alexander Zvegintsev <azvegint@openjdk.org> Date: 2024-02-15 17:52:48 +0000 URL: https://git.openjdk.org/jdk/commit/5a988a5087d0afbb577c6715fd5e1e44564888cb
15-02-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/17860 Date: 2024-02-15 01:11:51 +0000
15-02-2024

The attached SysTrayBug.png shows that the image is not on the system bar where the location is black but is incorrectly placed at the top left of the main desktop image.
14-02-2024

I can't reproduce it on my OL VMs(7.9, 8, 9) because it reports SystemTray.isSupported() to false. However, I can observe similar black icon on Ubuntu 22.04, but the issue is gone on Ubuntu 23.04(gnome 44.3), 23.10(gnome 45). This seems to be an external issue and it is already fixed in gnome-shell 44.1: Fix visibility of xembed icons [Marco; !2684] https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/2127c62b210f605747e019e6e2abee82516e3ccb/NEWS#L152 Corresponding commit https://gitlab.gnome.org/3v1n0/gnome-shell/-/commit/20a81d786697f40880e81d867453b1bad9524ec1
24-01-2024