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. QThread::start: Failed to create thread (The access code is invalid.) terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc
QtWS25 Last Chance

QThread::start: Failed to create thread (The access code is invalid.) terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc

Scheduled Pinned Locked Moved Unsolved General and Desktop
15 Posts 4 Posters 1.8k 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.
  • D Offline
    D Offline
    Dunant
    wrote on 26 Apr 2021, 03:39 last edited by
    #1

    Dear All,

    i am having program crashed with message :

    • QThread::start: Failed to create thread (The access code is invalid.)
    • terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc
    • This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information

    Please kindly advise me, is it caused by Operating System Windows 2016 (that i am using) or caused by the QT Compiler not compatible or coding issue ?

    thank you for your kind attention.

    best regards,
    dunant

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on 26 Apr 2021, 04:58 last edited by
      #2

      Use a debugger, take a look at the backtrace where it crashes and why.

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

      D 1 Reply Last reply 26 Apr 2021, 05:09
      1
      • C Christian Ehrlicher
        26 Apr 2021, 04:58

        Use a debugger, take a look at the backtrace where it crashes and why.

        D Offline
        D Offline
        Dunant
        wrote on 26 Apr 2021, 05:09 last edited by
        #3

        @Christian-Ehrlicher : actually i am the end-user of the application. My developer said it is caused by my server's Operating System Windows 2016 that causee his program crashed and displaying the messages i mentioned above

        1 Reply Last reply
        0
        • C Offline
          C Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on 26 Apr 2021, 05:12 last edited by
          #4

          But what should we do against this then?

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

          D 1 Reply Last reply 26 Apr 2021, 05:32
          0
          • C Christian Ehrlicher
            26 Apr 2021, 05:12

            But what should we do against this then?

            D Offline
            D Offline
            Dunant
            wrote on 26 Apr 2021, 05:32 last edited by
            #5

            @Christian-Ehrlicher : if from your view, based on your long experiences, may i know is it caused by Operating System Windows 2016 (that i am using) or caused by the QT Compiler not compatible or coding issue ?

            1 Reply Last reply
            0
            • C Offline
              C Offline
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote on 26 Apr 2021, 05:37 last edited by
              #6

              It can be all of them. Since Windows Server 2016 is based on Win10 I doubt it's an OS issue. The only way to find it out is to debug the crash.

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

              D 1 Reply Last reply 26 Apr 2021, 05:44
              0
              • C Christian Ehrlicher
                26 Apr 2021, 05:37

                It can be all of them. Since Windows Server 2016 is based on Win10 I doubt it's an OS issue. The only way to find it out is to debug the crash.

                D Offline
                D Offline
                Dunant
                wrote on 26 Apr 2021, 05:44 last edited by
                #7

                @Christian-Ehrlicher : oh i see, many many thanks for your view and feedback , really appreciated. Let me once again check with them. By the way, anybody here in the Forum feel free to give your feedback or comments, thank you for all your kind attention

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 26 Apr 2021, 21:40 last edited by
                  #8

                  Hi,

                  In addition to @Christian-Ehrlicher, are you running a 32 or 64bit version of the OS ? What about the application ?

                  One of the reasons for that error to be thrown is memory exhaustion but it's not the only one. See here.

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

                  D 1 Reply Last reply 27 Apr 2021, 00:56
                  0
                  • S SGaist
                    26 Apr 2021, 21:40

                    Hi,

                    In addition to @Christian-Ehrlicher, are you running a 32 or 64bit version of the OS ? What about the application ?

                    One of the reasons for that error to be thrown is memory exhaustion but it's not the only one. See here.

                    D Offline
                    D Offline
                    Dunant
                    wrote on 27 Apr 2021, 00:56 last edited by Dunant
                    #9

                    @SGaist : oh, i am running Windows Server 2016 64-bit, let me attached the screen capture for your view : QThread_captured.jpg

                    D 1 Reply Last reply 13 Sept 2021, 15:07
                    0
                    • D Dunant
                      27 Apr 2021, 00:56

                      @SGaist : oh, i am running Windows Server 2016 64-bit, let me attached the screen capture for your view : QThread_captured.jpg

                      D Offline
                      D Offline
                      Dunant
                      wrote on 13 Sept 2021, 15:07 last edited by
                      #10

                      @SGaist , the application built in 64bit. The Windows Server 2016 is 64bit

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on 13 Sept 2021, 19:07 last edited by
                        #11

                        Did you check your RAM hardware health ?

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

                        D 1 Reply Last reply 14 Sept 2021, 09:39
                        0
                        • S SGaist
                          13 Sept 2021, 19:07

                          Did you check your RAM hardware health ?

                          D Offline
                          D Offline
                          Dunant
                          wrote on 14 Sept 2021, 09:39 last edited by
                          #12

                          @SGaist , the RAM is 16 GB, the available /free RAM still 13,4 GB

                          JonBJ 1 Reply Last reply 14 Sept 2021, 10:09
                          0
                          • D Dunant
                            14 Sept 2021, 09:39

                            @SGaist , the RAM is 16 GB, the available /free RAM still 13,4 GB

                            JonBJ Offline
                            JonBJ Offline
                            JonB
                            wrote on 14 Sept 2021, 10:09 last edited by
                            #13

                            @Dunant
                            I don't think @SGaist [please correct me if I have misinterpreted] is asking you to report how much RAM you have, he is asking to "check your RAM hardware health". I read that as run a physical hardware memory checker. I don't know why he suspects that from the output you showed, but he usually knows what he is talking about....

                            D 1 Reply Last reply 16 Sept 2021, 02:54
                            0
                            • JonBJ JonB
                              14 Sept 2021, 10:09

                              @Dunant
                              I don't think @SGaist [please correct me if I have misinterpreted] is asking you to report how much RAM you have, he is asking to "check your RAM hardware health". I read that as run a physical hardware memory checker. I don't know why he suspects that from the output you showed, but he usually knows what he is talking about....

                              D Offline
                              D Offline
                              Dunant
                              wrote on 16 Sept 2021, 02:54 last edited by
                              #14

                              @JonB the RAM hardware health is good, based on my visual monitoring

                              1 Reply Last reply
                              0
                              • D Offline
                                D Offline
                                Dunant
                                wrote on 1 Nov 2021, 07:33 last edited by Dunant 11 Jan 2021, 07:35
                                #15

                                since 29 March 2021 until today (already 7 months), the application not crashing anymore due to every midnight i did restart the operating system Windows Server 2016.
                                Today i just had meeting with our vendor, the vendor still saying nothing wrong with the application , not admitting their application that caused the crash problem, and blame our server's operating system that having problem. I am not programmer/developer so i have nothing to say. At the end of the discussion, our vendor informing us to use Linux Red Hat operating system which they claimed no issue. I will discuss internally about this.

                                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