[neon] [Bug 457974] Snap kdevelop crashes at launch
https://bugs.kde.org/show_bug.cgi?id=457974 --- Comment #50 from Maximilian Federle --- you know the drill: https://invent.kde.org/packaging/snapcraft-kde-applications/-/jobs/440089 -- You are receiving this mail because: You are watching all bug changes.
[neon] [Bug 457974] Snap kdevelop crashes at launch
https://bugs.kde.org/show_bug.cgi?id=457974 Maximilian Federle changed: What|Removed |Added Latest Commit|https://invent.kde.org/pack |https://invent.kde.org/pack |aging/snapcraft-kde-applica |aging/snapcraft-kde-applica |tions/commit/353a94da6c0f6a |tions/commit/6ecc72a65610d2 |74d8f690e79f53bc893596ec2a |3476a2b905476d929ed75dcb0a --- Comment #49 from Maximilian Federle --- Git commit 6ecc72a65610d23476a2b905476d929ed75dcb0a by Maximilian Federle. Committed on 19/08/2022 at 18:29. Pushed by mfederle into branch 'Neon/release'. kdevelop: Unset env variables in MIDebugger M +22 -2kdevelop/patches/kdevelop_unset_env.patch https://invent.kde.org/packaging/snapcraft-kde-applications/commit/6ecc72a65610d23476a2b905476d929ed75dcb0a -- You are receiving this mail because: You are watching all bug changes.
[neon] [Bug 457974] Snap kdevelop crashes at launch
https://bugs.kde.org/show_bug.cgi?id=457974 --- Comment #47 from Maximilian Federle --- if you can find where the GDB environment is constructed (probably somewhere in https://github.com/KDE/kdevelop/tree/master/plugins/gdb), we can also patch it out. -- You are receiving this mail because: You are watching all bug changes.
[neon] [Bug 457974] Snap kdevelop crashes at launch
https://bugs.kde.org/show_bug.cgi?id=457974 --- Comment #44 from Maximilian Federle --- The snap now patches the console view & the executor class for the launch jobs to drop LIBGL_DRIVERS_PATH, and QML2_IMPORT_PATH has been removed from the environment altogether. Try the candidate snap when this job has finished: https://invent.kde.org/packaging/snapcraft-kde-applications/-/jobs/439467 -- You are receiving this mail because: You are watching all bug changes.
[neon] [Bug 457974] Snap kdevelop crashes at launch
https://bugs.kde.org/show_bug.cgi?id=457974 Maximilian Federle changed: What|Removed |Added Latest Commit|https://invent.kde.org/pack |https://invent.kde.org/pack |aging/snapcraft-kde-applica |aging/snapcraft-kde-applica |tions/commit/f32a8f04f1c172 |tions/commit/353a94da6c0f6a |e93f9b2636516a075a65af9393 |74d8f690e79f53bc893596ec2a --- Comment #43 from Maximilian Federle --- Git commit 353a94da6c0f6a74d8f690e79f53bc893596ec2a by Maximilian Federle. Committed on 19/08/2022 at 09:34. Pushed by jriddell into branch 'Neon/release'. kdevelop: Add missing deps, small fixes, add icons & qtwayland - add missing qml-module-qtquick-controls2 - replace QML2_IMPORT_PATH with qt.conf entry - add breeze theme - add qtwayland5 - fix icon M +8-1kdevelop/snapcraft.yaml https://invent.kde.org/packaging/snapcraft-kde-applications/commit/353a94da6c0f6a74d8f690e79f53bc893596ec2a -- You are receiving this mail because: You are watching all bug changes.
[neon] [Bug 457974] Snap kdevelop crashes at launch
https://bugs.kde.org/show_bug.cgi?id=457974 Maximilian Federle changed: What|Removed |Added Latest Commit|https://invent.kde.org/pack |https://invent.kde.org/pack |aging/snapcraft-kde-applica |aging/snapcraft-kde-applica |tions/commit/678db4c68ce8d5 |tions/commit/f32a8f04f1c172 |0f48695dd9778e5413dfadb61e |e93f9b2636516a075a65af9393 --- Comment #42 from Maximilian Federle --- Git commit f32a8f04f1c172e93f9b2636516a075a65af9393 by Maximilian Federle. Committed on 19/08/2022 at 09:50. Pushed by jriddell into branch 'Neon/release'. kdevelop: patch OutputExecuteJob & KDevKonsoleView to support unsetting env variables https://invent.kde.org/packaging/snapcraft-kde-applications/-/issues/2 A +39 -0kdevelop/patches/kdevelop_unset_env.patch M +11 -0kdevelop/snapcraft.yaml https://invent.kde.org/packaging/snapcraft-kde-applications/commit/f32a8f04f1c172e93f9b2636516a075a65af9393 -- You are receiving this mail because: You are watching all bug changes.
[neon] [Bug 457974] Snap kdevelop crashes at launch
https://bugs.kde.org/show_bug.cgi?id=457974 --- Comment #40 from Maximilian Federle --- (1) I found an "okay" way: 1. In launch configuration: Check 'Use external terminal' 2. Input command: bash -c 'unset LIBGL_DRIVERS_PATH && unset QML2_IMPORT_PATH && %exe' (2) No such issues. You can debug this issue in the same way as we debugged kdeveloped: set QT_DEBUG_PLUGINS=1 (3) Well, the QML2_IMPORT_PATH and LIBGL_DRIVERS_PATH vars are necessary because the snap has its files separate from the host's files. This is necessary so that it doesn't crash because it's trying to mix libraries, as you could see when you first reported this bug. The problem is, your little demo app has been compiled on the host, with the hosts libraries. Therefore, those two variables confuse this app, and it tries to load incompatible mesa drivers or the QML components. To prevent that, we must unset them before continuing. I researched a way to get rid of QML2_IMPORT_PATH, but I've only found the aforementioned workaround for LIBGL_DRIVERS_PATH so far. The snap itself is still missing the qtquick2 controls package and some icon theme. As for the snap vs AppImage: The snap packaging is not developed by the upstream kdevelop project, but by a separate effort in the KDE Neon project: https://invent.kde.org/packaging/snapcraft-kde-applications/-/tree/Neon/release/kdevelop. I suspect it has seen little to no use in the past. -- You are receiving this mail because: You are watching all bug changes.
[neon] [Bug 457974] Snap kdevelop crashes at launch
https://bugs.kde.org/show_bug.cgi?id=457974 --- Comment #38 from Maximilian Federle --- Created attachment 151413 --> https://bugs.kde.org/attachment.cgi?id=151413=edit Test project runs from kdevelop with these env variables overwritten So, as suspected, the env variables must be unset completely or overwritten with the correct ones. I couldn't quickly figure out how to do the former, but the latter (see screenshot) makes it launch. The question is now how to unset those two variables in kdevelop by default. Maybe a developer has an idea how to do this elegantly. -- You are receiving this mail because: You are watching all bug changes.
[neon] [Bug 457974] Snap kdevelop crashes at launch
https://bugs.kde.org/show_bug.cgi?id=457974 --- Comment #36 from Maximilian Federle --- Yeah, why not. If you have something simple that works without a lot of setup. -- You are receiving this mail because: You are watching all bug changes.
[neon] [Bug 457974] Snap kdevelop crashes at launch
https://bugs.kde.org/show_bug.cgi?id=457974 --- Comment #34 from Maximilian Federle --- (In reply to Ian H from comment #28) > libGL error: MESA-LOADER: failed to open nouveau: (null) (search paths , > suffix _dri) And I also suspect you didn't fully unset LIBGL_DRIVERS_PATH because there is still a space after search paths. If LIBGL_DRIVERS_PATH is truly unset, it should fall back to its install prefix + path. -- You are receiving this mail because: You are watching all bug changes.
[neon] [Bug 457974] Snap kdevelop crashes at launch
https://bugs.kde.org/show_bug.cgi?id=457974 --- Comment #33 from Maximilian Federle --- You can join us/me on #kde-neon on IRC/Matrix. Your error has something to do with the snap environment, so much is clear. I'd have tried setting LIBGL_DRIVERS_PATH=/usr/lib/x86_64-linux-gnu/dri as my next idea. -- You are receiving this mail because: You are watching all bug changes.
[neon] [Bug 457974] Snap kdevelop crashes at launch
https://bugs.kde.org/show_bug.cgi?id=457974 --- Comment #29 from Maximilian Federle --- Which libGL is your executable linked against? ldd | grep libGL -- You are receiving this mail because: You are watching all bug changes.
[neon] [Bug 457974] Snap kdevelop crashes at launch
https://bugs.kde.org/show_bug.cgi?id=457974 --- Comment #27 from Maximilian Federle --- Can you unset LIBGL_DRIVERS_PATH for your program's execution environment? -- You are receiving this mail because: You are watching all bug changes.
[neon] [Bug 457974] Snap kdevelop crashes at launch
https://bugs.kde.org/show_bug.cgi?id=457974 --- Comment #25 from Maximilian Federle --- Maybe try adding the dri directory to LD_LIBRARY_PATH like so: LD_LIBRARY_PATH=/snap/kdevelop/current/usr/lib/x86_64-linux-gnu/dri kdevelop -- You are receiving this mail because: You are watching all bug changes.
[neon] [Bug 457974] Snap kdevelop crashes at launch
https://bugs.kde.org/show_bug.cgi?id=457974 Maximilian Federle changed: What|Removed |Added Resolution|--- |FIXED Latest Commit||https://invent.kde.org/pack ||aging/snapcraft-kde-applica ||tions/commit/678db4c68ce8d5 ||0f48695dd9778e5413dfadb61e Status|ASSIGNED|RESOLVED --- Comment #23 from Maximilian Federle --- Git commit 678db4c68ce8d50f48695dd9778e5413dfadb61e by Maximilian Federle. Committed on 18/08/2022 at 13:51. Pushed by jriddell into branch 'Neon/release'. kdevelop: set KDEV_CLANG_BUILTIN_DIR M +1-0kdevelop/snapcraft.yaml https://invent.kde.org/packaging/snapcraft-kde-applications/commit/678db4c68ce8d50f48695dd9778e5413dfadb61e -- You are receiving this mail because: You are watching all bug changes.
[neon] [Bug 457974] Snap kdevelop crashes at launch
https://bugs.kde.org/show_bug.cgi?id=457974 --- Comment #20 from Maximilian Federle --- (In reply to Ian H from comment #19) > kdevplatform.shell: Could not load plugin "kdevclangsupport" , it reported > the error: "The clang builtin include path > \"/build/snapcraft-kdevelop-3684784838bcd2597d92380370009ca3/parts/kdevelop/ > install/usr/lib/llvm-11/lib/clang/11.0.0/include\" is invalid (missing > cpuid.h header).\nTry setting the KDEV_CLANG_BUILTIN_DIR environment > variable manually to fix this.\nSee also: > https://bugs.kde.org/show_bug.cgi?id=393779; Disabling the plugin now. Can you try setting KDEV_CLANG_BUILTIN_DIR to something like KDEV_CLANG_BUILTIN_DIR=/snap/kdevelop/current/usr/lib/llvm-11/lib/clang/11.0.0/include ? Or what else does file parsing refer to? I'm not using kdevelop, so my insight is limited. -- You are receiving this mail because: You are watching all bug changes.
[neon] [Bug 457974] Snap kdevelop crashes at launch
https://bugs.kde.org/show_bug.cgi?id=457974 --- Comment #18 from Maximilian Federle --- Try again from candidate: https://invent.kde.org/packaging/snapcraft-kde-applications/-/commit/e811d8668947b5a017fda13a085e0b55fe000b29 -- You are receiving this mail because: You are watching all bug changes.
[neon] [Bug 457974] Snap kdevelop crashes at launch
https://bugs.kde.org/show_bug.cgi?id=457974 --- Comment #17 from Maximilian Federle --- Oh, sorry, I misread the manifest. There's actually a stage package missing. I'll push an update to candidate. -- You are receiving this mail because: You are watching all bug changes.
[neon] [Bug 457974] Snap kdevelop crashes at launch
https://bugs.kde.org/show_bug.cgi?id=457974 --- Comment #14 from Maximilian Federle --- or maybe some qt.conf shenanigans? -- You are receiving this mail because: You are watching all bug changes.
[neon] [Bug 457974] Snap kdevelop crashes at launch
https://bugs.kde.org/show_bug.cgi?id=457974 --- Comment #13 from Maximilian Federle --- Huh, do you have any env variables set that could cause Qt to search in paths other than those set in QT_PLUGIN_PATH? -- You are receiving this mail because: You are watching all bug changes.
[neon] [Bug 457974] Snap kdevelop crashes at launch
https://bugs.kde.org/show_bug.cgi?id=457974 --- Comment #9 from Maximilian Federle --- Try kdevelop from the candidate channel: sudo snap install --classic --candidate kdevelop or sudo snap refresh --candidate kdevelop -- You are receiving this mail because: You are watching all bug changes.
[neon] [Bug 457974] Snap kdevelop crashes at launch
https://bugs.kde.org/show_bug.cgi?id=457974 --- Comment #8 from Maximilian Federle --- Well, it's loading plugins/libs from the host, which is clearly not a good idea. The snap has a few issues, which should hopefully be solved in a few hours: https://invent.kde.org/packaging/snapcraft-kde-applications/-/merge_requests/18 You can then try it from the candidate channel and check whether your problems have disappeared. -- You are receiving this mail because: You are watching all bug changes.
[neon] [Bug 457974] Snap kdevelop crashes at launch
https://bugs.kde.org/show_bug.cgi?id=457974 Maximilian Federle changed: What|Removed |Added CC||max.fede...@gmail.com --- Comment #5 from Maximilian Federle --- A good debug method would be to run: QT_DEBUG_PLUGINS=1 kdevelop 2>&1 | tee ~/kdevelop_log.txt and then to upload ~/kdevelop_log.txt here. -- You are receiving this mail because: You are watching all bug changes.
[neon] [Bug 444873] xdg-desktop-portal's FileChooser not focused
https://bugs.kde.org/show_bug.cgi?id=444873 Maximilian Federle changed: What|Removed |Added Resolution|--- |FIXED Status|REPORTED|RESOLVED --- Comment #2 from Maximilian Federle --- This was fixed with https://invent.kde.org/neon/qt/qtbase/-/commit/3043f743331d474b12440bfe2eb467e44dfbb3ea kde-frameworks-5-qt-5-15-3-core20 revision 7 has hit stable and solves the issue for kde-neon snaps. -- You are receiving this mail because: You are watching all bug changes.
[neon] [Bug 444873] xdg-desktop-portal's FileChooser not focused
https://bugs.kde.org/show_bug.cgi?id=444873 --- Comment #1 from Maximilian Federle --- I created a PR: https://invent.kde.org/neon/qt/qtbase/-/merge_requests/3 -- You are receiving this mail because: You are watching all bug changes.
[neon] [Bug 444873] New: xdg-desktop-portal's FileChooser not focused
https://bugs.kde.org/show_bug.cgi?id=444873 Bug ID: 444873 Summary: xdg-desktop-portal's FileChooser not focused Product: neon Version: unspecified Platform: Snap OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: Snaps Assignee: neon-b...@kde.org Reporter: max.fede...@googlemail.com CC: neon-b...@kde.org Target Milestone: --- SUMMARY See https://forum.snapcraft.io/t/file-chooser-not-focused/22269 Snaps that use the kde-neon extension use the host's xdg-desktop-portal implementation. However, FileChooser dialogs (open & save) open behind the application window because Qt sends the application's window id in the wrong format (dec instead of hex). The upstream patch correcting this problem: https://github.com/qt/qtbase/commit/acaabc9108dfe75530960cf8e3ec4f3602cd82e0.patch I guess this would need to be added in https://invent.kde.org/neon/qt/qtbase/-/tree/Neon/release/debian/patches, but I lack the time and skills to test building a deb with this patch to create a PR. https://forum.snapcraft.io/t/file-chooser-not-focused/22269 STEPS TO REPRODUCE 1. Run any snap that uses kde-neon 2. Open file dialog OBSERVED RESULT The file dialog opens out of focus in the background (at least on Gnome) EXPECTED RESULT The file dialog should open in the foreground, as it is the case with Gtk applications. -- You are receiving this mail because: You are watching all bug changes.
[neon] [Bug 419479] New: snap sdk: paths in qt.conf are wrong
https://bugs.kde.org/show_bug.cgi?id=419479 Bug ID: 419479 Summary: snap sdk: paths in qt.conf are wrong Product: neon Version: unspecified Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: Snaps Assignee: neon-b...@kde.org Reporter: max.fede...@googlemail.com CC: neon-b...@kde.org Target Milestone: --- # Applies to kde-frameworks-5-core18-sdk kde-frameworks-5-qt-5-14-core18-sdk # Summary qt.conf in the snap has absolute paths set that do not point into the snap's fs tree. Specifically ``` [Paths] Prefix = /usr Settings=/etc/xdg ``` To be useful as a build-snap, the paths should look like this: ``` [Paths] Prefix = /snap/kde-frameworks-5-core18-sdk/current/usr Settings=/snap/kde-frameworks-5-core18-sdk/current/etc/xdg ``` # Problem The sdks are not mounted at /, but at /snap/${SNAP_NAME} and thus those absolute paths are invalid when using qmake. -- You are receiving this mail because: You are watching all bug changes.
[neon] [Bug 419476] New: snap sdk: KF5 qmake modules have non-configurable paths in their .pri files
https://bugs.kde.org/show_bug.cgi?id=419476 Bug ID: 419476 Summary: snap sdk: KF5 qmake modules have non-configurable paths in their .pri files Product: neon Version: unspecified Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: Snaps Assignee: neon-b...@kde.org Reporter: max.fede...@googlemail.com CC: neon-b...@kde.org Target Milestone: --- # Applies to kde-frameworks-5-core18-sdk kde-frameworks-5-qt-5-14-core18-sdk # Summary KF5 modules have .pri files with absolute and unconfigurable paths in them: E.g. ``` cat ./usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_KAuth.pri [...] QT.KAuth.includes = /usr/include/KF5/KAuth QT.KAuth.private_includes = QT.KAuth.libs = /usr/lib/x86_64-linux-gnu [...] ``` The corresponding cmake files respect _IMPORT_PREFIX. The Qt modules do also respect $$QT_MODULE_INCLUDE_BASE in their .pri files # Problem With the sdk snaps being used as build snaps, they are not mounted at /, but at /snap/${SNAP_NAME} and thus those absolute paths are invalid when using qmake. # Expectation KF5 modules include a prefix variable like their Qt companions. As a consequence, they respect Prefix set in qt.conf -- You are receiving this mail because: You are watching all bug changes.