You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying run the following Javascript code to modify an H2 HTML element within a Browser widget using the following code: myBrowser.execute("document.getElementById('h2ChangeMe').innerText = '" + UUID.randomUUID().toString() + "';");
To Reproduce
Use Linux in order to make use of the GTK toolkit.
Create an SWT Shell that contains a Browser widget as content.
Set the the Browser widget text to the following HTML code:
Expected behavior
Once the app starts and reaches to the point where the "execute()" method runs, the execution hangs for more than 10000ms and the following message is printed out on std error:
SWT call to Webkit timed out after 10000ms. No return value will be provided.
followed with instructions on how to file this bug issue.
FULL TRACE:
SWT call to Webkit timed out after 10000ms. No return value will be provided.
Possible reasons:
1) Problem: Your javascript needs more than 10000ms to execute.
Solution: Don't run such javascript, it blocks Eclipse's UI. SWT currently allows such code to complete, but this error is thrown
and the return value of execute()/evalute() will be false/null.
2) However, if you believe that your application should execute as expected (in under10000 ms),
then it might be a deadlock in SWT/Browser/webkit2 logic.
I.e, it might be a bug in SWT (e.g this does not occur on Windows/Cocoa, but occurs on Linux). If you believe it to be a bug in SWT, then
Please report this issue *with steps to reproduce* via:
https://github.com/eclipse-platform/eclipse.platform.swt/issues/new?assignees=&labels=&projects=&template=bug_report.md&title=
For bug report, please attach this stack trace:
java.lang.Throwable:
at org.eclipse.swt.browser.WebKit.getStackTrace(WebKit.java:293)
at org.eclipse.swt.browser.WebKit.getInternalErrorMsg(WebKit.java:286)
at org.eclipse.swt.browser.WebKit$Webkit2AsyncToSync.execAsyncAndWaitForReturn(WebKit.java:1268)
at org.eclipse.swt.browser.WebKit$Webkit2AsyncToSync.runjavascript(WebKit.java:1026)
at org.eclipse.swt.browser.WebKit.execute(WebKit.java:893)
at org.eclipse.swt.browser.Browser.execute(Browser.java:538)
at application.gui.CmpMainPageController.onActivity(CmpMainPageController.java:37)
at openjdk.tools.swt.widgets.web.PageController$1.function(PageController.java:45)
at org.eclipse.swt.browser.WebKit.RequestProc(WebKit.java:454)
at org.eclipse.swt.internal.gtk3.GTK3.gtk_main_iteration_do(Native Method)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4516)
at openjdk.tools.swt.application.ApplicationInstance.startAndJoin(ApplicationInstance.java:116)
at openjdk.tools.swt.application.ApplicationInstance.start(ApplicationInstance.java:63)
at application.Main.main(Main.java:11)
Additional information about the error is as following:
The following javascript was executed:
document.getElementById('h2ChangeMe').innerText = '60457591-30cb-4602-a043-e2ff08d65262';
Screenshots
Environment:
Select the platform(s) on which the behavior is seen:
All OS
Windows
Linux
macOS
Additional OS info (e.g. OS version, Linux Desktop, etc)
openjdk version "21.0.5" 2024-10-15
OpenJDK Runtime Environment (build 21.0.5+11-Ubuntu-1ubuntu124.04)
OpenJDK 64-Bit Server VM (build 21.0.5+11-Ubuntu-1ubuntu124.04, mixed mode, sharing)
Version since 3.126.0.v20240528-0813
up to latest (4.34)
Workaround (or) Additional context
No workarounds. WEBKIT_DISABLE_COMPOSITING_MODE=1 and/or WEBKIT_DISABLE_DMABUF_RENDERER=1 environment variables did not seem to have any effect.
The text was updated successfully, but these errors were encountered:
Describe the bug
I am trying run the following Javascript code to modify an H2 HTML element within a Browser widget using the following code:
myBrowser.execute("document.getElementById('h2ChangeMe').innerText = '" + UUID.randomUUID().toString() + "';");
To Reproduce
Use Linux in order to make use of the GTK toolkit.
Expected behavior
Once the app starts and reaches to the point where the "execute()" method runs, the execution hangs for more than 10000ms and the following message is printed out on std error:
FULL TRACE:
Screenshots

Environment:
Version since
3.126.0.v20240528-0813
up to latest (4.34)
Workaround (or) Additional context
No workarounds.
WEBKIT_DISABLE_COMPOSITING_MODE=1
and/orWEBKIT_DISABLE_DMABUF_RENDERER=1
environment variables did not seem to have any effect.The text was updated successfully, but these errors were encountered: