<ul dir="auto">
<li>OpenCV =&gt; :net.forward() error:</li>
<li>Operating System / Platform =&gt; :android imx8:<br>
Hi，I use DNN with opencl to detect object ,tiny-yolov2, but when run net.forward() ,it's ANR ,Here is the log:</li>
</ul>
<p dir="auto">2019-05-23 23:38:51.987 15259-15259/? A/DEBUG: pid: 14020, tid: 15200, name: Thread-359  &gt;&gt;&gt; com.pateonavi.naviapp &lt;&lt;&lt;<br>
2019-05-23 23:38:51.987 15259-15259/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xfffffffc<br>
2019-05-23 23:38:51.987 15259-15259/? A/DEBUG:     r0  b5883600  r1  b59dd750  r2  a6c80d70  r3  c86c1a20<br>
2019-05-23 23:38:51.987 15259-15259/? A/DEBUG:     r4  b5883600  r5  fffffff8  r6  a6c80d00  r7  00000000<br>
2019-05-23 23:38:51.987 15259-15259/? A/DEBUG:     r8  c86c1a20  r9  a6c80d70  r10 b59dd750  r11 b5883784<br>
2019-05-23 23:38:51.987 15259-15259/? A/DEBUG:     ip  f32b4d00  sp  a6c80ce8  lr  a8dd25b9  pc  a8dd6b46<br>
2019-05-23 23:38:51.996 15259-15259/? A/DEBUG: backtrace:<br>
2019-05-23 23:38:51.996 15259-15259/? A/DEBUG:     #00 pc 0060eb46  /data/app/com.pateonavi.naviapp-BkrRCt9MMasrSsmw12ksMg==/lib/arm/libopencv_java3.so<br>
2019-05-23 23:38:51.996 15259-15259/? A/DEBUG:     <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="5857810" data-permission-text="Title is private" data-url="https://github.com/opencv/opencv/issues/1" data-hovercard-type="pull_request" data-hovercard-url="/opencv/opencv/pull/1/hovercard" href="https://github.com/opencv/opencv/pull/1">#1</a> pc 0061238d  /data/app/com.pateonavi.naviapp-BkrRCt9MMasrSsmw12ksMg==/lib/arm/libopencv_java3.so<br>
2019-05-23 23:38:51.996 15259-15259/? A/DEBUG:     <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="5867398" data-permission-text="Title is private" data-url="https://github.com/opencv/opencv/issues/2" data-hovercard-type="pull_request" data-hovercard-url="/opencv/opencv/pull/2/hovercard" href="https://github.com/opencv/opencv/pull/2">#2</a> pc 00612677  /data/app/com.pateonavi.naviapp-BkrRCt9MMasrSsmw12ksMg==/lib/arm/libopencv_java3.so<br>
2019-05-23 23:38:51.996 15259-15259/? A/DEBUG:     <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="5907046" data-permission-text="Title is private" data-url="https://github.com/opencv/opencv/issues/3" data-hovercard-type="pull_request" data-hovercard-url="/opencv/opencv/pull/3/hovercard" href="https://github.com/opencv/opencv/pull/3">#3</a> pc 005c5405  /data/app/com.pateonavi.naviapp-BkrRCt9MMasrSsmw12ksMg==/lib/arm/libopencv_java3.so<br>
2019-05-23 23:38:51.996 15259-15259/? A/DEBUG:     <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> pc 005c6265  /data/app/com.pateonavi.naviapp-BkrRCt9MMasrSsmw12ksMg==/lib/arm/libopencv_java3.so<br>
2019-05-23 23:38:51.996 15259-15259/? A/DEBUG:     <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> pc 005b1337  /data/app/com.pateonavi.naviapp-BkrRCt9MMasrSsmw12ksMg==/lib/arm/libopencv_java3.so<br>
2019-05-23 23:38:51.996 15259-15259/? A/DEBUG:     <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> pc 005b2331  /data/app/com.pateonavi.naviapp-BkrRCt9MMasrSsmw12ksMg==/lib/arm/libopencv_java3.so<br>
2019-05-23 23:38:51.996 15259-15259/? A/DEBUG:     <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> pc 005b6287  /data/app/com.pateonavi.naviapp-BkrRCt9MMasrSsmw12ksMg==/lib/arm/libopencv_java3.so (cv::dnn::experimental_dnn_34_v11::Net::forward(cv::String const&amp;)+250)<br>
2019-05-23 23:38:51.996 15259-15259/? A/DEBUG:     <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> pc 0001bb80  /data/app/com.pateonavi.naviapp-BkrRCt9MMasrSsmw12ksMg==/lib/arm/libimageproc.so (ImageProcessor::classify(cv::Mat)+352)</p>
<p dir="auto">Here is the code:<br>
cv::Mat blob = cv::dnn::blobFromImage(result,1/255.f,cv::Size(224,224),cv::Scalar(),false,true);<br>
my_net.setInput(blob);<br>
cv::String outputNames = getOutputsNames();<br>
cv::Mat output= my_net.forward();</p>
<p dir="auto">I use the opencvforandroidSDK ,it is correct ,but i compule it with opencl ,it is error ,<br>
Can you give me some help?<br>
Thanks!</p>
<p dir="auto">编译opencv3.4.3版本带OPENCL的，测试能够检测到opencl，但是当运行DNN模块net.forword（output）函数就会导致系统奔溃，用官网的Android SDK版本的CPU版本是正常的</p>
<p dir="auto">芯片是imx8Q  ,opencl 1.2.<br>
请问是编译问题还是版本问题？</p>