Package: python-qt3-gl
Version: 3.13-4
Severity: grave
Justification: renders package unusable


With libfreetype6 freetype version 2.1.7-2.5 it is impossible to
render text on a QGLWidget without crashing the Python interpreter.
Reverting to libfreetype6 version 2.1.7-2.4 fixes the problem.  Here
is a program that will crash the Python interpreter:

### 8< ###
 #!/usr/bin/python

 from qt import *
 from qtgl import *

 app = QApplication([])
 win = QMainWindow()
 app.setMainWidget(win)
 gl = QGLWidget(win)
 win.show()
 gl.renderText(0, 0, "foo")
 app.exec_loop()
### >8 ###

Here is an excecution of the above program:
  $ export LANG=C && python qtbug.py 
  Floating point exception

And here is what gdb has to say:
  $ ulimit -c 1000000
  $ export LANG=C && python qtbug.py 
  $ gdb `which python` core
  > backtrace
    #0  0xb6c04a84 in ps_hints_apply ()
       from /usr/lib/libfreetype.so.6
    (gdb) backtrace
    #0  0xb6c04a84 in ps_hints_apply () from /usr/lib/libfreetype.so.6
    #1  0xb6bddd2a in FT_Render_Glyph_Internal () from /usr/lib/libfreetype.so.6
    #2  0xb6bdddec in FT_Render_Glyph () from /usr/lib/libfreetype.so.6
    #3  0xb73fdf35 in qgl_use_font () from /usr/lib/libqt-mt.so.3
    #4  0xb73fe286 in QGLContext::generateFontDisplayLists ()
       from /usr/lib/libqt-mt.so.3
    #5  0xb73fa77f in QGLWidget::displayListBase () from /usr/lib/libqt-mt.so.3
    #6  0xb73fa96c in QGLWidget::renderText () from /usr/lib/libqt-mt.so.3
    #7  0xb630dc75 in sipQGLWidget::sipEmit_destroyed ()
       from /usr/lib/python2.3/site-packages/qtgl.so
    #8  0x080fde6a in PyCFunction_Call ()
    #9  0x080ab834 in PyEval_CallObjectWithKeywords ()
    #10 0x080a9bee in Py_MakePendingCalls ()
    #11 0x080aa77c in PyEval_EvalCodeEx ()
    #12 0x080acf79 in PyEval_EvalCode ()
    #13 0x080d90db in PyRun_FileExFlags ()
    #14 0x080d885f in PyRun_SimpleFileExFlags ()
    #15 0x08054e95 in Py_Main ()
    #16 0x080549eb in main ()


Commenting out the line with gl.renderText(0, 0, "foo") prevents the
program from crashing.

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.11-1-686-smp
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages python-qt3-gl depends on:
ii  python                        2.3.5-2    An interactive high-level object-o
ii  python2.3-qt3-gl              3.13-4     Qt3 OpenGL bindings for Python 2.3

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to