Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Problem of deployment
Forum Updated to NodeBB v4.3 + New Features

Problem of deployment

Scheduled Pinned Locked Moved Installation and Deployment
20 Posts 4 Posters 5.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Ced70v
    wrote on last edited by
    #1

    Hello,

    I have a problem when I try to deploy my soft in Debug mode , I have this error :
    ASSERT: "uint(i) < uint(size())" in file ........\include/QtCore/../../src/corelib/tools/qstring.h, line 755
    Invalid parameter passed to C runtime function.
    Invalid parameter passed to C runtime function.

    This error occures even in a new project with only QMainWindow but no problem in release.

    Do you know this problem ?
    Thanx.

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

      Hi,

      What is the code triggering the assert ?

      ASSERT only works in debug mode, they do nothing in release.

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

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

        My main :

        @#include "mainwindow.h"
        #include <QApplication>

        int main(int argc, char *argv[])
        {
        QApplication a(argc, argv);
        MainWindow w;
        w.show();

        return a.exec&#40;&#41;;
        

        }
        @

        My mainWindow.h

        @#ifndef MAINWINDOW_H
        #define MAINWINDOW_H

        #include <QMainWindow>

        namespace Ui {
        class MainWindow;
        }

        class MainWindow : public QMainWindow
        {
        Q_OBJECT

        public:
        explicit MainWindow(QWidget *parent = 0);
        ~MainWindow();

        private:
        Ui::MainWindow *ui;
        };

        #endif // MAINWINDOW_H
        @

        My mainWindow.cpp

        @#include "mainwindow.h"
        #include "ui_mainwindow.h"

        MainWindow::MainWindow(QWidget *parent) :
        QMainWindow(parent),
        ui(new Ui::MainWindow)
        {
        ui->setupUi(this);
        }

        MainWindow::~MainWindow()
        {
        delete ui;
        }
        @

        I have only that and I have already the problem.

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

          Just to be sure, are you talking about deploying (as in "install and run") or running the application in Qt Creator ?

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

          1 Reply Last reply
          0
          • C Offline
            C Offline
            Ced70v
            wrote on last edited by
            #5

            Good question !
            I am talking about running in Qt Creator.
            Sorry for this error...

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

              What OS/ Qt version/compiler are you using ?
              Also how did you install Qt ?

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

              1 Reply Last reply
              0
              • C Offline
                C Offline
                Ced70v
                wrote on last edited by
                #7

                My OS : Windows 7 64 bits
                My Qt version : Last 5.2.0
                Compiler : Mingw 4.8 32 bits
                I Install Qt with the installer Online .
                I tried with installer Offline : same problems.
                For information, i had Qtsdk 4.8 before.

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

                  Do you still have the old SDK installed ?

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

                  1 Reply Last reply
                  0
                  • C Offline
                    C Offline
                    Ced70v
                    wrote on last edited by
                    #9

                    No, I removed the old installation and cleaned all the registry (I think).

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

                      Sounds fishy… Are you having that with a new project not built with anything else than Qt 5.2 ?

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

                      1 Reply Last reply
                      0
                      • C Offline
                        C Offline
                        Ced70v
                        wrote on last edited by
                        #11

                        Yes I have the problem with all project :
                        New project never built and project already built in QtSDK 4.8.

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

                          Do you have several MinGW installed on your computer ?

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

                          1 Reply Last reply
                          0
                          • C Offline
                            C Offline
                            Ced70v
                            wrote on last edited by
                            #13

                            I installed MinGW before Qt because I thought there wasn't in the setup but now I haven't several MinGW.

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

                              Are you sure you have properly removed all other MinGW version from your system ?

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

                              1 Reply Last reply
                              0
                              • C Offline
                                C Offline
                                Ced70v
                                wrote on last edited by
                                #15

                                I verified and there aren't other MingGW on my system, either in the registry.

                                1 Reply Last reply
                                0
                                • JKSHJ Offline
                                  JKSHJ Offline
                                  JKSH
                                  Moderators
                                  wrote on last edited by
                                  #16

                                  What happens if you do this in Qt Creator?:

                                  Build -> Clean All

                                  Build -> Run qmake

                                  Build -> Run

                                  Also, have a look in your PATH. Is MinGW and/or Qt in there?

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

                                  1 Reply Last reply
                                  0
                                  • C Offline
                                    C Offline
                                    Ced70v
                                    wrote on last edited by
                                    #17

                                    When I do this, I have the same problem.
                                    I my PATH, I have C:\Qt\Qt5.2.0\5.2.0\mingw48_32\bin.

                                    1 Reply Last reply
                                    0
                                    • K Offline
                                      K Offline
                                      kit6263
                                      wrote on last edited by
                                      #18

                                      Hi
                                      I have the same problem with the serialport terminal demo program.
                                      This rise the same assert, but only in debug mode. In the relase it is runining.
                                      This is the new installation of qt 5.2.

                                      1 Reply Last reply
                                      0
                                      • JKSHJ Offline
                                        JKSHJ Offline
                                        JKSH
                                        Moderators
                                        wrote on last edited by
                                        #19

                                        Sorry Ced70v, I didn't realize you replied.

                                        Remove all traces of MinGW and Qt from your PATH. You don't need it in your PATH, and having it there has been known to cause issues.

                                        After that, restart Qt Creator, clean your project, and build again.

                                        Make sure you are using the copy of MinGW that came with your Qt installation (instead of downloading it somewhere else).

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

                                        1 Reply Last reply
                                        0
                                        • K Offline
                                          K Offline
                                          kit6263
                                          wrote on last edited by
                                          #20

                                          Thanks...but no changes.
                                          I have cleaned the path.
                                          Before QT i did not have MinGW on my PC.
                                          QT package instaled id.

                                          Debugging starts
                                          ASSERT: "uint(i) < uint(size())" in file ........\include/QtCore/../../src/corelib/tools/qstring.h, line 755
                                          Invalid parameter passed to C runtime function.
                                          Invalid parameter passed to C runtime function.
                                          QMutex: destroying locked mutex
                                          Debugging has finished

                                          1 Reply Last reply
                                          0

                                          • Login

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