Conversation
filelight no longer segfaults on startup. Added required dependencies on kirigami2 and kquickcharts. See https://invent.kde.org/utilities/filelight/-/commit/296d077b4b2f1e6827c5f8c3cdd3467b311520cc
|
I wonder why it won't crash on my machine. |
|
🤔 Does it still print this during startup for you as well? The build log is also still a bit suspicious: |
|
It appears these all ~innocuous errors that don't indicate unique issues with the running application. I am unsure why it works for you. As a quick check, does Kirigami warningkf.kirigami: Failed to find a Kirigami platform pluginComes up for kirigami based apps when either Runtime depsSee the notes towards the end of #137669 (comment) and several other ~spooky references about qmlplugindump in nixpkgs. My kde cmake extension understanding is limited. The ecm_find_qmlmodule call that adds these warnings wants to do things with the It appears -- The following RUNTIME packages have not been found:
* org.kde.kcm-QMLModule, QML module 'org.kde.kcm' is a runtime dependency.Plasma?Given these are all runtime dependencies perhaps your system has them pulled in some other way? It appears just adding the libs to your environment isn't enough to avoid a crash. (often the case when running kde apps within >nix-shell --pure -p libsForQt5.kirigami2 libsForQt5.kquickcharts filelight
[nix-shell:~/local-nixpkgs]$ filelight
QQmlComponent: Component is not ready
Segmentation fault (core dumped) |
|
The version is right for me. I tried to run the build from latest master before my first reply. Yes, I have some KDE apps installed through |
|
The backtrace is the following (ish, getting gdb working with qt/kde things is taking a lot of time). The error when doing a dev build is line 109 and 110 when it's not. https://invent.kde.org/utilities/filelight/-/blob/v22.08.3/src/mainContext.cpp#L108-110. #0 0x00007f5cf5cf4bc7 in __pthread_kill_implementation () from /nix/store/4nlgxhb09sdr51nc9hdm8az5b08vzkgx-glibc-2.35-163/lib/libc.so.6
#1 0x00007f5cf5ca7b46 in raise () from /nix/store/4nlgxhb09sdr51nc9hdm8az5b08vzkgx-glibc-2.35-163/lib/libc.so.6
#2 0x00007f5cf5c924b5 in abort () from /nix/store/4nlgxhb09sdr51nc9hdm8az5b08vzkgx-glibc-2.35-163/lib/libc.so.6
#3 0x00007f5cf62276ab in qt_message_fatal (message=<synthetic pointer>..., context=...) at global/qlogging.cpp:1914
#4 QMessageLogger::fatal (this=this@entry=0x7ffd70ac8568, msg=msg@entry=0x7f5cf651b110 "ASSERT: \"%s\" in file %s, line %d") at global/qlogging.cpp:893
#5 0x00007f5cf62265be in qt_assert (assertion=assertion@entry=0x43c141 "object", file=file@entry=0x43bf30 "/build/filelight-22.08.3/src/mainContext.cpp", line=line@entry=109) at global/qglobal.cpp:3366
#6 0x0000000000413571 in Filelight::MainContext::setupActions (this=0x7ffd70ac8ab0, engine=0x22cdb40) at /build/filelight-22.08.3/src/mainContext.cpp:109
#7 0x0000000000432b33 in Filelight::MainContext::MainContext (this=this@entry=0x7ffd70ac8ab0, parent=parent@entry=0x0) at /build/filelight-22.08.3/src/mainContext.cpp:56
#8 0x000000000041404f in main (argc=<optimized out>, argv=<optimized out>) at /build/filelight-22.08.3/src/main.cpp:76From the source perhaps something in this QQmlComponent creation finds a fallback on your system but not for mine when it crashes. (object ends up as null post the call to create) QQmlComponent component(engine, QUrl(QStringLiteral("qrc:/ui/Action.qml")));
QObject *object = component.create(); |
|
Successfully created backport PR #203572 for |
Description of changes
filelight crashes during startup with the following segfault
> filelight QQmlComponent: Component is not ready [1] 1114430 segmentation fault (core dumped) filelightThings done
Add missing dependency on kirigami and kquickcharts. Looks like they are needed for (at least?) v22.07.08+ see here for the commit that makes the dependency visible at build time.
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)nixos/doc/manual/md-to-db.shto update generated release notes