error report log
This commit is contained in:
parent
6a8cc1ba0c
commit
c17dac2a83
2 changed files with 7 additions and 0 deletions
|
@ -29,6 +29,7 @@ class AnalysisService {
|
|||
}
|
||||
|
||||
static Future<void> startService({required bool force, List<int>? entryIds}) async {
|
||||
await reportService.log('Start analysis service${entryIds != null ? ' for ${entryIds.length} items' : ''}');
|
||||
try {
|
||||
await _platform.invokeMethod('startService', <String, dynamic>{
|
||||
'entryIds': entryIds,
|
||||
|
|
|
@ -5,6 +5,7 @@ import 'package:aves/model/metadata/fields.dart';
|
|||
import 'package:aves/model/metadata/overlay.dart';
|
||||
import 'package:aves/model/multipage.dart';
|
||||
import 'package:aves/model/panorama.dart';
|
||||
import 'package:aves/ref/mime_types.dart';
|
||||
import 'package:aves/services/common/service_policy.dart';
|
||||
import 'package:aves/services/common/services.dart';
|
||||
import 'package:aves/services/metadata/xmp.dart';
|
||||
|
@ -65,6 +66,11 @@ class PlatformMetadataFetchService implements MetadataFetchService {
|
|||
Future<CatalogMetadata?> getCatalogMetadata(AvesEntry entry, {bool background = false}) async {
|
||||
if (entry.isSvg) return null;
|
||||
|
||||
// TODO TLAD remove log when MP4/TIFF-related OOMs are fixed
|
||||
if ({MimeTypes.mp4, MimeTypes.tiff}.contains(entry.mimeType) && (entry.sizeBytes ?? 0) > 20000000) {
|
||||
await reportService.log('catalog large entry=$entry size=${entry.sizeBytes}');
|
||||
}
|
||||
|
||||
Future<CatalogMetadata?> call() async {
|
||||
try {
|
||||
// returns map with:
|
||||
|
|
Loading…
Reference in a new issue