Closed scrubbbbs closed 1 month ago
Hello @scrubbbbs, thanks for reporting. Could you provide your system (windows?) and the version of nomacs?
Could you specify which commit? Something like git master
would be ambiguous for future readers.
@scrubbbbs please add a Fixes <issue link>
in the commit or PR body next time so they link to and close issues automatically when merged, thanks.
Should be fixed by https://github.com/nomacs/nomacs/pull/1085.
Thanks, I did not know that was possible.
Nomacs segfaults when switching between two folders in the file explorer before allowing them to finishing thumbnailing. It doesn't always happen but only takes me a few tries.
It seems like DkThumbNail::computeIntern() is always on the stack so I guess this is a race or double-free on the
const QString& fileName
parameter since it tends to be passed to some function that segfaults (which varies). The problem might be the assumption that QString is thread-safe, in which case the solution could be to give each thread a copy.I think its a known bug in hibernation since there is a comment in DkThumbNail::computeIntern() about a crash though no specific details are mentioned.
Here's a couple of stack traces; both in different places but the QString filename is involved in both places.
This is Linux, git master 6dfc779. I can also confirm on 3.17.2206 Ubuntu package.