cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
vilgefortz
Visitor
Visitor
1,277 Views
Registered: ‎01-09-2020

Vitis won't start

Jump to solution

Hello,

I have just started my adventure with Vitis as an IDE. Unfortunately, after a couple of executions it stopped working. The error I'm getting is below. 

!SESSION 2020-01-23 16:27:53.289 -----------------------------------------------
eclipse.buildId=2019.2
java.version=9.0.4
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments:  -os linux -ws gtk -arch x86_64

!ENTRY org.eclipse.osgi 4 0 2020-01-23 16:53:31.439
!MESSAGE Application error
!STACK 1
java.lang.IllegalArgumentException: -2147483643 > 5
	at java.base/java.util.Arrays.copyOfRange(Unknown Source)
	at java.base/java.util.Arrays.copyOfRange(Unknown Source)
	at org.eclipse.ui.internal.ide.ChooseWorkspaceDialog.lambda$6(ChooseWorkspaceDialog.java:384)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source)
	at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
	at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source)
	at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source)
	at java.base/java.util.stream.ReferencePipeline.collect(Unknown Source)
	at org.eclipse.ui.internal.ide.ChooseWorkspaceDialog.createUniqueWorkspaceNameMap(ChooseWorkspaceDialog.java:388)
	at org.eclipse.ui.internal.ide.ChooseWorkspaceDialog.createRecentWorkspacesComposite(ChooseWorkspaceDialog.java:322)
	at org.eclipse.ui.internal.ide.ChooseWorkspaceDialog.createDialogArea(ChooseWorkspaceDialog.java:176)
	at com.xilinx.ide.application.ui.ide.ChooseWorkspaceWithRestoreDialog.createDialogArea(ChooseWorkspaceWithRestoreDialog.java:44)
	at org.eclipse.jface.dialogs.TitleAreaDialog.createContents(TitleAreaDialog.java:158)
	at org.eclipse.jface.window.Window.create(Window.java:426)
	at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1096)
	at org.eclipse.jface.window.Window.open(Window.java:783)
	at org.eclipse.ui.internal.ide.ChooseWorkspaceDialog.prompt(ChooseWorkspaceDialog.java:114)
	at com.xilinx.ide.application.ui.Application.promptForWorkspace(Application.java:270)
	at com.xilinx.ide.application.ui.Application.checkInstanceLocation(Application.java:186)
	at com.xilinx.ide.application.ui.Application.start(Application.java:72)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.base/java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:656)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:592)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1498)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1471)

Since the error is similar to what was menitoned in Vivado https://www.xilinx.com/support/answers/72614.html, I tried to 'patch' Vitis the same way. I used -vmargs to pass the *.jar file and also modified the internal Java command to add this patch to every execution with no effect, except for freezing my machine.

#!/bin/bash

/opt/Xilinx/Vitis/2019.2/tps/lnx64/jre9.0.4/bin/java --patch-module java.desktop=/opt/Xilinx/Vitis/2019.2/lib/classes/AR72614/AR72614.jar $@

I am using Ubuntu 18.04.

 

Thanks,

Maciej

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
ivank33
Contributor
Contributor
1,219 Views
Registered: ‎07-06-2018

Hello,

So you managed to run Vitis a couple of times before it stopped working? Anything changed in the meantime, i.e. did you install something else? did the OS install an upgrade? a reboot?

Probably unrelated but have you seen this: https://www.xilinx.com/support/answers/73047.html 

View solution in original post

0 Kudos
3 Replies
ivank33
Contributor
Contributor
1,220 Views
Registered: ‎07-06-2018

Hello,

So you managed to run Vitis a couple of times before it stopped working? Anything changed in the meantime, i.e. did you install something else? did the OS install an upgrade? a reboot?

Probably unrelated but have you seen this: https://www.xilinx.com/support/answers/73047.html 

View solution in original post

0 Kudos
vilgefortz
Visitor
Visitor
1,208 Views
Registered: ‎01-09-2020

Hello,

Thanks for the reply. Yes, I have run Vitis a couple of times. I closed it to make some changes in Vivado (I'm low on RAM right now) and tried to open it again with no success.

However I remembered that I removed metadata from the directory of the last workspace, and as I remember Eclipse doesn't like that. Just a moment ago I started Vitis using (posting to maybe save someone from the hassle of figuring it out on him/herself)

vitis -workspace temp_workspace/ &

temp_workspace is just a folder I made to try this out and it worked.

 

Thanks a lot for the inspiration!

Maciej

0 Kudos
vilgefortz
Visitor
Visitor
1,196 Views
Registered: ‎01-09-2020

PS. Additionally, if current workspace is to be functional again, remove also (besides .metadata folder):

IDE.log
.analytics
RemoteSystemsTempFiles/

 and start Vitis in the folder with now workspace-related files gone.

0 Kudos