fix(cache): use app-private image cache

This commit is contained in:
edde746
2026-06-13 13:25:26 +02:00
parent dc769bda41
commit 49ae1fdc34
2 changed files with 9 additions and 0 deletions
+7
View File
@@ -287,10 +287,17 @@ FutureOr<SentryEvent?> _beforeSend(SentryEvent event, Hint _) {
if (exceptions != null) {
bool shouldDrop(SentryException e) {
final v = e.value;
final lowerValue = v?.toLowerCase();
// Windows file-lock errors from cache manager cleanup
if (e.type == 'FileSystemException' && v != null && v.contains('plexImageCache') && v.contains('errno = 32')) {
return true;
}
if (e.type == 'FileSystemException' &&
lowerValue != null &&
lowerValue.contains('cached_network_image_ce') &&
(lowerValue.contains('lock failed') || lowerValue.contains('writefrom failed'))) {
return true;
}
// Linux without DBus/NetworkManager
if (e.type == 'DBusServiceUnknownException' || (v != null && v.contains('system_bus_socket'))) {
return true;