QtQuick Application crashes (at runtime) after deployment on windows



  • 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



  • 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



  • 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.


  • Moderators

    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?



  • 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


  • Moderators

    @themts said:

    and some from
    QTDIR\Tools\QtCreator\bin

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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.