text2image infinite "ScrollView: Waiting for server"

1,244 views
Skip to first unread message

Michael Yang

unread,
May 25, 2014, 1:38:57 AM5/25/14
to tesser...@googlegroups.com

I'm able to compile the text2image training tool, however, I can't seem to get it to work. I've confirmed that the viewer works with the included tesseract tests. I've included the output below. Any help is much appreciated!

$ training/text2image --text=data/training_text.txt --outputbase=eng.TimesNewRoman.exp0 --font='Times New Roman' --fonts_dir=/Library/Fonts\ Disabled

Starting sh -c "trap 'kill %1' 0 1 2 ; java -Xms1024m -Xmx2048m -Djava.library.path=/Users/mikkyang/Documents/Development/Eyes/tess/tesseract-3.03/java -cp /Users/mikkyang/Documents/Development/Eyes/tess/tesseract-3.03/java/ScrollView.jar:/Users/mikkyang/Documents/Development/Eyes/tess/tesseract-3.03/java/piccolo2d-core-3.0.jar:/Users/mikkyang/Documents/Development/Eyes/tess/tesseract-3.03/java/piccolo2d-extras-3.0.jar com.google.scrollview.ScrollView & wait"

Socket started on port 8461

ScrollView: Waiting for server...

ScrollView: Waiting for server...

ScrollView: Waiting for server...

zdenko podobny

unread,
May 25, 2014, 11:33:38 AM5/25/14
to tesser...@googlegroups.com
Are you sure that you run exactly that command?

Zdenko


--
You received this message because you are subscribed to the Google Groups "tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-oc...@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
Visit this group at http://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/07ebba5c-53aa-497b-a76b-567bb308945a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Nick White

unread,
May 25, 2014, 11:37:06 AM5/25/14
to tesser...@googlegroups.com
Hi Michael.

On Sat, May 24, 2014 at 10:38:57PM -0700, Michael Yang wrote:
> I'm able to compile the text2image training tool, however, I can't seem to get
> it to work. I've confirmed that the viewer works with the included tesseract
> tests. I've included the output below. Any help is much appreciated!

text2image doesn't use scrollview; you compiled it wrong. Try make
clean and then make training again.

Nick

Bob Aman

unread,
Jul 21, 2014, 11:36:07 AM7/21/14
to tesser...@googlegroups.com
I'm getting something pretty similar, and I've now compiled/recompiled in about 20 different ways with 20 different variations of the assorted dependencies. Same result. This is on OS X FWIW.

This is the exact build process I went through:

brew install icu4c
brew link icu4c
--force
brew install leptonica
-v 1.70 --with-libtiff --with-jpeg --with-libpng


tar
-xzvf tesseract-3.03-rc1.tar.gz
cd tesseract
-3.03
./configure
make
make training

And trying to run text2image:

$ training/text2image --list_available_fonts
Error resolving name for ScrollView host --list_available_fonts:8461
Segmentation fault: 11

$ training
/text2image localhost --list_available_fonts
Starting sh -c "trap 'kill %1' 0 1 2 ; java -Xms1024m -Xmx2048m -Djava.library.path=. -cp ./ScrollView.jar:./piccolo2d-core-3.0.jar:./piccolo2d-extras-3.0.jar com.google.scrollview.ScrollView & wait"
ScrollView: Waiting for server...
Error: Could not find or load main class com.google.scrollview.ScrollView
sh
: line 0: kill: %1: no such job
ScrollView: Waiting for server...
ScrollView: Waiting for server...
ScrollView: Waiting for server...
ScrollView: Waiting for server...
ScrollView: Waiting for server...
^C

Regardless of options I pass to training/text2image, it wants a hostname as the first parameter and segfaults if it doesn't get it.

Agree that from looking at CPP it probably shouldn't be doing this... but... it's definitely doing this. :-P

I wouldn't rule out that it is compiled incorrectly, but the compile steps I took here aren't particularly unusual or unexpected.
Message has been deleted

Ryan Baumann

unread,
Nov 19, 2014, 12:51:05 PM11/19/14
to tesser...@googlegroups.com
Hi all,

Apologies for resurrecting an old thread, but I ran into the same issue and have documented a workaround in this blog post: http://ryanfb.github.io/etc/2014/11/19/installing_tesseract_training_tools_on_mac_os_x.html

-Ryan
Reply all
Reply to author
Forward
0 new messages