[Linux] Crash to desktop in Browser using OpenWindowListener
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Run the provided Java SWT snippet on Linux and click the link to reproduce the crash; compare with Windows or Mac, where it works. Then trace the SWT Browser path involving OpenWindowListener on Linux. Done means clicking the link opens it without the application quitting to desktop.
由索引模型根据 Issue 内容生成。
描述
On Linux with the latest SWT I-build run the following snippet and click the "Click" link. It should open the link in the Browser but after a few seconds quits to desktop. In an RCP app the whole app quits to desktop.
- Works on Windows and Mac
- Crashes on Linux Mint 22.3 (X11) and Ubuntu 26.04 (Wayland)
- Java 21
- Latest SWT I-build
import org.eclipse.swt.SWT;
import org.eclipse.swt.browser.Browser;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
public class SWTBrowserTest {
public static void main(String[] args) {
final Display display = new Display();
final Shell shell = new Shell(display);
shell.setText("SWT Browser");
shell.setLayout(new FillLayout());
shell.setSize(400, 400);
Browser browser = new Browser(shell, SWT.NONE);
browser.setText("<a href='https://www.eclipse.org' target='_blank'>Click</a>");
browser.addOpenWindowListener(event -> {
event.browser = browser;
});
shell.open();
while(!shell.isDisposed()) {
if(!display.readAndDispatch()) {
display.sleep();
}
}
display.dispose();
}
}
- 主要语言
- Java
- 星标
- 202
- 派生
- 206
- 平均合并
- 16 小时 56 分钟
- 30 天内合并 PR
- 110
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
eclipse-platform/eclipse.platform.swt 的其他 Issue
-
`SWT_AWT.initFrame` takes `(long, String)` in Java; the GTK native declares no `className` and the Cocoa native types it `const char *`可能已有人在做 @GreenFuze 于 4 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 88/100
eclipse-platform/eclipse.platform.swt#3665 · 3 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
eclipse-platform/eclipse.platform.swt#3546 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
eclipse-platform/eclipse.platform.swt#3428 ·
维护者通常 1 天内回复
-
难度 1/5 1-3 小时 新手友好度 75/100
eclipse-platform/eclipse.platform.swt#3336 · 3 条评论 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 30/100
eclipse-platform/eclipse.platform.swt#3718 ·
维护者通常 1 天内回复
查看 eclipse-platform/eclipse.platform.swt 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
scylladb/scylla-cdc-source-connector#350 ·
维护者通常 1 天内回复
-
agent:working documentation enhancement go:build lane:needs-decision
难度 2/5 1-3 小时 新手友好度 72/100
Sanne/incus-spawn#1435 · 3 条评论 ·
维护者通常 1 天内回复
-
area:shuffle bug priority:high requires-triage
难度 2/5 1-3 小时 新手友好度 72/100
apache/datafusion-comet#7062 ·
维护者通常 1 天内回复
-
wait for review
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
enhancement good first issue up-for-grabs
难度 2/5 1-3 小时 新手友好度 80/100
AnikethTS/ChangeRadar#22 ·
维护者通常 1 天内回复