/ [/ include / boost / thread / pthread / mutex.hpp:111:boost :: mutex :: ~~ mutex():断言`!res'失败

问题描述 投票:0回答:1

在Ubuntu 16.04上,我编译了大三角帆SDK src / Acquisition / make,在bin /下找到了“ Acquisition”运行它时,出现错误:检测到的摄像机数量:1

摄像机0的运行示例...

*设备信息*

DeviceID:18073382DeviceSerialNumber:18073382DeviceVendorName:Point Grey研究设备型号名称:Grasshopper3 GS3-U3-32S4M设备类型:U3VDeviceDisplayName:Point Grey研究DeviceAccessStatus:OpenReadWriteDeviceVersion:固件:v2.25.3.00 FPGA:v2.02DeviceDriverVersion:无:0.0.0.0DeviceUserID:DeviceIsUpdater:0DeviceInstanceId:0113C726设备位置:DeviceCurrentSpeed:高速GUIXMLLocation:设备GUIXMLPath:Input.xmlGenICamXMLLocation:设备GenICamXMLPath:DeviceU3VProtocol:1

*图像采集*

获取模式设置为连续...无法开始图像获取。正在中止并显示错误-1010 ...

相机0示例完成...

完成!按Enter退出...

Acquisition_C:/softwarelib/Boost/boost_1_60_0/GCC_5_3_1/linux_cpp11/release/amd64/include/boost/thread/pthread/mutex.hpp:111:boost :: mutex ::〜mutex():断言`!res'失败

示例代码本身根本不使用互斥锁。

camera sensor
1个回答
0
投票

此错误是由于usbfs内存分配不足。请参阅大三角帆自述文件的第3节,以获取有关如何将值增加到1000的信息:

================================================= ==============================

3。 USB相关说明

在Linux系统上,默认情况下USB-FS内存限制为16 MB或更小。至增加此限制以利用成像硬件的全部功能,需要对系统进行较小的更改。

要永久修改USB-FS存储器:

1. Open the /etc/default/grub file in any text editor. Find and replace:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

with this:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash usbcore.usbfs_memory_mb=1000"

2. Update grub with these settings:
$ sudo update-grub

3. Reboot and test a USB 3.1 camera.

如果此方法无法设置内存限制,请暂时修改USB-FS内存,直到下次重新启动,运行以下命令:$ sudo sh -c'echo 1000> / sys / module / usbcore / parameters / usbfs_memory_mb'

要确认内存限制已成功更新,请运行以下命令:$ cat / sys / module / usbcore / parameters / usbfs_memory_mb

如果使用多个USB3相机,则USB-FS内存限制可能需要超过1000。有关这些更改的更多信息,请参见:https://www.flir.com/support-center/iis/machine-vision/application-note/understanding-usbfs-on-linux

© www.soinside.com 2019 - 2024. All rights reserved.