I run the following pyqt application on the xvfb server on amazon ec2 ubuntu 12.04, I get the correct output from the qt application, but always get the above error when the application is completed. Why am I getting this error? I think this may be due to the xvfb server not ending correctly, but I'm not sure.
import sys from PyQt4.QtGui import * from PyQt4.QtCore import * from PyQt4.QtWebKit import * from xvfbwrapper import Xvfb args = {"nolisten":"tcp"} vdisplay = Xvfb(**args) vdisplay.start() app = QApplication(sys.argv) def update(): print "upd" t = QTimer() t.start(500) t.timeout.connect(update) stopTimer = QTimer(timeout=app.quit,singleShot=True) stopTimer.start(4000) app.exec_() print "done with app" vdisplay.stop()
source share