[dolphin] [Bug 504938] New: Dolphin hangs indefinitely on reading /usr/share/icons/hicolor/scalable/mimetypes/application-x-ldraw.svgz when a file with that mimetype is found in the directory being displayed

"Damian Nowak" <[email protected]>
Newsgroups gmane.comp.kde.devel.kfm
Message-ID <[email protected]/>
https://bugs.kde.org/show_bug.cgi?id=504938

            Bug ID: 504938
           Summary: Dolphin hangs indefinitely on reading
                    /usr/share/icons/hicolor/scalable/mimetypes/applicatio
                    n-x-ldraw.svgz when a file with that mimetype is found
                    in the directory being displayed
    Classification: Applications
           Product: dolphin
      Version First 25.04.1
       Reported In:
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: crash
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

Created attachment 181839
  --> https://bugs.kde.org/attachment.cgi?id=181839&action=edit
strace showing the hang on reading the XML

SUMMARY
Dolphin hangs indefinitely on reading
/usr/share/icons/hicolor/scalable/mimetypes/application-x-ldraw.svgz

STEPS TO REPRODUCE
1. Ensure the file
/usr/share/icons/hicolor/scalable/mimetypes/application-x-ldraw.svgz exists
(comes from the LDraw/LeoCAD icon theme package on this system) - or just dump
it as an SVG icon for a different mimetype present on your OS.
2. mkdir ~/test-ldraw && touch ~/test-ldraw/empty.dat
3. dolphin ~/test-ldraw


OBSERVED RESULT
Dolphin becomes unresponsive.  
`strace` attached to the Dolphin process shows a tight loop of:

read(74</usr/share/icons/hicolor/scalable/mimetypes/application-x-ldraw.svgz>,
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<!-- Created
with Inkscape (http://www.inkscape.org/) -->\n\n<svg\n   xmlns:"..., 16384) =
16384
read(74</usr/share/icons/hicolor/scalable/mimetypes/application-x-ldraw.svgz>,
"radient3374\"\n       id=\"radialGradient2516\"\n      
gradientUnits=\"userSpaceOnUse\"\n      
gradientTransform=\"matrix(0.4070671,0,0"..., 16384) = 16384
brk(0x6278224b7000)                     = 0x6278224b7000
read(74</usr/share/icons/hicolor/scalable/mimetypes/application-x-ldraw.svgz>,
" -14.260452,-2.492588 -14.260452,-5.567354 0,-3.074766 6.384623,-5.5673542
14.260452,-5.5673542 7.875829,0 14.260452,2.4925882 1"..., 16384) = 2942
read(74</usr/share/icons/hicolor/scalable/mimetypes/application-x-ldraw.svgz>,
"", 13442) = 0
read(74</usr/share/icons/hicolor/scalable/mimetypes/application-x-ldraw.svgz>,
"", 16384) = 0
read(74</usr/share/icons/hicolor/scalable/mimetypes/application-x-ldraw.svgz>,
"", 16384) = 0
read(74</usr/share/icons/hicolor/scalable/mimetypes/application-x-ldraw.svgz>,
"", 16384) = 0
… (repeats forever)

Removing or moving the SVG icon file out of
/usr/share/icons/hicolor/scalable/mimetypes/
immediately stops the hang.

EXPECTED RESULT
Dolphin should display the directory normally; reading an SVG icon once should
not lock the GUI in an infinite read() loop.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 5.116.0
Qt Version: 5.15.16
Dolphin Version: 25.04.1
Kernel Version: 6.14.6-arch1-1
Graphics Platform: x11

ADDITIONAL INFORMATION
* The same directory opens instantly in other file managers (e.g. Krusader,
Thunar).
* Happens with any .dat file, even zero-byte ones, so content is not relevant.
* Regression status: unknown - the directory I opened dates back to a long time
ago; I didn't have a reason to navigate there in Dolphin for a long time

-- 
You are receiving this mail because:
You are on the CC list for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.