[1.1.2] Sikulix setup stuck without any errors forever.—- Use 1.1.4

Bug #1782702 reported by padmahas on 2018-07-20
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Sikuli
Undecided
RaiMan

Bug Description

I'm trying to install sikulix (sikulixsetup-1.1.2.jar) on Ubuntu 18.04, 64 bit, with OpenCV 2.4 and Java version 8.

This is the content of terminal when I run "java p sikulixsetup-1.1.2.jar org.sikuli.setup.RunSetup".

Terminal debug messages:

[debug] RunTimeINIT: global init: entering as: SETUP
[debug] RunTimeINIT: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment()
[debug] RunTimeINIT: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices()
[debug] RunTimeINIT: ScreenDevice 0 has (0,0) --- will be primary Screen(0)
[debug] RunTimeINIT: Monitor 0: (0, 0) 1366 x 768
[debug] RunTimeINIT: runs as sikulixsetup-1.1.2.jar in: /media/padmahasa/mixed_and_personal/sikulix
***** show environment for SETUP (build 201803080837)
user.home: /home/padmahasa
user.dir (work dir): /media/padmahasa/mixed_and_personal/sikulix
user.name: padmahasa
java.io.tmpdir: /tmp
running 64Bit on Linux (4.15.0-23-generic) from a jar
java 8-64 version 1.8.0_172-b11 vm 25.172-b11 class 52.0 arch amd64
app data folder: /home/padmahasa/.Sikulix
libs folder: null
executing jar: /media/padmahasa/mixed_and_personal/sikulix/sikulixsetup-1.1.2.jar
*** classpath dump sikulix
  0: /media/padmahasa/mixed_and_personal/sikulix/sikulixsetup-1.1.2.jar
*** classpath dump end
***** show environment end
[debug] RunTimeSETUP: global init: leaving
[debug] RunTimeSETUP: initAPI: entering
[debug] RunTimeSETUP: resourceList: enter
[debug] RunTimeSETUP: resourceLocation: (class org.sikuli.setup.RunSetup) /Lib/sikuli
[debug] RunTimeSETUP: resourceList: having jar: jar:file:/media/padmahasa/mixed_and_personal/sikulix/sikulixsetup-1.1.2.jar!/Lib/sikuli
[debug] RunTimeSETUP: files exported: 7 from: Lib/sikuli to:
 /home/padmahasa/.Sikulix/Lib/sikuli
