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

added failing test for parallel processing #159

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

LinusU
Copy link

@LinusU LinusU commented Sep 7, 2014

(related discussion: #156)

One of four things will happen when this test is run, seemingly at random.

  1. The whole process terminates with a segmentation fault.
  2. The whole process terminates with a OpenCV Error: Bad flag
  3. The test fails because it failed to detect any faces, or detected too many faces.
  4. The test passes (never seen this happened with the limit = 16)

Sample output:

$ npm test

> opencv@0.5.0 test /Users/linus/node-opencv
> vows test/unit.js

·································[1]    24967 segmentation fault  npm test
$ npm test

> opencv@0.5.0 test /Users/linus/node-opencv
> vows test/unit.js

·································OpenCV Error: Bad flag (parameter or structure field) (Unrecognized or unsupported array type) in cvGetMat, file /tmp/opencv-rp0FJY/opencv-2.4.9/modules/core/src/array.cpp, line 2482
libc++abi.dylib: terminating with uncaught exception of type cv::Exception: /tmp/opencv-rp0FJY/opencv-2.4.9/modules/core/src/array.cpp:2482: error: (-206) Unrecognized or unsupported array type in function cvGetMat

[1]    24977 abort      npm test
$ npm test

> opencv@0.5.0 test /Users/linus/node-opencv
> vows test/unit.js

·································✗  


    CascadeClassifier 
      ✗ constructor 
        » An unexpected error was caught: expected expression to evaluate to true, but was false // unit.js:312 
      at /Users/linus/node-opencv/test/unit.js:312:22 
      at /Users/linus/node-opencv/test/unit.js:288:13 
  ✗ Errored » 33 honored ∙ 1 errored (0.974s) 

✗ Errored » callback not fired 
      in ImageDataStream pipe 
      in Smoke Tests OpenCV 
      in test/unit.jsnpm ERR! Test failed.  See above for more details.
npm ERR! not ok code 0
npm test

> opencv@0.5.0 test /Users/linus/node-opencv
> vows test/unit.js

··································  
  ✓ OK » 34 honored (0.527s) 
  %                                  

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

Successfully merging this pull request may close these issues.

1 participant