Toybrick

用android studio编译时应用闪退问题

418981749

注册会员

积分
69
楼主
发表于 2020-5-9 11:24:29    查看: 8003|回复: 7 | [复制链接]    打印 | 只看该作者
本帖最后由 418981749 于 2020-5-9 11:27 编辑

一使用摄像头就会闪退,我是直接在接上板子上用android studio进行编译,没有配置其他东西,请教一下是什么原因
回复

使用道具 举报

418981749

注册会员

积分
69
沙发
 楼主| 发表于 2020-5-9 11:26:20 | 只看该作者
2017-08-05 18:28:56.320 11104-11104/? I/zygote64: Late-enabling -Xcheck:jni
2017-08-05 18:28:56.579 11104-11104/? I/InstantRun: starting instant run server: is main process
2017-08-05 18:28:56.680 11104-11104/com.rockchip.gpadc.rockx.carplate I/.rockx.carplate: type=1400 audit(0.0:355): avc: denied { read write } for name="rga" dev="tmpfs" ino=10126 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=ubject_r:rga_device:s0 tclass=chr_file permissive=1
2017-08-05 18:28:56.690 11104-11104/com.rockchip.gpadc.rockx.carplate D/rockx-app: onResume
2017-08-05 18:28:56.701 11104-11130/com.rockchip.gpadc.rockx.carplate D/OpenGLRenderer: HWUI GL Pipeline
2017-08-05 18:28:56.746 11104-11130/com.rockchip.gpadc.rockx.carplate I/mali_so: [File] : hardware/rockchip/mali_so/driver/product/base/src/mali_base_kbase.c; [Line] : 876; [Func] : base_context_deal_with_version_affairs_rk_ext;
    arm_release_ver of this mali_so is 'r18p0-01rel0', rk_so_ver is '9@0'.
2017-08-05 18:28:56.746 11104-11130/com.rockchip.gpadc.rockx.carplate D/mali_so: [File] : hardware/rockchip/mali_so/driver/product/base/src/mali_base_kbase.c; [Line] : 881; [Func] : base_context_deal_with_version_affairs_rk_ext;
    current process is NOT sf, to bail out.
