Workbench Preferences dialog blocked 60+ seconds in OS.DestroyWindow when closing after opening the Keys preference page

Đang mở
#4,395 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
java
Lĩnh vực
accessibility, desktop

Hướng nghiên cứu

Start by tracing the reported close path from PreferenceDialog.cancelPressed through Shell.destroyWidget to SWT's Windows implementation of OS.DestroyWindow, then compare what the Keys preference page creates with other pages. Reproduce on Windows with the reported high-DPI and IME conditions and profile how closing time changes while the page stays open. Done means closing the dialog no longer blocks for tens of seconds; the payload does not name a test or source file.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Environment: Eclipse 2026-09 (4.41), Windows Server 2025, JDK 27, 2K display
(high-DPI, custom font configured), IME: Chinese input method active.

Reproducible: Open Window → Preferences → General → Keys → press Cancel.
Closing the dialog blocks the UI thread in OS.DestroyWindow for 24-83 seconds
(consistent across attempts, duration varies).

Captured by org.eclipse.ui.monitoring (full samples attached):
main thread: PreferenceDialog.cancelPressed → close → Shell.destroyWidget
→ OS.DestroyWindow (native), repeated samples over 80s, thread state RUNNABLE.

The longer the Keys page has been open, the longer the close takes.
Other preference pages do not reproduce this.

eclipse.buildId=4.41.0.20260903-0719
java.version=27
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_CN
Framework arguments: -product org.eclipse.epp.package.java.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product -data file:/D:/workspace/

org.eclipse.ui.monitoring
Info
Sat Sep 19 14:06:44 CST 2026
Sample at 14:06:19.720 (+68.496s)
Thread 'main' tid=3 (RUNNABLE)

Stack Trace
at org.eclipse.swt.internal.win32.OS.DestroyWindow(Native Method)
at org.eclipse.swt.widgets.Control.destroyWidget(Control.java:768)
at org.eclipse.swt.widgets.Shell.destroyWidget(Shell.java:759)
at org.eclipse.swt.widgets.Widget.release(Widget.java:916)
at org.eclipse.swt.widgets.Widget.dispose(Widget.java:488)
at org.eclipse.swt.widgets.Decorations.dispose(Decorations.java:371)
at org.eclipse.jface.window.Window.close(Window.java:330)
at org.eclipse.jface.dialogs.Dialog.close(Dialog.java:985)
at org.eclipse.jface.preference.PreferenceDialog.close(PreferenceDialog.java:305)
at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.close(FilteredPreferenceDialog.java:656)
at org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.close(WorkbenchPreferenceDialog.java:129)
at org.eclipse.jface.preference.PreferenceDialog.cancelPressed(PreferenceDialog.java:272)
at org.eclipse.jface.preference.PreferenceDialog.buttonPressed(PreferenceDialog.java:236)
at org.eclipse.jface.dialogs.Dialog.lambda$0(Dialog.java:617)
at org.eclipse.jface.dialogs.Dialog$$Lambda/0x0000000037829c00.accept(Unknown Source)
at org.eclipse.swt.events.SelectionListener$1.widgetSelected(SelectionListener.java:83)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:290)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:91)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4363)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1217)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4161)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3749)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:819)
at org.eclipse.jface.window.Window.open(Window.java:799)
at org.eclipse.ui.internal.OpenPreferencesAction.run(OpenPreferencesAction.java:64)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:474)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:581)
at org.eclipse.jface.action.ActionContributionItem.lambda$4(ActionContributionItem.java:415)
at org.eclipse.jface.action.ActionContributionItem$$Lambda/0x0000000036186400.handleEvent(Unknown Source)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:91)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4363)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1217)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4161)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3749)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1160)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1051)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:153)
at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:680)
at org.eclipse.ui.internal.Workbench$$Lambda/0x000000003557dc00.run(Unknown Source)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:583)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:173)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:193)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:219)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:149)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:115)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:467)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:298)
at java.base@27/java.lang.invoke.DirectMethodHandle$Holder.invokeStatic(DirectMethodHandle$Holder)
at java.base@27/java.lang.invoke.LambdaForm$MH/0x00000000350d4800.invoke(LambdaForm$MH)
at java.base@27/java.lang.invoke.LambdaForm$MH/0x0000000035042400.invokeExact_MT(LambdaForm$MH)
at java.base@27/jdk.internal.reflect.DirectMethodHandleAccessor.invokeImpl(DirectMethodHandleAccessor.java:156)
at java.base@27/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base@27/java.lang.reflect.Method.invoke(Method.java:583)
at app//org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:615)
at app//org.eclipse.equinox.launcher.Main.basicRun(Main.java:563)
at app//org.eclipse.equinox.launcher.Main.run(Main.java:1415)

Ngôn ngữ chính
Java
Star
124
Fork
269
Merge trung bình
3 ngày 56 phút
Pull request đã merge (30 ngày)
65

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của eclipse-platform/eclipse.platform.ui

Tất cả issue của eclipse-platform/eclipse.platform.ui

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.