[debug] RunTimeSETUP: initAPI: leaving
[debug] FileManager: download to string from:
https://oss.sonatype.org/content/groups/public/com/sikulix/sikulixsetupIDE/1.1.2-SNAPSHOT/maven-metadata.xml,
[debug] RunSetup: getMavenJar: sikulixsetupIDE-1.1.2-20180308.083933-100-forsetup.jar
[debug] FileManager: download to string from:
https://oss.sonatype.org/content/groups/public/com/sikulix/sikulixsetupAPI/1.1.2-SNAPSHOT/maven-metadata.xml,
[debug] RunSetup: getMavenJar: sikulixsetupAPI-1.1.2-20180308.083909-100-forsetup.jar
[debug] RunSetup:
popAsk: --------------------
You are about to run a setup for 1.1.2 (201803080837)
You should have a suitable backup,
to go back in case to what you have now.
Click NO to stop here
--------------------
[debug] RunSetup:
popAsk: --------------------
You are about to run a setup for 1.1.2 (201803080837)
You should have a suitable backup,
to go back in case to what you have now.
Click NO to stop here
--------------------
[debug] RunSetup: command line options:
[debug] RunSetup:
[debug (20/7/18 8:42:41 AM)] RunTimeSETUP: exists libs folder at: /home/padmahasa/.Sikulix/SikulixLibs_201803080837
[debug (20/7/18 8:42:41 AM)] FileManager: resetFolder:
/media/padmahasa/mixed_and_personal/sikulix/SetupStuff
[debug (20/7/18 8:42:41 AM)] RunSetup: checkDownloads: workDir:
/media/padmahasa/mixed_and_personal/sikulix
[debug (20/7/18 8:42:41 AM)] RunSetup: checkDownloads: workDirDownloads:
/media/padmahasa/mixed_and_personal/sikulix/Downloads
[debug (20/7/18 8:42:41 AM)] RunSetup: checkDownloads: downloadsGeneric:
/home/padmahasa/.Sikulix/SikulixDownloads
[debug (20/7/18 8:42:41 AM)] RunSetup: checkDownloads: downloadsGenericApp:
/home/padmahasa/.Sikulix/SikulixDownloads_201803080837
[debug (20/7/18 8:42:41 AM)] RunSetup: checkDownloads: found: python:
/media/padmahasa/mixed_and_personal/sikulix/Downloads/jython-standalone-2.7.1.jar
[debug (20/7/18 8:42:41 AM)] RunSetup: checkDownloads: not found: tess
[debug (20/7/18 8:42:41 AM)] RunSetup: checkDownloads: not found: python25
[debug (20/7/18 8:42:41 AM)] RunSetup: checkDownloads: found: api:
/media/padmahasa/mixed_and_personal/sikulix/Downloads/sikulixsetupAPI-1.1.2-20180308.083909-100.jar
[debug (20/7/18 8:42:41 AM)] RunSetup: checkDownloads: found: ide:
/media/padmahasa/mixed_and_personal/sikulix/Downloads/sikulixsetupIDE-1.1.2-20180308.083933-100.jar
[debug (20/7/18 8:42:41 AM)] RunSetup: checkDownloads: not found: rubyaddons
[debug (20/7/18 8:42:41 AM)] RunSetup: checkDownloads: not found: win
[debug (20/7/18 8:42:41 AM)] RunSetup: checkDownloads: not found: mac
[debug (20/7/18 8:42:41 AM)] RunSetup: checkDownloads: found: lux:
/home/padmahasa/.Sikulix/SikulixDownloads/sikulixlibslux-1.1.1.jar
[debug (20/7/18 8:42:41 AM)] RunSetup: checkDownloads: found: ruby:
/media/padmahasa/mixed_and_personal/sikulix/Downloads/jruby-complete-9.1.15.0.jar
[debug (20/7/18 8:42:41 AM)] RunSetup: ... starting with no args given
[debug (20/7/18 8:42:41 AM)] RunSetup: LinuxDistro: ???LINUX??? (64-Bit)
[debug (20/7/18 8:42:41 AM)] RunSetup: Setup: 1.1.2 2018-03-08_08:37 in folder:
/media/padmahasa/mixed_and_personal/sikulix
[debug (20/7/18 8:42:41 AM)] RunSetup: RunningSystem: Linux 4.15.0-23-generic (???LINUX???)
[debug (20/7/18 8:42:41 AM)] RunSetup: parent of jar/classes: /media/padmahasa/mixed_and_personal/sikulix
[debug (20/7/18 8:42:41 AM)] RunSetup: RunningJava: Java 8 (amd64) 1.8.0_172-b11
[debug (20/7/18 8:42:45 AM)] RunSetup:
popAsk: --------------------
The following file(s) will be downloaded to
/media/padmahasa/mixed_and_personal/sikulix
--- Native support libraries for Linux (sikulixlibs...)
--- Package 1 ---
sikulixsetupIDE-1.1.2-20180308.083933-100-forsetup.jar (IDE/Scripting)
sikulixsetupAPI-1.1.2-20180308.083909-100-forsetup.jar (Java API)
 - with Jython
 - with JRuby
--- Package 2 ---
sikulixsetupAPI-1.1.2-20180308.083909-100-forsetup.jar (done in package 1)
Only click NO, if you want to terminate setup now!
Click YES even if you want to use local copies in Downloads!
--------------------
[debug (20/7/18 8:42:51 AM)] RunSetup:
popAsk: --------------------
You have for Linux native libs
/home/padmahasa/.Sikulix/SikulixDownloads/sikulixlibslux-1.1.1.jar
Click YES, if you want to use this for setup processing
... or click NO, to ignore it and download a fresh copy
--------------------
[debug (20/7/18 8:43:00 AM)] RunSetup: Copied from Downloads: sikulixlibslux
[debug (20/7/18 8:43:00 AM)] RunSetup: checking usability of bundled, provided or built libs

