Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Bad malloc in QGLGlyphCache

    C++ Gurus
    2
    2
    1349
    Loading More Posts
    • 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
      fred741 last edited by

      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 Reply Quote 0
      • R
        rcari last edited by

        Could you have run out of memory?

        1 Reply Last reply Reply Quote 0
        • First post
          Last post