Skip to content

armgit / Filee

Public Imported from GitHub
0

Free, open-source file converter. Convert 263 formats offline by drag & drop — images, PDF, Word, Excel, PowerPoint, HWP/HWPX, video, audio, e-books and archives. No upload, no Office needed.

Don't purge Skia's caches when trimming memory

KnifeLemonf89395bf4da1
diff --git a/src/Filee.Engines/Infrastructure/EngineCaches.cs b/src/Filee.Engines/Infrastructure/EngineCaches.cs
index f73fca9d..0e84003f 100644
--- a/src/Filee.Engines/Infrastructure/EngineCaches.cs
+++ b/src/Filee.Engines/Infrastructure/EngineCaches.cs
@@ -1,9 +1,9 @@
-// Caches engines keep between conversions (typefaces looked up for HWP and CAD text, Skia's glyph and resource
-// caches). The app releases them while no conversion runs, so a Filee waiting in the tray gives the memory back.
+// Caches engines keep between conversions (typefaces looked up for HWP and CAD text). The app releases them while no
+// conversion runs, so a Filee waiting in the tray gives the memory back. Skia's own caches stay: they are shared with
+// the UI's render thread, and purging them while it draws crashed in native code (SKGraphics.PurgeAllCaches).
using Filee.Engines.Cad;
using Filee.Engines.Hwp;
-using SkiaSharp;
namespace Filee.Engines.Infrastructure;
@@ -17,7 +17,5 @@ public static class EngineCaches
{
RhwpFonts.ReleaseCache();
CadFonts.ReleaseCache();
- // Skia's caches are shared with the UI's renderer and guarded by Skia itself; they refill on demand.
- SKGraphics.PurgeAllCaches();
}
}