Debug messages from "SikuliX-1.1.2-SetupLog.txt"

[debug (20/7/18 8:42:41 AM)] Debug: setLogFile: /media/username/mixed_and_personal/sikulix/SikuliX-1.1.2-SetupLog.txt
[debug (20/7/18 8:42:41 AM)] RunSetup: ... starting with no args given
[debug (20/7/18 8:42:41 AM)] RunSetup: LinuxDistro: ???LINUX??? (64-Bit)
[debug (20/7/18 8:42:41 AM)] RunSetup: Setup: 1.1.2 2018-03-08_08:37 in folder:
/media/username/mixed_and_personal/sikulix
[debug (20/7/18 8:42:41 AM)] RunSetup: RunningSystem: Linux 4.15.0-23-generic (???LINUX???)
[debug (20/7/18 8:42:41 AM)] RunSetup: parent of jar/classes: /media/username/mixed_and_personal/sikulix
[debug (20/7/18 8:42:41 AM)] RunSetup: RunningJava: Java 8 (amd64) 1.8.0_172-b11
[debug (20/7/18 8:42:41 AM)] init user preferences
[debug (20/7/18 8:42:45 AM)] RunSetup:
popAsk: --------------------
The following file(s) will be downloaded to
/media/username/mixed_and_personal/sikulix
--- Native support libraries for Linux (sikulixlibs...)
--- Package 1 ---
sikulixsetupIDE-1.1.2-20180308.083933-100-forsetup.jar (IDE/Scripting)
sikulixsetupAPI-1.1.2-20180308.083909-100-forsetup.jar (Java API)
 - with Jython
 - with JRuby
--- Package 2 ---
sikulixsetupAPI-1.1.2-20180308.083909-100-forsetup.jar (done in package 1)
Only click NO, if you want to terminate setup now!
Click YES even if you want to use local copies in Downloads!
--------------------
[debug (20/7/18 8:42:51 AM)] RunSetup:
popAsk: --------------------
You have for Linux native libs
/home/username/.Sikulix/SikulixDownloads/sikulixlibslux-1.1.1.jar
Click YES, if you want to use this for setup processing
... or click NO, to ignore it and download a fresh copy
--------------------
[debug (20/7/18 8:42:54 AM)] FileManager: Downloading sikulixlibslux-1.1.1.jar having 1287 KB
[debug (20/7/18 8:42:57 AM)] FileManager: downloaded 1287 KB to:
/home/username/.Sikulix/SikulixDownloads/sikulixlibslux-1.1.1.jar
[debug (20/7/18 8:42:57 AM)] FileManager: download time: 2
[debug (20/7/18 8:43:00 AM)] RunSetup: Copied from Downloads: sikulixlibslux
[debug (20/7/18 8:43:00 AM)] RunTimeSETUP: addToClasspath:
file:/media/username/mixed_and_personal/sikulix/sikulixlibslux.jar
*** classpath dump sikulix
  0: /media/username/mixed_and_personal/sikulix/sikulixsetup-1.1.2.jar
  1: /media/username/mixed_and_personal/sikulix/sikulixlibslux.jar
