Skip to content

[MAC] AWT Freeze with multiple SWT_AWT bridges in one SWT app #2937

@DenisUngemach

Description

@DenisUngemach

Describe the bug
On Mac 26.1
In the following snippet, one of the two AWT embeddings freezes and can't be used.
This happens only sometimes, fast focus changes can cause this problem.

To Reproduce
Execute the snippet, then click on the AWT embeddings, for one the focus does not change and the AWT embedding can't be used.
Sometimes multiple tries are necessary to reproduce.

SnippetAwtFocusBug.java

Expected behavior
I expect that the AWT embeddings work.

Environment:

  1. Select the platform(s) on which the behavior is seen:
    • [] All OS
    • Windows
    • Linux
    • [ X ] macOS
  1. Additional OS info (e.g. OS version, Linux Desktop, etc)
    macOS Tahoe 26.1

  2. JRE/JDK version
    OpenJDK Runtime Environment (build 21.0.6+7-LTS)

Version since
Standard Widget Toolkit 3.132.0.v20251002-1704 org.eclipse.swt
Also on the swt master branch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions