| Summary: | Discover segfaults on launch with current git master; introduced with da846ebf85f3cfcdd30df5a977e6a2b7e1320d28 | ||
|---|---|---|---|
| Product: | [Applications] Discover | Reporter: | Nate Graham <nate> |
| Component: | discover | Assignee: | Aleix Pol <aleixpol> |
| Status: | RESOLVED NOT A BUG | ||
| Severity: | critical | ||
| Priority: | NOR | ||
| Version First Reported In: | 5.11.4 | ||
| Target Milestone: | --- | ||
| Platform: | Neon | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Nate Graham
2017-12-12 14:12:31 UTC
Can you see if this solves your issue? I'ts a very weird crash in QRegExp... :/
diff --git a/libdiscover/backends/KNSBackend/KNSBackend.cpp b/libdiscover/backends/KNSBackend/KNSBackend.cpp
index 0ea70dcd..883cb729 100644
--- a/libdiscover/backends/KNSBackend/KNSBackend.cpp
+++ b/libdiscover/backends/KNSBackend/KNSBackend.cpp
@@ -65,12 +65,9 @@ class KNSBackendFactory : public AbstractResourcesBackendFactory {
{
QVector<AbstractResourcesBackend*> ret;
for (const QString &path: QStandardPaths::standardLocations(QStandardPaths::GenericConfigLocation)) {
- QDirIterator dirIt(path, {QStringLiteral("*.knsrc")}, QDir::Files);
- for(; dirIt.hasNext(); ) {
- dirIt.next();
-
- auto bk = new KNSBackend(parent, QStringLiteral("plasma"), dirIt.filePath());
- ret += bk;
+ QDir dir(path);
+ for(auto file: dir.entryInfoList({QStringLiteral("*.knsrc")}, QDir::Files)) {
+ ret += new KNSBackend(parent, QStringLiteral("plasma"), file.absolutePath());
}
}
return ret;
You have two discover installed, your master one is loading plugins from the one from 5.11. You're right, sorry for wasting time. |