July 18, 2012

fred741 fred741
Lab Rat
6 posts

Bad malloc in QGLGlyphCache

 

Hello

I have a crash when drawing texts with Qt.

  1. memset(font_tex->data, 0, font_tex->width*font_tex->height*2);

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?

1 reply

August 14, 2012

rcari rcari
Hobby Entomologist
162 posts

Could you have run out of memory?

 
  ‹‹ Qt interface      [SOLVED] How to convert vector iterator to int? ››

You must log in to post a reply. Not a member yet? Register here!