π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Quiet inline OCR pre-check timeouts
Neeraj Gupta24bb8612ab2c
diff --git a/mobile/apps/photos/lib/ui/viewer/file/inline_text_detection.dart b/mobile/apps/photos/lib/ui/viewer/file/inline_text_detection.dartindex d8d93a65b8..87ffcb43de 100644--- a/mobile/apps/photos/lib/ui/viewer/file/inline_text_detection.dart+++ b/mobile/apps/photos/lib/ui/viewer/file/inline_text_detection.dart@@ -185,9 +185,14 @@ class _InlineTextDetectionState extends State<InlineTextDetection> {.hasText(imagePath: localFile.path).timeout(const Duration(seconds: 5));_logger.info("hasText result: $hasText");+ } on TimeoutException {+ // A slow pre-check is expected on some devices. Fall back to the full+ // detector path without reporting an app error.+ hasText = true;+ _logger.info("hasText timed out, falling back to optimistic");} catch (error, stackTrace) {- // On error or timeout, optimistically assume text may be present- // so the full detection pipeline can make the final determination.+ // On error, optimistically assume text may be present so the full+ // detection pipeline can make the final determination.hasText = true;_logger.warning("hasText failed, falling back to optimistic",diff --git a/mobile/apps/photos/scripts/internal_changes.txt b/mobile/apps/photos/scripts/internal_changes.txtindex 92b8b3e926..3a51e7ea14 100644--- a/mobile/apps/photos/scripts/internal_changes.txt+++ b/mobile/apps/photos/scripts/internal_changes.txt@@ -1,5 +1,6 @@Latest changes:- Neeraj: Fix smart memories and ML lookup failures for large offline galleries [Sentry]+- Neeraj: Stop reporting inline OCR pre-check timeouts as errors [Sentry]- Neeraj: Avoid repeated iOS reupload checks when copied temp files are already cleaned up [Sentry]- Neeraj: Fix incorrect upload dates for photos with ISO-like metadata timestamps [Sentry]- Neeraj: Skip image EXIF parsing for videos