请选择 进入手机版 | 继续访问电脑版

安装 opencv 浏览器闪退

[复制链接]
BEE 发表于 2018-12-19 10:24:16 | 显示全部楼层 |阅读模式
tinkerboard s 板 ThinkerOS 系统
OpenCV in python (Face Detection)

#Install
$ sudo apt-get update
$ sudo apt-get upgrade
#Install a few developer tools
$ sudo apt-get install -y build-essential git cmake pkg-config
#Install image I/O packages which allow us to load image file formats such as JPEG, PNG, TIFF, etc.
$ sudo apt-get install -y libjpeg-dev libtiff5-dev libpng-dev
#Install video I/O packages
$ sudo apt-get install -y libavcodec-dev libavformat-dev libswscale-dev libv4l-dev libxvidcore-dev libx264-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
#Install the GTK development library
$ sudo apt-get install -y libgtk2.0-dev
#Various operations inside of OpenCV (such as matrix operations) can be optimized using added dependencies
$ sudo apt-get install -y libatlas-base-dev gfortran
#Install the Python 2.7 and Python 3 header files
$ sudo apt-get install -y python2.7-dev python3-dev python-opencv
执行完这些之后,死机 然后重启,浏览器闪退

回复

使用道具 举报

 楼主| BEE 发表于 2018-12-19 10:36:05 | 显示全部楼层
这是错误信息

linaro@tinkerboard:/usr/share/applications$ exo-open --launch WebBrowser
linaro@tinkerboard:/usr/share/applications$ [9846:9846:1218/071848.538281:ERROR:sandbox_linux.cc(379)] InitializeSandbox() called with multiple threads in process gpu-process.
[9801:9844:1218/071848.825269:ERROR:zygote_host_impl_linux.cc(259)] Failed to adjust OOM score of renderer with pid 10015: Permission denied (13)
Received signal 11 SEGV_MAPERR 000000000000
#0 0x000080f4cbf0 <unknown>
#1 0x000080ed9300 <unknown>
#2 0x000080f4cee2 <unknown>
#3 0x000080f4d124 <unknown>
#4 0x0000b2d6bfe0 <unknown>
#5 0x00007fc81fe0 <unknown>
#6 0x0000811cac94 <unknown>
#7 0x000081587916 <unknown>
#8 0x000081e7d6dc <unknown>
#9 0x000081e7d7a8 <unknown>
#10 0x000081e7d87c <unknown>
#11 0x000081e7d904 <unknown>
#12 0x000081e7d936 <unknown>
#13 0x000080e21c88 <unknown>
#14 0x000080e21cc2 <unknown>
#15 0x000080cd5cc0 <unknown>
#16 0x000080cd9d14 <unknown>
#17 0x000080cd9f82 <unknown>
#18 0x000080112ad6 <unknown>
#19 0x000080356836 <unknown>
#20 0x000080119182 <unknown>
#21 0x00008011966a <unknown>
#22 0x000080114776 <unknown>
#23 0x000080cb8e74 <unknown>
#24 0x000080cb969a <unknown>
#25 0x000080cbdffe <unknown>
#26 0x000080cb8c78 <unknown>
#27 0x00007fb06190 ChromeMain
#28 0x0000b2d5d4aa __libc_start_main
[end of stack trace]
Calling _exit(1). Core file will not be generated.
q^C
linaro@tinkerboard:/usr/share/applications$ sudo exo-open --launch WebBrowser
linaro@tinkerboard:/usr/share/applications$ [10343:10343:1218/071948.384439:ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.

linaro@tinkerboard:/usr/share/applications$
linaro@tinkerboard:/usr/share/applications$ sudo exo-open --launch WebBrowser --no-sandbox
linaro@tinkerboard:/usr/share/applications$ exo-helper: Unknown option --no-sandbox.
Type 'exo-helper --help' for usage.


linaro@tinkerboard:/usr/share/applications$ cat chromium.desktop |tail
Comment[zh_TW]=連線到網際網路
Exec=/usr/bin/chromium %U
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=chromium.png
Categories=Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml_xml;application/x-mimearchive;x-scheme-handler/http;x-scheme-handler/https;
StartupWMClass=chromium
StartupNotify=true
linaro@tinkerboard:/usr/share/applications$ sudo /usr/bin/chromium --no-sandbox
[10404:10564:1218/072316.597740:ERROR:bus.cc(394)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[10437:10437:1218/072316.616065:ERROR:sandbox_linux.cc(379)] InitializeSandbox() called with multiple threads in process gpu-process.
Received signal 11 SEGV_MAPERR 000000000000
#0 0x000080f7dbf0 <unknown>
#1 0x000080f0a300 <unknown>
#2 0x000080f7dee2 <unknown>
#3 0x000080f7e124 <unknown>
#4 0x0000b2d03fe0 <unknown>
#5 0x00007fcb2fe0 <unknown>
#6 0x0000811fbc94 <unknown>
#7 0x0000815b8916 <unknown>
#8 0x000081eae6dc <unknown>
#9 0x000081eae7a8 <unknown>
#10 0x000081eae87c <unknown>
#11 0x000081eae904 <unknown>
#12 0x000081eae936 <unknown>
#13 0x000080e52c88 <unknown>
#14 0x000080e52cc2 <unknown>
#15 0x000080d06cc0 <unknown>
#16 0x000080d0ad14 <unknown>
#17 0x000080d0af82 <unknown>
#18 0x000080143ad6 <unknown>
#19 0x000080387836 <unknown>
#20 0x00008014a182 <unknown>
#21 0x00008014a66a <unknown>
#22 0x000080145776 <unknown>
#23 0x000080ce9e74 <unknown>
#24 0x000080cea69a <unknown>
#25 0x000080ceeffe <unknown>
#26 0x000080ce9c78 <unknown>
#27 0x00007fb37190 ChromeMain
#28 0x0000b2cf54aa __libc_start_main
[end of stack trace]
Calling _exit(1). Core file will not be generated.


回复

使用道具 举报

Aaron 发表于 2020-6-27 10:53:24 | 显示全部楼层
It's work fine for chromium 72.0.3626.122
  1. $apt list chromium
  2. chromium/oldstable 72.0.3626.122-1~deb9u1 armhf [upgradable from: 63.0.3239.84-1~deb9u1]
复制代码
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册用户

本版积分规则

 
QQ在线咨询
点击这里给我发消息
点击这里给我发消息
电话咨询
0755-23012315
快速回复 返回顶部 返回列表