@hamoid wrote:
Hi! A hard to debug one:
Symptoms
Sometimes (not every day), while compiling from QtCreator, the whole OS becomes unresponsive. I see the available RAM go down to 0. If I notice this on time I can stop the compilation by pressing the red stop button in QtCreator. If I don't, then the computer may recover, or may become extremely slow taking it many seconds to switch to another window or open a terminal to try kill the clangbackend.
Current status
This kind of crash happened two days ago. When I rebooted the computer, I was instructed to repair the disk. Dozens of screens like this were shown:
Fortunately the system booted but I couldn't compile my project. I bought a new SSD and cloned the drive.A source file in an OF addon was full of binary gibberish. Strangely, git did not notice that this file had changed when doing
git status. I had to delete the file, then dogit checkout fileto get the file back.I still can not compile the project. I now get this error:
In file included from /home/funpro/src/openFrameworks/examples/3d/3DPrimitivesExample/src/ofApp.cpp:1: In file included from /home/funpro/src/openFrameworks/examples/3d/3DPrimitivesExample/src/ofApp.h:3: In file included from /home/funpro/src/openFrameworks/libs/openFrameworks/ofMain.h:5: In file included from /home/funpro/src/openFrameworks/libs/openFrameworks/utils/ofConstants.h:53: /bin/../lib64/gcc/x86_64-pc-linux-gnu/7.2.1/../../../../include/c++/7.2.1/cmath:45:15: fatal error: 'math.h' file not found #include_next <math.h> ^~~~~~~~ 1 error generated. Process failed with exit code 1.But math.h seems to be there:
ls -la /bin/../lib64/gcc/x86_64-pc-linux-gnu/7.2.1/../../../../include/c++/7.2.1/*math* -rw-r--r-- 1 root root 48484 Nov 28 22:27 /bin/../lib64/gcc/x86_64-pc-linux-gnu/7.2.1/../../../../include/c++/7.2.1/cmath -rw-r--r-- 1 root root 1360 Nov 28 22:27 /bin/../lib64/gcc/x86_64-pc-linux-gnu/7.2.1/../../../../include/c++/7.2.1/ctgmath -rw-r--r-- 1 root root 4380 Nov 28 22:27 /bin/../lib64/gcc/x86_64-pc-linux-gnu/7.2.1/../../../../include/c++/7.2.1/math.h -rw-r--r-- 1 root root 1360 Nov 28 22:27 /bin/../lib64/gcc/x86_64-pc-linux-gnu/7.2.1/../../../../include/c++/7.2.1/tgmath.hQuestions
Does QtCreator become unresponsive like this to anyone with medium sized projects? This used to happen when I had only 8Gb on my system, so I upgraded to 16Gb. It happens less often now, but still happens.
Any ideas about fixing compilation and the missing math.h? I tried reinstalling a few packages like clang, qtcreator, but I guess I didn't find the right one.
Tips or suggestions?
Idea: scan all .c .cpp .h files looking if any of those contain binary content. This way maybe I can find corrupted ones.
Posts: 4
Participants: 2