Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: signal: illegal instruction #93

Closed
geeshans opened this issue May 16, 2017 · 10 comments
Closed

Error: signal: illegal instruction #93

geeshans opened this issue May 16, 2017 · 10 comments

Comments

@geeshans
Copy link

Hi,

I'm running this on a ubuntu (4.4.27-x86_64-jb1) host and had the application successfully working after setup. But now it's throwing the error "Error processing image url: . Error: signal: illegal instruction (core dumped)" for the sample query.

root@localhost:~/ocr_docker# curl -X POST -H "Content-Type: application/json" -d '{"img_url":"http://bit.ly/ocrimage","engine":"tesseract"}' http://<masked>:8080/ocr
Error processing image url: .  Error: signal: illegal instruction (core dumped)root@localhost:~/ocr_docker#
@geeshans
Copy link
Author

May 16 20:29:39 localhost kernel: traps: tesseract[24223] trap invalid opcode ip:7efccce45448 sp:7efcca7fdd48 error:0
May 16 20:29:39 localhost kernel: traps: tesseract[24221] trap invalid opcode ip:7efccce45448 sp:7ffe4b385628 error:0 in libtesseract.so.4.0.0[7efcccc51000+329000]
May 16 20:29:39 localhost kernel: in libtesseract.so.4.0.0[7efcccc51000+329000]
May 16 20:29:39 localhost kernel:

@tleyden
Copy link
Owner

tleyden commented May 16, 2017

Thanks for reporting. Looks like you are using the latest version of tesseract, which was just recently added to open-ocr.

Are you running under docker-compose? Can you post the command you're running to start it, including environment variables?

@geeshans
Copy link
Author

Thanks for getting back to me.

I'm using "open-ocr/docker-compose/run.sh" to start the process. And yes I was using the tesseract 4.x . I switched to the older version and it worked.

What are the "environment variables" you require?

@tleyden
Copy link
Owner

tleyden commented May 23, 2017

I thought there might be an environment variable for specifying the tesseract version. I haven't tried with 4.0, but thanks for filing a bug.

If it's totally broken, maybe I should rollback 6566eda

@speedfl any thoughts on this issue?

@speedfl
Copy link
Contributor

speedfl commented May 23, 2017

Hey. I will have a look. Everything was working on my side when I put it in place (I am working with it for some weeks now)
I will be able to test this weekend
I will keep you posted.

@speedfl
Copy link
Contributor

speedfl commented May 23, 2017

Some question :

  • did you try run.sh with 3.0 and if yes is it working ?
  • did you try base64 with with 3.0?
  • did you try 4.0 with base64 ? If yes is it working ?

My guess is that we are building from source by taking last version of tesseract on master branch so maybe there is an issue with the build (some people have such issue with it in https://groups.google.com/forum/#!msg/tesseract-ocr/r6bL_KLlcyE/9Z5_GREdFQAJ). We should use a dockerfile with the ubuntu package proposed in the https://github.com/tleyden/docker repository. I tried and it worked.
I will make some tests and let you know

During this time could you please try in local with docker file I put tleyden/docker#13

Create a directory and put the dockerfile inside:
type docker build -t <instance-name> .

Then once it is built go in the dockercompose.yml and replace:
this line https://github.com/tleyden/open-ocr/blob/master/docker-compose/docker-compose.yml#L26
and this line https://github.com/tleyden/open-ocr/blob/master/docker-compose/docker-compose.yml#L36 with the new instance and then run docker-compose up

I will do those test but if it can unlock you it could be nice :)

@speedfl
Copy link
Contributor

speedfl commented May 24, 2017

Hello Hello

I am back. I was able to test because my girlfriend is not at home tonight :)
So you are right there is a little issue with the docker image of tesseract4 certainly due to a build issue.

However I fixed it by using a docker image based on unofficial packages of tesseract4 proposed in the docker repo and it is working :)

I will do a PR into docker repository :)

@speedfl
Copy link
Contributor

speedfl commented May 30, 2017

Hey. Can you retry ?

@speedfl
Copy link
Contributor

speedfl commented Jun 7, 2017

Hello,

Just for information. I created new instances of open-ocr with open-ocr-2 (I am trying to run multiple instance of open-ocr with a proxy) and the installation and running was perfectly working :)

Creation of 3 different instances each time worked. So I guess we can close the issue

@tleyden
Copy link
Owner

tleyden commented Jun 7, 2017

Thanks @speedfl!

@tleyden tleyden closed this as completed Jun 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants