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. __cxa_throw _bad array_ new_length not found in the dynamic link library C:\Users\Asma\Documents\Ckconvert\release\Qt5Core.dll

__cxa_throw _bad array_ new_length not found in the dynamic link library C:\Users\Asma\Documents\Ckconvert\release\Qt5Core.dll

Scheduled Pinned Locked Moved Unsolved General and Desktop
13 Posts 3 Posters 1.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Zunneh
    2 Mar 2020, 12:11

    Hello guys,
    I'm running Qt creator with 2 different kits :

    Qt 5.3.0 mingw482_32.
    Qt 5.6.0 mingw492_32.

    i made my app and build it with Qt 5.6.0 mingw492_32 , and now i want to deploy it, i tried to run my .exe from release file but always same problem, i searched this problem in google and tried different solutions ( add platforms next to my .exe , i added LibEGL.dll and libEGLd.dll too ) but always same problem, this is my realse file

    6d7e71e2-db93-4fd9-a08b-5a205e89e638-image.png

    This is the error i get when i try to open my .exe ( release mode )

    bd83ed53-9e7b-43da-8e53-433e534bc596-image.png

    this error is written in french, this is the translation :

    Title : ckconvert.exe - entry point not found

    the procedure entry point
    __cxa_throw bad array new_length not found in the dynamic link library C:\Users\Asma\Documents\Ckconvert\release\Qt5Core.dll

    I think my problem is coming because i have two versions of kit ( the 5.3.0 is the oldest one ) and maybe the OS is looking for the wrong Qt5Core.dll despite that i have put the good one ( from Qt5.6.0 ) ?
    Can i get Help ? Thanks

    J Offline
    J Offline
    J.Hilk
    Moderators
    wrote on 2 Mar 2020, 12:13 last edited by J.Hilk 3 Feb 2020, 12:14
    #2

    @Zunneh hi
    do not copy and past stuff by hand, use the Windows deployment tool
    https://doc.qt.io/qt-5/windows-deployment.html

    each compiled (Qt)lib has one, so make sure to use the one from the 5.6.0 director (the build version)


    Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


    Q: What's that?
    A: It's blue light.
    Q: What does it do?
    A: It turns blue.

    Z 1 Reply Last reply 2 Mar 2020, 13:12
    1
    • J J.Hilk
      2 Mar 2020, 12:13

      @Zunneh hi
      do not copy and past stuff by hand, use the Windows deployment tool
      https://doc.qt.io/qt-5/windows-deployment.html

      each compiled (Qt)lib has one, so make sure to use the one from the 5.6.0 director (the build version)

      Z Offline
      Z Offline
      Zunneh
      wrote on 2 Mar 2020, 13:12 last edited by
      #3

      @J-Hilk
      Hi,
      thanks for your answer, i tried windeployqt and this is the result when i try to run

      779b6dad-6579-4476-afb4-85b88acaae5c-image.png

      it seems like windeploy Qt forget to add libwinpthread-1.dll, i added this file manually ( copy and paste ) and i still get the same problem

      159c7a7a-837e-4316-a455-a8864d998113-image.png

      Same problem...

      my english is average, please use simple words and try to be the most explicit, thank you

      J 1 Reply Last reply 2 Mar 2020, 13:13
      0
      • Z Zunneh
        2 Mar 2020, 13:12

        @J-Hilk
        Hi,
        thanks for your answer, i tried windeployqt and this is the result when i try to run

        779b6dad-6579-4476-afb4-85b88acaae5c-image.png

        it seems like windeploy Qt forget to add libwinpthread-1.dll, i added this file manually ( copy and paste ) and i still get the same problem

        159c7a7a-837e-4316-a455-a8864d998113-image.png

        Same problem...

        J Offline
        J Offline
        J.Hilk
        Moderators
        wrote on 2 Mar 2020, 13:13 last edited by J.Hilk 3 Feb 2020, 13:15
        #4

        @Zunneh did you remove the previously copied dlls beforehand ?

        And did you use the correct windeployqt ? (I have to ask 🙈)

        From the console command, I can see it matches with the version you said, was used for the program


        Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


        Q: What's that?
        A: It's blue light.
        Q: What does it do?
        A: It turns blue.

        Z 1 Reply Last reply 2 Mar 2020, 13:17
        0
        • J J.Hilk
          2 Mar 2020, 13:13

          @Zunneh did you remove the previously copied dlls beforehand ?

          And did you use the correct windeployqt ? (I have to ask 🙈)

          From the console command, I can see it matches with the version you said, was used for the program

          Z Offline
          Z Offline
          Zunneh
          wrote on 2 Mar 2020, 13:17 last edited by
          #5

          @J-Hilk yeah of course i removed the all dll before doing windeployQt ( i deleted all the content of release file then build it again )

          about the good version :

          c8c5a484-27d2-495f-a8eb-f3f96558905f-image.png

          my english is average, please use simple words and try to be the most explicit, thank you

          J 1 Reply Last reply 2 Mar 2020, 13:18
          0
          • Z Zunneh
            2 Mar 2020, 13:17

            @J-Hilk yeah of course i removed the all dll before doing windeployQt ( i deleted all the content of release file then build it again )

            about the good version :

            c8c5a484-27d2-495f-a8eb-f3f96558905f-image.png

            J Offline
            J Offline
            J.Hilk
            Moderators
            wrote on 2 Mar 2020, 13:18 last edited by
            #6

            @Zunneh 🤔
            do you have Qt Libs in your system path variable ?


            Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


            Q: What's that?
            A: It's blue light.
            Q: What does it do?
            A: It turns blue.

            Z 1 Reply Last reply 2 Mar 2020, 13:20
            0
            • J J.Hilk
              2 Mar 2020, 13:18

              @Zunneh 🤔
              do you have Qt Libs in your system path variable ?

              Z Offline
              Z Offline
              Zunneh
              wrote on 2 Mar 2020, 13:20 last edited by
              #7

              @J-Hilk

              ea7bc7f0-f004-4ef6-b1e8-a3fdc255e0cb-image.png

              my english is average, please use simple words and try to be the most explicit, thank you

              1 Reply Last reply
              0
              • H Offline
                H Offline
                hskoglund
                wrote on 2 Mar 2020, 15:35 last edited by
                #8

                Hi, it's a bit odd that your libwinpthread-1.dll is not from the same year as the other 2 MinGW dlls (libgcc_s_dw2-1.dll and libstdc++-6.dll).
                I've deployed lots of Qt MinGW installations, and every time I've seen that those 3 dlls: libwinpthread-1.dll, libgcc_s_dw2-1.dll and libstdc++-6.dll are from the same year, month and day (even the hour and minutes are the same).
                Maybe you can find a libwinpthread-1.dll that has the date summer of 2018 and not from december 2014.

                Z 1 Reply Last reply 2 Mar 2020, 19:44
                1
                • H hskoglund
                  2 Mar 2020, 15:35

                  Hi, it's a bit odd that your libwinpthread-1.dll is not from the same year as the other 2 MinGW dlls (libgcc_s_dw2-1.dll and libstdc++-6.dll).
                  I've deployed lots of Qt MinGW installations, and every time I've seen that those 3 dlls: libwinpthread-1.dll, libgcc_s_dw2-1.dll and libstdc++-6.dll are from the same year, month and day (even the hour and minutes are the same).
                  Maybe you can find a libwinpthread-1.dll that has the date summer of 2018 and not from december 2014.

                  Z Offline
                  Z Offline
                  Zunneh
                  wrote on 2 Mar 2020, 19:44 last edited by
                  #9

                  @hskoglund how can i find it ? its not easy...

                  my english is average, please use simple words and try to be the most explicit, thank you

                  1 Reply Last reply
                  0
                  • H Offline
                    H Offline
                    hskoglund
                    wrote on 2 Mar 2020, 19:57 last edited by
                    #10

                    Hi, libgcc_s_dw2-1.dll and libstdc++-6.dll are already on your computer, so try looking for all instances of libwinpthread-1.dll on your computer, open a CMD window and type:

                    dir C:\libwinpthread-1.dll /a/s
                    
                    Z 1 Reply Last reply 3 Mar 2020, 13:01
                    0
                    • H hskoglund
                      2 Mar 2020, 19:57

                      Hi, libgcc_s_dw2-1.dll and libstdc++-6.dll are already on your computer, so try looking for all instances of libwinpthread-1.dll on your computer, open a CMD window and type:

                      dir C:\libwinpthread-1.dll /a/s
                      
                      Z Offline
                      Z Offline
                      Zunneh
                      wrote on 3 Mar 2020, 13:01 last edited by
                      #11

                      @hskoglund No one was found with the same Date, i will try to Deploy with another version.
                      I have a question, if i deploy without the possibility to open my .exe in release, it will work ?

                      my english is average, please use simple words and try to be the most explicit, thank you

                      1 Reply Last reply
                      0
                      • H Offline
                        H Offline
                        hskoglund
                        wrote on 3 Mar 2020, 13:21 last edited by
                        #12

                        No, if double-clicking on the .exe does not start your application ok, then deploying would be just a waste of time.

                        One other possibility to get a good copy of libwinpthread-1.dll, you could try installing a newer version of Qt for the MinGW compiler, like the current one, it's 5.14.1.

                        Z 1 Reply Last reply 3 Mar 2020, 16:21
                        1
                        • H hskoglund
                          3 Mar 2020, 13:21

                          No, if double-clicking on the .exe does not start your application ok, then deploying would be just a waste of time.

                          One other possibility to get a good copy of libwinpthread-1.dll, you could try installing a newer version of Qt for the MinGW compiler, like the current one, it's 5.14.1.

                          Z Offline
                          Z Offline
                          Zunneh
                          wrote on 3 Mar 2020, 16:21 last edited by Zunneh 3 Mar 2020, 16:25
                          #13

                          @hskoglund
                          I made it finally, guess what i have done ? i changed the libstdc++-6.dll and libgcc_s_dw2-1.dll files to make the three files ( libstdc++-6.dll and libgcc_s_dw2-1.dll and libwinpthread-1.dll ) with the same date ( from 2014 ) and now it work perfectly, thanks for your Help
                          i don't know why but when i deployed the date of libstdc++-6.dll and libgcc_s_dw2-1.dll have changed ( or maybe he taked the wrong one )

                          3862a0c1-44e2-4898-b95d-f84618a67a6a-image.png

                          my english is average, please use simple words and try to be the most explicit, thank you

                          1 Reply Last reply
                          0

                          11/13

                          3 Mar 2020, 13:01

                          • Login

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