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
Forum Updated to NodeBB v4.3 + New Features

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 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.
  • Christian EhrlicherC Offline
    Christian EhrlicherC Offline
    Christian Ehrlicher
    Lifetime Qt Champion
    wrote on 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
    1
    • Christian EhrlicherC Christian Ehrlicher

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

      D Offline
      D Offline
      Dunant
      wrote on 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
      • Christian EhrlicherC Offline
        Christian EhrlicherC Offline
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on 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
        0
        • Christian EhrlicherC Christian Ehrlicher

          But what should we do against this then?

          D Offline
          D Offline
          Dunant
          wrote on 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
          • Christian EhrlicherC Offline
            Christian EhrlicherC Offline
            Christian Ehrlicher
            Lifetime Qt Champion
            wrote on 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
            0
            • Christian EhrlicherC Christian Ehrlicher

              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 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
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on 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
                0
                • SGaistS SGaist

                  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 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
                  0
                  • D Dunant

                    @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 last edited by
                    #10

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

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 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
                      0
                      • SGaistS SGaist

                        Did you check your RAM hardware health ?

                        D Offline
                        D Offline
                        Dunant
                        wrote on last edited by
                        #12

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

                        JonBJ 1 Reply Last reply
                        0
                        • D Dunant

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

                          JonBJ Offline
                          JonBJ Offline
                          JonB
                          wrote on 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
                          0
                          • JonBJ JonB

                            @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 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 last edited by Dunant
                              #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