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. QtQuick Application crashes (at runtime) after deployment on windows
Forum Updated to NodeBB v4.3 + New Features

QtQuick Application crashes (at runtime) after deployment on windows

Scheduled Pinned Locked Moved General and Desktop
deploymentwindows
6 Posts 2 Posters 3.1k 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.
  • T Offline
    T Offline
    themts
    wrote on 17 Apr 2015, 17:27 last edited by themts
    #1

    Hey guys,

    I'm trying to deploy my application on a windows machine.
    I copied all necessary files to a folder (btw. I think there should be a automatic function for this in qtCreator, as qtCreator should exactly know which plugins and files I'm using) until I was finally able to start my application without any exceptions.

    Unfortunately it's quite simple to crash the application:
    I'm using 2 components from QtQuick.Controls:
    a) Menubar
    b) Combobox

    Both components are visible after application start. I can even open the menubar as well as the combobox but as soon as I close one of them the application crashes.
    I have no idea how to solve this problem as its working when I start it from qtCreator.

    Any idea?
    thanks!
    mts

    EDIT:
    For testing purposes I placed a few other QtQuick.Controls on my mainForm without any problems. It seems only to crash on components which show a menu

    J 1 Reply Last reply 20 Apr 2015, 02:56
    0
    • T Offline
      T Offline
      themts
      wrote on 17 Apr 2015, 18:27 last edited by themts
      #2

      I just uploaded a simple testApp:
      testApp on uploaded.to

      It's a package with all my included dll's I have collected from the qt folder

      1 Reply Last reply
      0
      • T Offline
        T Offline
        themts
        wrote on 19 Apr 2015, 18:19 last edited by
        #3

        Maybe I should post some more details:

        Compiler-Kit: MSVC2013 openGL 32bit
        Environment: Windows 7 64bit

        This is my deployment-structor:

        │   MYAPPLICATION.exe
        │   icudt53.dll
        │   icuin53.dll
        │   icuuc53.dll
        │   Qt5Concurrent.dll
        │   Qt5Core.dll
        │   Qt5Gui.dll
        │   Qt5Guid.dll
        │   Qt5Network.dll
        │   Qt5Qml.dll
        │   Qt5Quick.dll
        │   Qt5Widgets.dll
        │   Qt5WinExtras.dll
        │   Qt5Xml.dll
        │   
        ├───imageformats
        │       qjpeg.dll
        │       
        ├───platforms
        │       qwindows.dll
        │       
        ├───QtQuick
        │   ├───Controls
        │   │       plugins.qmltypes
        │   │       qmldir
        │   │       qtquickcontrolsplugin.dll
        │   │       
        │   ├───Dialogs
        │   │       dialogplugin.dll
        │   │       plugins.qmltypes
        │   │       qmldir
        │   │       
        │   ├───Layouts
        │   │       plugins.qmltypes
        │   │       qmldir
        │   │       qquicklayoutsplugin.dll
        │   │       
        │   ├───PrivateWidgets
        │   │       plugins.qmltypes
        │   │       qmldir
        │   │       widgetsplugin.dll
        │   │       
        │   ├───Window.2
        │   │       plugins.qmltypes
        │   │       qmldir
        │   │       windowplugin.dll
        │   │       
        │   └───XmlListModel
        │           plugins.qmltypes
        │           qmldir
        │           qmlxmllistmodelplugin.dll
        │           
        ├───QtQuick.2
        │       plugins.qmltypes
        │       qmldir
        │       qtquick2plugin.dll
        │       
        └───QtWinExtras
                plugins.qmltypes
                qmldir
                qml_winextras.dll
        

        Application crashes:

        • when I open a combobox
        • when I close a menu from the menuBar
        • when I close the application

        Unfortunately I don't know how I should debug it, as it's not happening when I run it from qtCreator.

        1 Reply Last reply
        0
        • T themts
          17 Apr 2015, 17:27

          Hey guys,

          I'm trying to deploy my application on a windows machine.
          I copied all necessary files to a folder (btw. I think there should be a automatic function for this in qtCreator, as qtCreator should exactly know which plugins and files I'm using) until I was finally able to start my application without any exceptions.

          Unfortunately it's quite simple to crash the application:
          I'm using 2 components from QtQuick.Controls:
          a) Menubar
          b) Combobox

          Both components are visible after application start. I can even open the menubar as well as the combobox but as soon as I close one of them the application crashes.
          I have no idea how to solve this problem as its working when I start it from qtCreator.

          Any idea?
          thanks!
          mts

          EDIT:
          For testing purposes I placed a few other QtQuick.Controls on my mainForm without any problems. It seems only to crash on components which show a menu

          J Offline
          J Offline
          JKSH
          Moderators
          wrote on 20 Apr 2015, 02:56 last edited by
          #4

          Hi,

          @themts said:

          I think there should be a automatic function for this in qtCreator, as qtCreator should exactly know which plugins and files I'm using

          You can have a look at the windeployqt tool in your Qt installation folder. It is not perfect yet, but it tries to automatically deploy your app.

          I have no idea how to solve this problem as its working when I start it from qtCreator.

          Clear your deployment folder, and then follow every step under "Initial Deployment (Quick and Dirty)" at http://wiki.qt.io/Deploy_an_Application_on_Windows closely. Does it still crash?

          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

          1 Reply Last reply
          0
          • T Offline
            T Offline
            themts
            wrote on 20 Apr 2015, 07:56 last edited by
            #5

            sorry, my mistake...
            I found the problem! I mixed up dlls.

            I don't know why, but I used some dlls from:
            QTDIR\5.4\msvc2013_opengl\plugins
            and some from
            QTDIR\Tools\QtCreator\bin

            J 1 Reply Last reply 20 Apr 2015, 08:10
            0
            • T themts
              20 Apr 2015, 07:56

              sorry, my mistake...
              I found the problem! I mixed up dlls.

              I don't know why, but I used some dlls from:
              QTDIR\5.4\msvc2013_opengl\plugins
              and some from
              QTDIR\Tools\QtCreator\bin

              J Offline
              J Offline
              JKSH
              Moderators
              wrote on 20 Apr 2015, 08:10 last edited by
              #6

              @themts said:

              and some from
              QTDIR\Tools\QtCreator\bin

              Yeah... don't do that ;-)

              Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

              1 Reply Last reply
              0

              1/6

              17 Apr 2015, 17:27

              • Login

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