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. My Qt application in Centos always crashed, but I do not changed any code ? just del a blank
Forum Updated to NodeBB v4.3 + New Features

My Qt application in Centos always crashed, but I do not changed any code ? just del a blank

Scheduled Pinned Locked Moved Unsolved General and Desktop
11 Posts 4 Posters 1.4k 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.
  • ShaeS Offline
    ShaeS Offline
    Shae
    wrote on last edited by aha_1980
    #1

    this made me very sad ,And I do not know the reason? give me some suggestions please

    jsulmJ 1 Reply Last reply
    0
    • ShaeS Shae

      this made me very sad ,And I do not know the reason? give me some suggestions please

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Shae First thing to do: run your app through debugger to see where it crashes.
      Also, what kind of crash is it? SIGSEGV?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • ShaeS Offline
        ShaeS Offline
        Shae
        wrote on last edited by
        #3

        Hi ,thanks for you reply. I have tried, the debug told me some function have problem . but I do not think this is the correct . because the same code run it successful ,when I del a blank , then crashed. and I also make clean the project.

        J.HilkJ 1 Reply Last reply
        0
        • ShaeS Shae

          Hi ,thanks for you reply. I have tried, the debug told me some function have problem . but I do not think this is the correct . because the same code run it successful ,when I del a blank , then crashed. and I also make clean the project.

          J.HilkJ Offline
          J.HilkJ Offline
          J.Hilk
          Moderators
          wrote on last edited by
          #4

          @Shae said in My Qt application in Centos always crashed ,but I do not changed any code ? just del a blank:

          Hi ,thanks for you reply. I have tried, the debug told me some function have problem . but I do not think this is the correct .

          Very few people can claim to know more/better than the debugger and those people usually write debuggers for a living.

          Why don't you post the code section the debuger highlighted and what exactly you deleted.


          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.

          1 Reply Last reply
          4
          • ShaeS Offline
            ShaeS Offline
            Shae
            wrote on last edited by
            #5

            @jsulm t\ yes SIGSEGV, I just changed the annotation. ![alt text](0_1547627062216_6147c9be-7dee-4b2c-83f9-95bab41a1cbd-image.png image url) this is not crashed

            jsulmJ 1 Reply Last reply
            0
            • ShaeS Shae

              @jsulm t\ yes SIGSEGV, I just changed the annotation. ![alt text](0_1547627062216_6147c9be-7dee-4b2c-83f9-95bab41a1cbd-image.png image url) this is not crashed

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @Shae The content of you pro file will not help to identify the problem.
              Please run through debugger and post stack trace when the app is crashing.
              Else there is no way to tell you why it is crashing (you did not even post the relevant code).

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              ShaeS 1 Reply Last reply
              3
              • jsulmJ jsulm

                @Shae The content of you pro file will not help to identify the problem.
                Please run through debugger and post stack trace when the app is crashing.
                Else there is no way to tell you why it is crashing (you did not even post the relevant code).

                ShaeS Offline
                ShaeS Offline
                Shae
                wrote on last edited by
                #7

                @jsulm ![alt text](0_1547716053349_cd07e15c-9bc2-4b2d-830d-5d845292da92-image.png image url) the same code in a test is successful ,but in my huge project is wrong ,For test, I use this code in my Projet's Mainwindow. the debugger do not tell me enough information.

                1 Reply Last reply
                0
                • ShaeS Offline
                  ShaeS Offline
                  Shae
                  wrote on last edited by
                  #8

                  I use my test.pro to overwrite my project, it also crashed, unbeliveable

                  1 Reply Last reply
                  0
                  • mranger90M Offline
                    mranger90M Offline
                    mranger90
                    wrote on last edited by
                    #9

                    Ok, lets get some assumptions out of the way:

                    1. This application used to run successfully, but now it doesn't.
                    2. The only change made to your code is the removal of a blank or blank line.

                    If condition 2 is really true, then something else is going on.
                    Was there a system update ? Did you update Qt ?
                    Was there a change in the system environment, like PATH or other variable that could cause some library conflict ?

                    ShaeS 1 Reply Last reply
                    2
                    • mranger90M mranger90

                      Ok, lets get some assumptions out of the way:

                      1. This application used to run successfully, but now it doesn't.
                      2. The only change made to your code is the removal of a blank or blank line.

                      If condition 2 is really true, then something else is going on.
                      Was there a system update ? Did you update Qt ?
                      Was there a change in the system environment, like PATH or other variable that could cause some library conflict ?

                      ShaeS Offline
                      ShaeS Offline
                      Shae
                      wrote on last edited by
                      #10

                      @mranger90 No, I use the same compile environment. at the same time ,the test project can run well, but I overwrite the test project's pro and source file to my project, it crashed , I am confused about this. the same code ,the same environment, then one crashed

                      1 Reply Last reply
                      0
                      • mranger90M Offline
                        mranger90M Offline
                        mranger90
                        wrote on last edited by
                        #11

                        Then you are going to have to tell us in great detail exactly what you are doing.
                        You say that this all started when you removed a blank. From where ? The source code ? the pro file ? a .pri or .prf file ?
                        For instance I don't understand what you mean by:

                        "the test project can run well, but I overwrite the test project's pro and source file to my project, "

                        So tell us what exactly happens in detailed step, like:
                        Step 1. I open my project in QtCreator Version (xxx.yyy)
                        Step 2. Project | Clean
                        Step 3. Project | Run QMake
                        Step 4. Project | Rebuild
                        Step 5. Project Execute - Ok
                        < Now I overwrite pro file ???>
                        Step 6. File | Open Project ????
                        ....
                        Step N: Project | Execute - Seg fault

                        1 Reply Last reply
                        2

                        • Login

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