<ul dir="auto">
<li>OpenCV =&gt; 4.2</li>
<li>Operating System / Platform =&gt; Windows 64 Bit</li>
<li>opencv-contrib-python 4.2.0.34</li>
<li>opencv-python         4.2.0.34</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">Video is 06.933 sec long with 25 FPS, what makes 173 frames (observed in video player)</p>
<p dir="auto">However :</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="cap = cv2.VideoCapture(video_path)
cap.get(cv2.CAP_PROP_FRAME_COUNT)"><pre class="notranslate"><code class="notranslate">cap = cv2.VideoCapture(video_path)
cap.get(cv2.CAP_PROP_FRAME_COUNT)
</code></pre></div>
<p dir="auto">gives 172 frames. And while counting manual:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="while(cap.isOpened()):
        ret, frame = cap.read()
        if ret == True:
            frame_index += 1
        else: 
            break"><pre class="notranslate"><code class="notranslate">while(cap.isOpened()):
        ret, frame = cap.read()
        if ret == True:
            frame_index += 1
        else: 
            break
</code></pre></div>
<p dir="auto">it can't go any further than 168 frame</p>
<p dir="auto">Sadly I can't share the video file</p>
<h5 dir="auto">System information (version)</h5>

<ul dir="auto">
<li>OpenCV =&gt; tag 4.1.0</li>
<li>Operating System / Platform =&gt; ubuntu 16.04 x64</li>
<li>Compiler =&gt; gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.11)</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">i have installed llvm/halide, and build opencv with halide support (with debug version).<br>
i use the source code exactly the same as <a href="https://docs.opencv.org/3.3.1/de/d37/tutorial_dnn_halide.html" rel="nofollow">https://docs.opencv.org/3.3.1/de/d37/tutorial_dnn_halide.html</a></p>
<p dir="auto">and download the files from <a href="https://raw.githubusercontent.com/DeepScale/SqueezeNet/master/SqueezeNet_v1.1/train_val.prototxt" rel="nofollow">https://raw.githubusercontent.com/DeepScale/SqueezeNet/master/SqueezeNet_v1.1/train_val.prototxt</a> and <a href="https://github.com/DeepScale/SqueezeNet/raw/master/SqueezeNet_v1.1/squeezenet_v1.1.caffemodel">https://github.com/DeepScale/SqueezeNet/raw/master/SqueezeNet_v1.1/squeezenet_v1.1.caffemodel</a></p>
<h5 dir="auto">Steps to reproduce</h5>
<p dir="auto">just to run the application compiled from the above source code, it crashes. And so gdb it to get the bt:<br>
...<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="5915756" data-permission-text="Title is private" data-url="https://github.com/opencv/opencv/issues/4" data-hovercard-type="pull_request" data-hovercard-url="/opencv/opencv/pull/4/hovercard" href="https://github.com/opencv/opencv/pull/4">#4</a>  0x00007ffff5a66701 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="5931862" data-permission-text="Title is private" data-url="https://github.com/opencv/opencv/issues/5" data-hovercard-type="pull_request" data-hovercard-url="/opencv/opencv/pull/5/hovercard" href="https://github.com/opencv/opencv/pull/5">#5</a>  0x00007ffff5a66919 in __cxa_throw () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="5936931" data-permission-text="Title is private" data-url="https://github.com/opencv/opencv/issues/6" data-hovercard-type="pull_request" data-hovercard-url="/opencv/opencv/pull/6/hovercard" href="https://github.com/opencv/opencv/pull/6">#6</a>  0x00007ffff5f6af51 in cv::error (exc=...) at /work/media/opencv_work/opencv/modules/core/src/system.cpp:1032<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="6069994" data-permission-text="Title is private" data-url="https://github.com/opencv/opencv/issues/7" data-hovercard-type="pull_request" data-hovercard-url="/opencv/opencv/pull/7/hovercard" href="https://github.com/opencv/opencv/pull/7">#7</a>  0x00007ffff5f6b01e in cv::error (_code=-5, _err="Duplicate blobs produced by multiple sources", _func=0x7ffff7a35c10 &lt;cv::dnn::dnn<br>
4_v20190122::(anonymous namespace)::CaffeImporter::addOutput(opencv_caffe::LayerParameter const&amp;, int, int)::<strong>func</strong>&gt; "addOutput", _file=0x7ffff7a35470 "/work/media/opencv_work/opencv/modules/dnn/src/caffe/caffe_importer.cpp", _line=427) at /work/media/opencv_work/opencv/modules/core/src/system.cpp:1044<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="6103928" data-permission-text="Title is private" data-url="https://github.com/opencv/opencv/issues/8" data-hovercard-type="pull_request" data-hovercard-url="/opencv/opencv/pull/8/hovercard" href="https://github.com/opencv/opencv/pull/8">#8</a>  0x00007ffff7786f9f in cv::dnn::dnn4_v20190122::(anonymous namespace)::CaffeImporter::addOutput (this=0x7fffffffdd10, layer=..., layerId=2, outNum=0) at /work/media/opencv_work/opencv/modules/dnn/src/caffe/caffe_importer.cpp:427<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="6120770" data-permission-text="Title is private" data-url="https://github.com/opencv/opencv/issues/9" data-hovercard-type="pull_request" data-hovercard-url="/opencv/opencv/pull/9/hovercard" href="https://github.com/opencv/opencv/pull/9">#9</a>  0x00007ffff7786ae2 in cv::dnn::dnn4_v20190122::(anonymous namespace)::CaffeImporter::populateNet (this=0x7fffffffdd10, dstNet=...)<br>
at /work/media/opencv_work/opencv/modules/dnn/src/caffe/caffe_importer.cpp:402<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="6291469" data-permission-text="Title is private" data-url="https://github.com/opencv/opencv/issues/10" data-hovercard-type="pull_request" data-hovercard-url="/opencv/opencv/pull/10/hovercard" href="https://github.com/opencv/opencv/pull/10">#10</a> 0x00007ffff77872e9 in cv::dnn::dnn4_v20190122::readNetFromCaffe (prototxt="train_val.prototxt", caffeModel="squeezenet_v1.1.caffemodel") at /work/media/opencv_work/opencv/modules/dnn/src/caffe/caffe_importer.cpp:458<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="6311084" data-permission-text="Title is private" data-url="https://github.com/opencv/opencv/issues/11" data-hovercard-type="pull_request" data-hovercard-url="/opencv/opencv/pull/11/hovercard" href="https://github.com/opencv/opencv/pull/11">#11</a> 0x0000000000404c22 in main (argc=1, argv=0x7fffffffe1f8) at /work/media/opencv_work/halide_try/classprob.cpp:43</p>