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 . because the same code run it successful ,when I del a blank , then crashed. and I also make clean the project.
@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.
-
@jsulm t\ yes SIGSEGV, I just changed the annotation.  this is not crashed
@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). -
@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). -
Ok, lets get some assumptions out of the way:
- This application used to run successfully, but now it doesn't.
- 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 ? -
Ok, lets get some assumptions out of the way:
- This application used to run successfully, but now it doesn't.
- 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 ?@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
-
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