← Back to team overview

sikuli-driver team mailing list archive

[Bug 979524] Re: Ubuntu 12: sikuli-ide crashes with Tesseract 3.0 --- language files missing ???

 

I modified the procedure in the revised description (and comment #9) and it worked for me.  Besides ensuring that I had all the packages mentioned, I also did the /tmp/sikuli steps, but not as sudo, since that seems odd.
Thanks for the workaround.  I'm also curious what the changes are in Debian, and how the "in progress" work differs from that.

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/979524

Title:
  Ubuntu 12: sikuli-ide crashes with Tesseract 3.0 --- language files
  missing ???

Status in Sikuli:
  In Progress

Bug description:
  ********** fixed in the Debian world

  *********** Ubuntu 12.04 *****************************
  --- from comment #9 (thanks Robert Campbell)
  Very happy that sikuli is working now on my Ubuntu 12.04.
  In summary, after doing the:
  sudo apt-get install sikuli-ide
  to get sikuli installed, 
  you must also do (again, Florian points this out earlier):
  sudo apt-get install tesseract-ocr-eng
  sudo apt-get install libswing-layout-java
  and wrap up with what I stated at the beginning of this:
  if there is a /tmp/sikuli directory, do: sudo rm -r /tmp/sikuli
  and wrap up with:
  sudo mkdir -p /tmp/sikuli
  sudu ln -s /usr/share/tesseract-ocr/tessdata/ /tmp/sikuli

  That's how I got sikuli to run as expected on Ubuntu 12.04.

  ----------------------------------------------

  I have default precise pangolin ubuntu install with sikuli on top of
  it. When I run sikuli-ide and try to create an script via gui, as sson
  as I am done with taking a screenshot and selecting the area to
  "Click" on sikluli-ide crashes. Please see log below.

  $ sikuli-ide
  [info] locale: en_US
  Error opening data file /tmp/sikuli/tessdata/eng.traineddata
  Please make sure the TESSDATA_PREFIX environment variable is set to the parent directory of your "tessdata" directory.
  Failed loading language 'eng'
  Tesseract couldn't load any languages!
  vlog 1 Input
  vlog 1 Canny
  vlog 1 AdaptiveThresholded
  vlog 1 LongLinesFound
  vlog 1 LongLinesRemoved
  vlog 1 NonEdgeRemoved
  vlog 1 blobs-extracted
  vlog 1 blobs-filtered
  vlog 1 lineblobs
  vlog 1 lineblobs-filtered
  vlog 1 lineblobs-merged
  vlog 1 paragblobs
  #
  # A fatal error has been detected by the Java Runtime Environment:
  #
  #  SIGSEGV (0xb) at pc=0x022bfb6d, pid=23685, tid=3030788928
  #
  # JRE version: 7.0_03-b147
  # Java VM: OpenJDK Client VM (22.0-b10 mixed mode, sharing linux-x86 )
  # Derivative: IcedTea7 2.1.1pre
  # Distribution: Ubuntu precise (development branch), package 7~u3-2.1.1~pre1-1ubuntu1
  # Problematic frame:
  # C  [libtesseract.so.3+0x226b6d]  tesseract::Classify::CharNormClassifier(TBLOB*, DENORM const&, INT_TEMPLATES_STRUCT*, ADAPT_RESULTS*)+0x61
  #
  # Core dump written. Default location: /home/code/core or core.23685
  #
  # An error report file with more information is saved as:
  # /home/code/hs_err_pid23685.log
  #
  # If you would like to submit a bug report, please include
  # instructions on how to reproduce the bug and visit:
  #   https://bugs.launchpad.net/ubuntu/+source/openjdk-7/
  # The crash happened outside the Java Virtual Machine in native code.
  # See problematic frame for where to report the bug.
  #
  Aborted (core dumped)

  Installed packages are

  $ dpkg --list | grep sikuli
  ii  libsikuli-script-java                  1.0~x~rc3.tesseract3-dfsg1-1               Visual scripting API for jython
  ii  libsikuli-script-jni                   1.0~x~rc3.tesseract3-dfsg1-1               Native libs for libsikuli-java
  ii  sikuli-ide                             1.0~x~rc3.tesseract3-dfsg1-1               IDE to develop sikuli scripts

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/979524/+subscriptions


References