Menu

Video Error

John Sno
2016-10-10
2016-10-10
  • John Sno

    John Sno - 2016-10-10

    Hi,

    Before I begin I would like to thank you for the great work on PS-Drone.

    I have just tried using video from the AR-Drone and run into an error whenever I use drone.startVideo(). I believe the error is sourced in OpenCV, but just in case here is the error.

    2016-10-10 10:08:34.553 Python[50253:3003875] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array'
    *** First throw call stack:
    (
    0 CoreFoundation 0x00007fff987287bb __exceptionPreprocess + 171
    1 libobjc.A.dylib 0x00007ffface95a2a objc_exception_throw + 48
    2 CoreFoundation 0x00007fff9864523b -[__NSArrayM objectAtIndex:] + 203
    3 libopencv_highgui.2.4.dylib 0x00000001062d5315 ZN13CvCaptureFileC2EPKc + 289
    4 libopencv_highgui.2.4.dylib 0x00000001062d3e32 _Z32cvCreateFileCapture_AVFoundationPKc + 34
    5 libopencv_highgui.2.4.dylib 0x00000001062c7e11 cvCreateFileCapture + 14
    6 libopencv_highgui.2.4.dylib 0x00000001062c80a2 _ZN2cv12VideoCapture4openERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE + 64
    7 libopencv_highgui.2.4.dylib 0x00000001062c7f0f _ZN2cv12VideoCaptureC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE + 35
    8 cv2.so 0x0000000105a8e161 _ZL34pyopencv_VideoCapture_VideoCaptureP7_objectS0_S0
    + 273
    9 Python 0x00000001055dc534 PyEval_EvalFrameEx + 14624
    10 Python 0x00000001055d8a1e PyEval_EvalCodeEx + 1617
    11 Python 0x000000010557e531 PyFunction_SetClosure + 826
    12 Python 0x000000010556075b PyObject_Call + 99
    13 Python 0x00000001055dc045 PyEval_EvalFrameEx + 13361
    14 Python 0x00000001055df4d5 _PyEval_SliceIndex + 485
    15 Python 0x00000001055dbeae PyEval_EvalFrameEx + 12954
    16 Python 0x00000001055df4d5 _PyEval_SliceIndex + 485
    17 Python 0x00000001055dbeae PyEval_EvalFrameEx + 12954
    18 Python 0x00000001055d8a1e PyEval_EvalCodeEx + 1617
    19 Python 0x000000010557e531 PyFunction_SetClosure + 826
    20 Python 0x000000010556075b PyObject_Call + 99
    21 Python 0x000000010556b40c PyMethod_New + 1221
    22 Python 0x000000010556075b PyObject_Call + 99
    23 Python 0x00000001055dee1b PyEval_CallObjectWithKeywords + 165
    24 Python 0x000000010560bdae initthread + 2833
    25 libsystem_pthread.dylib 0x00007fffad987abb _pthread_body + 180
    26 libsystem_pthread.dylib 0x00007fffad987a07 _pthread_body + 0
    27 libsystem_pthread.dylib 0x00007fffad987231 thread_start + 13
    )
    libc++abi.dylib: terminating with uncaught exception of type NSException

    If this is something you would know how to fix, please get back to me.

    Thanks,
    J.S

     
  • PS-Drone

    PS-Drone - 2016-10-10

    Hi John,
    I am with you, it seems your OpenCV has some problems.
    In case you compiled it, the cmake-options are a bit tricky.
    Best wishes,
    Philipp

     

Log in to post a comment.

MongoDB Logo MongoDB