*** classpath dump end
[debug (20/7/18 8:43:00 AM)] RunSetup: checking usability of bundled, provided or built libs
[debug (20/7/18 8:43:00 AM)] RunTimeSETUP: exists libs folder at: /home/username/.Sikulix/SikulixLibs_201803080837
[error (20/7/18 8:43:00 AM)] RunTimeSETUP: loadLib: libVisionProxy.so not usable:
java.lang.UnsatisfiedLinkError: /home/username/.Sikulix/SikulixLibs_201803080837/libVisionProxy.so: libopencv_core.so.2.4: cannot open shared object file: No such file or directory
[error (20/7/18 8:43:00 AM)] RunTimeSETUP: loadLib: libVisionProxy.so not usable:
java.lang.UnsatisfiedLinkError: /home/username/.Sikulix/SikulixLibs_201803080837/libVisionProxy.so: libopencv_core.so.2.4: cannot open shared object file: No such file or directory
[debug (20/7/18 8:43:00 AM)] LinuxSupport: we have to build libVisionProxy.so
[debug (20/7/18 8:43:00 AM)] LinuxSupport: checking: availability of OpenCV and Tesseract
[debug (20/7/18 8:43:00 AM)] LinuxSupport: checking: scanning loader cache (ldconfig -p)
[debug (20/7/18 8:43:00 AM)] RunTimeSETUP: ldconfig -p
[debug (20/7/18 8:43:00 AM)] LinuxSupport: checking: found OpenCV libs:
/usr/lib/x86_64-linux-gnu/libopencv_core.so.3.2
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.3.2
/usr/lib/x86_64-linux-gnu/libopencv_imgproc.so.3.2
[debug (20/7/18 8:43:00 AM)] LinuxSupport: checking: found Tesseract lib:
/usr/lib/x86_64-linux-gnu/libtesseract.so.4
[debug (20/7/18 8:43:00 AM)] LinuxSupport: buildVision: starting inline build: libVisionProxy.so
[debug (20/7/18 8:43:00 AM)] LinuxSupport: buildVision: java.home from java props: /opt/jdk1.8.0_172/jre
[debug (20/7/18 8:43:00 AM)] LinuxSupport: buildVision: JAVA_HOME from environment: null
[debug (20/7/18 8:43:00 AM)] LinuxSupport: buildVision: JDK: found at: /opt/jdk1.8.0_172
[debug (20/7/18 8:43:00 AM)] LinuxSupport: buildVision: tesseract-include: not found - using the bundled include files
[debug (20/7/18 8:43:00 AM)] RunTimeSETUP: resourceList: enter
[debug (20/7/18 8:43:00 AM)] RunTimeSETUP: resourceLocation: (class org.sikuli.setup.RunSetup) /srcnativelibs/Vision
[debug (20/7/18 8:43:00 AM)] RunTimeSETUP: resourceList: having jar: jar:file:/media/username/mixed_and_personal/sikulix/sikulixsetup-1.1.2.jar!/srcnativelibs/Vision
[debug (20/7/18 8:43:00 AM)] RunTimeSETUP: files exported: 16 from: /srcnativelibs/Vision to:
 /home/username/.Sikulix/sikulixlibs/linux/Build/Source
[debug (20/7/18 8:43:00 AM)] RunTimeSETUP: resourceList: enter
[debug (20/7/18 8:43:00 AM)] RunTimeSETUP: resourceLocation: (class org.sikuli.setup.RunSetup) /srcnativelibs/Include/Tesseract
[debug (20/7/18 8:43:00 AM)] RunTimeSETUP: resourceList: having jar: jar:file:/media/username/mixed_and_personal/sikulix/sikulixsetup-1.1.2.jar!/srcnativelibs/Include/Tesseract
[debug (20/7/18 8:43:01 AM)] RunTimeSETUP: files exported: 27 from: /srcnativelibs/Include/Tesseract to:
 /home/username/.Sikulix/sikulixlibs/linux/Build/Include
[debug (20/7/18 8:43:01 AM)] LinuxSupport: **** content of build script:
(stored at: /home/username/.Sikulix/sikulixlibs/linux/runBuild)
work=`pwd`
opencvinclude=
tesseractinclude=

# ---- internal - do not change
work=/home/username/.Sikulix/sikulixlibs/linux/Build
jdkdir=/opt/jdk1.8.0_172
extrainclude=$work/Include
opencvcore=/usr/lib/x86_64-linux-gnu/libopencv_core.so.3.2
opencvimgproc=/usr/lib/x86_64-linux-gnu/libopencv_imgproc.so.3.2
opencvhighgui=/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.3.2
tesseractlib=/usr/lib/x86_64-linux-gnu/libtesseract.so.4
# ---- internal -

#jdkdir=/usr/lib/jvm/java-7-openjdk-amd64

#opencvlib=/usr/lib/x86_64-linux-gnu
#opencvcore=$opencvlib/libopencv_core.so.2.4
#opencvimgproc=$opencvlib/libopencv_imgproc.so.2.4
#opencvhighgui=$opencvlib/libopencv_highgui.so.2.4

