This commit is contained in:
Thibault Deckers 2023-03-11 19:02:19 +01:00
parent 9ac185933b
commit 5677dab9fb
3 changed files with 15 additions and 1 deletions

View file

@ -118,6 +118,11 @@ class PlatformMediaEditService implements MediaEditService {
required String destinationAlbum,
required NameConflictStrategy nameConflictStrategy,
}) {
// TODO TLAD remove log when OOMs are inspected
entries.where((v) => (v.sizeBytes ?? 0) > 20000000).forEach((entry) {
reportService.log('convert large entry=$entry size=${entry.sizeBytes}');
});
try {
return _opStream
.receiveBroadcastStream(<String, dynamic>{

View file

@ -77,6 +77,11 @@ class PlatformMetadataEditService implements MetadataEditService {
Map<MetadataType, dynamic> metadata, {
bool autoCorrectTrailerOffset = true,
}) async {
// TODO TLAD remove log when OOMs are inspected
if ((entry.sizeBytes ?? 0) > 20000000) {
await reportService.log('edit metadata of large entry=$entry size=${entry.sizeBytes}');
}
try {
final result = await _platform.invokeMethod('editMetadata', <String, dynamic>{
'entry': entry.toPlatformEntryMap(),

View file

@ -556,6 +556,7 @@ class _AvesAppState extends State<AvesApp> with WidgetsBindingObserver {
'locales': WidgetsBinding.instance.window.locales.join(', '),
'time_zone': '${now.timeZoneName} (${now.timeZoneOffset})',
});
await reportService.log('Launch');
setState(() => _navigatorObservers = [
AvesApp.pageRouteObserver,
ReportingRouteTracker(),
@ -566,7 +567,10 @@ class _AvesAppState extends State<AvesApp> with WidgetsBindingObserver {
debugPrint('$runtimeType onNewIntent with intentData=$intentData');
// do not reset when relaunching the app
if (_appModeNotifier.value == AppMode.main && (intentData == null || intentData.isEmpty == true)) return;
if (_appModeNotifier.value == AppMode.main && (intentData == null || intentData.isEmpty == true)) {
reportService.log('Relaunch');
return;
}
reportService.log('New intent data=$intentData');
AvesApp.navigatorKey.currentState!.pushReplacement(DirectMaterialPageRoute(