Qt World Summit: Submit your Presentation

Bad malloc in QGLGlyphCache

  • Hello

    I have a crash when drawing texts with Qt.
    @memset(font_tex->data, 0, font_tex->widthfont_tex->height2);@

    Crashes here( source located at QGLGlyphCache::allocTexture(QGLFontTexture *font_tex) ), and it seems that the previous malloc call, which should allocate memory for font_tex->data, was bad, since font_tex->data is a NULL pointer.
    It was ok before Qt 4.8.

    Does anybody has an idea what may cause this?

  • Could you have run out of memory?

Log in to reply