#tesseractlib=/usr/lib/libtesseract.so.3

source=$work/Source

build=$work/Target
rm -R -f $build
mkdir $build

stuff=$build/Stuff
rm -R -f $stuff
mkdir $stuff

includeplus=
if [ "$extrainclude" != "" ]; then
  includeplus="-I$extrainclude "
fi
includefinal="-I/usr/include -I/usr/local/include $includeplus "

echo ----------- COMPILING
mods=
for mod in cvgui.cpp finder.cpp pyramid-template-matcher.cpp sikuli-debug.cpp \
  tessocr.cpp vision.cpp visionJAVA_wrap.cxx
do
  echo ----- $mod
  g++ -c -O3 -fPIC -MMD -MP \
    -I$jdkdir/include \
    -I$jdkdir/include/linux \
    $includefinal \
    -MF $stuff/$mod.o.d \
    -o $stuff/$mod.o \
    $source/$mod
  mods="$mods $stuff/$mod.o "
done

echo ----------- LINKING
g++ -shared -s -fPIC -dynamic $mods \
  $opencvcore \
  $opencvimgproc \
  $opencvhighgui \
  $tesseractlib \
  -o $build/libVisionProxy.so

**** content end
[debug (20/7/18 8:43:01 AM)] LinuxSupport: buildVision: running build script
[debug (20/7/18 8:43:01 AM)] RunTimeSETUP: /home/username/.Sikulix/sikulixlibs/linux/runBuild

And That's it. I left the system for more than 3 hours and there is no progress.

Thank you.

padmahas (padmahas) on 2018-07-20
description: updated
description: updated
padmahas (padmahas) on 2018-07-22
summary: - sikulix setup stuck without any errors forever.
+ [1.1.2] Sikulix setup stuck without any errors forever.

Hi.

Anyone facing same problem on Ubuntu 18.04?

Christopher Holt (cpholt) wrote :

Same problem here. Ubuntu 18.04. There was a gcc child process stuck waiting because nothing read it's output (called from runBuild script in ~/.Sikulix/sikulixlibs/linux).

Running that gcc command manually shows the cause of the error:

chris@chrishpz:~/Downloads$ g++ -c -O3 -fPIC -MMD -MP -I/usr/jdk1.8.0_181/include -I/usr/jdk1.8.0_181/include/linux -I/usr/include -I/usr/local/include -I/home/chris/.Sikulix/sikulixlibs/linux/Build/Include -MF /home/chris/.Sikulix/sikulixlibs/linux/Build/Target/Stuff/finder.cpp.o.d -o /home/chris/.Sikulix/sikulixlibs/linux/Build/Target/Stuff/finder.cpp.o /home/chris/.Sikulix/sikulixlibs/linux/Build/Source/finder.cpp 2>&1 | head
In file included from /home/chris/.Sikulix/sikulixlibs/linux/Build/Source/pyramid-template-matcher.h:14:0,
                 from /home/chris/.Sikulix/sikulixlibs/linux/Build/Source/finder.h:9,
                 from /home/chris/.Sikulix/sikulixlibs/linux/Build/Source/finder.cpp:10:
/home/chris/.Sikulix/sikulixlibs/linux/Build/Source/vision.h:84:16: error: ‘map’ in namespace ‘std’ does not name a template type
    static std::map<std::string, float> _params;
                ^~~
/home/chris/.Sikulix/sikulixlibs/linux/Build/Source/vision.h:85:16: error: ‘map’ in namespace ‘std’ does not name a template type
    static std::map<std::string, std::string> _sparams;
                ^~~

All of my simple attempts to fix this didn't work.

RaiMan (raimund-hocke) on 2018-11-04
Changed in sikuli:
status: New → Won't Fix
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.1.4
summary: - [1.1.2] Sikulix setup stuck without any errors forever.
+ [1.1.2] Sikulix setup stuck without any errors forever.—- Uwe 1.1.4
summary: - [1.1.2] Sikulix setup stuck without any errors forever.—- Uwe 1.1.4
+ [1.1.2] Sikulix setup stuck without any errors forever.—- Use 1.1.4
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers