最近在做一个目标检测的项目,需要在Vitis AI docker环境中借助matplotlib工具进行图片显示打印,设置了
export DISPLAY=:0.0 ,可是运行代码时出现了下图报错:
dbus[78]: The last reference on a connection was dropped without closing the connection. This is a bug in an application. See dbus_connection_unref() documentation for details.
Most likely, the application was supposed to call dbus_connection_close(), since this is a private connection.
D-Bus not built with -rdynamic so unable to print a backtrace
Aborted (core dumped)
先是按照网上解决办法把docker_run.sh脚本中的 --network=host \ 去掉了,上面的报错没了,结果又出现了下面的问题:
QXcbConnection: Could not connect to display :0.0
始终无法加载图片
查遍了网上关于这两个问题的解决办法都没用
求解这个问题怎么解决!
你好,我是有问必答小助手,非常抱歉,本次您提出的有问必答问题,技术专家团超时未为您做出解答
本次提问扣除的有问必答次数,将会以问答VIP体验卡(1次有问必答机会、商城购买实体图书享受95折优惠)的形式为您补发到账户。
因为有问必答VIP体验卡有效期仅有1天,您在需要使用的时候【私信】联系我,我会为您补发。