当我在GNOME上运行deepmind DQN时警告x错误baddrawable(ubuntu 12) [英] Warning x error baddrawable when I run the deepmind DQN on GNOME (ubuntu 12)
问题描述
在没有图像的情况下运行dqn是成功的,但是通过尝试使用qlua(一些教程)来查看netwrok实时播放rom的情况,
It was scuccessful to run dqn with no image, but by trying using qlua (some tutorial) to see the netwrok playing the rom in real time, it gets a
警告x错误baddrawable 它会打开一个图像窗口,但它是灰色/空白,并且在终端中出现警告x错误baddrawable(...)"错误.
Warning x error baddrawable It opens an image window but it is grey/blank and in terminal I get a " warning x error baddrawable (...)" error.
推荐答案
更新:我已经解决了我面临的问题.由于我是通过VNC GUI服务器在我的一个Google Cloud V实例中运行DeepMind的,因此该程序应该可以在任何程序中运行. 我已经打开了脚本文件(run_cpu),并将行"export QT_GRAPHICSSYSTEM = native"放在运行qlua的行之前.我来分享一下我的编辑内容:
UPDATE: I have solved the issue I was facing. Since I am running the DeepMind in one of my instances of Google Cloud V's, via a VNC GUI server, the proceedings should work in any. I´ve opened the script file (run_cpu) and put the line "export QT_GRAPHICSSYSTEM=native" right before the line that runs qlua. Let me share you my editings:
(使用最新的vncserver + GNOME GUI的UBUNTU 12. *) //终端,并且dqn目录位于:
(UBUNTU 12.* using latest vncserver + GNOME GUI) //terminal and where the dqn dir is:
$ vim run_cpu
$ vim run_cpu
//将打开文件"run_cpu".按"i"进行编辑.新的修改应如下所示(在第45行复制并粘贴):
//that opens the file 'run_cpu'. Press "i" to edit. The new edit should look like this (copy and paste at line 45):
export QT_GRAPHICSSYSTEM =本地
export QT_GRAPHICSSYSTEM=native
//按"ESC",然后输入:wq",然后输入.
//Press "ESC" then type ":wq" then enter.
$重新启动
//为了确保在重新启动所有进程后效果会发生变化. 通过Google Cloud控制台打开一个新的SSH终端.在运行vncserver之前,还要在之前运行export QT_GRAPHICSSYSTEM = native:
//To make sure the effects will take change after restarting all processes. Open a new SSH terminal via Google Cloud console. Before running the vncserver, also run the export QT_GRAPHICSSYSTEM=native before:
$ export QT_GRAPHICSSYSTEM =本机 $ vncserver
$ export QT_GRAPHICSSYSTEM=native $ vncserver
然后,当通过VNC客户端连接时,在那打开终端并运行./run_cpu.
Then, when connected thru a VNC client, open the terminal there and run ./run_cpu.
$ sudo bash ./run_cpu
$ sudo bash ./run_cpu
//如果没有root访问权限.
//In case no root access.
更新2:我在dqn-graphics.sh上也做了很小的改动.在第4行,除了带有"then"的行外,别无其他.像这样(:
UPDATE 2: I've also did a very small change at the dqn-graphics.sh. At line 4, leave nothing but the line with a 'then'. Like this ( :
//$ vim dqn-graphics.sh.在第4行滚动.按Enter.放: 然后
//$ vim dqn-graphics.sh. Scroll at line 4. Press Enter. Put: then
//ESC:wq
这篇关于当我在GNOME上运行deepmind DQN时警告x错误baddrawable(ubuntu 12)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!