cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
schindlerto
Observer
Observer
781 Views
Registered: ‎02-19-2020

XSCT from console returns errors

Jump to solution

Hi,

 

I face the following situation: I use a script to create the vitis workspace. This script works if running vitis with GUI and calling the script with source. This script also works when calling it from comand line (bash) on my machine (Ubuntu 20, Vitis 2020).

I resolved some issues regarding xsct on my headless server by installing a lot of dependencies regarding x11 (for a CLI tool...). This was done by trial & error. After getting xsct to work I got the following error when running the script:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f9cf63b4907, pid=291, tid=334
#
# JRE version: Java(TM) SE Runtime Environment (9.0+11) (build 9.0.4+11)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (9.0.4+11, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# C  [libstdc++.so.6+0x8e907]  std::_Hash_bytes(void const*, unsigned long, unsigned long)+0x37
#
# Core dump will be written. Default location: /home/vivado/drone_testrepo/vitis/workspace/core
#
# An error report file with more information is saved as:
# /home/vivado/drone_testrepo/vitis/workspace/hs_err_pid291.log

 

I resolved this by using "export LD_BIND_NOW=1" before executing the script, but this might be related.

 

 

INFO: [Hsi 55-2053] elapsed time for repository (/opt/Xilinx/Vitis/2020.1/data/embeddedsw) loading 0 seconds
Starting vitis. This could take few seconds...WARNING: Using incubator modules: jdk.incubator.httpclient
done
Channel closed
    while executing
"error [dict get $msg err]"
    (procedure "xsdk_eval" line 15)
    invoked from within
"xsdk_eval $chan "XSDx" importProjects "o{[dict create Path s Silent s]}" e [list [dict create  Path $params(path) Silent yes]]"
    (procedure "importprojects" line 32)
    invoked from within
"importprojects -silent $workspace/$params(name)"
    (procedure "platform" line 368)
    invoked from within
"platform create -name $PLATFORM_NAME -hw $XSA_FILE -no-boot-bsp"
    (procedure "vitis_main" line 24)
    invoked from within
"vitis_main"
    (file "../../tcl_scripts/vitis_generate_UltraZohm_workspace.tcl" line 235)
    invoked from within
"source {../../tcl_scripts/vitis_generate_UltraZohm_workspace.tcl}"
    (file "tcl_scripts/ci_vitis_generate_workspace.tcl" line 6)
Job found still running after platform shutdown.  Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.core.runtime.jobs.Job$1

 

0 Kudos
1 Solution

Accepted Solutions
schindlerto
Observer
Observer
656 Views
Registered: ‎02-19-2020

For anybody finding this thread in the future, I installed the following packages and did the following commands - some of them from random stackexchange answers.

 

wget \
build-essential \
libglib2.0-0 \
libsm6 \
libxi6 \
libxrender1 \
libxrandr2 \
libfreetype6 \
libfontconfig \
git \
iproute2 \
x11-utils \
xvfb \
dbus \
dbus-x11 \
libgtk-3-dev
 
And the commands:
 
mv /usr/share/terminfo /usr/share/terminfo.backup
ln -s /lib/terminfo /usr/share/terminfo
export LD_BIND_NOW=1
//export DISPLAY=localhost:0 - this is wrong and only worked by accident (Xvfb fixed the error by itself so I did not notice), do this instead:
Xvfb :99 & export DISPLAY=:99
 

View solution in original post

8 Replies
schindlerto
Observer
Observer
738 Views
Registered: ‎02-19-2020

Forgot to mention:
Server is running Ubuntu 18.04 and I installed the following packages to get Vivado working and mostly XSCT:

  wget \
  build-essential \
  libglib2.0-0 \
  libsm6 \
  libxi6 \
  libxrender1 \
  libxrandr2 \
  libfreetype6 \
  libfontconfig \
  git \
  iproute2 \
  x11-utils \
  xvfb \
  dbus \
  dbus-x11 
0 Kudos
stephenm
Moderator
Moderator
724 Views
Registered: ‎09-12-2007

Can you try remove the .Xilinx\Vitis in your local directory?

0 Kudos
schindlerto
Observer
Observer
717 Views
Registered: ‎02-19-2020

Deleted .Xilinx/Vitis but this did not change anything.

I found https://www.xilinx.com/support/answers/72969.html in the meantime, but it states that the message is not a problem

0 Kudos
schindlerto
Observer
Observer
701 Views
Registered: ‎02-19-2020

Just noticed that the "jdk.incubator.httpclient" message is also present on my local machine (on which the script works) so this is most likely not a problem.

0 Kudos
schindlerto
Observer
Observer
690 Views
Registered: ‎02-19-2020

Typing "vitis" in cli on the server returns the following error log:

!SESSION 2020-11-02 10:46:28.812 -----------------------------------------------
eclipse.buildId=2020.1
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-11-02 10:46:30.880
!MESSAGE Application error
!STACK 1
java.lang.UnsatisfiedLinkError: org.eclipse.swt.internal.gtk.OS._cachejvmptr()V
        at org.eclipse.swt.internal.gtk.OS._cachejvmptr(Native Method)
        at org.eclipse.swt.internal.gtk.OS.cachejvmptr(OS.java:481)
        at org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:92)
        at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:134)
        at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:80)
        at org.eclipse.swt.widgets.Display.<clinit>(Display.java:142)
        at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:772)
        at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:160)
        at com.xilinx.ide.application.ui.Application.createDisplay(Application.java:107)
        at com.xilinx.ide.application.ui.Application.start(Application.java:61)
        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)
~
0 Kudos
schindlerto
Observer
Observer
688 Views
Registered: ‎02-19-2020

Found this https://www.xilinx.com/support/answers/65094.html and will try it (is an ancient version of vitis however)

0 Kudos
schindlerto
Observer
Observer
683 Views
Registered: ‎02-19-2020

I installed libgtk-3-dev and used "export DISPLAY=localhost:0" (not sure if the latter does anything...).

Seems to be working now

schindlerto
Observer
Observer
657 Views
Registered: ‎02-19-2020

For anybody finding this thread in the future, I installed the following packages and did the following commands - some of them from random stackexchange answers.

 

wget \
build-essential \
libglib2.0-0 \
libsm6 \
libxi6 \
libxrender1 \
libxrandr2 \
libfreetype6 \
libfontconfig \
git \
iproute2 \
x11-utils \
xvfb \
dbus \
dbus-x11 \
libgtk-3-dev
 
And the commands:
 
mv /usr/share/terminfo /usr/share/terminfo.backup
ln -s /lib/terminfo /usr/share/terminfo
export LD_BIND_NOW=1
//export DISPLAY=localhost:0 - this is wrong and only worked by accident (Xvfb fixed the error by itself so I did not notice), do this instead:
Xvfb :99 & export DISPLAY=:99
 

View solution in original post