Public bug reported: Binary package hint: python-qt4
I am seeing some data corruption in QImage objects when using python-qt4 in hardy. A very simple script that should demonstrate this looks like: from PyQt4 import QtGui # Create a 100x100 image, all black im = QtGui.QImage('\0'*40000, 100, 100, QtGui.QImage.Format_RGB32) # print the last pixel value print "0x%lx" % im.pixel(99, 99) # create a new variable to write into memory d = '\1'*40000 # print the last pixel value again print "0x%lx" % im.pixel(99, 99) On my machine, the output is: 0x0 0x1010101 The second number printed is a corrupted pixel, and should be 0x0. The obvious explanation to me is that QtGui.QImage() is not incrementing the reference count to the image string it accepts, which allows it to be deleted and overwritten later. ** Affects: python-qt4 (Ubuntu) Importance: Undecided Status: New -- image corruption in pyqt4 qimage https://bugs.launchpad.net/bugs/214780 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs