Menu

#34 glCallLists crashes without Numeric

v2.0
closed-out-of-date
GL (74)
5
2003-04-28
2002-05-19
No

I am using PyOpenGL-2.0.0.44.win32-py2.2.exe and had to write this
workaround:
# The following two lines work with Python2.1, but
crash with Python2.2,
# so we have to loop over all characters
#
glListBase(self.fontlist_index)
# glCallLists(text)
for c
in text:
glCallList(self.fontlist_index + ord(c))

Is it
just me or can anyone verify this?

Discussion

  • Mike C. Fletcher

    Logged In: YES
    user_id=34901

    Could you give me a piece of sample code that exercises the
    error? I'll see if I can get my C-coding friend to look at
    it if I can just pass her a small piece of code that
    triggers the crash.

     
  • Michael Krause

    Michael Krause - 2002-05-27

    wxGLCanvas.py

     
  • Mike C. Fletcher

    Logged In: YES
    user_id=34901

    Well, I can't get the sample code (thank-you) to trigger an
    error. I'm using Python 2.2.1 with the latest PyOpenGL
    binary distribution for Python 2.2 and wxPython 2.2.3pre3.
    (This is under Win2K with an ATI Radeon 7500). I can even
    see the text getting properly displayed.

    Can you try upgrading to equal versions of each lib to see
    if that fixes the bug for you? Any other suggestions for
    replicating the problem?

     
  • Michael Krause

    Michael Krause - 2002-05-29

    Logged In: YES
    user_id=22108

    After installing Numeric-21.0.win32-py2.2.exe everythings
    works as expected. I thought Numeric was optional. Rename
    Numeric.pth to .pth2 to see the crash.
    The Python2.1 vs 2.2
    issue was misleading. 2.1 had Numeric installed on my
    machine, 2.2 not.

    Thanks,
    Michael

     
  • Mike C. Fletcher

    Logged In: YES
    user_id=34901

    Although Numeric is theoretically optional, I don't think
    I've tested with a non-Numeric-enabled Python in ages (Tarn
    may do those tests, however). All of my own code uses
    vertex arrays and the like, so Numeric is basically a
    requirement for anything I work with.

    Suppose the proper thing to do is strip out Numeric and see
    which tests fail. Will put it on the todo list.

     
  • Mike C. Fletcher

    • summary: glCallLists crashes with Python 2.2 --> glCallLists crashes without Numeric
     
  • Mike C. Fletcher

    • assigned_to: twburton --> mcfletch
    • status: open --> closed-out-of-date
     
  • Mike C. Fletcher

    Logged In: YES
    user_id=34901

    Given the rarity of the error, and the futility of running
    OpenGL without Numeric, I am marking this closed. 2.0.1
    explicitly depends on Numeric, regardless of the internal
    attempts to recover in those situations where it is absent.

     

Log in to post a comment.