Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Runtime Error : QWindowsFontEngine, createDIBSection, createEngine
QtWS25 Last Chance

Runtime Error : QWindowsFontEngine, createDIBSection, createEngine

Scheduled Pinned Locked Moved Solved Installation and Deployment
qt5.8mingw53 32bitwindows 8qtcreator 4.2.1
12 Posts 3 Posters 5.1k 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.
  • R Offline
    R Offline
    Reonyx_Tech
    wrote on last edited by
    #1

    Hi there,

    I have porting my current project in Qt5.5 to Qt5.8 and successfully compile and build the project using mingw53 32 bit compiler.
    However, when RUN project, the app suddenly crashed and closed with error as below:

    setGeometry: Unable to set geometry 1920x1080+8+36 on QWidgetWindow/'MainWindowWindow'. Resulting geometry: 1916x1048+8+36 (frame: 8, 36, 8, 8, custom margin: 0, 0, 0, 0, minimum size: 1236x658, maximum size: 16777215x16777215).
    QIODevice::write (QTcpSocket): device not open
    QIODevice::write (QTcpSocket): device not open
    createEngine: CreateFontIndirect failed ()
    QWindowsFontEngine: CreateFontIndirect failed for family 'fk7xl1i-15vl-e7e-2i435n9e6c9la' ()
    createDIB: CreateDIBSection failed.

    The error much more longer than above, mostly is font failed to create etc.

    Anyone can assist on what should I do to fix this error?

    Thanks in advance.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      That's pretty strange. Which version of Windows are you running ?

      Do you also get that from a default application ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      R 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        That's pretty strange. Which version of Windows are you running ?

        Do you also get that from a default application ?

        R Offline
        R Offline
        Reonyx_Tech
        wrote on last edited by
        #3

        @SGaist

        Hi. Thanks for your respond.

        I am using Windows 8.1 Pro 64 bit.
        This is the first time I'm facing this error and only occurs when running Qt project using Qt5.8.0 MinGW compiler (only install mingw).

        Below is the partial of Application Output (because it way too long to paste in here(1485 lines))

        Starting C:\Projects\S5.8\Builds\release\syf.exe...
        "pageLogin" "VIEW" 1
        setGeometry: Unable to set geometry 1920x1080+8+36 on QWidgetWindow/'MainWindowWindow'. Resulting geometry:  1920x1056+8+36 (frame: 8, 36, 8, 8, custom margin: 0, 0, 0, 0, minimum size: 1236x658, maximum size: 16777215x16777215).
        QIODevice::write (QTcpSocket): device not open
        QIODevice::write (QTcpSocket): device not open
        createEngine: CreateFontIndirect failed ()
        QWindowsFontEngine: CreateFontIndirect failed for family 'f3rjyo6-y17-dbv-26lfd4jn36jye' ()
        createEngine: CreateFontIndirect failed ()
        QWindowsFontEngine: CreateFontIndirect failed for family 'f19015mg-mqw-dm2-2my0gpj9uj9a6' ()
        createEngine: CreateFontIndirect failed ()
        QWindowsFontEngine: CreateFontIndirect failed for family 'f11fs9xh-jlm-cp0-2ajax601k1ztp' ()
        createEngine: CreateFontIndirect failed ()
        QWindowsFontEngine: CreateFontIndirect failed for family 'Leelawadee' ()
        QWindowsFontEngine: CreateFontIndirect failed for family 'Leelawadee UI' ()
        QWindowsFontEngine: CreateFontIndirect failed for family 'Leelawadee UI' ()
        QWindowsFontEngine: CreateFontIndirect failed for family 'Leelawadee UI' ()
        QWindowsFontEngine: CreateFontIndirect failed for family 'Leelawadee UI Semilight' ()
        QWindowsFontEngine: CreateFontIndirect failed for family 'Levenim MT' ()
        QWindowsFontEngine: CreateFontIndirect failed for family 'Levenim MT' ()
        QWindowsFontEngine: CreateFontIndirect failed for family 'LilyUPC' ()
        QWindowsFontEngine: CreateFontIndirect failed for family 'LilyUPC' ()
        createEngine: CreateFontIndirect failed ()
        QWindowsFontEngine: CreateFontIndirect failed for family 'f9fc09-150j-e90-2yff8r86f928l' ()
        createEngine: CreateFontIndirect failed ()
        QWindowsFontEngine: CreateFontIndirect failed for family 'f3rjyo6-y17-dbv-26lfd4jn36jye' ()
        createEngine: CreateFontIndirect failed ()
        QWindowsFontEngine: CreateFontIndirect failed for family 'f19015mg-mqw-dm2-2my0gpj9uj9a6' ()
        createEngine: CreateFontIndirect failed ()
        QWindowsFontEngine: CreateFontIndirect failed for family 'f11fs9xh-jlm-cp0-2ajax601k1ztp' ()
        createEngine: CreateFontIndirect failed ()
        QWindowsFontEngine: CreateFontIndirect failed for family 'f3ojdo0-mb0-e5p-39891cgax2fgc' ()
        createEngine: CreateFontIndirect failed ()
        QWindowsFontEngine: CreateFontIndirect failed for family 'f9dti9d-10ww-co0-1i83jdncr5rqd' ()
        createEngine: CreateFontIndirect failed ()
        QWindowsFontEngine: CreateFontIndirect failed for family 'flk1qay-1dog-dpn-17aa9cinkj53k' ()
        createEngine: CreateFontIndirect failed ()
        QWindowsFontEngine: CreateFontIndirect failed for family 'f9fc09-150j-e90-2yff8r86f928l' ()
        createEngine: CreateFontIndirect failed ()
        QWindowsFontEngine: CreateFontIndirect failed for family 'f3rjyo6-y17-dbv-26lfd4jn36jye' ()
        createEngine: CreateFontIndirect failed ()
        QWindowsFontEngine: CreateFontIndirect failed for family 'f19015mg-mqw-dm2-2my0gpj9uj9a6' ()
        createEngine: CreateFontIndirect failed ()
        QWindowsFontEngine: CreateFontIndirect failed for family 'f1ahdq0j-hkk-e49-kmkld3lcbkq' ()
        createEngine: CreateFontIndirect failed ()
        QWindowsFontEngine: CreateFontIndirect failed for family 'f1ahdq0j-hkk-e49-kmkld3lcbkq' ()
        createEngine: CreateFontIndirect failed ()
        QWindowsFontEngine: CreateFontIndirect failed for family 'f11fs9xh-jlm-cp0-2ajax601k1ztp' ()
        createEngine: CreateFontIndirect failed ()
        QWindowsFontEngine: CreateFontIndirect failed for family 'f3ojdo0-mb0-e5p-39891cgax2fgc' ()
        createEngine: CreateFontIndirect failed ()
        QWindowsFontEngine: CreateFontIndirect failed for family 'f9dti9d-10ww-co0-1i83jdncr5rqd' ()
        createEngine: CreateFontIndirect failed ()
        QWindowsFontEngine: CreateFontIndirect failed for family 'flk1qay-1dog-dpn-17aa9cinkj53k' ()
        createEngine: CreateFontIndirect failed ()
        QWindowsFontEngine: CreateFontIndirect failed for family 'f9fc09-150j-e90-2yff8r86f928l' ()
        createEngine: CreateFontIndirect failed ()
        QWindowsFontEngine: CreateFontIndirect failed for family 'f3rjyo6-y17-dbv-26lfd4jn36jye' ()
        createEngine: CreateFontIndirect failed ()
        QWindowsFontEngine: CreateFontIndirect failed for family 'f19015mg-mqw-dm2-2my0gpj9uj9a6' ()
        createEngine: CreateFontIndirect failed ()
        QWindowsFontEngine: CreateFontIndirect failed for family 'Tahoma' ()
        createEngine: CreateFontIndirect failed ()
        QWindowsFontEngine: CreateFontIndirect failed for family 'f1iygtva-o6u-f3p-gxak5uak8pzx' ()
        createEngine: CreateFontIndirect failed ()
        QWindowsFontEngine: CreateFontIndirect failed for family 'f11fs9xh-jlm-cp0-2ajax601k1ztp' ()
        createEngine: CreateFontIndirect failed ()
        QWindowsFontEngine: CreateFontIndirect failed for family 'f3ojdo0-mb0-e5p-39891cgax2fgc' ()
        createEngine: CreateFontIndirect failed ()
        QWindowsFontEngine: CreateFontIndirect failed for family 'f9dti9d-10ww-co0-1i83jdncr5rqd' ()
        createEngine: CreateFontIndirect failed ()
        QWindowsFontEngine: CreateFontIndirect failed for family 'flk1qay-1dog-dpn-17aa9cinkj53k' ()
        createEngine: CreateFontIndirect failed ()
        QWindowsFontEngine: CreateFontIndirect failed for family 'f9fc09-150j-e90-2yff8r86f928l' ()
        createEngine: CreateFontIndirect failed ()
        QWindowsFontEngine: CreateFontIndirect failed for family 'f3rjyo6-y17-dbv-26lfd4jn36jye' ()
        createEngine: CreateFontIndirect failed ()
        QWindowsFontEngine: CreateFontIndirect failed for family 'f19015mg-mqw-dm2-2my0gpj9uj9a6' ()
        createEngine: CreateFontIndirect failed ()
        QWindowsFontEngine: CreateFontIndirect failed for family 'f1ahdq0j-hkk-e49-kmkld3lcbkq' ()
        createDIB: CreateDIBSection failed.
        C:\Projects\S5.8\Builds\release\syf.exe exited with code 255
        

        Mostly the error is about QWindowsFontEngine.
        What could be the causes?
        Is there any other application that needs to be installed to prevent those font errors?

        Kindly assist. Thanks again :)

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          AFAIK; no you shouldn't need anything more.

          So you don't have that problem if building with a MSVC version of Qt ?

          Again, did you try with a default application ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          R 1 Reply Last reply
          0
          • SGaistS SGaist

            AFAIK; no you shouldn't need anything more.

            So you don't have that problem if building with a MSVC version of Qt ?

            Again, did you try with a default application ?

            R Offline
            R Offline
            Reonyx_Tech
            wrote on last edited by
            #5

            @SGaist

            Pardon me, Default Application as Hello World? Nothing as those errors occurred.

            As for MSVC, no, haven't tried because we intended to use MinGW compiler only.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Ok, so it's something in your application.

              What type of application is ? Widget ? QtQuick ?

              Are you restoring the geometry on startup ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              R 1 Reply Last reply
              0
              • SGaistS SGaist

                Ok, so it's something in your application.

                What type of application is ? Widget ? QtQuick ?

                Are you restoring the geometry on startup ?

                R Offline
                R Offline
                Reonyx_Tech
                wrote on last edited by
                #7

                @SGaist

                It is widget application.
                On start up it did maximize app window, but will it caused the fonts error?
                Or because of webkit?

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  Webkit ? Did you build it yourself since it's been removed from the binary package in 5.6 ?

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  R 1 Reply Last reply
                  0
                  • SGaistS SGaist

                    Webkit ? Did you build it yourself since it's been removed from the binary package in 5.6 ?

                    R Offline
                    R Offline
                    Reonyx_Tech
                    wrote on last edited by
                    #9

                    @SGaist

                    I'm using this https://github.com/annulen/webkit/releases/download/qtwebkit-tp5/qtwebkit-tp5-qt58-mingw530-x86.zip
                    Last time I've tried to build the Webkit package using qt5.8, but it shows Entry Point Not Found error when running the project, therefore I'm just using built files from the URL above. The project was able to compile and run, however, it crashed after few seconds (as in errors show in the previous posts).

                    K 1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      @Konstantin-Tokarev does this error ring a bell ?

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      0
                      • R Reonyx_Tech

                        @SGaist

                        I'm using this https://github.com/annulen/webkit/releases/download/qtwebkit-tp5/qtwebkit-tp5-qt58-mingw530-x86.zip
                        Last time I've tried to build the Webkit package using qt5.8, but it shows Entry Point Not Found error when running the project, therefore I'm just using built files from the URL above. The project was able to compile and run, however, it crashed after few seconds (as in errors show in the previous posts).

                        K Offline
                        K Offline
                        Konstantin Tokarev
                        wrote on last edited by
                        #11

                        @Reonyx_Tech Previous issue with "entry point not found" was caused by Qt 5.5 binaries being loaded by application. Errors you've posted above may also be caused by the same thing.

                        R 1 Reply Last reply
                        1
                        • K Konstantin Tokarev

                          @Reonyx_Tech Previous issue with "entry point not found" was caused by Qt 5.5 binaries being loaded by application. Errors you've posted above may also be caused by the same thing.

                          R Offline
                          R Offline
                          Reonyx_Tech
                          wrote on last edited by
                          #12

                          @Konstantin-Tokarev @SGaist

                          I found the cause of those error, it is due to fonts.css in html files.
                          When I removed the link from <head>, the application was successfully run without crashed.

                          Just wonder, how come its not working now in qt5.8 but just nice back then in qt5.5 ?

                          BTW, thanks both for your help and idea :)

                          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