Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

memleak. compile hangs at qrc_firmwares.cpp.o #303

Open
milahu opened this issue Sep 1, 2019 · 1 comment
Open

memleak. compile hangs at qrc_firmwares.cpp.o #303

milahu opened this issue Sep 1, 2019 · 1 comment

Comments

@milahu
Copy link

milahu commented Sep 1, 2019

version = git eb33325

this command runs for 2 hours, and needs 100% cpu and endless ram

[ 98%] Building CXX object openhantek/CMakeFiles/OpenHantek.dir/OpenHantek_autogen/PNK5WDWK6L/qrc_firmwares.cpp.o

[ silence for 2 hours ]

c++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
make[2]: *** [openhantek/CMakeFiles/OpenHantek.dir/build.make:195: openhantek/CMakeFiles/OpenHantek.dir/src/docks/SpectrumDock.cpp.o] Error 1
make[2]: *** Deleting file 'openhantek/CMakeFiles/OpenHantek.dir/src/docks/SpectrumDock.cpp.o'

make[2]: *** Waiting for unfinished jobs....

c++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
make[2]: *** [openhantek/CMakeFiles/OpenHantek.dir/build.make:221: openhantek/CMakeFiles/OpenHantek.dir/src/docks/VoltageDock.cpp.o] Error 1
make[2]: *** Deleting file 'openhantek/CMakeFiles/OpenHantek.dir/src/docks/VoltageDock.cpp.o'

c++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
make[2]: *** [openhantek/CMakeFiles/OpenHantek.dir/build.make:208: openhantek/CMakeFiles/OpenHantek.dir/src/docks/TriggerDock.cpp.o] Error 1
make[2]: *** Deleting file 'openhantek/CMakeFiles/OpenHantek.dir/src/docks/TriggerDock.cpp.o'

[....]

warnings:

/tmp/openhantek/src/exporting/legacyexportdrawer.cpp: In static member function ‘static bool LegacyExportDrawer::exportSamples(const PPresult*, QPaintDevice*, const Dso::ControlSpecification*, const DsoSettings*, bool, const DsoSettingsColorValues*)’:
/tmp/openhantek/src/exporting/legacyexportdrawer.cpp:159:32: warning: ‘void QPainter::setMatrix(const QMatrix&, bool)’ is deprecated: Use setTransform() instead [-Wdeprecated-declarations]
  159 |                           false);
      |                                ^
In file included from /usr/include/qt/QtGui/QPainter:1,
                 from /tmp/openhantek/src/exporting/legacyexportdrawer.cpp:9:
/usr/include/qt/QtGui/qpainter.h:240:10: note: declared here
  240 |     void setMatrix(const QMatrix &matrix, bool combine = false);
      |          ^~~~~~~~~
/tmp/openhantek/src/exporting/legacyexportdrawer.cpp:254:36: warning: ‘void QPainter::setMatrix(const QMatrix&, bool)’ is deprecated: Use setTransform() instead [-Wdeprecated-declarations]
  254 |                               false);
      |                                    ^
In file included from /usr/include/qt/QtGui/QPainter:1,
                 from /tmp/openhantek/src/exporting/legacyexportdrawer.cpp:9:
/usr/include/qt/QtGui/qpainter.h:240:10: note: declared here
  240 |     void setMatrix(const QMatrix &matrix, bool combine = false);
      |          ^~~~~~~~~
/tmp/openhantek/src/exporting/legacyexportdrawer.cpp: In static member function ‘static void LegacyExportDrawer::drawGrids(QPainter&, const DsoSettingsColorValues*, double, double, int, bool, bool)’:
/tmp/openhantek/src/exporting/legacyexportdrawer.cpp:273:32: warning: ‘void QPainter::setMatrix(const QMatrix&, bool)’ is deprecated: Use setTransform() instead [-Wdeprecated-declarations]
  273 |                           false);
      |                                ^
In file included from /usr/include/qt/QtGui/QPainter:1,
                 from /tmp/openhantek/src/exporting/legacyexportdrawer.cpp:9:
/usr/include/qt/QtGui/qpainter.h:240:10: note: declared here
  240 |     void setMatrix(const QMatrix &matrix, bool combine = false);
      |          ^~~~~~~~~
make[1]: *** [CMakeFiles/Makefile2:157: openhantek/CMakeFiles/OpenHantek.dir/all] Error 2
make: *** [Makefile:152: all] Error 2

##  rc = 2   dT = 02:33:35.4186

i guess the compile only terminates, cos it runs out of swap space.
cpu is 100% all the time, and ram has a linear increase to 100% and then starts swapping.

ideas anyone?

how can i help?

@Ho-Ro
Copy link
Member

Ho-Ro commented Sep 1, 2019

Hi, did you call cmake .. before calling make?
Next idea - try make clean && make.
Otherwise you could try OpenHantek6022 (in case your device is a Hantek6022).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants