|
用某两种rk3399开发板子分别在android 8.1,9.0,10.0验证都失败,一打开应用就死在应用上了。详细见下面LOG,麻烦帮忙分析下是什么原因?谢谢!帖子字数限制,贴部分LOG,完整见百度云盘:
org.opencv.android.Utils: nMatToBitmap caught cv::Exception: OpenCV(3.4.1) /build/master_pack-android/opencv/modules/java/generator/src/cpp/utils.cpp:101: error: (-215) src.dims == 2 && info.height == (uint32_t)src.rows && info.width == (uint32_t)src.cols in function void Java_org_opencv_android_Utils_nMatToBitmap2(JNIEnv*, jclass, jlong, jobject, jboolean)
03-05 12:40:27.592 7603 7663 E CameraBridge: Mat type: Mat [ 800*1280*CV_8UC4, isCont=true, isSubmat=false, nativeObj=0x7658674ae0, dataAddr=0x75de300680 ]
03-05 12:40:27.593 7603 7663 E CameraBridge: Bitmap type: 1920*1080
03-05 12:40:27.593 7603 7663 E CameraBridge: Utils.matToBitmap() throws an exception: OpenCV(3.4.1) /build/master_pack-android/opencv/modules/java/generator/src/cpp/utils.cpp:101: error: (-215) src.dims == 2 && info.height == (uint32_t)src.rows && info.width == (uint32_t)src.cols in function void Java_org_opencv_android_Utils_nMatToBitmap2(JNIEnv*, jclass, jlong, jobject, jboolean)
03-05 12:40:27.615 7603 7663 E cv::error(): OpenCV(3.4.1) Error: Assertion failed (src.dims == 2 && info.height == (uint32_t)src.rows && info.width == (uint32_t)src.cols) in void Java_org_opencv_android_Utils_nMatToBitmap2(JNIEnv*, jclass, jlong, jobject, jboolean), file /build/master_pack-android/opencv/modules/java/generator/src/cpp/utils.cpp, line 101
03-05 12:40:27.617 7603 7663 E org.opencv.android.Utils: nMatToBitmap caught cv::Exception: OpenCV(3.4.1) /build/master_pack-android/opencv/modules/java/generator/src/cpp/utils.cpp:101: error: (-215) src.dims == 2 && info.height == (uint32_t)src.rows && info.width == (uint32_t)src.cols in function void Java_org_opencv_android_Utils_nMatToBitmap2(JNIEnv*, jclass, jlong, jobject, jboolean)
03-05 12:40:27.618 7603 7663 E CameraBridge: Mat type: Mat [ 800*1280*CV_8UC4, isCont=true, isSubmat=false, nativeObj=0x7658674ae0, dataAddr=0x75de300680 ]
03-05 12:40:27.618 7603 7663 E CameraBridge: Bitmap type: 1920*1080
03-05 12:40:27.618 7603 7663 E CameraBridge: Utils.matToBitmap() throws an exception: OpenCV(3.4.1) /build/master_pack-android/opencv/modules/java/generator/src/cpp/utils.cpp:101: error: (-215) src.dims == 2 && info.height == (uint32_t)src.rows && info.width == (uint32_t)src.cols in function void Java_org_opencv_android_Utils_nMatToBitmap2(JNIEnv*, jclass, jlong, jobject, jboolean)
03-05 12:40:27.648 7603 7663 E cv::error(): OpenCV(3.4.1) Error: Assertion failed (src.dims == 2 && info.height == (uint32_t)src.rows && info.width == (uint32_t)src.cols) in void Java_org_opencv_android_Utils_nMatToBitmap2(JNIEnv*, jclass, jlong, jobject, jboolean), file /build/master_pack-android/opencv/modules/java/generator/src/cpp/utils.cpp, line 101
03-05 12:40:27.650 7603 7663 E org.opencv.android.Utils: nMatToBitmap caught cv::Exception: OpenCV(3.4.1) /build/master_pack-android/opencv/modules/java/generator/src/cpp/utils.cpp:101: error: (-215) src.dims == 2 && info.height == (uint32_t)src.rows && info.width == (uint32_t)src.cols in function void Java_org_opencv_android_Utils_nMatToBitmap2(JNIEnv*, jclass, jlong, jobject, jboolean)
03-05 12:40:27.650 7603 7663 E CameraBridge: Mat type: Mat [ 800*1280*CV_8UC4, isCont=true, isSubmat=false, nativeObj=0x7658674ae0, dataAddr=0x75de300680 ]
03-05 12:40:27.650 7603 7663 E CameraBridge: Bitmap type: 1920*1080
03-05 12:40:27.650 7603 7663 E CameraBridge: Utils.matToBitmap() throws an exception: OpenCV(3.4.1) /build/master_pack-android/opencv/modules/java/generator/src/cpp/utils.cpp:101: error: (-215) src.dims == 2 && info.height == (uint32_t)src.rows && info.width == (uint32_t)src.cols in function void Java_org_opencv_android_Utils_nMatToBitmap2(JNIEnv*, jclass, jlong, jobject, jboolean)
03-05 12:40:27.669 7603 7628 I TCPClientConnect: >TCP杩炴帴鏈嶅姟鍣╥p = 192.168.180.8<
03-05 12:40:27.673 7603 7628 E TCPClientConnect: >TCP杩炴帴鏈嶅姟鍣╥p = 192.168.180.8:8002澶辫触, 3绉掑悗閲嶆柊杩炴帴<isConnect = true
03-05 12:40:27.673 7603 7628 W TCPClientConnect: >TCP192.168.180.8閲嶇疆杩炴帴<
03-05 12:40:27.674 7603 7628 D MainActivity: tcp_disconnect: 192.168.180.8
03-05 12:40:27.674 7603 7628 W System.err: java.net.SocketException: Socket is not connected
03-05 12:40:27.675 7603 7628 W System.err: at java.net.Socket.shutdownInput(Socket.java:1567)
03-05 12:40:27.675 7603 7628 W System.err: at com.rockchip.inno.androidmasterrockx.Util.net.TCPClient.TCPClientFactory.disconnect(TCPClientFactory.java:107)
03-05 12:40:27.675 7603 7628 W System.err: at com.rockchip.inno.androidmasterrockx.Util.net.TCPClient.TCPClientConnect.resetConnect(TCPClientConnect.java:107)
03-05 12:40:27.675 7603 7628 W System.err: at com.rockchip.inno.androidmasterrockx.Util.net.TCPClient.TCPClientConnect.run(TCPClientConnect.java:54)
03-05 12:40:27.675 7603 7628 W System.err: at java.lang.Thread.run(Thread.java:919)
03-05 12:40:27.684 7603 7663 E cv::error(): OpenCV(3.4.1) Error: Assertion failed (src.dims == 2 && info.height == (uint32_t)src.rows && info.width == (uint32_t)src.cols) in void Java_org_opencv_android_Utils_nMatToBitmap2(JNIEnv*, jclass, jlong, jobject, jboolean), file /build/master_pack-android/opencv/modules/java/generator/src/cpp/utils.cpp, line 101
03-05 12:40:27.686 7603 7663 E org.opencv.android.Utils: nMatToBitmap caught cv::Exception: OpenCV(3.4.1) /build/master_pack-android/opencv/modules/java/generator/src/cpp/utils.cpp:101: error: (-215) src.dims == 2 && info.height == (uint32_t)src.rows && info.width == (uint32_t)src.cols in function void Java_org_opencv_android_Utils_nMatToBitmap2(JNIEnv*, jclass, jlong, jobject, jboolean)
03-05 12:40:27.687 7603 7663 E CameraBridge: Mat type: Mat [ 800*1280*CV_8UC4, isCont=true, isSubmat=false, nativeObj=0x7658674ae0, dataAddr=0x75de300680 ]
03-05 12:40:27.687 7603 7663 E CameraBridge: Bitmap type: 1920*1080
03-05 12:40:27.688 7603 7663 E CameraBridge: Utils.matToBitmap() throws an exception: OpenCV(3.4.1) /build/master_pack-android/opencv/modules/java/generator/src/cpp/utils.cpp:101: error: (-215) src.dims == 2 && info.height == (uint32_t)src.rows && info.width == (uint32_t)src.cols in function void Java_org_opencv_android_Utils_nMatToBitmap2(JNIEnv*, jclass, jlong, jobject, jboolean)
03-05 12:40:27.713 7603 7663 E cv::error(): OpenCV(3.4.1) Error: Assertion failed (src.dims == 2 && info.height == (uint32_t)src.rows && info.width == (uint32_t)src.cols) in void Java_org_opencv_android_Utils_nMatToBitmap2(JNIEnv*, jclass, jlong, jobject, jboolean), file /build/master_pack-android/opencv/modules/java/generator/src/cpp/utils.cpp, line 101
03-05 12:40:27.714 7603 7663 E org.opencv.android.Utils: nMatToBitmap caught cv::Exception: OpenCV(3.4.1) /build/master_pack-android/opencv/modules/java/generator/src/cpp/utils.cpp:101: error: (-215) src.dims == 2 && info.height == (uint32_t)src.rows && info.width == (uint32_t)src.cols in function void Java_org_opencv_android_Utils_nMatToBitmap2(JNIEnv*, jclass, jlong, jobject, jboolean)
03-05 12:40:27.714 7603 7663 E CameraBridge: Mat type: Mat [ 800*1280*CV_8UC4, isCont=true, isSubmat=false, nativeObj=0x7658674ae0, dataAddr=0x75de300680 ]
03-05 12:40:27.715 7603 7663 E CameraBridge: Bitmap type: 1920*1080
03-05 12:40:27.715 7603 7663 E CameraBridge: Utils.matToBitmap() throws an exception: OpenCV(3.4.1) /build/master_pack-android/opencv/modules/java/generator/src/cpp/utils.cpp:101: error: (-215) src.dims == 2 && info.height == (uint32_t)src.rows && info.width == (uint32_t)src.cols in function void Java_org_opencv_android_Utils_nMatToBitmap2(JNIEnv*, jclass, jlong, jobject, jboolean)
^C
130|nanopc-t4:/ # ^C
130|nanopc-t4:/ # ^C
130|nanopc-t4:/ #
130|nanopc-t4:/ #
130|nanopc-t4:/ # ifconfig
eth1 Link encap:Ethernet HWaddr 10:dc:b6:9f:2d:d9 Driver rndis_host
inet addr:192.168.180.1 Bcast:192.168.180.255 Mask:255.255.255.0
inet6 addr: fe80::df53:8610:86e3:9063/64 Scope: Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:126 errors:0 dropped:0 overruns:0 frame:0
TX packets:117 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5710 TX bytes:16876
lo Link encapocal Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope: Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 TX bytes:0
eth0 Link encap:Ethernet HWaddr fe:1c:ed:01:e9:b7 Driver rk_gmac-dwmac
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 TX bytes:0
Interrupt:27
nanopc-t4:/ #
|
|