diff --git a/packages/convenient_test_manager_dart/lib/services/misc_dart_service.dart b/packages/convenient_test_manager_dart/lib/services/misc_dart_service.dart index e14840e2..e3a22d36 100644 --- a/packages/convenient_test_manager_dart/lib/services/misc_dart_service.dart +++ b/packages/convenient_test_manager_dart/lib/services/misc_dart_service.dart @@ -9,6 +9,7 @@ import 'package:convenient_test_manager_dart/stores/suite_info_store.dart'; import 'package:convenient_test_manager_dart/stores/video_recorder_store.dart'; import 'package:convenient_test_manager_dart/stores/worker_super_run_store.dart'; import 'package:get_it/get_it.dart'; +import 'package:protobuf/protobuf.dart'; class MiscDartService { static const _kTag = 'MiscDartService'; @@ -49,8 +50,10 @@ class MiscDartService { clearAll(); final file = sync ? File(path).readAsBytesSync() : await File(path).readAsBytes(); + final reader = CodedBufferReader(file, sizeLimit: 1073741824); // allow for up to 1 Gigabyte - final reportCollection = ReportCollection.fromBuffer(file); + final reportCollection = ReportCollection.create(); + reportCollection.mergeFromCodedBufferReader(reader); Log.d(_kTag, 'readReportFromFile read reportCollection'); await GetIt.I.get().handle(reportCollection, offlineFile: true, doClear: doClear);