Bug 577533 - SWT Browser blank screen on startup
Summary: SWT Browser blank screen on startup
Status: CLOSED DUPLICATE of bug 573616
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.21   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2021-11-30 05:45 EST by X L CLA
Modified: 2021-12-01 03:37 EST (History)
1 user (show)

See Also:


Attachments
TestComposite.java (2.62 KB, text/x-java)
2021-11-30 21:24 EST, X L CLA
no flags Details
test.html (272 bytes, text/plain)
2021-11-30 21:25 EST, X L CLA
no flags Details
TestCompositeRunResult.jpg (62.54 KB, image/jpeg)
2021-11-30 21:26 EST, X L CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description X L CLA 2021-11-30 05:45:05 EST
Hi all, I have an SWT application, which initializes a browser and injects some Java functions into WebView, but recently I noticed that the startup was broken in Linux, the web function cannot be registered into WebView.

The function register return no error, but the WebView got nothing.
Thus a blank screen is shown.

I cannot conceive a minimal reproducible sample code, is there any experience to trace down this bug?

This bug can be reproduced in Ubuntu 20.04(X11) and 21.10(Wayland).
Comment 1 Andrey Loskutov CLA 2021-11-30 05:54:15 EST
Most likely duplicate of bug 577390, but I wonder if you have another problem because of Wayland. Can you please try with X11?

Which exact Eclipse / SWT / GTK3 versions do you have?
Comment 2 X L CLA 2021-11-30 20:32:31 EST
Sometimes I got the following log:

```
21/11/30 11:52:20.252 WARN: [FROM WEB UI] ReferenceError: Can't find variable: javaEventCenter

21/11/30 11:52:20.253 WARN: [FROM WEB UI] error=ReferenceError: Can't find variable: javaEventCenter, source=file:///home/lei/webui/main-window/index.html, name=ReferenceError, message=Can't find variable: javaEventCenter 

```
Comment 3 X L CLA 2021-11-30 20:33:27 EST
> Which exact Eclipse / SWT / GTK3 versions do you have?

SWT I20211128-1800 (Latest build) and 4.15
OS is Linux
Comment 4 X L CLA 2021-11-30 20:35:02 EST
> Most likely duplicate of bug 577390, but I wonder if you have another problem because of Wayland. Can you please try with X11?

I've tried X11(Ubuntu 20.04 default) with SWT Browser, still a blank screen.
Comment 5 X L CLA 2021-11-30 20:45:10 EST
I have a similar sympathy as of https://bugs.eclipse.org/bugs/show_bug.cgi?id=573616
Comment 6 X L CLA 2021-11-30 21:24:36 EST
Created attachment 287599 [details]
TestComposite.java
Comment 7 X L CLA 2021-11-30 21:25:10 EST
Created attachment 287600 [details]
test.html
Comment 8 X L CLA 2021-11-30 21:26:05 EST
Created attachment 287601 [details]
TestCompositeRunResult.jpg
Comment 9 Andrey Loskutov CLA 2021-12-01 03:37:52 EST
(In reply to X L from comment #5)
> I have a similar sympathy as of
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=573616

Yep => this is a duplicate.

*** This bug has been marked as a duplicate of bug 573616 ***