oguzhaninan / Stacer

Linux System Optimizer and Monitoring - https://oguzhaninan.github.io/Stacer-Web
GNU General Public License v3.0
8.85k stars 603 forks source link

segmentation fault - stacer crash while starting #349

Open gearcapitan opened 4 years ago

gearcapitan commented 4 years ago

Terminal compile output

─[0] <git:(native d1997f6) > make -j $(nproc) Scanning dependencies of target stacer-core_autogen [ 1%] Automatic MOC for target stacer-core [ 1%] Built target stacer-core_autogen Scanning dependencies of target stacer-core [ 5%] Building CXX object stacer-core/CMakeFiles/stacer-core.dir/stacer-core_autogen/mocs_compilation.cpp.o [ 7%] Building CXX object stacer-core/CMakeFiles/stacer-core.dir/Info/disk_info.cpp.o [ 5%] Building CXX object stacer-core/CMakeFiles/stacer-core.dir/Info/cpu_info.cpp.o [ 8%] Building CXX object stacer-core/CMakeFiles/stacer-core.dir/Info/process.cpp.o [ 12%] Building CXX object stacer-core/CMakeFiles/stacer-core.dir/Info/network_info.cpp.o [ 12%] Building CXX object stacer-core/CMakeFiles/stacer-core.dir/Info/memory_info.cpp.o [ 14%] Building CXX object stacer-core/CMakeFiles/stacer-core.dir/Info/system_info.cpp.o [ 16%] Building CXX object stacer-core/CMakeFiles/stacer-core.dir/Info/process_info.cpp.o [ 17%] Building CXX object stacer-core/CMakeFiles/stacer-core.dir/Tools/gnome_settings_tool.cpp.o [ 19%] Building CXX object stacer-core/CMakeFiles/stacer-core.dir/Tools/apt_source_tool.cpp.o [ 21%] Building CXX object stacer-core/CMakeFiles/stacer-core.dir/Tools/service_tool.cpp.o [ 23%] Building CXX object stacer-core/CMakeFiles/stacer-core.dir/Tools/package_tool.cpp.o [ 25%] Building CXX object stacer-core/CMakeFiles/stacer-core.dir/Utils/file_util.cpp.o [ 26%] Building CXX object stacer-core/CMakeFiles/stacer-core.dir/Utils/command_util.cpp.o [ 28%] Building CXX object stacer-core/CMakeFiles/stacer-core.dir/Utils/format_util.cpp.o [ 30%] Linking CXX static library ../output/lib/libstacer-core.a [ 30%] Built target stacer-core Scanning dependencies of target stacer_autogen [ 32%] Automatic MOC and UIC for target stacer AutoUic: /root/Stacer/stacer/app.ui: Warning: Z-order assignment: 'verticalSpacer_2' is not a valid widget. [ 32%] Built target stacer_autogen [ 33%] Automatic RCC for static.qrc Scanning dependencies of target stacer [ 35%] Building CXX object stacer/CMakeFiles/stacer.dir/Managers/info_manager.cpp.o [ 37%] Building CXX object stacer/CMakeFiles/stacer.dir/Managers/tool_manager.cpp.o [ 41%] Building CXX object stacer/CMakeFiles/stacer.dir/Managers/app_manager.cpp.o [ 41%] Building CXX object stacer/CMakeFiles/stacer.dir/stacer_autogen/mocs_compilation.cpp.o [ 42%] Building CXX object stacer/CMakeFiles/stacer.dir/Pages/AptSourceManager/apt_source_repository_item.cpp.o [ 44%] Building CXX object stacer/CMakeFiles/stacer.dir/Pages/AptSourceManager/apt_source_manager_page.cpp.o [ 46%] Building CXX object stacer/CMakeFiles/stacer.dir/Managers/setting_manager.cpp.o [ 48%] Building CXX object stacer/CMakeFiles/stacer.dir/Pages/AptSourceManager/apt_source_edit.cpp.o [ 50%] Building CXX object stacer/CMakeFiles/stacer.dir/Pages/Dashboard/circlebar.cpp.o [ 51%] Building CXX object stacer/CMakeFiles/stacer.dir/Pages/Dashboard/dashboard_page.cpp.o [ 53%] Building CXX object stacer/CMakeFiles/stacer.dir/Pages/Dashboard/linebar.cpp.o [ 55%] Building CXX object stacer/CMakeFiles/stacer.dir/Pages/GnomeSettings/appearance_settings.cpp.o [ 57%] Building CXX object stacer/CMakeFiles/stacer.dir/Pages/GnomeSettings/window_manager_settings.cpp.o [ 58%] Building CXX object stacer/CMakeFiles/stacer.dir/Pages/GnomeSettings/gnome_settings_page.cpp.o [ 60%] Building CXX object stacer/CMakeFiles/stacer.dir/Pages/GnomeSettings/unity_settings.cpp.o [ 62%] Building CXX object stacer/CMakeFiles/stacer.dir/Pages/Processes/processes_page.cpp.o [ 64%] Building CXX object stacer/CMakeFiles/stacer.dir/Pages/Helpers/host_manage.cpp.o [ 66%] Building CXX object stacer/CMakeFiles/stacer.dir/Pages/Helpers/helpers_page.cpp.o [ 67%] Building CXX object stacer/CMakeFiles/stacer.dir/Pages/Resources/history_chart.cpp.o [ 69%] Building CXX object stacer/CMakeFiles/stacer.dir/Pages/Resources/resources_page.cpp.o [ 71%] Building CXX object stacer/CMakeFiles/stacer.dir/Pages/Search/search_page.cpp.o /root/Stacer/stacer/Pages/Resources/history_chart.cpp: In constructor ‘HistoryChart::HistoryChart(const QString&, const int&, QtCharts::QCategoryAxis, QWidget)’: /root/Stacer/stacer/Pages/Resources/history_chart.cpp:25:55: warning: ‘void QtCharts::QChart::setAxisY(QtCharts::QAbstractAxis, QtCharts::QAbstractSeries)’ is deprecated [-Wdeprecated-declarations] 25 | mChart->setAxisY(mAxisY, mSeriesList.at(i)); | ^ In file included from /usr/include/x86_64-linux-gnu/qt5/QtCharts/QtCharts:25, from /root/Stacer/stacer/Pages/Resources/history_chart.h:6, from /root/Stacer/stacer/Pages/Resources/history_chart.cpp:1: /usr/include/x86_64-linux-gnu/qt5/QtCharts/qchart.h:108:28: note: declared here 108 | Q_DECL_DEPRECATED void setAxisY(QAbstractAxis axis, QAbstractSeries series = nullptr); | ^~~~ /root/Stacer/stacer/Pages/Resources/history_chart.cpp: In member function ‘void HistoryChart::init()’: /root/Stacer/stacer/Pages/Resources/history_chart.cpp:56:19: warning: ‘QtCharts::QAbstractAxis QtCharts::QChart::axisX(QtCharts::QAbstractSeries) const’ is deprecated [-Wdeprecated-declarations] 56 | mChart->axisX()->setRange(0, 60); | ^ In file included from /usr/include/x86_64-linux-gnu/qt5/QtCharts/QtCharts:25, from /root/Stacer/stacer/Pages/Resources/history_chart.h:6, from /root/Stacer/stacer/Pages/Resources/history_chart.cpp:1: /usr/include/x86_64-linux-gnu/qt5/QtCharts/qchart.h:109:38: note: declared here 109 | Q_DECL_DEPRECATED QAbstractAxis axisX(QAbstractSeries series = nullptr) const; | ^~~~~ /root/Stacer/stacer/Pages/Resources/history_chart.cpp:57:19: warning: ‘QtCharts::QAbstractAxis QtCharts::QChart::axisX(QtCharts::QAbstractSeries) const’ is deprecated [-Wdeprecated-declarations] 57 | mChart->axisX()->setReverse(true); | ^ In file included from /usr/include/x86_64-linux-gnu/qt5/QtCharts/QtCharts:25, from /root/Stacer/stacer/Pages/Resources/history_chart.h:6, from /root/Stacer/stacer/Pages/Resources/history_chart.cpp:1: /usr/include/x86_64-linux-gnu/qt5/QtCharts/qchart.h:109:38: note: declared here 109 | Q_DECL_DEPRECATED QAbstractAxis axisX(QAbstractSeries series = nullptr) const; | ^~~~~ /root/Stacer/stacer/Pages/Resources/history_chart.cpp: In lambda function: /root/Stacer/stacer/Pages/Resources/history_chart.cpp:69:23: warning: ‘QtCharts::QAbstractAxis QtCharts::QChart::axisX(QtCharts::QAbstractSeries) const’ is deprecated [-Wdeprecated-declarations] 69 | mChart->axisX()->setLabelsColor(chartLabelColor); | ^ In file included from /usr/include/x86_64-linux-gnu/qt5/QtCharts/QtCharts:25, from /root/Stacer/stacer/Pages/Resources/history_chart.h:6, from /root/Stacer/stacer/Pages/Resources/history_chart.cpp:1: /usr/include/x86_64-linux-gnu/qt5/QtCharts/qchart.h:109:38: note: declared here 109 | Q_DECL_DEPRECATED QAbstractAxis axisX(QAbstractSeries series = nullptr) const; | ^~~~~ /root/Stacer/stacer/Pages/Resources/history_chart.cpp:70:23: warning: ‘QtCharts::QAbstractAxis QtCharts::QChart::axisX(QtCharts::QAbstractSeries) const’ is deprecated [-Wdeprecated-declarations] 70 | mChart->axisX()->setGridLineColor(chartGridColor); | ^ In file included from /usr/include/x86_64-linux-gnu/qt5/QtCharts/QtCharts:25, from /root/Stacer/stacer/Pages/Resources/history_chart.h:6, from /root/Stacer/stacer/Pages/Resources/history_chart.cpp:1: /usr/include/x86_64-linux-gnu/qt5/QtCharts/qchart.h:109:38: note: declared here 109 | Q_DECL_DEPRECATED QAbstractAxis axisX(QAbstractSeries series = nullptr) const; | ^~~~~ /root/Stacer/stacer/Pages/Resources/history_chart.cpp:72:23: warning: ‘QtCharts::QAbstractAxis QtCharts::QChart::axisY(QtCharts::QAbstractSeries) const’ is deprecated [-Wdeprecated-declarations] 72 | mChart->axisY()->setLabelsColor(chartLabelColor); | ^ In file included from /usr/include/x86_64-linux-gnu/qt5/QtCharts/QtCharts:25, from /root/Stacer/stacer/Pages/Resources/history_chart.h:6, from /root/Stacer/stacer/Pages/Resources/history_chart.cpp:1: /usr/include/x86_64-linux-gnu/qt5/QtCharts/qchart.h:110:38: note: declared here 110 | Q_DECL_DEPRECATED QAbstractAxis axisY(QAbstractSeries series = nullptr) const; | ^~~~~ /root/Stacer/stacer/Pages/Resources/history_chart.cpp:73:23: warning: ‘QtCharts::QAbstractAxis QtCharts::QChart::axisY(QtCharts::QAbstractSeries) const’ is deprecated [-Wdeprecated-declarations] 73 | mChart->axisY()->setGridLineColor(chartGridColor); | ^ In file included from /usr/include/x86_64-linux-gnu/qt5/QtCharts/QtCharts:25, from /root/Stacer/stacer/Pages/Resources/history_chart.h:6, from /root/Stacer/stacer/Pages/Resources/history_chart.cpp:1: /usr/include/x86_64-linux-gnu/qt5/QtCharts/qchart.h:110:38: note: declared here 110 | Q_DECL_DEPRECATED QAbstractAxis axisY(QAbstractSeries series = nullptr) const; | ^~~~~ /root/Stacer/stacer/Pages/Resources/history_chart.cpp: In member function ‘void HistoryChart::setYMax(const int&)’: /root/Stacer/stacer/Pages/Resources/history_chart.cpp:82:19: warning: ‘QtCharts::QAbstractAxis QtCharts::QChart::axisY(QtCharts::QAbstractSeries) const’ is deprecated [-Wdeprecated-declarations] 82 | mChart->axisY()->setRange(0, value); | ^ In file included from /usr/include/x86_64-linux-gnu/qt5/QtCharts/QtCharts:25, from /root/Stacer/stacer/Pages/Resources/history_chart.h:6, from /root/Stacer/stacer/Pages/Resources/history_chart.cpp:1: /usr/include/x86_64-linux-gnu/qt5/QtCharts/qchart.h:110:38: note: declared here 110 | Q_DECL_DEPRECATED QAbstractAxis axisY(QAbstractSeries series = nullptr) const; | ^~~~~ [ 73%] Building CXX object stacer/CMakeFiles/stacer.dir/Pages/Services/service_item.cpp.o [ 75%] Building CXX object stacer/CMakeFiles/stacer.dir/Pages/Services/services_page.cpp.o /root/Stacer/stacer/Pages/Search/search_page.cpp: In member function ‘QList<QStandardItem> SearchPage::createRow(const QString&)’: /root/Stacer/stacer/Pages/Search/search_page.cpp:326:73: warning: ‘QDateTime QFileInfo::created() const’ is deprecated: Use either birthTime() or metadataChangeTime() [-Wdeprecated-declarations] 326 | QStandardItem i_creationTime = new QStandardItem(fileInfo->created().toString(mSearchResultDateFormat)); | ^ In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qdir.h:44, from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qfiledialog.h:44, from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QFileDialog:1, from /root/Stacer/stacer/Pages/Search/search_page.h:5, from /root/Stacer/stacer/Pages/Search/search_page.cpp:1: /usr/include/x86_64-linux-gnu/qt5/QtCore/qfileinfo.h:135:15: note: declared here 135 | QDateTime created() const; | ^~~ /root/Stacer/stacer/Pages/Search/search_page.cpp:327:47: warning: ‘QDateTime QFileInfo::created() const’ is deprecated: Use either birthTime() or metadataChangeTime() [-Wdeprecated-declarations] 327 | i_creationTime->setData(fileInfo->created().toString(mSearchResultDateFormat), rowRole); | ^ In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qdir.h:44, from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qfiledialog.h:44, from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QFileDialog:1, from /root/Stacer/stacer/Pages/Search/search_page.h:5, from /root/Stacer/stacer/Pages/Search/search_page.cpp:1: /usr/include/x86_64-linux-gnu/qt5/QtCore/qfileinfo.h:135:15: note: declared here 135 | QDateTime created() const; | ^~~ /root/Stacer/stacer/Pages/Search/search_page.cpp:328:47: warning: ‘QDateTime QFileInfo::created() const’ is deprecated: Use either birthTime() or metadataChangeTime() [-Wdeprecated-declarations] 328 | i_creationTime->setData(fileInfo->created().toString(mSearchResultDateFormat), Qt::ToolTipRole); | ^ In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qdir.h:44, from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qfiledialog.h:44, from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QFileDialog:1, from /root/Stacer/stacer/Pages/Search/search_page.h:5, from /root/Stacer/stacer/Pages/Search/search_page.cpp:1: /usr/include/x86_64-linux-gnu/qt5/QtCore/qfileinfo.h:135:15: note: declared here 135 | QDateTime created() const; | ^~~ [ 76%] Building CXX object stacer/CMakeFiles/stacer.dir/Pages/Settings/settings_page.cpp.o [ 78%] Building CXX object stacer/CMakeFiles/stacer.dir/Pages/StartupApps/startup_app.cpp.o [ 80%] Building CXX object stacer/CMakeFiles/stacer.dir/Pages/StartupApps/startup_app_edit.cpp.o [ 82%] Building CXX object stacer/CMakeFiles/stacer.dir/Pages/SystemCleaner/byte_tree_widget.cpp.o [ 83%] Building CXX object stacer/CMakeFiles/stacer.dir/Pages/StartupApps/startup_apps_page.cpp.o /root/Stacer/stacer/Pages/StartupApps/startup_app_edit.cpp: In member function ‘void StartupAppEdit::init()’: /root/Stacer/stacer/Pages/StartupApps/startup_app_edit.cpp:34:56: warning: ‘const QRect QDesktopWidget::availableGeometry(int) const’ is deprecated: Use QGuiApplication::screens() [-Wdeprecated-declarations] 34 | size(), qApp->desktop()->availableGeometry()) | ^ In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QDesktopWidget:1, from /root/Stacer/stacer/Pages/StartupApps/startup_app_edit.h:5, from /root/Stacer/stacer/Pages/StartupApps/startup_app_edit.cpp:1: /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qdesktopwidget.h:86:67: note: declared here 86 | QT_DEPRECATED_X("Use QGuiApplication::screens()") const QRect availableGeometry(int screen = -1) const; | ^~~~~ [ 85%] Building CXX object stacer/CMakeFiles/stacer.dir/Pages/SystemCleaner/system_cleaner_page.cpp.o [ 87%] Building CXX object stacer/CMakeFiles/stacer.dir/Pages/Uninstaller/uninstaller_page.cpp.o [ 89%] Building CXX object stacer/CMakeFiles/stacer.dir/app.cpp.o [ 91%] Building CXX object stacer/CMakeFiles/stacer.dir/feedback.cpp.o [ 92%] Building CXX object stacer/CMakeFiles/stacer.dir/main.cpp.o [ 94%] Building CXX object stacer/CMakeFiles/stacer.dir/signal_mapper.cpp.o /root/Stacer/stacer/app.cpp: In member function ‘void App::init()’: /root/Stacer/stacer/app.cpp:28:56: warning: ‘const QRect QDesktopWidget::availableGeometry(int) const’ is deprecated: Use QGuiApplication::screens() [-Wdeprecated-declarations] 28 | size(), qApp->desktop()->availableGeometry()) | ^ In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QtWidgets:58, from /usr/include/x86_64-linux-gnu/qt5/QtCharts/QtChartsDepends:5, from /usr/include/x86_64-linux-gnu/qt5/QtCharts/QtCharts:3, from /root/Stacer/stacer/Pages/Dashboard/circlebar.h:5, from /root/Stacer/stacer/Pages/Dashboard/dashboard_page.h:13, from /root/Stacer/stacer/app.h:11, from /root/Stacer/stacer/app.cpp:1: /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qdesktopwidget.h:86:67: note: declared here 86 | QT_DEPRECATED_X("Use QGuiApplication::screens()") const QRect availableGeometry(int screen = -1) const; | ^~~~~ [ 96%] Building CXX object stacer/CMakeFiles/stacer.dir/stacer_autogen/EWIEGA46WW/qrc_static.cpp.o [ 98%] Building CXX object stacer/CMakeFiles/stacer.dir/sliding_stacked_widget.cpp.o [100%] Linking CXX executable ../output/stacer [100%] Built target stacer

imagen 27266 segmentation fault ./stacer And never start

alexmyczko commented 4 years ago

strace ./stacer might give you a hint why it segfaults

what system is that exactly?

gearcapitan commented 4 years ago

my system is Kali linux latested version 2020

alexmyczko commented 4 years ago

can you try the kali repo binary pkg? https://repology.org/project/stacer/versions

ghost commented 4 years ago

I think I found the issue, in my Debian 10 vm it was also crashing at startup, made a pull request https://github.com/oguzhaninan/Stacer/pull/389