2017-08-05 18:28:56.759 11104-11130/com.rockchip.gpadc.rockx.carplate I/com.rockchip.gpadc.rockx.carplate: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
2017-08-05 18:28:56.759 11104-11130/com.rockchip.gpadc.rockx.carplate I/OpenGLRenderer: Initialized EGL, version 1.4
2017-08-05 18:28:56.759 11104-11130/com.rockchip.gpadc.rockx.carplate D/OpenGLRenderer: Swap behavior 2
2017-08-05 18:28:56.765 11104-11130/com.rockchip.gpadc.rockx.carplate D/mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000
2017-08-05 18:28:56.787 11104-11104/com.rockchip.gpadc.rockx.carplate D/rockx-app: surfaceCreated
2017-08-05 18:28:56.788 11104-11104/com.rockchip.gpadc.rockx.carplate D/rockx-app: mCameraId = 0
2017-08-05 18:28:57.031 11104-11104/com.rockchip.gpadc.rockx.carplate D/rockx-app: mCamera0 = android.hardware.Camera@eda93f
2017-08-05 18:28:57.040 11104-11104/com.rockchip.gpadc.rockx.carplate V/rockx-app: Camera Supported Preview Size = 1280x720
2017-08-05 18:28:57.040 11104-11104/com.rockchip.gpadc.rockx.carplate V/rockx-app: Camera Supported Preview Size = 800x600
2017-08-05 18:28:57.040 11104-11104/com.rockchip.gpadc.rockx.carplate V/rockx-app: Camera Supported Preview Size = 640x480
2017-08-05 18:28:57.041 11104-11104/com.rockchip.gpadc.rockx.carplate V/rockx-app: Camera Supported Preview Size = 352x288
2017-08-05 18:28:57.041 11104-11104/com.rockchip.gpadc.rockx.carplate V/rockx-app: Camera Supported Preview Size = 320x240
2017-08-05 18:28:57.067 11104-11104/com.rockchip.gpadc.rockx.carplate D/rockx-app: surfaceChanged
2017-08-05 18:28:57.130 11104-11130/com.rockchip.gpadc.rockx.carplate I/[Gralloc]: Got handle 1 for fd 70
2017-08-05 18:28:57.130 11104-11130/com.rockchip.gpadc.rockx.carplate I/[Gralloc]: leave, w : 1920, h : 996, format : 0x1,internal_format : 0x1, usage : 0xb00. size=7649280,pixel_stride=1920,byte_stride=7680
2017-08-05 18:28:57.130 11104-11130/com.rockchip.gpadc.rockx.carplate I/[Gralloc]: leave: prime_fd=70,share_attr_fd=71
2017-08-05 18:28:57.228 11104-11130/com.rockchip.gpadc.rockx.carplate I/[Gralloc]: Got handle 2 for fd 75
2017-08-05 18:28:57.228 11104-11130/com.rockchip.gpadc.rockx.carplate I/[Gralloc]: leave, w : 1920, h : 996, format : 0x1,internal_format : 0x1, usage : 0xb00. size=7649280,pixel_stride=1920,byte_stride=7680
2017-08-05 18:28:57.228 11104-11130/com.rockchip.gpadc.rockx.carplate I/[Gralloc]: leave: prime_fd=75,share_attr_fd=76
2017-08-05 18:28:57.253 11104-11104/com.rockchip.gpadc.rockx.carplate I/Thread-4: type=1400 audit(0.0:358): avc: denied { read } for name="nvmem" dev="sysfs" ino=8585 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=ubject_r:sysfs_armnn:s0 tclass=file permissive=1
2017-08-05 18:28:57.253 11104-11104/com.rockchip.gpadc.rockx.carplate I/Thread-4: type=1400 audit(0.0:359): avc: denied { open } for path="/sys/devices/platform/ff690000.efuse/rockchip-efuse0/nvmem" dev="sysfs" ino=8585 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=ubject_r:sysfs_armnn:s0 tclass=file permissive=1
2017-08-05 18:28:57.392 11104-11156/com.rockchip.gpadc.rockx.carplate E/RKNNAPI: rknn_init,  msg_load_ack fail, ack = 1, expect 0!
2017-08-05 18:28:57.393 11104-11156/com.rockchip.gpadc.rockx.carplate E/rockx: rknn_init fail! ret=-6
2017-08-05 18:28:57.393 11104-11156/com.rockchip.gpadc.rockx.carplate E/rockx: init module(10) error -1
2017-08-05 18:28:57.486 11104-11156/com.rockchip.gpadc.rockx.carplate E/RKNNAPI: rknn_init,  msg_load_ack fail, ack = 1, expect 0!
2017-08-05 18:28:57.488 11104-11156/com.rockchip.gpadc.rockx.carplate E/rockx: rknn_init fail! ret=-6
2017-08-05 18:28:57.488 11104-11156/com.rockchip.gpadc.rockx.carplate E/rockx: init module(11) error -1
2017-08-05 18:28:57.519 11104-11117/com.rockchip.gpadc.rockx.carplate I/[Gralloc]: for nv12, w : 640, h : 480, pixel_stride : 640, byte_stride : 640, size : 614400; internalHeight : 480.
2017-08-05 18:28:57.519 11104-11117/com.rockchip.gpadc.rockx.carplate I/[Gralloc]: Got handle 3 for fd 68
2017-08-05 18:28:57.519 11104-11117/com.rockchip.gpadc.rockx.carplate I/[Gralloc]: leave, w : 640, h : 480, format : 0x15,internal_format : 0x15, usage : 0x333. size=614400,pixel_stride=640,byte_stride=640
2017-08-05 18:28:57.519 11104-11117/com.rockchip.gpadc.rockx.carplate I/[Gralloc]: leave: prime_fd=68,share_attr_fd=69
2017-08-05 18:28:57.526 11104-11117/com.rockchip.gpadc.rockx.carplate I/[Gralloc]: for nv12, w : 640, h : 480, pixel_stride : 640, byte_stride : 640, size : 614400; internalHeight : 480.
2017-08-05 18:28:57.526 11104-11117/com.rockchip.gpadc.rockx.carplate I/[Gralloc]: Got handle 4 for fd 78
2017-08-05 18:28:57.526 11104-11117/com.rockchip.gpadc.rockx.carplate I/[Gralloc]: leave, w : 640, h : 480, format : 0x15,internal_format : 0x15, usage : 0x333. size=614400,pixel_stride=640,byte_stride=640
2017-08-05 18:28:57.526 11104-11117/com.rockchip.gpadc.rockx.carplate I/[Gralloc]: leave: prime_fd=78,share_attr_fd=79
2017-08-05 18:28:57.533 11104-11117/com.rockchip.gpadc.rockx.carplate I/[Gralloc]: for nv12, w : 640, h : 480, pixel_stride : 640, byte_stride : 640, size : 614400; internalHeight : 480.
2017-08-05 18:28:57.533 11104-11117/com.rockchip.gpadc.rockx.carplate I/[Gralloc]: Got handle 5 for fd 81
2017-08-05 18:28:57.533 11104-11117/com.rockchip.gpadc.rockx.carplate I/[Gralloc]: leave, w : 640, h : 480, format : 0x15,internal_format : 0x15, usage : 0x333. size=614400,pixel_stride=640,byte_stride=640
2017-08-05 18:28:57.533 11104-11117/com.rockchip.gpadc.rockx.carplate I/[Gralloc]: leave: prime_fd=81,share_attr_fd=82
2017-08-05 18:28:57.538 11104-11117/com.rockchip.gpadc.rockx.carplate I/[Gralloc]: for nv12, w : 640, h : 480, pixel_stride : 640, byte_stride : 640, size : 614400; internalHeight : 480.
2017-08-05 18:28:57.539 11104-11117/com.rockchip.gpadc.rockx.carplate I/[Gralloc]: Got handle 6 for fd 84
2017-08-05 18:28:57.539 11104-11117/com.rockchip.gpadc.rockx.carplate I/[Gralloc]: leave, w : 640, h : 480, format : 0x15,internal_format : 0x15, usage : 0x333. size=614400,pixel_stride=640,byte_stride=640
2017-08-05 18:28:57.539 11104-11117/com.rockchip.gpadc.rockx.carplate I/[Gralloc]: leave: prime_fd=84,share_attr_fd=85
2017-08-05 18:28:57.624 11104-11156/com.rockchip.gpadc.rockx.carplate E/RKNNAPI: rknn_init,  msg_load_ack fail, ack = 1, expect 0!
2017-08-05 18:28:57.625 11104-11156/com.rockchip.gpadc.rockx.carplate E/rockx: rknn_init fail! ret=-6
2017-08-05 18:28:57.626 11104-11156/com.rockchip.gpadc.rockx.carplate E/rockx: init module(12) error -1
2017-08-05 18:28:57.627 11104-11104/com.rockchip.gpadc.rockx.carplate I/.rockx.carplate: type=1400 audit(0.0:366): avc: denied { ioctl } for path="/dev/rga" dev="tmpfs" ino=10126 ioctlcmd=5017 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=ubject_r:rga_device:s0 tclass=chr_file permissive=1
2017-08-05 18:28:57.643 11104-11156/com.rockchip.gpadc.rockx.carplate A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 11156 (Thread-4), pid 11104 (.rockx.carplate)
回复

