Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Error of qwindowsnativeimage, How fix it ?

Error of qwindowsnativeimage, How fix it ?

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 1.1k Views 1 Watching
  • 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.
  • C Offline
    C Offline
    Corveejet
    wrote on last edited by
    #1

    Hello everyone,

    I have a problem, my app crash after a long moment when it drawing a component....
    I launch the app multiple times and it crash never at same place (one time in QDialog, an other in DrawText...)
    The error is a access violation in the qwindowsnativeimage.cpp.

    You can see in images the stack of the execution.
    errorReport4.PNG errorReport3.PNG errorReport2.PNG errorReport.PNG

    Can anyone help me ?

    For information i use Qt.5.3.0 (msvc2010_opengl) with compiler Microsoft Visual C++ 10.0(x86).

    Regards.

    1 Reply Last reply
    0
    • JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on last edited by
      #2

      Corrupt memory. It would be better to use VS tools to find the problem. On Windows, I would prefer to use VS instead of Qt Creator.

      1 Reply Last reply
      0
      • C Offline
        C Offline
        Corveejet
        wrote on last edited by
        #3

        I have tried with vs but no more details...

        Each time, where the app crash it's in function of QDialog::exec()...

        Nobody else has that ?

        Regards.

        1 Reply Last reply
        0
        • C Offline
          C Offline
          Corveejet
          wrote on last edited by
          #4

          Hello everyone,
          I have some news.

          I find more precisely where the problem is.
          It crash when i render with QPlainTextDocument, I obtain this in output debug$

          QWin32PrintEngine::metric: GetDeviceCaps() failed, might be a driver problem
          ASSERT: "hdc" in file qwindowsnativeimage.cpp, line 74
          createDIB: CreateDIBSection failed."
          

          I must update driver or make somethings else ?

          regards,

          C 1 Reply Last reply
          0
          • C Corveejet

            Hello everyone,
            I have some news.

            I find more precisely where the problem is.
            It crash when i render with QPlainTextDocument, I obtain this in output debug$

            QWin32PrintEngine::metric: GetDeviceCaps() failed, might be a driver problem
            ASSERT: "hdc" in file qwindowsnativeimage.cpp, line 74
            createDIB: CreateDIBSection failed."
            

            I must update driver or make somethings else ?

            regards,

            C Offline
            C Offline
            Corveejet
            wrote on last edited by
            #5

            The problem is Qprinter crash.... The fix is done when you upgrade the version of Qt.

            regards.

            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