Illegal Instruction when loading specific jpg and converting to gray scale (Bug #1454)


Added by raccoonone - over 13 years ago. Updated almost 13 years ago.


Status:Done Start date:
Priority:Normal Due date:
Assignee:Vadim Pisarevsky % Done:

0%

Category:highgui-images
Target version:2.4.0
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

Description

The following code results in an Illegal Instruction (SIG 4):

cv2.imread('pd_bmw_e92_widebody_front-side_view_1_300dpi_cmyk_6.jpg', cv2.CV_LOAD_IMAGE_GRAYSCALE)

I'm running OpenCV 2.3.1 from this repo (https://launchpad.net/~gijzelaar/+archive/opencv2.3), on Ubuntu 11.04 with all the latest packages. This is being run on a Rackspace virtual machine, and I suspect that that is part of the problem, as I can't reproduce this on my development machine (a Penryn CPU, running Ubuntu 11.10).

Let me know if you need any further details. I have attached the offending image.


pd_bmw_e92_widebody_front-side_view_1_300dpi_cmyk_6.jpg (922 kB) raccoonone -, 2011-10-28 10:43 pm


Associated revisions

Revision b3bb4277
Added by Andrey Pavlenko over 11 years ago

Merge pull request #1454 from ilya-lavrenov:ocl_pyrUp

History

Updated by raccoonone - over 13 years ago

Another note. My code has run fine on thousands of other images, so there seems to be something about this one in particular.

Updated by Vadim Pisarevsky over 13 years ago

I can not reproduce this problem either. On the virtual machine, try to build OpenCV from sources, may be, it will work that way.

Updated by raccoonone - over 13 years ago

Yep, compiling from source seems to have fixed it. Thanks!

Updated by Vadim Pisarevsky over 13 years ago

ok, then I'm closing the ticket, since the problem is in the ubuntu packages, not OpenCV itself.

  • Status changed from Open to Done
  • (deleted custom field) set to worksforme

Updated by Andrey Kamaev almost 13 years ago

  • Target version set to 2.4.0
  • Category set to highgui-images

Also available in: Atom PDF