使用道具 举报

418981749

注册会员

积分
69
板凳
 楼主| 发表于 2020-5-9 11:30:12 | 只看该作者
程序在别人的新板子上也可以正常运行的
回复

使用道具 举报

jefferyzhang

版主

积分
13578
地板
发表于 2020-5-9 12:14:07 | 只看该作者
看下NPU设备在不在
回复

使用道具 举报

418981749

注册会员

积分
69
5#
 楼主| 发表于 2020-5-9 12:22:07 | 只看该作者
jefferyzhang 发表于 2020-5-9 12:14
看下NPU设备在不在

您好,这个是在哪里查看的
回复

使用道具 举报

418981749

注册会员

积分
69
6#
 楼主| 发表于 2020-5-9 12:43:45 | 只看该作者
报错是这样的
2017-08-05 19:39:08.657 28635-28677/com.rockchip.gpadc.rockx.carplate E/RKNNAPI: rknn_init,  msg_load_ack fail, ack = 1, expect 0!
2017-08-05 19:39:08.659 28635-28677/com.rockchip.gpadc.rockx.carplate E/rockx: rknn_init fail! ret=-6
2017-08-05 19:39:08.659 28635-28677/com.rockchip.gpadc.rockx.carplate E/rockx: init module(10) error -1
2017-08-05 19:39:08.846 28635-28677/com.rockchip.gpadc.rockx.carplate E/RKNNAPI: rknn_init,  msg_load_ack fail, ack = 1, expect 0!
2017-08-05 19:39:08.847 28635-28677/com.rockchip.gpadc.rockx.carplate E/rockx: rknn_init fail! ret=-6
2017-08-05 19:39:08.847 28635-28677/com.rockchip.gpadc.rockx.carplate E/rockx: init module(11) error -1
2017-08-05 19:39:08.985 28635-28677/com.rockchip.gpadc.rockx.carplate E/RKNNAPI: rknn_init,  msg_load_ack fail, ack = 1, expect 0!
2017-08-05 19:39:08.986 28635-28677/com.rockchip.gpadc.rockx.carplate E/rockx: rknn_init fail! ret=-6
2017-08-05 19:39:08.987 28635-28677/com.rockchip.gpadc.rockx.carplate E/rockx: init module(12) error -1
2017-08-05 19:39:09.005 28635-28677/com.rockchip.gpadc.rockx.carplate A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 28677 (Thread-4), pid 28635 (.rockx.carplate)
回复

使用道具 举报

jefferyzhang

版主

积分
13578
7#
发表于 2020-5-9 14:50:55 | 只看该作者
418981749 发表于 2020-5-9 12:43
报错是这样的
2017-08-05 19:39:08.657 28635-28677/com.rockchip.gpadc.rockx.carplate E/RKNNAPI: rknn_i ...

这个就是没找到NPU设备,可以试试lsusb看看有没有 0x2207的设备。
安卓你得自己百度下查看设备方法。
回复

使用道具 举报

418981749

注册会员

积分
69
8#
 楼主| 发表于 2020-5-9 15:09:50 | 只看该作者
jefferyzhang 发表于 2020-5-9 14:50
这个就是没找到NPU设备,可以试试lsusb看看有没有 0x2207的设备。
安卓你得自己百度下查看设备方法。 ...

进Linux查了下,0x2207是couldn't open device,some information will be missing
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


快速回复 返回顶部 返回列表