[dolphin] [Bug 477298] Dolphin hangs when navigating to a directory with any JSON files in it

Ilya Bizyaev bugzilla_noreply at kde.org
Wed Dec 6 18:54:16 GMT 2023


https://bugs.kde.org/show_bug.cgi?id=477298

--- Comment #6 from Ilya Bizyaev <bizyaev at zoho.com> ---
So I've debugged this problem, and it is caused by an infinite loop in
`QMimeDatabasePrivate::inherits`. The reason is that this method doesn't handle
parent-child cycles: for some reason, in my `~/.local/share/mime/` (I didn't
even know this directory existed), "application/javascript" was declared a
subclass of "application/ecmascript". Normally
(`usr/share/mime/packages/freedesktop.org.xml`), it's the other way around, so
the combined info created a cycle.

Now, I don't know what the solution for this is:
* Should Qt learn to handle such cycles? Even if they are maybe not allowed by
the spec, getting stuck in an infinite loop with infinite allocations because
of a file that users have no knowledge of is not great.
* Why was this edge declared in `~/.local/share/mime/` in the first place?
Since I've never edited anything in this directory myself, I guess it had been
created automatically, so whatever did it can do it again in the future.
* Why has this bug never occurred before 20.11.23?

Anyway, as a workaround, I deleted `~/.local/share/mime/`, and the issue if
gone for now.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the kfm-devel mailing list