[MacPorts] #47549: opencv @2.4.11_0 - fails to load tiff files
#47549: opencv @2.4.11_0 - fails to load tiff files -----------------------------+-------------------------------- Reporter: jose.goicolea@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Keywords: | Port: opencv -----------------------------+-------------------------------- The latest version of opencv @2.4.11_0 fails when loading .tiff files. However, if I activate the previous version @2.4.10 _0 it runs ok. My operating system is mac OS X 10.7.5, xcode version 4.6.2 I noticed the problem when running auto-multiple-choice, which uses the opencv libraries. With the help of the auto-multiple-choice developer, we have spotted the problem and reproduced it in a basic example. This example includes a simple load.c file and a tiff file, included. The compilation and execution commands for the test case I provide are {{{ gcc -I/opt/local/include/opencv -I/opt/local/include -L/opt/local/lib -lopencv_core -lopencv_highgui -lopencv_imgproc load.c -o load ./load t6_0000.tif }}} Under opencv @2.4.10_0 it compiles and runs ok (no output expected). Under opencv @2.4.11_1 it fails with "Segmentation fault: 11". I have run it with gdb and backtrace, the output is: {{{ Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_INVALID_ADDRESS at address: 0x000000010720e180 0x000000010060dadc in put1bitbwtile () (gdb) backtrace #0 0x000000010060dadc in put1bitbwtile () #1 0x000000010060b7b0 in gtStripContig () #2 0x000000010060953d in TIFFReadRGBAStrip () #3 0x000000010027f264 in cv::TiffDecoder::readData () #4 0x0000000100262a9a in cv::imread_ () #5 0x000000010026651f in cvLoadImage () #6 0x000000010000322b in main () (gdb) }}} Regards -- Ticket URL: <https://trac.macports.org/ticket/47549> MacPorts <https://www.macports.org/> Ports system for OS X
#47549: opencv @2.4.11_0 - fails to load tiff files ------------------------------+------------------------ Reporter: jose.goicolea@… | Owner: stromnov@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: opencv | ------------------------------+------------------------ Changes (by larryv@…): * owner: macports-tickets@… => stromnov@… Comment: Thanks for the report. In future tickets, please Cc any port maintainers (`port info --maintainers opencv`). -- Ticket URL: <https://trac.macports.org/ticket/47549#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#47549: opencv @2.4.11_0 - fails to load tiff files ------------------------------+------------------------ Reporter: jose.goicolea@… | Owner: stromnov@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: opencv | ------------------------------+------------------------ Comment (by akim.demaille@…): Do we have news about this issue? -- Ticket URL: <https://trac.macports.org/ticket/47549#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#47549: opencv @2.4.11_0 - fails to load tiff files ------------------------------+------------------------ Reporter: jose.goicolea@… | Owner: stromnov@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: opencv | ------------------------------+------------------------ Comment (by akim.demaille@…): For the records, because of this bug, auto-multiple-choice fails to work properly on TIFF files (http://project.auto-multiple- choice.net/issues/348). There a workaround is proposed: to install the previous versions of OpenCV that worked properly for TIFF. Unfortunately, as of today, this procedure no longer works: the rest of the ports have advanced, and the build of auto-multiple-choice now fails with the old OpenCV. However, AMC works properly if one does _not_ use TIFF files. This is the information I meant to display somewhere, as I was worried not to have any workaround. I repeat: the workaround is, don't use TIFF. -- Ticket URL: <https://trac.macports.org/ticket/47549#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#47549: opencv @2.4.11_0 - fails to load tiff files ------------------------------+------------------------ Reporter: jose.goicolea@… | Owner: stromnov@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: opencv | ------------------------------+------------------------ Comment (by stromnov@…): It looks like bug in OpenCV TIFF reader implementation and heavily depends on exact format of the TIFF file (non-tiled, monochrome, etc.). -- Ticket URL: <https://trac.macports.org/ticket/47549#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
#47549: opencv @2.4.11_0 - fails to load tiff files ------------------------------+------------------------ Reporter: jose.goicolea@… | Owner: stromnov@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: opencv | ------------------------------+------------------------ Comment (by go@…): I encountered the same bug. Here's my fix for opencv: https://github.com/Itseez/opencv/pull/5352/files I also confirmed that opencv 2.4.11 with my patches will correctly load your t6_0000.tif example file, whereas the unpatched opencv 2.4.11 crashes. -- Ticket URL: <https://trac.macports.org/ticket/47549#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X
#47549: opencv @2.4.11_0 - fails to load tiff files ------------------------------+------------------------ Reporter: jose.goicolea@… | Owner: stromnov@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: opencv | ------------------------------+------------------------ Comment (by stromnov@…): Committed at r140315 (for opencv 3.0.0). -- Ticket URL: <https://trac.macports.org/ticket/47549#comment:7> MacPorts <https://www.macports.org/> Ports system for OS X
#47549: opencv @2.4.11_0 - fails to load tiff files ------------------------------+------------------------ Reporter: jose.goicolea@… | Owner: stromnov@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: opencv | ------------------------------+------------------------ Comment (by akim.demaille@…): I confirm that it fixes the problem with auto-multiple-choice. AFAIC, this ticket can be closed. -- Ticket URL: <https://trac.macports.org/ticket/47549#comment:8> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts