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. Deployed program fails to load JPEG
Forum Updated to NodeBB v4.3 + New Features

Deployed program fails to load JPEG

Scheduled Pinned Locked Moved Solved General and Desktop
28 Posts 6 Posters 4.8k Views 2 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.
  • SGaistS SGaist

    Hi,

    You can run your application from the command line after setting the QT_DEBUG_PLUGINS environment variable to 1.

    That will give you more information about what is happening.

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

    @SGaist Hi,

    Thanks for the suggestion, but could you show me how to redirect QT_DEBUG_PLUGINS output to a powershell window or a log file, when running the deployed program? I tried qInstallMessageHandler but it only logged null qpixmap warning.

    However, running from Qt Creator gave the result that all plugins are loaded correctly and successfully:

    Line 388: loaded library "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qgif.dll"
    Line 389: loaded library "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qicns.dll"
    Line 390: loaded library "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qico.dll"
    Line 391: loaded library "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qjpeg.dll"
    Line 392: loaded library "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qsvg.dll"
    Line 393: loaded library "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qtga.dll"
    Line 394: loaded library "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qtiff.dll"
    Line 395: loaded library "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qwbmp.dll"
    Line 396: loaded library "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qwebp.dll"
    Line 554: loaded library "F:/Qt/5.15.0/msvc2019_64/plugins/platforms/qwindows.dll"
    Line 625: loaded library "F:/Qt/5.15.0/msvc2019_64/plugins/styles/qwindowsvistastyle.dll"
    

    I also tried loading qjpeg.dll manully by adding following code then compile&deploy(don't know if it's correct though):

    QPluginLoader loader("./imageformats/qjpeg.dll");
    if(!loader.load())
    {
        QMessageBox::warning(nullptr, "warning", "qjpeg not loaded");
    }
    

    And the warning box showed up.

    jsulmJ Christian EhrlicherC 2 Replies Last reply
    0
    • C closer_ex

      @SGaist Hi,

      Thanks for the suggestion, but could you show me how to redirect QT_DEBUG_PLUGINS output to a powershell window or a log file, when running the deployed program? I tried qInstallMessageHandler but it only logged null qpixmap warning.

      However, running from Qt Creator gave the result that all plugins are loaded correctly and successfully:

      Line 388: loaded library "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qgif.dll"
      Line 389: loaded library "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qicns.dll"
      Line 390: loaded library "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qico.dll"
      Line 391: loaded library "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qjpeg.dll"
      Line 392: loaded library "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qsvg.dll"
      Line 393: loaded library "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qtga.dll"
      Line 394: loaded library "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qtiff.dll"
      Line 395: loaded library "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qwbmp.dll"
      Line 396: loaded library "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qwebp.dll"
      Line 554: loaded library "F:/Qt/5.15.0/msvc2019_64/plugins/platforms/qwindows.dll"
      Line 625: loaded library "F:/Qt/5.15.0/msvc2019_64/plugins/styles/qwindowsvistastyle.dll"
      

      I also tried loading qjpeg.dll manully by adding following code then compile&deploy(don't know if it's correct though):

      QPluginLoader loader("./imageformats/qjpeg.dll");
      if(!loader.load())
      {
          QMessageBox::warning(nullptr, "warning", "qjpeg not loaded");
      }
      

      And the warning box showed up.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #6

      @closer_ex

      set QT_DEBUG_PLUGINS=1
      myApp > myApp.log
      

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      C 1 Reply Last reply
      1
      • C closer_ex

        @SGaist Hi,

        Thanks for the suggestion, but could you show me how to redirect QT_DEBUG_PLUGINS output to a powershell window or a log file, when running the deployed program? I tried qInstallMessageHandler but it only logged null qpixmap warning.

        However, running from Qt Creator gave the result that all plugins are loaded correctly and successfully:

        Line 388: loaded library "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qgif.dll"
        Line 389: loaded library "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qicns.dll"
        Line 390: loaded library "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qico.dll"
        Line 391: loaded library "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qjpeg.dll"
        Line 392: loaded library "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qsvg.dll"
        Line 393: loaded library "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qtga.dll"
        Line 394: loaded library "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qtiff.dll"
        Line 395: loaded library "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qwbmp.dll"
        Line 396: loaded library "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qwebp.dll"
        Line 554: loaded library "F:/Qt/5.15.0/msvc2019_64/plugins/platforms/qwindows.dll"
        Line 625: loaded library "F:/Qt/5.15.0/msvc2019_64/plugins/styles/qwindowsvistastyle.dll"
        

        I also tried loading qjpeg.dll manully by adding following code then compile&deploy(don't know if it's correct though):

        QPluginLoader loader("./imageformats/qjpeg.dll");
        if(!loader.load())
        {
            QMessageBox::warning(nullptr, "warning", "qjpeg not loaded");
        }
        

        And the warning box showed up.

        Christian EhrlicherC Online
        Christian EhrlicherC Online
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on last edited by
        #7

        @closer_ex said in Deployed program fails to load JPEG:

        F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qjpeg.dll

        As you can see the library is loaded. There must be something else wrong are you sure the jpeg file exists on the deployed system. Check with QFile::exists()

        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
        Visit the Qt Academy at https://academy.qt.io/catalog

        C 1 Reply Last reply
        0
        • Christian EhrlicherC Christian Ehrlicher

          @closer_ex said in Deployed program fails to load JPEG:

          F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qjpeg.dll

          As you can see the library is loaded. There must be something else wrong are you sure the jpeg file exists on the deployed system. Check with QFile::exists()

          C Offline
          C Offline
          closer_ex
          wrote on last edited by
          #8

          @Christian-Ehrlicher
          qjpeg.dll is loaded when running directly from Qt Creator, and the pictures show normally. Problem is the deployed one won't load it.

          The reason for which I'm sure the file exists is that they are readed from music tag(mp3, flac for example), the music files can be loaded and played, the covers exist , and absolute paths are passed for both function.

          1 Reply Last reply
          0
          • Christian EhrlicherC Online
            Christian EhrlicherC Online
            Christian Ehrlicher
            Lifetime Qt Champion
            wrote on last edited by
            #9

            @closer_ex said in Deployed program fails to load JPEG:

            qjpeg.dll is loaded when running directly from Qt Creator, and the pictures show normally. Problem is the deployed one won't load it.

            Please read my post, I never asked you to try to load a plugin with QLibrary - it's simply useless what you're doing there.
            You should check if the images exists on the deployed machine with QFile::exits()

            Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
            Visit the Qt Academy at https://academy.qt.io/catalog

            C 1 Reply Last reply
            0
            • Christian EhrlicherC Christian Ehrlicher

              @closer_ex said in Deployed program fails to load JPEG:

              qjpeg.dll is loaded when running directly from Qt Creator, and the pictures show normally. Problem is the deployed one won't load it.

              Please read my post, I never asked you to try to load a plugin with QLibrary - it's simply useless what you're doing there.
              You should check if the images exists on the deployed machine with QFile::exits()

              C Offline
              C Offline
              closer_ex
              wrote on last edited by
              #10

              @Christian-Ehrlicher
              I DO read your posts, and I am saying the images exist on the deployed machine. QFile::exists() is called when I check for music info at program startup, and I am using absolute path in every case - info storing, parsing and saving.

              This has been tested on different machines, and the first thing I did when this glitch came out is checking for file existence.

              And I am not loading a plugin with QPluginLoader - it's just a blind try and have been discarded.

              1 Reply Last reply
              0
              • Christian EhrlicherC Online
                Christian EhrlicherC Online
                Christian Ehrlicher
                Lifetime Qt Champion
                wrote on last edited by
                #11

                Please convert the file to a png and see if it works then on your deployed machine. I still think the path may be wrong.
                Also you did not post the output of QT_DEBUG_PLUGINS to see if the plugin can be really loaded.

                Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                Visit the Qt Academy at https://academy.qt.io/catalog

                1 Reply Last reply
                1
                • jsulmJ jsulm

                  @closer_ex

                  set QT_DEBUG_PLUGINS=1
                  myApp > myApp.log
                  
                  C Offline
                  C Offline
                  closer_ex
                  wrote on last edited by closer_ex
                  #12

                  @jsulm said in Deployed program fails to load JPEG:

                  @closer_ex

                  set QT_DEBUG_PLUGINS=1
                  myApp > myApp.log
                  

                  I tried this but unfortunately the output file is 0 KB. I've set the environment variable and Qt Creator is producing plugin debug output.

                  @Christian-Ehrlicher said in Deployed program fails to load JPEG:

                  Please convert the file to a png and see if it works then on your deployed machine. I still think the path may be wrong.
                  Also you did not post the output of QT_DEBUG_PLUGINS to see if the plugin can be really loaded.

                  A few songs use png format cover and they are all loaded correctly, and I am also using a default png cover for those without a cover tag.

                  For the full QT_DEBUG_PLUGINS output:

                  11:18:32: Starting F:\QtProjects\build-QXGMusic-Desktop_Qt_5_15_0_MSVC2019_64bit-Release\release\QXGMusic.exe ...
                  QFactoryLoader::QFactoryLoader() checking directory path "F:/Qt/5.15.0/msvc2019_64/plugins/iconengines" ...
                  QFactoryLoader::QFactoryLoader() looking at "F:/Qt/5.15.0/msvc2019_64/plugins/iconengines/qsvgicon.dll"
                  Found metadata in lib F:/Qt/5.15.0/msvc2019_64/plugins/iconengines/qsvgicon.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QIconEngineFactoryInterface",
                      "MetaData": {
                          "Keys": [
                              "svg",
                              "svgz",
                              "svg.gz"
                          ]
                      },
                      "archreq": 0,
                      "className": "QSvgIconPlugin",
                      "debug": false,
                      "version": 331520
                  }
                  Got keys from plugin meta data ("svg", "svgz", "svg.gz")
                  QFactoryLoader::QFactoryLoader() looking at "F:/Qt/5.15.0/msvc2019_64/plugins/iconengines/qsvgicond.dll"
                  Found metadata in lib F:/Qt/5.15.0/msvc2019_64/plugins/iconengines/qsvgicond.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QIconEngineFactoryInterface",
                      "MetaData": {
                          "Keys": [
                              "svg",
                              "svgz",
                              "svg.gz"
                          ]
                      },
                      "archreq": 1,
                      "className": "QSvgIconPlugin",
                      "debug": true,
                      "version": 331520
                  }
                  "The plugin 'F:/Qt/5.15.0/msvc2019_64/plugins/iconengines/qsvgicond.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                           not a plugin
                  QFactoryLoader::QFactoryLoader() checking directory path "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats" ...
                  QFactoryLoader::QFactoryLoader() looking at "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qgif.dll"
                  Found metadata in lib F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qgif.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
                      "MetaData": {
                          "Keys": [
                              "gif"
                          ],
                          "MimeTypes": [
                              "image/gif"
                          ]
                      },
                      "archreq": 0,
                      "className": "QGifPlugin",
                      "debug": false,
                      "version": 331520
                  }
                  Got keys from plugin meta data ("gif")
                  QFactoryLoader::QFactoryLoader() looking at "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qgifd.dll"
                  Found metadata in lib F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qgifd.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
                      "MetaData": {
                          "Keys": [
                              "gif"
                          ],
                          "MimeTypes": [
                              "image/gif"
                          ]
                      },
                      "archreq": 1,
                      "className": "QGifPlugin",
                      "debug": true,
                      "version": 331520
                  }
                  "The plugin 'F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qgifd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                           not a plugin
                  QFactoryLoader::QFactoryLoader() looking at "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qicns.dll"
                  Found metadata in lib F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qicns.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
                      "MetaData": {
                          "Keys": [
                              "icns"
                          ],
                          "MimeTypes": [
                              "image/x-icns"
                          ]
                      },
                      "archreq": 0,
                      "className": "QICNSPlugin",
                      "debug": false,
                      "version": 331520
                  }
                  Got keys from plugin meta data ("icns")
                  QFactoryLoader::QFactoryLoader() looking at "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qicnsd.dll"
                  Found metadata in lib F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qicnsd.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
                      "MetaData": {
                          "Keys": [
                              "icns"
                          ],
                          "MimeTypes": [
                              "image/x-icns"
                          ]
                      },
                      "archreq": 1,
                      "className": "QICNSPlugin",
                      "debug": true,
                      "version": 331520
                  }
                  "The plugin 'F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qicnsd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                           not a plugin
                  QFactoryLoader::QFactoryLoader() looking at "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qico.dll"
                  Found metadata in lib F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qico.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
                      "MetaData": {
                          "Keys": [
                              "ico",
                              "cur"
                          ],
                          "MimeTypes": [
                              "image/vnd.microsoft.icon",
                              "image/vnd.microsoft.icon"
                          ]
                      },
                      "archreq": 0,
                      "className": "QICOPlugin",
                      "debug": false,
                      "version": 331520
                  }
                  Got keys from plugin meta data ("ico", "cur")
                  QFactoryLoader::QFactoryLoader() looking at "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qicod.dll"
                  Found metadata in lib F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qicod.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
                      "MetaData": {
                          "Keys": [
                              "ico",
                              "cur"
                          ],
                          "MimeTypes": [
                              "image/vnd.microsoft.icon",
                              "image/vnd.microsoft.icon"
                          ]
                      },
                      "archreq": 1,
                      "className": "QICOPlugin",
                      "debug": true,
                      "version": 331520
                  }
                  "The plugin 'F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qicod.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                           not a plugin
                  QFactoryLoader::QFactoryLoader() looking at "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qjpeg.dll"
                  Found metadata in lib F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qjpeg.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
                      "MetaData": {
                          "Keys": [
                              "jpg",
                              "jpeg"
                          ],
                          "MimeTypes": [
                              "image/jpeg",
                              "image/jpeg"
                          ]
                      },
                      "archreq": 0,
                      "className": "QJpegPlugin",
                      "debug": false,
                      "version": 331520
                  }
                  Got keys from plugin meta data ("jpg", "jpeg")
                  QFactoryLoader::QFactoryLoader() looking at "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qjpegd.dll"
                  Found metadata in lib F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qjpegd.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
                      "MetaData": {
                          "Keys": [
                              "jpg",
                              "jpeg"
                          ],
                          "MimeTypes": [
                              "image/jpeg",
                              "image/jpeg"
                          ]
                      },
                      "archreq": 1,
                      "className": "QJpegPlugin",
                      "debug": true,
                      "version": 331520
                  }
                  "The plugin 'F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qjpegd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                           not a plugin
                  QFactoryLoader::QFactoryLoader() looking at "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qsvg.dll"
                  Found metadata in lib F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qsvg.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
                      "MetaData": {
                          "Keys": [
                              "svg",
                              "svgz"
                          ],
                          "MimeTypes": [
                              "image/svg+xml",
                              "image/svg+xml-compressed"
                          ]
                      },
                      "archreq": 0,
                      "className": "QSvgPlugin",
                      "debug": false,
                      "version": 331520
                  }
                  Got keys from plugin meta data ("svg", "svgz")
                  QFactoryLoader::QFactoryLoader() looking at "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qsvgd.dll"
                  Found metadata in lib F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qsvgd.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
                      "MetaData": {
                          "Keys": [
                              "svg",
                              "svgz"
                          ],
                          "MimeTypes": [
                              "image/svg+xml",
                              "image/svg+xml-compressed"
                          ]
                      },
                      "archreq": 1,
                      "className": "QSvgPlugin",
                      "debug": true,
                      "version": 331520
                  }
                  "The plugin 'F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qsvgd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                           not a plugin
                  QFactoryLoader::QFactoryLoader() looking at "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qtga.dll"
                  Found metadata in lib F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qtga.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
                      "MetaData": {
                          "Keys": [
                              "tga"
                          ],
                          "MimeTypes": [
                              "image/x-tga"
                          ]
                      },
                      "archreq": 0,
                      "className": "QTgaPlugin",
                      "debug": false,
                      "version": 331520
                  }
                  Got keys from plugin meta data ("tga")
                  QFactoryLoader::QFactoryLoader() looking at "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qtgad.dll"
                  Found metadata in lib F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qtgad.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
                      "MetaData": {
                          "Keys": [
                              "tga"
                          ],
                          "MimeTypes": [
                              "image/x-tga"
                          ]
                      },
                      "archreq": 1,
                      "className": "QTgaPlugin",
                      "debug": true,
                      "version": 331520
                  }
                  "The plugin 'F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qtgad.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                           not a plugin
                  QFactoryLoader::QFactoryLoader() looking at "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qtiff.dll"
                  Found metadata in lib F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qtiff.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
                      "MetaData": {
                          "Keys": [
                              "tiff",
                              "tif"
                          ],
                          "MimeTypes": [
                              "image/tiff",
                              "image/tiff"
                          ]
                      },
                      "archreq": 0,
                      "className": "QTiffPlugin",
                      "debug": false,
                      "version": 331520
                  }
                  Got keys from plugin meta data ("tiff", "tif")
                  QFactoryLoader::QFactoryLoader() looking at "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qtiffd.dll"
                  Found metadata in lib F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qtiffd.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
                      "MetaData": {
                          "Keys": [
                              "tiff",
                              "tif"
                          ],
                          "MimeTypes": [
                              "image/tiff",
                              "image/tiff"
                          ]
                      },
                      "archreq": 1,
                      "className": "QTiffPlugin",
                      "debug": true,
                      "version": 331520
                  }
                  "The plugin 'F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qtiffd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                           not a plugin
                  QFactoryLoader::QFactoryLoader() looking at "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qwbmp.dll"
                  Found metadata in lib F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qwbmp.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
                      "MetaData": {
                          "Keys": [
                              "wbmp"
                          ],
                          "MimeTypes": [
                              "image/vnd.wap.wbmp"
                          ]
                      },
                      "archreq": 0,
                      "className": "QWbmpPlugin",
                      "debug": false,
                      "version": 331520
                  }
                  Got keys from plugin meta data ("wbmp")
                  QFactoryLoader::QFactoryLoader() looking at "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qwbmpd.dll"
                  Found metadata in lib F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qwbmpd.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
                      "MetaData": {
                          "Keys": [
                              "wbmp"
                          ],
                          "MimeTypes": [
                              "image/vnd.wap.wbmp"
                          ]
                      },
                      "archreq": 1,
                      "className": "QWbmpPlugin",
                      "debug": true,
                      "version": 331520
                  }
                  "The plugin 'F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qwbmpd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                           not a plugin
                  QFactoryLoader::QFactoryLoader() looking at "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qwebp.dll"
                  Found metadata in lib F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qwebp.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
                      "MetaData": {
                          "Keys": [
                              "webp"
                          ],
                          "MimeTypes": [
                              "image/webp"
                          ]
                      },
                      "archreq": 0,
                      "className": "QWebpPlugin",
                      "debug": false,
                      "version": 331520
                  }
                  Got keys from plugin meta data ("webp")
                  QFactoryLoader::QFactoryLoader() looking at "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qwebpd.dll"
                  Found metadata in lib F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qwebpd.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
                      "MetaData": {
                          "Keys": [
                              "webp"
                          ],
                          "MimeTypes": [
                              "image/webp"
                          ]
                      },
                      "archreq": 1,
                      "className": "QWebpPlugin",
                      "debug": true,
                      "version": 331520
                  }
                  "The plugin 'F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qwebpd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                           not a plugin
                  loaded library "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qgif.dll"
                  loaded library "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qicns.dll"
                  loaded library "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qico.dll"
                  loaded library "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qjpeg.dll"
                  loaded library "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qsvg.dll"
                  loaded library "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qtga.dll"
                  loaded library "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qtiff.dll"
                  loaded library "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qwbmp.dll"
                  loaded library "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qwebp.dll"
                  QFactoryLoader::QFactoryLoader() checking directory path "F:/Qt/5.15.0/msvc2019_64/plugins/platforms" ...
                  QFactoryLoader::QFactoryLoader() looking at "F:/Qt/5.15.0/msvc2019_64/plugins/platforms/qdirect2d.dll"
                  Found metadata in lib F:/Qt/5.15.0/msvc2019_64/plugins/platforms/qdirect2d.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                      "MetaData": {
                          "Keys": [
                              "direct2d"
                          ]
                      },
                      "archreq": 0,
                      "className": "QWindowsDirect2DIntegrationPlugin",
                      "debug": false,
                      "version": 331520
                  }
                  Got keys from plugin meta data ("direct2d")
                  QFactoryLoader::QFactoryLoader() looking at "F:/Qt/5.15.0/msvc2019_64/plugins/platforms/qdirect2dd.dll"
                  Found metadata in lib F:/Qt/5.15.0/msvc2019_64/plugins/platforms/qdirect2dd.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                      "MetaData": {
                          "Keys": [
                              "direct2d"
                          ]
                      },
                      "archreq": 1,
                      "className": "QWindowsDirect2DIntegrationPlugin",
                      "debug": true,
                      "version": 331520
                  }
                  "The plugin 'F:/Qt/5.15.0/msvc2019_64/plugins/platforms/qdirect2dd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                           not a plugin
                  QFactoryLoader::QFactoryLoader() looking at "F:/Qt/5.15.0/msvc2019_64/plugins/platforms/qminimal.dll"
                  Found metadata in lib F:/Qt/5.15.0/msvc2019_64/plugins/platforms/qminimal.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                      "MetaData": {
                          "Keys": [
                              "minimal"
                          ]
                      },
                      "archreq": 0,
                      "className": "QMinimalIntegrationPlugin",
                      "debug": false,
                      "version": 331520
                  }
                  Got keys from plugin meta data ("minimal")
                  QFactoryLoader::QFactoryLoader() looking at "F:/Qt/5.15.0/msvc2019_64/plugins/platforms/qminimald.dll"
                  Found metadata in lib F:/Qt/5.15.0/msvc2019_64/plugins/platforms/qminimald.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                      "MetaData": {
                          "Keys": [
                              "minimal"
                          ]
                      },
                      "archreq": 1,
                      "className": "QMinimalIntegrationPlugin",
                      "debug": true,
                      "version": 331520
                  }
                  "The plugin 'F:/Qt/5.15.0/msvc2019_64/plugins/platforms/qminimald.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                           not a plugin
                  QFactoryLoader::QFactoryLoader() looking at "F:/Qt/5.15.0/msvc2019_64/plugins/platforms/qoffscreen.dll"
                  Found metadata in lib F:/Qt/5.15.0/msvc2019_64/plugins/platforms/qoffscreen.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                      "MetaData": {
                          "Keys": [
                              "offscreen"
                          ]
                      },
                      "archreq": 0,
                      "className": "QOffscreenIntegrationPlugin",
                      "debug": false,
                      "version": 331520
                  }
                  Got keys from plugin meta data ("offscreen")
                  QFactoryLoader::QFactoryLoader() looking at "F:/Qt/5.15.0/msvc2019_64/plugins/platforms/qoffscreend.dll"
                  Found metadata in lib F:/Qt/5.15.0/msvc2019_64/plugins/platforms/qoffscreend.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                      "MetaData": {
                          "Keys": [
                              "offscreen"
                          ]
                      },
                      "archreq": 1,
                      "className": "QOffscreenIntegrationPlugin",
                      "debug": true,
                      "version": 331520
                  }
                  "The plugin 'F:/Qt/5.15.0/msvc2019_64/plugins/platforms/qoffscreend.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                           not a plugin
                  QFactoryLoader::QFactoryLoader() looking at "F:/Qt/5.15.0/msvc2019_64/plugins/platforms/qwebgl.dll"
                  Found metadata in lib F:/Qt/5.15.0/msvc2019_64/plugins/platforms/qwebgl.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                      "MetaData": {
                          "Keys": [
                              "webgl"
                          ]
                      },
                      "archreq": 0,
                      "className": "QWebGLIntegrationPlugin",
                      "debug": false,
                      "version": 331520
                  }
                  Got keys from plugin meta data ("webgl")
                  QFactoryLoader::QFactoryLoader() looking at "F:/Qt/5.15.0/msvc2019_64/plugins/platforms/qwebgld.dll"
                  Found metadata in lib F:/Qt/5.15.0/msvc2019_64/plugins/platforms/qwebgld.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                      "MetaData": {
                          "Keys": [
                              "webgl"
                          ]
                      },
                      "archreq": 1,
                      "className": "QWebGLIntegrationPlugin",
                      "debug": true,
                      "version": 331520
                  }
                  "The plugin 'F:/Qt/5.15.0/msvc2019_64/plugins/platforms/qwebgld.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                           not a plugin
                  QFactoryLoader::QFactoryLoader() looking at "F:/Qt/5.15.0/msvc2019_64/plugins/platforms/qwindows.dll"
                  Found metadata in lib F:/Qt/5.15.0/msvc2019_64/plugins/platforms/qwindows.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                      "MetaData": {
                          "Keys": [
                              "windows"
                          ]
                      },
                      "archreq": 0,
                      "className": "QWindowsIntegrationPlugin",
                      "debug": false,
                      "version": 331520
                  }
                  Got keys from plugin meta data ("windows")
                  QFactoryLoader::QFactoryLoader() looking at "F:/Qt/5.15.0/msvc2019_64/plugins/platforms/qwindowsd.dll"
                  Found metadata in lib F:/Qt/5.15.0/msvc2019_64/plugins/platforms/qwindowsd.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                      "MetaData": {
                          "Keys": [
                              "windows"
                          ]
                      },
                      "archreq": 1,
                      "className": "QWindowsIntegrationPlugin",
                      "debug": true,
                      "version": 331520
                  }
                  "The plugin 'F:/Qt/5.15.0/msvc2019_64/plugins/platforms/qwindowsd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                           not a plugin
                  QFactoryLoader::QFactoryLoader() checking directory path "F:/QtProjects/build-QXGMusic-Desktop_Qt_5_15_0_MSVC2019_64bit-Release/release/platforms" ...
                  loaded library "F:/Qt/5.15.0/msvc2019_64/plugins/platforms/qwindows.dll"
                  QFactoryLoader::QFactoryLoader() checking directory path "F:/Qt/5.15.0/msvc2019_64/plugins/platformthemes" ...
                  QFactoryLoader::QFactoryLoader() looking at "F:/Qt/5.15.0/msvc2019_64/plugins/platformthemes/qxdgdesktopportal.dll"
                  Found metadata in lib F:/Qt/5.15.0/msvc2019_64/plugins/platformthemes/qxdgdesktopportal.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QPA.QPlatformThemeFactoryInterface.5.1",
                      "MetaData": {
                          "Keys": [
                              "xdgdesktopportal",
                              "flatpak",
                              "snap"
                          ]
                      },
                      "archreq": 0,
                      "className": "QXdgDesktopPortalThemePlugin",
                      "debug": false,
                      "version": 331520
                  }
                  Got keys from plugin meta data ("xdgdesktopportal", "flatpak", "snap")
                  QFactoryLoader::QFactoryLoader() looking at "F:/Qt/5.15.0/msvc2019_64/plugins/platformthemes/qxdgdesktopportald.dll"
                  Found metadata in lib F:/Qt/5.15.0/msvc2019_64/plugins/platformthemes/qxdgdesktopportald.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QPA.QPlatformThemeFactoryInterface.5.1",
                      "MetaData": {
                          "Keys": [
                              "xdgdesktopportal",
                              "flatpak",
                              "snap"
                          ]
                      },
                      "archreq": 1,
                      "className": "QXdgDesktopPortalThemePlugin",
                      "debug": true,
                      "version": 331520
                  }
                  "The plugin 'F:/Qt/5.15.0/msvc2019_64/plugins/platformthemes/qxdgdesktopportald.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                           not a plugin
                  QFactoryLoader::QFactoryLoader() checking directory path "F:/QtProjects/build-QXGMusic-Desktop_Qt_5_15_0_MSVC2019_64bit-Release/release/platformthemes" ...
                  QFactoryLoader::QFactoryLoader() checking directory path "F:/Qt/5.15.0/msvc2019_64/plugins/styles" ...
                  QFactoryLoader::QFactoryLoader() looking at "F:/Qt/5.15.0/msvc2019_64/plugins/styles/qwindowsvistastyle.dll"
                  Found metadata in lib F:/Qt/5.15.0/msvc2019_64/plugins/styles/qwindowsvistastyle.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QStyleFactoryInterface",
                      "MetaData": {
                          "Keys": [
                              "windowsvista"
                          ]
                      },
                      "archreq": 0,
                      "className": "QWindowsVistaStylePlugin",
                      "debug": false,
                      "version": 331520
                  }
                  Got keys from plugin meta data ("windowsvista")
                  QFactoryLoader::QFactoryLoader() looking at "F:/Qt/5.15.0/msvc2019_64/plugins/styles/qwindowsvistastyled.dll"
                  Found metadata in lib F:/Qt/5.15.0/msvc2019_64/plugins/styles/qwindowsvistastyled.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QStyleFactoryInterface",
                      "MetaData": {
                          "Keys": [
                              "windowsvista"
                          ]
                      },
                      "archreq": 1,
                      "className": "QWindowsVistaStylePlugin",
                      "debug": true,
                      "version": 331520
                  }
                  "The plugin 'F:/Qt/5.15.0/msvc2019_64/plugins/styles/qwindowsvistastyled.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                           not a plugin
                  QFactoryLoader::QFactoryLoader() checking directory path "F:/QtProjects/build-QXGMusic-Desktop_Qt_5_15_0_MSVC2019_64bit-Release/release/styles" ...
                  loaded library "F:/Qt/5.15.0/msvc2019_64/plugins/styles/qwindowsvistastyle.dll"
                  QFactoryLoader::QFactoryLoader() checking directory path "F:/Qt/5.15.0/msvc2019_64/plugins/accessible" ...
                  QFactoryLoader::QFactoryLoader() checking directory path "F:/QtProjects/build-QXGMusic-Desktop_Qt_5_15_0_MSVC2019_64bit-Release/release/accessible" ...
                  QFactoryLoader::QFactoryLoader() checking directory path "F:/Qt/5.15.0/msvc2019_64/plugins/accessiblebridge" ...
                  QFactoryLoader::QFactoryLoader() checking directory path "F:/QtProjects/build-QXGMusic-Desktop_Qt_5_15_0_MSVC2019_64bit-Release/release/accessiblebridge" ...
                  libpng warning: iCCP: known incorrect sRGB profile
                  

                  When finish debugging:

                  QLibraryPrivate::unload succeeded on "F:/Qt/5.15.0/msvc2019_64/plugins/styles/qwindowsvistastyle.dll" 
                  QLibraryPrivate::unload succeeded on "F:/Qt/5.15.0/msvc2019_64/plugins/platforms/qwindows.dll" 
                  QLibraryPrivate::unload succeeded on "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qgif.dll" 
                  QLibraryPrivate::unload succeeded on "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qicns.dll" 
                  QLibraryPrivate::unload succeeded on "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qico.dll" 
                  QLibraryPrivate::unload succeeded on "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qjpeg.dll" 
                  QLibraryPrivate::unload succeeded on "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qsvg.dll" 
                  QLibraryPrivate::unload succeeded on "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qtga.dll" 
                  QLibraryPrivate::unload succeeded on "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qtiff.dll" 
                  QLibraryPrivate::unload succeeded on "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qwbmp.dll" 
                  QLibraryPrivate::unload succeeded on "F:/Qt/5.15.0/msvc2019_64/plugins/imageformats/qwebp.dll" 
                  QLibraryPrivate::unload succeeded on "F:/Qt/5.15.0/msvc2019_64/plugins/./imageformats/qjpeg.dll" 
                  

                  Note these are Qt Creator output, I am looking for a way to get output from my deployed program

                  1 Reply Last reply
                  0
                  • Christian EhrlicherC Online
                    Christian EhrlicherC Online
                    Christian Ehrlicher
                    Lifetime Qt Champion
                    wrote on last edited by Christian Ehrlicher
                    #13

                    @closer_ex said in Deployed program fails to load JPEG:

                    Note these are Qt Creator output

                    So this does not help as we know it works there.

                    /edit:

                    I am looking for a way to get output from my deployed program

                    I would take a look at windbg or similar or compile the program so it opens a command prompt (pro: CONFIG += console)

                    Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                    Visit the Qt Academy at https://academy.qt.io/catalog

                    C 1 Reply Last reply
                    0
                    • Christian EhrlicherC Christian Ehrlicher

                      @closer_ex said in Deployed program fails to load JPEG:

                      Note these are Qt Creator output

                      So this does not help as we know it works there.

                      /edit:

                      I am looking for a way to get output from my deployed program

                      I would take a look at windbg or similar or compile the program so it opens a command prompt (pro: CONFIG += console)

                      C Offline
                      C Offline
                      closer_ex
                      wrote on last edited by
                      #14

                      @Christian-Ehrlicher said in Deployed program fails to load JPEG:

                      @closer_ex said in Deployed program fails to load JPEG:

                      Note these are Qt Creator output

                      So this does not help as we know it works there.

                      /edit:

                      I am looking for a way to get output from my deployed program

                      I would take a look at windbg or similar or compile the program so it opens a command prompt (pro: CONFIG += console)

                      CONFIG += console does open a console window, but it only produce plugin debug output when running from Qt Creator(not after deploying, should I try deploy a debug version?)

                      windbg result:

                      CommandLine: "F:\cutexg music\QXGMusic_win10.exe"
                      
                      ************* Path validation summary **************
                      Response                         Time (ms)     Location
                      Deferred                                       srv*
                      Symbol search path is: srv*
                      Executable search path is: 
                      ModLoad: 00007ff6`7f960000 00007ff6`7f9c0000   image00007ff6`7f960000
                      ModLoad: 00007fff`00f10000 00007fff`01105000   ntdll.dll
                      ModLoad: 00007ffe`ff8c0000 00007ffe`ff97d000   C:\WINDOWS\System32\KERNEL32.DLL
                      ModLoad: 00007ffe`fe650000 00007ffe`fe917000   C:\WINDOWS\System32\KERNELBASE.dll
                      ModLoad: 00007fff`00da0000 00007fff`00ec9000   C:\WINDOWS\System32\ole32.dll
                      ModLoad: 00007ffe`fea90000 00007ffe`feb90000   C:\WINDOWS\System32\ucrtbase.dll
                      ModLoad: 00007fff`00c10000 00007fff`00d34000   C:\WINDOWS\System32\RPCRT4.dll
                      ModLoad: 00007ffe`ffb30000 00007ffe`ffe85000   C:\WINDOWS\System32\combase.dll
                      ModLoad: 00007fff`00a70000 00007fff`00a9a000   C:\WINDOWS\System32\GDI32.dll
                      ModLoad: 00007ffe`fef40000 00007ffe`fef62000   C:\WINDOWS\System32\win32u.dll
                      ModLoad: 00007ffe`fe980000 00007ffe`fea89000   C:\WINDOWS\System32\gdi32full.dll
                      ModLoad: 00007ffe`febe0000 00007ffe`fec7d000   C:\WINDOWS\System32\msvcp_win.dll
                      ModLoad: 00007ffe`ff980000 00007ffe`ffb20000   C:\WINDOWS\System32\USER32.dll
                      ModLoad: 00007ffe`8f260000 00007ffe`8f7a7000   F:\cutexg music\Qt5Widgets.dll
                      ModLoad: 00007ffe`830d0000 00007ffe`83693000   F:\cutexg music\Qt5Core.dll
                      ModLoad: 00007ffe`95130000 00007ffe`9527f000   F:\cutexg music\Qt5Network.dll
                      ModLoad: 00007ffe`8d8e0000 00007ffe`8dfb6000   F:\cutexg music\Qt5Gui.dll
                      ModLoad: 00007ffe`fed60000 00007ffe`feebd000   C:\WINDOWS\System32\CRYPT32.dll
                      ModLoad: 00007ffe`fffc0000 00007fff`00701000   C:\WINDOWS\System32\SHELL32.dll
                      ModLoad: 00007ffe`ff6f0000 00007ffe`ff79a000   C:\WINDOWS\System32\ADVAPI32.dll
                      ModLoad: 00007fff`00710000 00007fff`007ae000   C:\WINDOWS\System32\msvcrt.dll
                      ModLoad: 00007ffe`fef70000 00007ffe`ff00b000   C:\WINDOWS\System32\sechost.dll
                      ModLoad: 00007ffe`ef2a0000 00007ffe`ef331000   C:\WINDOWS\SYSTEM32\MSVCP140.dll
                      ModLoad: 00007ffe`fff50000 00007ffe`fffbb000   C:\WINDOWS\System32\WS2_32.dll
                      ModLoad: 00007ffe`c9750000 00007ffe`c985a000   C:\WINDOWS\SYSTEM32\MFReadWrite.dll
                      ModLoad: 00007ffe`d1a10000 00007ffe`d1bcb000   C:\WINDOWS\SYSTEM32\MFPlat.DLL
                      ModLoad: 00007ffe`efb40000 00007ffe`efb59000   C:\WINDOWS\SYSTEM32\VCRUNTIME140.dll
                      ModLoad: 00007ffe`feb90000 00007ffe`febdd000   C:\WINDOWS\System32\cfgmgr32.dll
                      ModLoad: 00007ffe`efb30000 00007ffe`efb3c000   C:\WINDOWS\SYSTEM32\VCRUNTIME140_1.dll
                      ModLoad: 00007ffe`ffea0000 00007ffe`fff4e000   C:\WINDOWS\System32\shcore.dll
                      ModLoad: 00007ffe`fdb20000 00007ffe`fdbeb000   C:\WINDOWS\SYSTEM32\DNSAPI.dll
                      ModLoad: 00007ffe`fdae0000 00007ffe`fdb1b000   C:\WINDOWS\SYSTEM32\IPHLPAPI.DLL
                      ModLoad: 00007ffe`fc2c0000 00007ffe`fc2ef000   C:\WINDOWS\SYSTEM32\dwmapi.dll
                      ModLoad: 00007ffe`fc0d0000 00007ffe`fc16f000   C:\WINDOWS\SYSTEM32\UxTheme.dll
                      ModLoad: 00007ffe`faae0000 00007ffe`faae9000   C:\WINDOWS\SYSTEM32\MSVCP140_1.dll
                      ModLoad: 00007ffe`fa730000 00007ffe`fa993000   C:\WINDOWS\SYSTEM32\d3d11.dll
                      ModLoad: 00007ffe`fcf90000 00007ffe`fd083000   C:\WINDOWS\SYSTEM32\dxgi.dll
                      ModLoad: 00007ffe`fe540000 00007ffe`fe56e000   C:\WINDOWS\SYSTEM32\USERENV.dll
                      ModLoad: 00007ffe`f90e0000 00007ffe`f90ea000   C:\WINDOWS\SYSTEM32\VERSION.dll
                      ModLoad: 00007ffe`e4040000 00007ffe`e405d000   C:\WINDOWS\SYSTEM32\MPR.dll
                      ModLoad: 00007ffe`f02e0000 00007ffe`f02f8000   C:\WINDOWS\SYSTEM32\NETAPI32.dll
                      ModLoad: 00007ffe`f2c10000 00007ffe`f2c37000   C:\WINDOWS\SYSTEM32\WINMM.dll
                      ModLoad: 00007ffe`fdbf0000 00007ffe`fdbfc000   C:\WINDOWS\SYSTEM32\NETUTILS.DLL
                      ModLoad: 00007ffe`eae10000 00007ffe`eae38000   C:\WINDOWS\SYSTEM32\SRVCLI.DLL
                      ModLoad: 00007ffe`fe030000 00007ffe`fe03c000   C:\WINDOWS\SYSTEM32\CRYPTBASE.DLL
                      (1b9c.c8c): Break instruction exception - code 80000003 (first chance)
                      ntdll!LdrInitShimEngineDynamic+0x360:
                      00007fff`00fe0630 cc              int     3
                      

                      Does this mean only the basic Qt modules are loaded?
                      I used Dependencies before and it showed the same structure.

                      B 1 Reply Last reply
                      0
                      • Christian EhrlicherC Online
                        Christian EhrlicherC Online
                        Christian Ehrlicher
                        Lifetime Qt Champion
                        wrote on last edited by
                        #15

                        WinDbg has also a mode to catch the debug output afaik.

                        As you see there are no plugins loaded. Is you jpeg plugin really in F:\cutexg music\imageformats ?

                        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                        Visit the Qt Academy at https://academy.qt.io/catalog

                        C 1 Reply Last reply
                        0
                        • C closer_ex

                          @Christian-Ehrlicher said in Deployed program fails to load JPEG:

                          @closer_ex said in Deployed program fails to load JPEG:

                          Note these are Qt Creator output

                          So this does not help as we know it works there.

                          /edit:

                          I am looking for a way to get output from my deployed program

                          I would take a look at windbg or similar or compile the program so it opens a command prompt (pro: CONFIG += console)

                          CONFIG += console does open a console window, but it only produce plugin debug output when running from Qt Creator(not after deploying, should I try deploy a debug version?)

                          windbg result:

                          CommandLine: "F:\cutexg music\QXGMusic_win10.exe"
                          
                          ************* Path validation summary **************
                          Response                         Time (ms)     Location
                          Deferred                                       srv*
                          Symbol search path is: srv*
                          Executable search path is: 
                          ModLoad: 00007ff6`7f960000 00007ff6`7f9c0000   image00007ff6`7f960000
                          ModLoad: 00007fff`00f10000 00007fff`01105000   ntdll.dll
                          ModLoad: 00007ffe`ff8c0000 00007ffe`ff97d000   C:\WINDOWS\System32\KERNEL32.DLL
                          ModLoad: 00007ffe`fe650000 00007ffe`fe917000   C:\WINDOWS\System32\KERNELBASE.dll
                          ModLoad: 00007fff`00da0000 00007fff`00ec9000   C:\WINDOWS\System32\ole32.dll
                          ModLoad: 00007ffe`fea90000 00007ffe`feb90000   C:\WINDOWS\System32\ucrtbase.dll
                          ModLoad: 00007fff`00c10000 00007fff`00d34000   C:\WINDOWS\System32\RPCRT4.dll
                          ModLoad: 00007ffe`ffb30000 00007ffe`ffe85000   C:\WINDOWS\System32\combase.dll
                          ModLoad: 00007fff`00a70000 00007fff`00a9a000   C:\WINDOWS\System32\GDI32.dll
                          ModLoad: 00007ffe`fef40000 00007ffe`fef62000   C:\WINDOWS\System32\win32u.dll
                          ModLoad: 00007ffe`fe980000 00007ffe`fea89000   C:\WINDOWS\System32\gdi32full.dll
                          ModLoad: 00007ffe`febe0000 00007ffe`fec7d000   C:\WINDOWS\System32\msvcp_win.dll
                          ModLoad: 00007ffe`ff980000 00007ffe`ffb20000   C:\WINDOWS\System32\USER32.dll
                          ModLoad: 00007ffe`8f260000 00007ffe`8f7a7000   F:\cutexg music\Qt5Widgets.dll
                          ModLoad: 00007ffe`830d0000 00007ffe`83693000   F:\cutexg music\Qt5Core.dll
                          ModLoad: 00007ffe`95130000 00007ffe`9527f000   F:\cutexg music\Qt5Network.dll
                          ModLoad: 00007ffe`8d8e0000 00007ffe`8dfb6000   F:\cutexg music\Qt5Gui.dll
                          ModLoad: 00007ffe`fed60000 00007ffe`feebd000   C:\WINDOWS\System32\CRYPT32.dll
                          ModLoad: 00007ffe`fffc0000 00007fff`00701000   C:\WINDOWS\System32\SHELL32.dll
                          ModLoad: 00007ffe`ff6f0000 00007ffe`ff79a000   C:\WINDOWS\System32\ADVAPI32.dll
                          ModLoad: 00007fff`00710000 00007fff`007ae000   C:\WINDOWS\System32\msvcrt.dll
                          ModLoad: 00007ffe`fef70000 00007ffe`ff00b000   C:\WINDOWS\System32\sechost.dll
                          ModLoad: 00007ffe`ef2a0000 00007ffe`ef331000   C:\WINDOWS\SYSTEM32\MSVCP140.dll
                          ModLoad: 00007ffe`fff50000 00007ffe`fffbb000   C:\WINDOWS\System32\WS2_32.dll
                          ModLoad: 00007ffe`c9750000 00007ffe`c985a000   C:\WINDOWS\SYSTEM32\MFReadWrite.dll
                          ModLoad: 00007ffe`d1a10000 00007ffe`d1bcb000   C:\WINDOWS\SYSTEM32\MFPlat.DLL
                          ModLoad: 00007ffe`efb40000 00007ffe`efb59000   C:\WINDOWS\SYSTEM32\VCRUNTIME140.dll
                          ModLoad: 00007ffe`feb90000 00007ffe`febdd000   C:\WINDOWS\System32\cfgmgr32.dll
                          ModLoad: 00007ffe`efb30000 00007ffe`efb3c000   C:\WINDOWS\SYSTEM32\VCRUNTIME140_1.dll
                          ModLoad: 00007ffe`ffea0000 00007ffe`fff4e000   C:\WINDOWS\System32\shcore.dll
                          ModLoad: 00007ffe`fdb20000 00007ffe`fdbeb000   C:\WINDOWS\SYSTEM32\DNSAPI.dll
                          ModLoad: 00007ffe`fdae0000 00007ffe`fdb1b000   C:\WINDOWS\SYSTEM32\IPHLPAPI.DLL
                          ModLoad: 00007ffe`fc2c0000 00007ffe`fc2ef000   C:\WINDOWS\SYSTEM32\dwmapi.dll
                          ModLoad: 00007ffe`fc0d0000 00007ffe`fc16f000   C:\WINDOWS\SYSTEM32\UxTheme.dll
                          ModLoad: 00007ffe`faae0000 00007ffe`faae9000   C:\WINDOWS\SYSTEM32\MSVCP140_1.dll
                          ModLoad: 00007ffe`fa730000 00007ffe`fa993000   C:\WINDOWS\SYSTEM32\d3d11.dll
                          ModLoad: 00007ffe`fcf90000 00007ffe`fd083000   C:\WINDOWS\SYSTEM32\dxgi.dll
                          ModLoad: 00007ffe`fe540000 00007ffe`fe56e000   C:\WINDOWS\SYSTEM32\USERENV.dll
                          ModLoad: 00007ffe`f90e0000 00007ffe`f90ea000   C:\WINDOWS\SYSTEM32\VERSION.dll
                          ModLoad: 00007ffe`e4040000 00007ffe`e405d000   C:\WINDOWS\SYSTEM32\MPR.dll
                          ModLoad: 00007ffe`f02e0000 00007ffe`f02f8000   C:\WINDOWS\SYSTEM32\NETAPI32.dll
                          ModLoad: 00007ffe`f2c10000 00007ffe`f2c37000   C:\WINDOWS\SYSTEM32\WINMM.dll
                          ModLoad: 00007ffe`fdbf0000 00007ffe`fdbfc000   C:\WINDOWS\SYSTEM32\NETUTILS.DLL
                          ModLoad: 00007ffe`eae10000 00007ffe`eae38000   C:\WINDOWS\SYSTEM32\SRVCLI.DLL
                          ModLoad: 00007ffe`fe030000 00007ffe`fe03c000   C:\WINDOWS\SYSTEM32\CRYPTBASE.DLL
                          (1b9c.c8c): Break instruction exception - code 80000003 (first chance)
                          ntdll!LdrInitShimEngineDynamic+0x360:
                          00007fff`00fe0630 cc              int     3
                          

                          Does this mean only the basic Qt modules are loaded?
                          I used Dependencies before and it showed the same structure.

                          B Offline
                          B Offline
                          Bonnie
                          wrote on last edited by Bonnie
                          #16

                          @closer_ex
                          I'm not a WinDbg expert, but with only these output, your UI probably haven't shown yet, right?
                          You need to give it a "Go" from the "Debug" menu because it will auto break at the start.

                          1 Reply Last reply
                          1
                          • Christian EhrlicherC Christian Ehrlicher

                            WinDbg has also a mode to catch the debug output afaik.

                            As you see there are no plugins loaded. Is you jpeg plugin really in F:\cutexg music\imageformats ?

                            C Offline
                            C Offline
                            closer_ex
                            wrote on last edited by closer_ex
                            #17

                            @Christian-Ehrlicher
                            Yes they are, that's why I'm so confused. More output listed below, but still no image plugins loaded.

                            I've also added config += release to make sure it uses release version plugins.

                            Here is my deploy folder structure:( sorry images are uploaded to imgur, please click link to see)
                            root

                            Inside /imageformats are plugins copied by windeployqt and are release version:
                            imageformats

                            And by "doesn't load" I mean something like this:
                            jpeg not loaded

                            Running from Qt Creator:
                            jpeg loaded

                            There is another phenomenon that might help, as is mentioned in the main post:

                            I kept a former version exe under the same deploy folder, which had no problem loading jpeg. I moved the qjpeg.dll out of the /imageformats folder, run it and saw the same null pixmap. Then I move the dll back, but this former one still can't load jpeg.

                            @Bonnie
                            Thanks for the hint, now it's creating more output:

                            ************* Path validation summary **************
                            Response                         Time (ms)     Location
                            Deferred                                       srv*
                            Symbol search path is: srv*
                            Executable search path is: 
                            ModLoad: 00007ff6`90ba0000 00007ff6`90c00000   F:\cutexg music\QXGMusic_win10.exe
                            ModLoad: 00007fff`00f10000 00007fff`01105000   C:\WINDOWS\SYSTEM32\ntdll.dll
                            ModLoad: 00007ffe`ff8c0000 00007ffe`ff97d000   C:\WINDOWS\System32\KERNEL32.DLL
                            ModLoad: 00007ffe`fe650000 00007ffe`fe917000   C:\WINDOWS\System32\KERNELBASE.dll
                            ModLoad: 00007fff`00da0000 00007fff`00ec9000   C:\WINDOWS\System32\ole32.dll
                            ModLoad: 00007ffe`fea90000 00007ffe`feb90000   C:\WINDOWS\System32\ucrtbase.dll
                            ModLoad: 00007fff`00c10000 00007fff`00d34000   C:\WINDOWS\System32\RPCRT4.dll
                            ModLoad: 00007ffe`ffb30000 00007ffe`ffe85000   C:\WINDOWS\System32\combase.dll
                            ModLoad: 00007fff`00a70000 00007fff`00a9a000   C:\WINDOWS\System32\GDI32.dll
                            ModLoad: 00007ffe`fef40000 00007ffe`fef62000   C:\WINDOWS\System32\win32u.dll
                            ModLoad: 00007ffe`fe980000 00007ffe`fea89000   C:\WINDOWS\System32\gdi32full.dll
                            ModLoad: 00007ffe`febe0000 00007ffe`fec7d000   C:\WINDOWS\System32\msvcp_win.dll
                            ModLoad: 00007ffe`ff980000 00007ffe`ffb20000   C:\WINDOWS\System32\USER32.dll
                            ModLoad: 00007ffe`c84a0000 00007ffe`c8b76000   F:\cutexg music\Qt5Gui.dll
                            ModLoad: 00007ffe`ce4d0000 00007ffe`cea17000   F:\cutexg music\Qt5Widgets.dll
                            ModLoad: 00007ffe`ef2a0000 00007ffe`ef331000   C:\WINDOWS\SYSTEM32\MSVCP140.dll
                            ModLoad: 00007ffe`c7ed0000 00007ffe`c8493000   F:\cutexg music\Qt5Core.dll
                            ModLoad: 00007ffe`c9750000 00007ffe`c985a000   C:\WINDOWS\SYSTEM32\MFReadWrite.dll
                            ModLoad: 00007fff`00710000 00007fff`007ae000   C:\WINDOWS\System32\msvcrt.dll
                            ModLoad: 00007ffe`fffc0000 00007fff`00701000   C:\WINDOWS\System32\SHELL32.dll
                            ModLoad: 00007ffe`d1a10000 00007ffe`d1bcb000   C:\WINDOWS\SYSTEM32\MFPlat.DLL
                            ModLoad: 00007ffe`efb40000 00007ffe`efb59000   C:\WINDOWS\SYSTEM32\VCRUNTIME140.dll
                            ModLoad: 00007ffe`fef70000 00007ffe`ff00b000   C:\WINDOWS\System32\sechost.dll
                            ModLoad: 00007ffe`ce380000 00007ffe`ce4cf000   F:\cutexg music\Qt5Network.dll
                            ModLoad: 00007ffe`fff50000 00007ffe`fffbb000   C:\WINDOWS\System32\WS2_32.dll
                            ModLoad: 00007ffe`efb30000 00007ffe`efb3c000   C:\WINDOWS\SYSTEM32\VCRUNTIME140_1.dll
                            ModLoad: 00007ffe`ff6f0000 00007ffe`ff79a000   C:\WINDOWS\System32\ADVAPI32.dll
                            ModLoad: 00007ffe`fa730000 00007ffe`fa993000   C:\WINDOWS\SYSTEM32\d3d11.dll
                            ModLoad: 00007ffe`fed60000 00007ffe`feebd000   C:\WINDOWS\System32\CRYPT32.dll
                            ModLoad: 00007ffe`fcf90000 00007ffe`fd083000   C:\WINDOWS\SYSTEM32\dxgi.dll
                            ModLoad: 00007ffe`fc0d0000 00007ffe`fc16f000   C:\WINDOWS\SYSTEM32\UxTheme.dll
                            ModLoad: 00007ffe`feb90000 00007ffe`febdd000   C:\WINDOWS\System32\cfgmgr32.dll
                            ModLoad: 00007ffe`faae0000 00007ffe`faae9000   C:\WINDOWS\SYSTEM32\MSVCP140_1.dll
                            ModLoad: 00007ffe`fc2c0000 00007ffe`fc2ef000   C:\WINDOWS\SYSTEM32\dwmapi.dll
                            ModLoad: 00007ffe`e4040000 00007ffe`e405d000   C:\WINDOWS\SYSTEM32\MPR.dll
                            ModLoad: 00007ffe`fe540000 00007ffe`fe56e000   C:\WINDOWS\SYSTEM32\USERENV.dll
                            ModLoad: 00007ffe`f90e0000 00007ffe`f90ea000   C:\WINDOWS\SYSTEM32\VERSION.dll
                            ModLoad: 00007ffe`f02e0000 00007ffe`f02f8000   C:\WINDOWS\SYSTEM32\NETAPI32.dll
                            ModLoad: 00007ffe`ffea0000 00007ffe`fff4e000   C:\WINDOWS\System32\shcore.dll
                            ModLoad: 00007ffe`fdae0000 00007ffe`fdb1b000   C:\WINDOWS\SYSTEM32\IPHLPAPI.DLL
                            ModLoad: 00007ffe`fdb20000 00007ffe`fdbeb000   C:\WINDOWS\SYSTEM32\DNSAPI.dll
                            ModLoad: 00007ffe`f2c10000 00007ffe`f2c37000   C:\WINDOWS\SYSTEM32\WINMM.dll
                            ModLoad: 00007ffe`fdbf0000 00007ffe`fdbfc000   C:\WINDOWS\SYSTEM32\NETUTILS.DLL
                            ModLoad: 00007ffe`eae10000 00007ffe`eae38000   C:\WINDOWS\SYSTEM32\SRVCLI.DLL
                            ModLoad: 00007ffe`fe030000 00007ffe`fe03c000   C:\WINDOWS\SYSTEM32\CRYPTBASE.DLL
                            ModLoad: 00007fff`00b00000 00007fff`00b30000   C:\WINDOWS\System32\IMM32.DLL
                            ModLoad: 00007ffe`ffe90000 00007ffe`ffe99000   C:\WINDOWS\System32\NSI.dll
                            ModLoad: 00007ffe`fc5b0000 00007ffe`fc5c3000   C:\WINDOWS\SYSTEM32\kernel.appcore.dll
                            ModLoad: 00007ffe`feec0000 00007ffe`fef3f000   C:\WINDOWS\System32\bcryptPrimitives.dll
                            ModLoad: 00007ffe`d19a0000 00007ffe`d19d0000   C:\WINDOWS\SYSTEM32\RTWorkQ.DLL
                            ModLoad: 00007ffe`fc7b0000 00007ffe`fcf43000   C:\WINDOWS\SYSTEM32\windows.storage.dll
                            ModLoad: 00007ffe`fe0c0000 00007ffe`fe0ec000   C:\WINDOWS\SYSTEM32\Wldp.dll
                            ModLoad: 00007fff`00aa0000 00007fff`00af5000   C:\WINDOWS\System32\shlwapi.dll
                            ModLoad: 00007ffe`fe580000 00007ffe`fe5a6000   C:\WINDOWS\SYSTEM32\profapi.dll
                            ModLoad: 00007ffe`c7d50000 00007ffe`c7ec5000   F:\cutexg music\platforms\qwindows.dll
                            ModLoad: 00007fff`00b40000 00007fff`00c0d000   C:\WINDOWS\System32\OLEAUT32.dll
                            ModLoad: 00007ffe`fa280000 00007ffe`fa294000   C:\WINDOWS\SYSTEM32\WTSAPI32.dll
                            ModLoad: 00007ffe`fdc50000 00007ffe`fdc9b000   C:\WINDOWS\SYSTEM32\powrprof.dll
                            ModLoad: 00007ffe`fdac0000 00007ffe`fdad2000   C:\WINDOWS\SYSTEM32\UMPDC.dll
                            ModLoad: 00007ffe`de3e0000 00007ffe`de406000   F:\cutexg music\styles\qwindowsvistastyle.dll
                            ModLoad: 00007ffe`dbe50000 00007ffe`dc0ce000   C:\WINDOWS\system32\dwrite.dll
                            ModLoad: 00007ffe`f8930000 00007ffe`f8947000   C:\WINDOWS\SYSTEM32\dhcpcsvc6.DLL
                            ModLoad: 00007ffe`f8910000 00007ffe`f892d000   C:\WINDOWS\SYSTEM32\dhcpcsvc.DLL
                            ModLoad: 00007ffe`f61f0000 00007ffe`f63bd000   C:\WINDOWS\system32\d3d9.dll
                            ModLoad: 00007ffe`d8ba0000 00007ffe`d8c3e000   C:\WINDOWS\SYSTEM32\xaudio2_9.dll
                            ModLoad: 00007ffe`f90f0000 00007ffe`f9175000   C:\WINDOWS\SYSTEM32\MMDevAPI.DLL
                            ModLoad: 00007ffe`f8ea0000 00007ffe`f8eaa000   C:\WINDOWS\SYSTEM32\AVRT.dll
                            ModLoad: 00007ffe`fe400000 00007ffe`fe42c000   C:\WINDOWS\SYSTEM32\DEVOBJ.dll
                            ModLoad: 00007fff`007b0000 00007fff`00858000   C:\WINDOWS\System32\clbcatq.dll
                            ModLoad: 00007ffe`f8eb0000 00007ffe`f8ee1000   C:\WINDOWS\SYSTEM32\cryptnet.dll
                            ModLoad: 00007ffe`fe920000 00007ffe`fe980000   C:\WINDOWS\System32\WINTRUST.DLL
                            ModLoad: 00007ffe`fe240000 00007ffe`fe252000   C:\WINDOWS\SYSTEM32\MSASN1.dll
                            ModLoad: 00007ffe`ff510000 00007ffe`ff52d000   C:\WINDOWS\System32\imagehlp.dll
                            ModLoad: 00007ffe`f9280000 00007ffe`f9400000   C:\WINDOWS\SYSTEM32\AUDIOSES.DLL
                            ModLoad: 00007ffe`fc1d0000 00007ffe`fc1e4000   C:\WINDOWS\SYSTEM32\resourcepolicyclient.dll
                            ModLoad: 00007ffe`fe010000 00007ffe`fe028000   C:\WINDOWS\SYSTEM32\CRYPTSP.dll
                            ModLoad: 00007ffe`fd760000 00007ffe`fd794000   C:\WINDOWS\system32\rsaenh.dll
                            ModLoad: 00007ffe`fed30000 00007ffe`fed57000   C:\WINDOWS\System32\bcrypt.dll
                            ModLoad: 00007ffe`ff7a0000 00007ffe`ff8b5000   C:\WINDOWS\System32\MSCTF.dll
                            ModLoad: 00007ffe`dcae0000 00007ffe`dcb1e000   C:\WINDOWS\system32\dataexchange.dll
                            ModLoad: 00007ffe`fb340000 00007ffe`fb525000   C:\WINDOWS\system32\dcomp.dll
                            ModLoad: 00007ffe`f8050000 00007ffe`f8257000   C:\WINDOWS\system32\twinapi.appcore.dll
                            ModLoad: 00007ffe`edc10000 00007ffe`edd0d000   C:\WINDOWS\SYSTEM32\textinputframework.dll
                            ModLoad: 00007ffe`fb8b0000 00007ffe`fbc0a000   C:\WINDOWS\System32\CoreUIComponents.dll
                            ModLoad: 00007ffe`fbc10000 00007ffe`fbd02000   C:\WINDOWS\System32\CoreMessaging.dll
                            ModLoad: 00007ffe`fd380000 00007ffe`fd3b3000   C:\WINDOWS\SYSTEM32\ntmarta.dll
                            ModLoad: 00007ffe`fb1e0000 00007ffe`fb336000   C:\WINDOWS\SYSTEM32\wintypes.dll
                            ModLoad: 00007ffe`e7ab0000 00007ffe`e7b16000   C:\WINDOWS\system32\Oleacc.dll
                            ModLoad: 00007ffe`d5840000 00007ffe`d5b34000   C:\WINDOWS\system32\UIAutomationCore.dll
                            ModLoad: 00007ffe`f9fd0000 00007ffe`fa0c7000   C:\WINDOWS\SYSTEM32\PROPSYS.dll
                            ModLoad: 00007ffe`fe450000 00007ffe`fe4f2000   C:\WINDOWS\SYSTEM32\sxs.dll
                            (3558.275c): Break instruction exception - code 80000003 (first chance)
                            ntdll!DbgBreakPoint:
                            00007fff`00faf8b0 cc              int     3
                            

                            Seems the platforms and styles plugins are loaded, but still no imageformats.

                            1 Reply Last reply
                            0
                            • Christian EhrlicherC Online
                              Christian EhrlicherC Online
                              Christian Ehrlicher
                              Lifetime Qt Champion
                              wrote on last edited by
                              #18

                              We need the debug output from the system where the plugins are not loaded.

                              Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                              Visit the Qt Academy at https://academy.qt.io/catalog

                              C 1 Reply Last reply
                              0
                              • Christian EhrlicherC Christian Ehrlicher

                                We need the debug output from the system where the plugins are not loaded.

                                C Offline
                                C Offline
                                closer_ex
                                wrote on last edited by
                                #19

                                @Christian-Ehrlicher

                                The following lines are missing:

                                ModLoad: 00007ffe`eef80000 00007ffe`eef8d000   F:\Qt\5.15.0\msvc2019_64\plugins\imageformats\qgif.dll
                                ModLoad: 00007ffe`e3130000 00007ffe`e313f000   F:\Qt\5.15.0\msvc2019_64\plugins\imageformats\qicns.dll
                                ModLoad: 00007ffe`de440000 00007ffe`de44d000   F:\Qt\5.15.0\msvc2019_64\plugins\imageformats\qico.dll
                                ModLoad: 00007ffe`d8bd0000 00007ffe`d8c3a000   F:\Qt\5.15.0\msvc2019_64\plugins\imageformats\qjpeg.dll
                                ModLoad: 00007ffe`de430000 00007ffe`de43c000   F:\Qt\5.15.0\msvc2019_64\plugins\imageformats\qsvg.dll
                                ModLoad: 00007ffe`de3b0000 00007ffe`de404000   F:\Qt\5.15.0\msvc2019_64\bin\Qt5Svg.dll
                                ModLoad: 00007ffe`de370000 00007ffe`de37c000   F:\Qt\5.15.0\msvc2019_64\plugins\imageformats\qtga.dll
                                ModLoad: 00007ffe`cf660000 00007ffe`cf6c3000   F:\Qt\5.15.0\msvc2019_64\plugins\imageformats\qtiff.dll
                                ModLoad: 00007ffe`d8bc0000 00007ffe`d8bcb000   F:\Qt\5.15.0\msvc2019_64\plugins\imageformats\qwbmp.dll
                                ModLoad: 00007ffe`cf5d0000 00007ffe`cf653000   F:\Qt\5.15.0\msvc2019_64\plugins\imageformats\qwebp.dll
                                

                                Right before qwindows.dll.
                                I compared 2 outputs, other lines are the same except some loading sequence. No clue why Qt5Svg is not loaded though...

                                1 Reply Last reply
                                0
                                • Christian EhrlicherC Online
                                  Christian EhrlicherC Online
                                  Christian Ehrlicher
                                  Lifetime Qt Champion
                                  wrote on last edited by
                                  #20

                                  Again: please find a way to catch the debug outputs (e.g. with qInstallMessageHandler) so we can see what QT_DEBUG_PLUGINS prints out!

                                  Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                                  Visit the Qt Academy at https://academy.qt.io/catalog

                                  C 1 Reply Last reply
                                  0
                                  • Christian EhrlicherC Christian Ehrlicher

                                    Again: please find a way to catch the debug outputs (e.g. with qInstallMessageHandler) so we can see what QT_DEBUG_PLUGINS prints out!

                                    C Offline
                                    C Offline
                                    closer_ex
                                    wrote on last edited by
                                    #21

                                    @Christian-Ehrlicher
                                    The message handler somehow started to log plugins debug info.

                                    Debug: QFactoryLoader::QFactoryLoader() checking directory path "F:/cutexg music/platforms" ...
                                    Debug: QFactoryLoader::QFactoryLoader() looking at "F:/cutexg music/platforms/qminimal.dll"
                                    Warning: Found metadata in lib F:/cutexg music/platforms/qminimal.dll, metadata=
                                    {
                                        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                                        "MetaData": {
                                            "Keys": [
                                                "minimal"
                                            ]
                                        },
                                        "archreq": 0,
                                        "className": "QMinimalIntegrationPlugin",
                                        "debug": false,
                                        "version": 331520
                                    }
                                    
                                    
                                    Debug: Got keys from plugin meta data ("minimal")
                                    Debug: QFactoryLoader::QFactoryLoader() looking at "F:/cutexg music/platforms/qwindows.dll"
                                    Warning: Found metadata in lib F:/cutexg music/platforms/qwindows.dll, metadata=
                                    {
                                        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                                        "MetaData": {
                                            "Keys": [
                                                "windows"
                                            ]
                                        },
                                        "archreq": 0,
                                        "className": "QWindowsIntegrationPlugin",
                                        "debug": false,
                                        "version": 331520
                                    }
                                    
                                    
                                    Debug: Got keys from plugin meta data ("windows")
                                    Debug: loaded library "F:/cutexg music/platforms/qwindows.dll"
                                    Debug: QFactoryLoader::QFactoryLoader() checking directory path "F:/cutexg music/platformthemes" ...
                                    Debug: QFactoryLoader::QFactoryLoader() checking directory path "F:/cutexg music/styles" ...
                                    Debug: QFactoryLoader::QFactoryLoader() looking at "F:/cutexg music/styles/qwindowsvistastyle.dll"
                                    Warning: Found metadata in lib F:/cutexg music/styles/qwindowsvistastyle.dll, metadata=
                                    {
                                        "IID": "org.qt-project.Qt.QStyleFactoryInterface",
                                        "MetaData": {
                                            "Keys": [
                                                "windowsvista"
                                            ]
                                        },
                                        "archreq": 0,
                                        "className": "QWindowsVistaStylePlugin",
                                        "debug": false,
                                        "version": 331520
                                    }
                                    
                                    
                                    Debug: Got keys from plugin meta data ("windowsvista")
                                    Debug: loaded library "F:/cutexg music/styles/qwindowsvistastyle.dll"
                                    Debug: QFactoryLoader::QFactoryLoader() checking directory path "F:/cutexg music/accessible" ...
                                    Debug: QFactoryLoader::QFactoryLoader() checking directory path "F:/cutexg music/accessiblebridge" ...
                                    

                                    Indicating it's not even looking for the imageformats.

                                    1 Reply Last reply
                                    0
                                    • Christian EhrlicherC Online
                                      Christian EhrlicherC Online
                                      Christian Ehrlicher
                                      Lifetime Qt Champion
                                      wrote on last edited by
                                      #22

                                      Please take a look at QCoreApplication::libraryPaths(), it's the source where Qt iterates over: QFactoryLoader::update()

                                      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                                      Visit the Qt Academy at https://academy.qt.io/catalog

                                      C 1 Reply Last reply
                                      1
                                      • Christian EhrlicherC Christian Ehrlicher

                                        Please take a look at QCoreApplication::libraryPaths(), it's the source where Qt iterates over: QFactoryLoader::update()

                                        C Offline
                                        C Offline
                                        closer_ex
                                        wrote on last edited by
                                        #23

                                        @Christian-Ehrlicher

                                        ...
                                        QApplication a(argc, argv);
                                        qDebug() << QCoreApplication::libraryPaths() << Qt::endl;
                                        ...
                                        

                                        Lists only the root folder, "F:/cutexg music".

                                        Then I tried to add an absolute path directing to MSVC plugins folder by QApplication::addLibraryPath("F:\\Qt\\5.15.0\\msvc2019_64\\plugins");

                                        It lists both paths and pictures are shown. Plugins debug info also indicates the plugins from MSVC folder are loaded.

                                        1 Reply Last reply
                                        0
                                        • Christian EhrlicherC Online
                                          Christian EhrlicherC Online
                                          Christian Ehrlicher
                                          Lifetime Qt Champion
                                          wrote on last edited by Christian Ehrlicher
                                          #24

                                          Ok, this does not help, did not read carefully enough.
                                          Please check the output of QImageReader::supportedImageFormats(). Did you maybe compile Qt by your own and disabled the image format plugins (QT_NO_IMAGEFORMATPLUGIN)?

                                          /edit: im referring to https://code.woboq.org/qt5/qtbase/src/gui/image/qimagereaderwriterhelpers.cpp.html#_ZN25QImageReaderWriterHelpers21supportedImageFormatsENS_10CapabilityE - as you can see calling supportedImageFormats() should trigger the QFactoryLoader for imageformats should be called.

                                          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                                          Visit the Qt Academy at https://academy.qt.io/catalog

                                          C 1 Reply Last reply
                                          1

                                          • Login

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