-
Notifications
You must be signed in to change notification settings - Fork 16
Crash when using launcher #36
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
Comments
Can you edit a println into the model source, e.g. values: {
const r = DesktopEntries.applications.values.map(object => {
const query = searchInput.text.toLowerCase();
const name = object.name.toLowerCase();
let score = 0;
let queryIndex = 0;
let nameIndex = 0;
while (queryIndex < query.length && nameIndex < name.length) {
if (query[queryIndex] === name[nameIndex]) {
score++;
queryIndex++;
} else {
score--;
}
nameIndex++;
}
while (queryIndex < query.length) {
score--;
queryIndex++;
}
return {
object: object,
score: score
};
}).filter(entry => entry !== null).sort((a, b) => {
return b.score - a.score;
}).map(entry => entry.object);
console.log(r)
return r
}
And then send the log file after a crash so we can see exactly what change triggered it? |
Of course. I modified my code to match the one you sent, here is a new log file: |
Does this crash for you? import Quickshell
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
FloatingWindow {
property var values1: [
"DesktopEntry(0x7fae57d28e80)",
"DesktopEntry(0x7fae57d6f7c0)",
"DesktopEntry(0x7fae57d276c0)",
"DesktopEntry(0x7fae57d27e40)",
"DesktopEntry(0x7fae57d70e40)",
"DesktopEntry(0x7fae57d28480)",
"DesktopEntry(0x7fae57d6ea00)",
"DesktopEntry(0x7fae57d26f40)",
"DesktopEntry(0x7fae57d72240)",
"DesktopEntry(0x7fae57d285c0)",
"DesktopEntry(0x7fae57d6edc0)",
"DesktopEntry(0x7fae57d71700)",
"DesktopEntry(0x7fae57d29d80)",
"DesktopEntry(0x7fae57d6f040)",
"DesktopEntry(0x7fae57d25a00)",
"DesktopEntry(0x7fae5d9d2840)",
"DesktopEntry(0x7fae57d6f540)",
"DesktopEntry(0x7fae57d27a80)",
"DesktopEntry(0x7fae57d280c0)",
"DesktopEntry(0x7fae5d9d2200)",
"DesktopEntry(0x7fae57d26e00)",
"DesktopEntry(0x7fae57d6e500)",
"DesktopEntry(0x7fae5d9d3b00)",
"DesktopEntry(0x7fae5d9d3100)",
"DesktopEntry(0x7fae57d29600)",
"DesktopEntry(0x7fae57d27080)",
"DesktopEntry(0x7fae57d72100)",
"DesktopEntry(0x7fae57d27580)",
"DesktopEntry(0x7fae5d9d1bc0)",
"DesktopEntry(0x7fae57d6e000)",
"DesktopEntry(0x7fae5d9d2fc0)",
"DesktopEntry(0x7fae57d70800)",
"DesktopEntry(0x7fae57d6fe00)",
"DesktopEntry(0x7fae57d29740)",
"DesktopEntry(0x7fae57d29880)",
"DesktopEntry(0x7fae57d6e780)",
"DesktopEntry(0x7fae57d71d40)",
"DesktopEntry(0x7fae57d28c00)",
"DesktopEntry(0x7fae57d70bc0)",
"DesktopEntry(0x7fae57d27d00)",
"DesktopEntry(0x7fae57d29b00)",
"DesktopEntry(0x7fae57d271c0)",
"DesktopEntry(0x7fae57d26b80)",
"DesktopEntry(0x7fae57d28fc0)",
"DesktopEntry(0x7fae57d28340)",
"DesktopEntry(0x7fae5d9d2d40)",
"DesktopEntry(0x7fae57d28700)",
"DesktopEntry(0x7fae5d9d2ac0)",
"DesktopEntry(0x7fae5d9d1f80)",
"DesktopEntry(0x7fae57d26900)",
"DesktopEntry(0x7fae5d9d3880)",
"DesktopEntry(0x7fae5d9d3600)",
"DesktopEntry(0x7fae5d9d2700)",
"DesktopEntry(0x7fae57d28200)",
"DesktopEntry(0x7fae5d9d25c0)",
"DesktopEntry(0x7fae57d70080)",
"DesktopEntry(0x7fae57d70940)",
"DesktopEntry(0x7fae57d25140)",
"DesktopEntry(0x7fae57d6fa40)",
"DesktopEntry(0x7fae57d28d40)",
"DesktopEntry(0x7fae57d267c0)",
"DesktopEntry(0x7fae57d28840)",
"DesktopEntry(0x7fae5d9d2e80)",
"DesktopEntry(0x7fae57d25000)"
]
property var values2: [
"DesktopEntry(0x7fae57d28e80)",
"DesktopEntry(0x7fae57d6f7c0)",
"DesktopEntry(0x7fae57d276c0)",
"DesktopEntry(0x7fae57d27e40)",
"DesktopEntry(0x7fae57d70e40)",
"DesktopEntry(0x7fae57d28480)",
"DesktopEntry(0x7fae57d6edc0)",
"DesktopEntry(0x7fae57d72240)",
"DesktopEntry(0x7fae57d6ea00)",
"DesktopEntry(0x7fae57d285c0)",
"DesktopEntry(0x7fae57d71700)",
"DesktopEntry(0x7fae57d6f040)",
"DesktopEntry(0x7fae57d25a00)",
"DesktopEntry(0x7fae57d29d80)",
"DesktopEntry(0x7fae5d9d2840)",
"DesktopEntry(0x7fae57d6f540)",
"DesktopEntry(0x7fae57d280c0)",
"DesktopEntry(0x7fae57d27a80)",
"DesktopEntry(0x7fae57d26e00)",
"DesktopEntry(0x7fae5d9d2200)",
"DesktopEntry(0x7fae57d6e500)",
"DesktopEntry(0x7fae57d29600)",
"DesktopEntry(0x7fae5d9d3100)",
"DesktopEntry(0x7fae57d26f40)",
"DesktopEntry(0x7fae5d9d3b00)",
"DesktopEntry(0x7fae57d27080)",
"DesktopEntry(0x7fae5d9d1bc0)",
"DesktopEntry(0x7fae57d72100)",
"DesktopEntry(0x7fae57d6e000)",
"DesktopEntry(0x7fae57d29880)",
"DesktopEntry(0x7fae57d6fe00)",
"DesktopEntry(0x7fae57d70800)",
"DesktopEntry(0x7fae57d29740)",
"DesktopEntry(0x7fae5d9d2fc0)",
"DesktopEntry(0x7fae57d71d40)",
"DesktopEntry(0x7fae57d6e780)",
"DesktopEntry(0x7fae57d28c00)",
"DesktopEntry(0x7fae57d70bc0)",
"DesktopEntry(0x7fae57d29b00)",
"DesktopEntry(0x7fae57d271c0)",
"DesktopEntry(0x7fae57d27d00)",
"DesktopEntry(0x7fae57d26b80)",
"DesktopEntry(0x7fae57d28fc0)",
"DesktopEntry(0x7fae57d28340)",
"DesktopEntry(0x7fae57d28700)",
"DesktopEntry(0x7fae5d9d2d40)",
"DesktopEntry(0x7fae5d9d1f80)",
"DesktopEntry(0x7fae5d9d3600)",
"DesktopEntry(0x7fae5d9d3880)",
"DesktopEntry(0x7fae5d9d2ac0)",
"DesktopEntry(0x7fae57d26900)",
"DesktopEntry(0x7fae5d9d2700)",
"DesktopEntry(0x7fae57d28200)",
"DesktopEntry(0x7fae5d9d25c0)",
"DesktopEntry(0x7fae57d70080)",
"DesktopEntry(0x7fae57d70940)",
"DesktopEntry(0x7fae57d25140)",
"DesktopEntry(0x7fae57d28d40)",
"DesktopEntry(0x7fae57d267c0)",
"DesktopEntry(0x7fae57d6fa40)",
"DesktopEntry(0x7fae5d9d2e80)",
"DesktopEntry(0x7fae57d28840)",
"DesktopEntry(0x7fae57d27580)",
"DesktopEntry(0x7fae57d25000)"
]
property var swap: false
ColumnLayout {
anchors.fill: parent
Button {
text: "Swap"
onClicked: swap = !swap
}
ListView {
Layout.fillWidth: true
Layout.fillHeight: true
model: ScriptModel {
values: swap ? values2 : values1
}
delegate: Text {
required property string modelData;
text: modelData
}
add: Transition {
NumberAnimation {
property: "opacity"
from: 0
to: 1
duration: 100
}
}
displaced: Transition {
NumberAnimation {
property: "y"
duration: 200
easing.type: Easing.OutCubic
}
NumberAnimation {
property: "opacity"
to: 1
duration: 100
}
}
move: Transition {
NumberAnimation {
property: "y"
duration: 100
easing.type: Easing.OutCubic
}
NumberAnimation {
property: "opacity"
to: 1
duration: 50
}
}
remove: Transition {
NumberAnimation {
property: "y"
duration: 100
easing.type: Easing.OutCubic
}
NumberAnimation {
property: "opacity"
to: 0
duration: 50
}
}
}
}
} |
Nope, clicking the "Swap" button correctly swaps between both lists and plays an animation. It's possible that I just haven't gotten lucky enough, since the launcher crash is pretty random as well, but I tested this for a few minutes with no luck. |
General crash information
General information
What caused the crash
When typing into the search field from my launcher, Quickshell often crashes. Sometimes it auto restarts, other times I have to start it myself. It's not consistent to reproduce but happens multiple times per day.
Minidump
minidump.dmp.log
Log file
log.qslog.log
Configuration
https://git.allpurposem.at/mat/Quickbar/src/commit/36973928da0bbf388a7054308e35e747141139c6
Backtrace
Executable
No response
The text was updated successfully, but these errors were encountered: