#99 Crashes on launch


Windows 7 Ultimate, x64, clean install of FoF - upon launch music starts to play and the program crashes part way through drawing the screen. An error dialog is displayed and upon clicking OK the program exists.

The error log contains the following:
Traceback (most recent call last):
File "GameEngine.pyo", line 355, in run
File "GameEngine.pyo", line 347, in main
File "View.pyo", line 183, in render
File "Menu.pyo", line 207, in render
File "Font.pyo", line 179, in render
File "Font.pyo", line 155, in _renderString
File "data/PyOpenGL-3.0.0a5-py2.5.egg\OpenGL\error.py", line 188, in glCheckError
GLError: GLError(
err = 1285,
description = 'out of memory',
baseOperation = glDrawArrays,
cArguments = (GL_QUADS, 0, 36)

There is plenty of free system memory (4Gb total RAM, Intel DVMT dynamic video memory)


  • Zrax

    Zrax - 2010-09-18

    I'm not sure if your issue is the same as mine, but I got my copy working by changing line 189 of Font.py as follows:

    - t = TextureAtlas(size = glGetInteger(GL_MAX_TEXTURE_SIZE))
    + t= TextureAtlas()

    Turns out that with GL_MAX_TEXTURE_SIZE, FoF was trying to allocate a 1 GB texture. This would be fine for my video card (though a bit extreme), but not so fine for PyOpenGL. The default texture size (1024x1024) is more than plenty for the font rendering.


Log in to post a comment.