Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 568165 - Eclipse crash while running SWTBot tests inside ubuntu docker
Summary: Eclipse crash while running SWTBot tests inside ubuntu docker
Status: CLOSED DUPLICATE of bug 566490
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.18   Edit
Hardware: PC Linux
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-23 07:44 EDT by Umair Iqbal CLA
Modified: 2020-10-28 10:37 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Umair Iqbal CLA 2020-10-23 07:44:18 EDT
I have recently updated to the latest official release of eclipse (2020-09), when I run my UI tests inside the docker, I get the following error which crash eclipse and the tests fail. This is only happening in the linux docker image not on windows the same tests pass inside the windows docker. 

13:22:40  Application started in : 9321ms
13:22:40  !SESSION 2020-10-23 13:23:59.682 -----------------------------------------------
13:22:40  eclipse.buildId=unknown
13:22:40  java.fullversion=11.0.8+10
13:22:40  JRE 11 Linux amd64-64-Bit Compressed References 20200715_697 (JIT enabled, AOT enabled)
13:22:40  OpenJ9   - 34cf4c075
13:22:40  OMR      - 113e54219
13:22:40  JCL      - 95bb504fbb based on jdk-11.0.8+10
13:22:40  BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US

21:39:09  java.lang.NullPointerException
21:39:09  	at org.eclipse.urischeme.internal.registration.DesktopFileWriter.escapeSpaces(DesktopFileWriter.java:186)
21:39:09  	at org.eclipse.urischeme.internal.registration.DesktopFileWriter.getMinimalDesktopFileContent(DesktopFileWriter.java:175)
21:39:09  	at org.eclipse.urischeme.internal.registration.RegistrationLinux.readFileOrGetInitialContent(RegistrationLinux.java:115)
21:39:09  	at org.eclipse.urischeme.internal.registration.RegistrationLinux.changeDesktopFile(RegistrationLinux.java:98)
21:39:09  	at org.eclipse.urischeme.internal.registration.RegistrationLinux.handleSchemes(RegistrationLinux.java:64)
21:39:09  	at org.eclipse.urischeme.AutoRegisterSchemeHandlersJob.run(AutoRegisterSchemeHandlersJob.java:78)
21:39:09  	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)


The command I am running is 

java -XX:+CMSClassUnloadingEnabled -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000 
-jar /eclipse/plugins/org.eclipse.equinox.launcher_1.5.800.v20200727-1323.jar 
org.eclipse.equinox.launcher.Main 
-swtbot
-application org.eclipse.swtbot.eclipse.junit.headless.swtbottestapplication 
-product org.eclipse.platform.ide 
-testApplication /eclipse/plugins/org.eclipse.ui.ide.workbench 
-data /eclipse/workspace 
-testPluginName org.my.ui.stt.test 
-className org.my.ui.test.collection.window.WindowTests 
-consoleLog -debug -clean -clearPersistedState 
formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,/eclipse/workspace/org.my.ui.test.collection.window.WindowTests.xml 
formatter=org.apache.tools.ant.taskdefs.optional.junit.PlainJUnitResultFormatter"
Comment 1 Umair Iqbal CLA 2020-10-26 07:23:31 EDT
Is there any update on this issue? any fix or workaround to prevent the crash?
Comment 2 Andrey Loskutov CLA 2020-10-28 10:37:12 EDT

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