Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. C++ Gurus
  4. Bad malloc in QGLGlyphCache

Bad malloc in QGLGlyphCache

Scheduled Pinned Locked Moved C++ Gurus
2 Posts 2 Posters 1.6k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    fred741
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • R Offline
      R Offline
      rcari
      wrote on last edited by
      #2

      Could you have run out of memory?

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved