Skip to content

Object Detection example crashes the app on Android #241

@srodrigo

Description

@srodrigo

When I just compile and lunch the app on Android 10 (QPOS30.52-29-7-6) on a Moto G7 Power, and open the Object Detection example, the camera shows for a moment, then the app crashes due to out of memory. I leave the stacktrace below.

I'm not sure how this is implemented, but looks like a memory leak might be causing the issue?

Launching lib\main.dart on moto g 7 power in debug mode...
√  Built build\app\outputs\flutter-apk\app-debug.apk.
W/FlutterActivityAndFragmentDelegate(23320): A splash screen was provided to Flutter, but this is deprecated. See flutter.dev/go/android-splash-migration for migration steps.
Connecting to VM Service at ws://127.0.0.1:52936/kgWJSn8vURY=/ws
I/CameraManagerGlobal(23320): Connecting to camera service
W/Camera  (23320): The selected imageFormatGroup is not supported by Android. Defaulting to yuv420
I/Camera  (23320): startPreview
I/Camera  (23320): CameraCaptureSession onConfigured
I/Camera  (23320): Updating builder settings
D/Camera  (23320): Updating builder with feature: ExposureLockFeature
D/Camera  (23320): Updating builder with feature: ExposurePointFeature
D/Camera  (23320): Updating builder with feature: ZoomLevelFeature
D/Camera  (23320): Updating builder with feature: AutoFocusFeature
D/Camera  (23320): Updating builder with feature: NoiseReductionFeature
I/Camera  (23320): updateNoiseReduction | currentSetting: fast
D/Camera  (23320): Updating builder with feature: FocusPointFeature
D/Camera  (23320): Updating builder with feature: ResolutionFeature
D/Camera  (23320): Updating builder with feature: SensorOrientationFeature
D/Camera  (23320): Updating builder with feature: FlashFeature
D/Camera  (23320): Updating builder with feature: ExposureOffsetFeature
D/Camera  (23320): Updating builder with feature: FpsRangeFeature
I/Camera  (23320): refreshPreviewCaptureSession
W/Gralloc3(23320): allocator 3.x is not supported
I/Camera  (23320): closeCaptureSession
I/Camera  (23320): startPreviewWithImageStream
I/Camera  (23320): CameraCaptureSession onConfigured
I/Camera  (23320): Updating builder settings
D/Camera  (23320): Updating builder with feature: ExposureLockFeature
D/Camera  (23320): Updating builder with feature: ExposurePointFeature
D/Camera  (23320): Updating builder with feature: ZoomLevelFeature
D/Camera  (23320): Updating builder with feature: AutoFocusFeature
D/Camera  (23320): Updating builder with feature: NoiseReductionFeature
I/Camera  (23320): updateNoiseReduction | currentSetting: fast
D/Camera  (23320): Updating builder with feature: FocusPointFeature
D/Camera  (23320): Updating builder with feature: ResolutionFeature
D/Camera  (23320): Updating builder with feature: SensorOrientationFeature
D/Camera  (23320): Updating builder with feature: FlashFeature
D/Camera  (23320): Updating builder with feature: ExposureOffsetFeature
D/Camera  (23320): Updating builder with feature: FpsRangeFeature
I/Camera  (23320): refreshPreviewCaptureSession
I/Camera  (23320): CameraCaptureSession onClosed
D/TransportRuntime.JobInfoScheduler(23320): Scheduling upload for context TransportContext(cct, DEFAULT, MSRodHRwczovL2ZpcmViYXNlbG9nZ2luZy5nb29nbGVhcGlzLmNvbS92MGNjL2xvZy9iYXRjaD9mb3JtYXQ9anNvbl9wcm90bzNc) with jobId=322184987 in 584441ms(Backend next call timestamp 1651306293210). Attempt 1
D/TransportRuntime.JobInfoScheduler(23320): Scheduling upload for context TransportContext(cct, VERY_LOW, MSRodHRwczovL2ZpcmViYXNlbG9nZ2luZy5nb29nbGVhcGlzLmNvbS92MGNjL2xvZy9iYXRjaD9mb3JtYXQ9anNvbl9wcm90bzNc) with jobId=327165724 in 86400000ms(Backend next call timestamp 0). Attempt 1
D/TransportRuntime.SQLiteEventStore(23320): Storing event with priority=VERY_LOW, name=FIREBASE_ML_SDK for destination cct
D/TransportRuntime.JobInfoScheduler(23320): Upload for context TransportContext(cct, VERY_LOW, MSRodHRwczovL2ZpcmViYXNlbG9nZ2luZy5nb29nbGVhcGlzLmNvbS92MGNjL2xvZy9iYXRjaD9mb3JtYXQ9anNvbl9wcm90bzNc) is already scheduled. Returning...
D/TransportRuntime.SQLiteEventStore(23320): Storing event with priority=DEFAULT, name=FIREBASE_ML_SDK for destination cct
I/e_mlkit_exampl(23320): Waiting for a blocking GC Alloc
I/e_mlkit_exampl(23320): Waiting for a blocking GC Alloc
D/TransportRuntime.JobInfoScheduler(23320): Upload for context TransportContext(cct, DEFAULT, MSRodHRwczovL2ZpcmViYXNlbG9nZ2luZy5nb29nbGVhcGlzLmNvbS92MGNjL2xvZy9iYXRjaD9mb3JtYXQ9anNvbl9wcm90bzNc) is already scheduled. Returning...
I/e_mlkit_exampl(23320): WaitForGcToComplete blocked Alloc on ProfileSaver for 31.680ms
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
I/e_mlkit_exampl(23320): WaitForGcToComplete blocked Alloc on ProfileSaver for 25.298ms
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
I/e_mlkit_exampl(23320): Waiting for a blocking GC Alloc
I/e_mlkit_exampl(23320): Waiting for a blocking GC Alloc
I/e_mlkit_exampl(23320): WaitForGcToComplete blocked Alloc on ProfileSaver for 30.407ms
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
I/e_mlkit_exampl(23320): WaitForGcToComplete blocked Alloc on ProfileSaver for 14.009ms
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
I/e_mlkit_exampl(23320): Waiting for a blocking GC Alloc
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
I/e_mlkit_exampl(23320): Waiting for a blocking GC Alloc
I/e_mlkit_exampl(23320): Waiting for a blocking GC Alloc
I/e_mlkit_exampl(23320): WaitForGcToComplete blocked Alloc on ProfileSaver for 40.409ms
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
I/e_mlkit_exampl(23320): WaitForGcToComplete blocked Alloc on ProfileSaver for 39.519ms
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
W/LibraryVersion(23320): Failed to get app version for libraryName: shared-installation-id
I/e_mlkit_exampl(23320): Waiting for a blocking GC Alloc
I/e_mlkit_exampl(23320): Waiting for a blocking GC Alloc
I/e_mlkit_exampl(23320): WaitForGcToComplete blocked Alloc on ProfileSaver for 16.549ms
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
I/e_mlkit_exampl(23320): WaitForGcToComplete blocked Alloc on ProfileSaver for 16.967ms
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
I/e_mlkit_exampl(23320): Waiting for a blocking GC Alloc
I/e_mlkit_exampl(23320): Waiting for a blocking GC Alloc
D/NetworkSecurityConfig(23320): No Network Security Config specified, using platform default
I/e_mlkit_exampl(23320): WaitForGcToComplete blocked Alloc on ProfileSaver for 45.477ms
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
I/e_mlkit_exampl(23320): WaitForGcToComplete blocked Alloc on ProfileSaver for 33.152ms
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
W/e_mlkit_exampl(23320): Accessing hidden method Ldalvik/system/CloseGuard;->get()Ldalvik/system/CloseGuard; (greylist,core-platform-api, reflection, allowed)
W/e_mlkit_exampl(23320): Accessing hidden method Ldalvik/system/CloseGuard;->open(Ljava/lang/String;)V (greylist,core-platform-api, reflection, allowed)
W/e_mlkit_exampl(23320): Accessing hidden method Ldalvik/system/CloseGuard;->warnIfOpen()V (greylist,core-platform-api, reflection, allowed)
W/LibraryVersion(23320): Failed to get app version for libraryName: shared-acceleration-allowlist
I/e_mlkit_exampl(23320): Waiting for a blocking GC Alloc
I/e_mlkit_exampl(23320): WaitForGcToComplete blocked Alloc on ProfileSaver for 13.540ms
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
I/e_mlkit_exampl(23320): Waiting for a blocking GC Alloc
W/e_mlkit_exampl(23320): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed)
W/e_mlkit_exampl(23320): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
W/e_mlkit_exampl(23320): Accessing hidden method Lsun/misc/Unsafe;->getLong(Ljava/lang/Object;J)J (greylist,core-platform-api, linking, allowed)
W/e_mlkit_exampl(23320): Accessing hidden method Lsun/misc/Unsafe;->objectFieldOffset(Ljava/lang/reflect/Field;)J (greylist,core-platform-api, linking, allowed)
W/e_mlkit_exampl(23320): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed)
W/e_mlkit_exampl(23320): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
W/e_mlkit_exampl(23320): Accessing hidden method Lsun/misc/Unsafe;->putLong(Ljava/lang/Object;JJ)V (greylist, linking, allowed)
I/e_mlkit_exampl(23320): Waiting for a blocking GC Alloc
W/e_mlkit_exampl(23320): Accessing hidden method Lsun/misc/Unsafe;->allocateInstance(Ljava/lang/Class;)Ljava/lang/Object; (greylist, linking, allowed)
W/e_mlkit_exampl(23320): Accessing hidden method Llibcore/io/Memory;->peekLong(JZ)J (greylist, reflection, allowed)
W/e_mlkit_exampl(23320): Accessing hidden method Llibcore/io/Memory;->pokeLong(JJZ)V (greylist, reflection, allowed)
W/e_mlkit_exampl(23320): Accessing hidden method Llibcore/io/Memory;->pokeInt(JIZ)V (greylist, reflection, allowed)
W/e_mlkit_exampl(23320): Accessing hidden method Llibcore/io/Memory;->peekInt(JZ)I (greylist, reflection, allowed)
W/e_mlkit_exampl(23320): Accessing hidden method Llibcore/io/Memory;->pokeByte(JB)V (greylist, reflection, allowed)
W/e_mlkit_exampl(23320): Accessing hidden method Llibcore/io/Memory;->peekByte(J)B (greylist, reflection, allowed)
W/e_mlkit_exampl(23320): Accessing hidden method Llibcore/io/Memory;->pokeByteArray(J[BII)V (greylist, reflection, allowed)
W/e_mlkit_exampl(23320): Accessing hidden method Llibcore/io/Memory;->peekByteArray(J[BII)V (greylist, reflection, allowed)
W/e_mlkit_exampl(23320): Accessing hidden method Lsun/misc/Unsafe;->arrayBaseOffset(Ljava/lang/Class;)I (greylist,core-platform-api, linking, allowed)
W/e_mlkit_exampl(23320): Accessing hidden method Lsun/misc/Unsafe;->arrayIndexScale(Ljava/lang/Class;)I (greylist, linking, allowed)
W/e_mlkit_exampl(23320): Accessing hidden method Lsun/misc/Unsafe;->getLong(Ljava/lang/Object;J)J (greylist,core-platform-api, reflection, allowed)
W/e_mlkit_exampl(23320): Accessing hidden field Ljava/nio/Buffer;->address:J (greylist, reflection, allowed)
W/e_mlkit_exampl(23320): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, reflection, allowed)
W/e_mlkit_exampl(23320): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, reflection, allowed)
W/e_mlkit_exampl(23320): Accessing hidden method Lsun/misc/Unsafe;->getLong(Ljava/lang/Object;J)J (greylist,core-platform-api, reflection, allowed)
W/e_mlkit_exampl(23320): Accessing hidden method Lsun/misc/Unsafe;->putLong(Ljava/lang/Object;JJ)V (greylist, reflection, allowed)
W/e_mlkit_exampl(23320): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, reflection, allowed)
W/e_mlkit_exampl(23320): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, reflection, allowed)
W/e_mlkit_exampl(23320): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
W/e_mlkit_exampl(23320): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
I/e_mlkit_exampl(23320): WaitForGcToComplete blocked Alloc on ProfileSaver for 44.612ms
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
I/e_mlkit_exampl(23320): WaitForGcToComplete blocked Alloc on ProfileSaver for 28.526ms
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
W/e_mlkit_exampl(23320): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
I/e_mlkit_exampl(23320): Waiting for a blocking GC Alloc
W/e_mlkit_exampl(23320): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed)
I/e_mlkit_exampl(23320): Waiting for a blocking GC Alloc
W/e_mlkit_exampl(23320): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed)
W/e_mlkit_exampl(23320): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
I/e_mlkit_exampl(23320): WaitForGcToComplete blocked Alloc on ProfileSaver for 22.526ms
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
I/e_mlkit_exampl(23320): WaitForGcToComplete blocked Alloc on ProfileSaver for 15.307ms
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
W/e_mlkit_exampl(23320): Accessing hidden method Lsun/misc/Unsafe;->getLong(Ljava/lang/Object;J)J (greylist,core-platform-api, linking, allowed)
I/e_mlkit_exampl(23320): Waiting for a blocking GC Alloc
I/e_mlkit_exampl(23320): Waiting for a blocking GC Alloc
I/e_mlkit_exampl(23320): Waiting for a blocking GC Alloc
I/e_mlkit_exampl(23320): Clamp target GC heap from 96MB to 96MB
I/e_mlkit_exampl(23320): WaitForGcToComplete blocked Alloc on ProfileSaver for 28.224ms
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
I/e_mlkit_exampl(23320): WaitForGcToComplete blocked Alloc on ProfileSaver for 27.007ms
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
I/e_mlkit_exampl(23320): WaitForGcToComplete blocked Alloc on ProfileSaver for 23.641ms
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
I/e_mlkit_exampl(23320): Waiting for a blocking GC Alloc
I/e_mlkit_exampl(23320): Alloc young concurrent copying GC freed 317(104KB) AllocSpace objects, 6(10MB) LOS objects, 11% free, 84MB/96MB, paused 100us total 17.374ms
I/e_mlkit_exampl(23320): WaitForGcToComplete blocked Alloc on ProfileSaver for 11.076ms
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
I/e_mlkit_exampl(23320): Waiting for a blocking GC Alloc
I/e_mlkit_exampl(23320): Alloc concurrent copying GC freed 783(91KB) AllocSpace objects, 20(25MB) LOS objects, 25% free, 69MB/93MB, paused 116us total 43.281ms
I/e_mlkit_exampl(23320): WaitForGcToComplete blocked Alloc on ProfileSaver for 33.417ms
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
I/Manager (23320): DeviceManager::DeviceManager
I/Manager (23320): findAvailableDevices
I/e_mlkit_exampl(23320): Waiting for a blocking GC Alloc
I/e_mlkit_exampl(23320): Waiting for a blocking GC Alloc
W/native  (23320): W0430 10:01:49.819637   23693 motion_analysis_calculator.cc:381] No input video header found. Downstream calculators expecting video headers are likely to fail.
I/e_mlkit_exampl(23320): WaitForGcToComplete blocked Alloc on ProfileSaver for 24.369ms
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
I/e_mlkit_exampl(23320): WaitForGcToComplete blocked Alloc on ProfileSaver for 15.495ms
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
W/vkp-mediapipe-1(23320): type=1400 audit(0.0:136059): avc: denied { read } for uid=10341 name="u:object_r:vendor_default_prop:s0" dev="tmpfs" ino=13156 scontext=u:r:untrusted_app:s0:c85,c257,c512,c768 tcontext=u:object_r:vendor_default_prop:s0 tclass=file permissive=0
I/tflite  (23320): Initialized TensorFlow Lite runtime.
E/libc    (23320): Access denied finding property "ro.hardware.chipname"
I/tflite  (23320): Created TensorFlow Lite XNNPACK delegate for CPU.
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
I/native  (23320): I0430 10:01:49.848361   23690 mobile_ssd_tflite_client.cc:203] Model initialized: input_size: 110592, output_locations_size: 30600, preprocessing mean value: 127.5, preprocessing std value: 127.5, inference type: 2
I/native  (23320): I0430 10:01:49.848695   23690 mobile_ssd_calculator.cc:70] Succeeded in initializing SSD MobileObjectLocalizerV3_1TfLiteClient
I/native  (23320): I0430 10:01:49.849109   23689 box_classifier_calculator.cc:125] Initializing classifier
I/e_mlkit_exampl(23320): Waiting for a blocking GC Alloc
I/native  (23320): I0430 10:01:49.875427   23689 box_classifier_calculator.cc:146] Succeeded in initializing classifier
I/e_mlkit_exampl(23320): Alloc concurrent copying GC freed 475(229KB) AllocSpace objects, 21(23MB) LOS objects, 25% free, 71MB/95MB, paused 321us total 37.954ms
I/e_mlkit_exampl(23320): WaitForGcToComplete blocked Background on ProfileSaver for 36.800ms
I/e_mlkit_exampl(23320): WaitForGcToComplete blocked Alloc on ProfileSaver for 28.688ms
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
I/native  (23320): I0430 10:01:49.891301   23686 scheduler.cc:574] ImageMetadata: 1280x720
W/native  (23320): W0430 10:01:49.917271   23694 motion_analysis_calculator.cc:823] Requested image format in RegionFlowComputation does not match video stream format. Overriding.
D/TransportRuntime.SQLiteEventStore(23320): Storing event with priority=VERY_LOW, name=FIREBASE_ML_SDK for destination cct
I/native  (23320): I0430 10:01:49.922963   23694 motion_analysis_calculator.cc:645] Analyzed frame 1
W/native  (23320): W0430 10:01:49.923447   23694 parallel_invoker.h:319] Unsupported invoker mode selected on Android. Falling back to ThreadPool
W/e_mlkit_exampl(23320): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed)
I/e_mlkit_exampl(23320): Waiting for a blocking GC Alloc
I/e_mlkit_exampl(23320): Waiting for a blocking GC Alloc
W/e_mlkit_exampl(23320): Accessing hidden method Lsun/misc/Unsafe;->putLong(Ljava/lang/Object;JJ)V (greylist, linking, allowed)
D/TransportRuntime.JobInfoScheduler(23320): Upload for context TransportContext(cct, VERY_LOW, MSRodHRwczovL2ZpcmViYXNlbG9nZ2luZy5nb29nbGVhcGlzLmNvbS92MGNjL2xvZy9iYXRjaD9mb3JtYXQ9anNvbl9wcm90bzNc) is already scheduled. Returning...
I/e_mlkit_exampl(23320): WaitForGcToComplete blocked Alloc on ProfileSaver for 43.937ms
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
I/e_mlkit_exampl(23320): WaitForGcToComplete blocked Alloc on ProfileSaver for 44.340ms
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
I/e_mlkit_exampl(23320): Waiting for a blocking GC Alloc
I/e_mlkit_exampl(23320): Waiting for a blocking GC Alloc
W/e_mlkit_exampl(23320): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
W/e_mlkit_exampl(23320): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
W/e_mlkit_exampl(23320): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed)
W/e_mlkit_exampl(23320): Accessing hidden method Lsun/misc/Unsafe;->getLong(Ljava/lang/Object;J)J (greylist,core-platform-api, linking, allowed)
D/TransportRuntime.SQLiteEventStore(23320): Storing event with priority=VERY_LOW, name=FIREBASE_ML_SDK for destination cct
I/e_mlkit_exampl(23320): Clamp target GC heap from 101MB to 96MB
I/e_mlkit_exampl(23320): WaitForGcToComplete blocked Alloc on ProfileSaver for 56.300ms
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
I/e_mlkit_exampl(23320): WaitForGcToComplete blocked Alloc on ProfileSaver for 53.820ms
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
I/e_mlkit_exampl(23320): Waiting for a blocking GC Alloc
I/e_mlkit_exampl(23320): Waiting for a blocking GC Alloc
D/TransportRuntime.JobInfoScheduler(23320): Upload for context TransportContext(cct, VERY_LOW, MSRodHRwczovL2ZpcmViYXNlbG9nZ2luZy5nb29nbGVhcGlzLmNvbS92MGNjL2xvZy9iYXRjaD9mb3JtYXQ9anNvbl9wcm90bzNc) is already scheduled. Returning...
D/TransportRuntime.SQLiteEventStore(23320): Storing event with priority=VERY_LOW, name=FIREBASE_ML_SDK for destination cct
I/e_mlkit_exampl(23320): WaitForGcToComplete blocked Alloc on ProfileSaver for 15.627ms
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
I/e_mlkit_exampl(23320): WaitForGcToComplete blocked Alloc on ProfileSaver for 11.500ms
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
I/chatty  (23320): uid=10341(com.google_mlkit_example) identical 1 line
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
I/e_mlkit_exampl(23320): Waiting for a blocking GC Alloc
D/TransportRuntime.JobInfoScheduler(23320): Upload for context TransportContext(cct, VERY_LOW, MSRodHRwczovL2ZpcmViYXNlbG9nZ2luZy5nb29nbGVhcGlzLmNvbS92MGNjL2xvZy9iYXRjaD9mb3JtYXQ9anNvbl9wcm90bzNc) is already scheduled. Returning...
D/TransportRuntime.SQLiteEventStore(23320): Storing event with priority=VERY_LOW, name=FIREBASE_ML_SDK for destination cct
D/TransportRuntime.JobInfoScheduler(23320): Upload for context TransportContext(cct, VERY_LOW, MSRodHRwczovL2ZpcmViYXNlbG9nZ2luZy5nb29nbGVhcGlzLmNvbS92MGNjL2xvZy9iYXRjaD9mb3JtYXQ9anNvbl9wcm90bzNc) is already scheduled. Returning...
I/e_mlkit_exampl(23320): Clamp target GC heap from 103MB to 96MB
I/e_mlkit_exampl(23320): Alloc concurrent copying GC freed 1880(123KB) AllocSpace objects, 11(15MB) LOS objects, 16% free, 79MB/96MB, paused 88us total 46.472ms
I/e_mlkit_exampl(23320): WaitForGcToComplete blocked Alloc on ProfileSaver for 46.571ms
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
I/e_mlkit_exampl(23320): WaitForGcToComplete blocked Background on ProfileSaver for 40.850ms
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
I/e_mlkit_exampl(23320): Waiting for a blocking GC Alloc
I/e_mlkit_exampl(23320): Alloc young concurrent copying GC freed 288(68KB) AllocSpace objects, 3(4512KB) LOS objects, 4% free, 91MB/96MB, paused 276us total 16.853ms
I/e_mlkit_exampl(23320): WaitForGcToComplete blocked Background on ProfileSaver for 10.701ms
I/e_mlkit_exampl(23320): WaitForGcToComplete blocked Alloc on ProfileSaver for 9.885ms
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
I/e_mlkit_exampl(23320): Waiting for a blocking GC Alloc
I/e_mlkit_exampl(23320): Waiting for a blocking GC Alloc
I/e_mlkit_exampl(23320): Clamp target GC heap from 111MB to 96MB
I/e_mlkit_exampl(23320): WaitForGcToComplete blocked Alloc on ProfileSaver for 53.803ms
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
I/e_mlkit_exampl(23320): WaitForGcToComplete blocked Alloc on ProfileSaver for 49.011ms
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
I/e_mlkit_exampl(23320): Waiting for a blocking GC Alloc
I/e_mlkit_exampl(23320): Alloc young concurrent copying GC freed 137(47KB) AllocSpace objects, 1(904KB) LOS objects, 1% free, 94MB/96MB, paused 99us total 14.420ms
I/e_mlkit_exampl(23320): WaitForGcToComplete blocked Background on ProfileSaver for 5.768ms
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
I/e_mlkit_exampl(23320): Waiting for a blocking GC Alloc
I/e_mlkit_exampl(23320): Waiting for a blocking GC Alloc
I/e_mlkit_exampl(23320): Clamp target GC heap from 112MB to 96MB
I/e_mlkit_exampl(23320): WaitForGcToComplete blocked Alloc on ProfileSaver for 60.350ms
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
I/e_mlkit_exampl(23320): WaitForGcToComplete blocked Alloc on ProfileSaver for 54.946ms
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
I/e_mlkit_exampl(23320): Waiting for a blocking GC Alloc
I/e_mlkit_exampl(23320): Clamp target GC heap from 119MB to 96MB
I/e_mlkit_exampl(23320): Alloc concurrent copying GC freed 262(46KB) AllocSpace objects, 0(0B) LOS objects, 0% free, 95MB/96MB, paused 63us total 35.196ms
I/e_mlkit_exampl(23320): WaitForGcToComplete blocked Alloc on ProfileSaver for 19.393ms
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
I/e_mlkit_exampl(23320): Forcing collection of SoftReferences for 3600KB allocation
I/e_mlkit_exampl(23320): Waiting for a blocking GC Alloc
I/e_mlkit_exampl(23320): Alloc young concurrent copying GC freed 10(256B) AllocSpace objects, 0(0B) LOS objects, 0% free, 95MB/96MB, paused 58us total 10.776ms
I/e_mlkit_exampl(23320): WaitForGcToComplete blocked Alloc on ProfileSaver for 10.901ms
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
I/e_mlkit_exampl(23320): Waiting for a blocking GC Alloc
I/e_mlkit_exampl(23320): Clamp target GC heap from 119MB to 96MB
I/e_mlkit_exampl(23320): Alloc concurrent copying GC freed 1964(63KB) AllocSpace objects, 0(0B) LOS objects, 0% free, 95MB/96MB, paused 46us total 29.041ms
I/e_mlkit_exampl(23320): WaitForGcToComplete blocked Alloc on ProfileSaver for 29.220ms
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
W/e_mlkit_exampl(23320): Throwing OutOfMemoryError "Failed to allocate a 3686736 byte allocation with 251648 free bytes and 245KB until OOM, target footprint 100663296, growth limit 100663296" (VmSize 9782764 kB)
I/e_mlkit_exampl(23320): Waiting for a blocking GC Alloc
I/e_mlkit_exampl(23320): Clamp target GC heap from 119MB to 96MB
I/e_mlkit_exampl(23320): Alloc concurrent copying GC freed 60(2112B) AllocSpace objects, 0(0B) LOS objects, 0% free, 95MB/96MB, paused 45us total 28.606ms
I/e_mlkit_exampl(23320): WaitForGcToComplete blocked Background on ProfileSaver for 68.826ms
I/e_mlkit_exampl(23320): Forcing collection of SoftReferences for 450KB allocation
I/e_mlkit_exampl(23320): WaitForGcToComplete blocked Alloc on ProfileSaver for 24.792ms
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
I/e_mlkit_exampl(23320): Waiting for a blocking GC Alloc
I/e_mlkit_exampl(23320): Alloc young concurrent copying GC freed 22(600B) AllocSpace objects, 0(0B) LOS objects, 0% free, 95MB/96MB, paused 53us total 7.984ms
I/e_mlkit_exampl(23320): WaitForGcToComplete blocked Alloc on ProfileSaver for 8.126ms
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
I/e_mlkit_exampl(23320): Waiting for a blocking GC Alloc
I/e_mlkit_exampl(23320): Clamp target GC heap from 119MB to 96MB
I/e_mlkit_exampl(23320): Alloc concurrent copying GC freed 33(936B) AllocSpace objects, 0(0B) LOS objects, 0% free, 95MB/96MB, paused 53us total 22.429ms
I/e_mlkit_exampl(23320): WaitForGcToComplete blocked Alloc on ProfileSaver for 22.599ms
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
W/e_mlkit_exampl(23320): Throwing OutOfMemoryError "Failed to allocate a 460811 byte allocation with 250824 free bytes and 244KB until OOM, target footprint 100663296, growth limit 100663296" (VmSize 9782764 kB)
I/e_mlkit_exampl(23320): Waiting for a blocking GC Alloc
I/e_mlkit_exampl(23320): Clamp target GC heap from 119MB to 96MB
I/e_mlkit_exampl(23320): Alloc concurrent copying GC freed 11(536B) AllocSpace objects, 0(0B) LOS objects, 0% free, 95MB/96MB, paused 47us total 25.881ms
I/e_mlkit_exampl(23320): WaitForGcToComplete blocked Alloc on ProfileSaver for 25.658ms
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
I/e_mlkit_exampl(23320): Forcing collection of SoftReferences for 3600KB allocation
I/e_mlkit_exampl(23320): Waiting for a blocking GC Alloc
I/e_mlkit_exampl(23320): Alloc young concurrent copying GC freed 0(0B) AllocSpace objects, 0(0B) LOS objects, 0% free, 95MB/96MB, paused 51us total 7.968ms
I/e_mlkit_exampl(23320): WaitForGcToComplete blocked Alloc on ProfileSaver for 8.103ms
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
I/e_mlkit_exampl(23320): Waiting for a blocking GC Alloc
I/e_mlkit_exampl(23320): Clamp target GC heap from 119MB to 96MB
I/e_mlkit_exampl(23320): Alloc concurrent copying GC freed 14(352B) AllocSpace objects, 0(0B) LOS objects, 0% free, 95MB/96MB, paused 52us total 26.483ms
I/e_mlkit_exampl(23320): WaitForGcToComplete blocked Alloc on ProfileSaver for 26.638ms
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
W/e_mlkit_exampl(23320): Throwing OutOfMemoryError "Failed to allocate a 3686736 byte allocation with 251152 free bytes and 245KB until OOM, target footprint 100663296, growth limit 100663296" (VmSize 9782764 kB)
D/AndroidRuntime(23320): Shutting down VM
E/AndroidRuntime(23320): FATAL EXCEPTION: main
E/AndroidRuntime(23320): Process: com.google_mlkit_example, PID: 23320
E/AndroidRuntime(23320): java.lang.OutOfMemoryError: Failed to allocate a 3686736 byte allocation with 251152 free bytes and 245KB until OOM, target footprint 100663296, growth limit 100663296
E/AndroidRuntime(23320): 	at java.util.Arrays.copyOf(Arrays.java:3161)
E/AndroidRuntime(23320): 	at java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:118)
E/AndroidRuntime(23320): 	at java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:93)
E/AndroidRuntime(23320): 	at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:153)
E/AndroidRuntime(23320): 	at io.flutter.plugin.common.StandardMessageCodec.writeBytes(StandardMessageCodec.java:191)
E/AndroidRuntime(23320): 	at io.flutter.plugin.common.StandardMessageCodec.writeValue(StandardMessageCodec.java:242)
E/AndroidRuntime(23320): 	at io.flutter.plugin.common.StandardMessageCodec.writeValue(StandardMessageCodec.java:280)
E/AndroidRuntime(23320): 	at io.flutter.plugin.common.StandardMessageCodec.writeValue(StandardMessageCodec.java:272)
E/AndroidRuntime(23320): 	at io.flutter.plugin.common.StandardMessageCodec.writeValue(StandardMessageCodec.java:280)
E/AndroidRuntime(23320): 	at io.flutter.plugin.common.StandardMethodCodec.encodeSuccessEnvelope(StandardMethodCodec.java:59)
E/AndroidRuntime(23320): 	at io.flutter.plugin.common.EventChannel$IncomingStreamRequestHandler$EventSinkImplementation.success(EventChannel.java:251)
E/AndroidRuntime(23320): 	at io.flutter.plugins.camera.Camera.lambda$null$16(Camera.java:1159)
E/AndroidRuntime(23320): 	at io.flutter.plugins.camera.-$$Lambda$Camera$iYOi_dvbn-0gkz9tWNCT5VyNz0c.run(Unknown Source:4)
E/AndroidRuntime(23320): 	at android.os.Handler.handleCallback(Handler.java:883)
E/AndroidRuntime(23320): 	at android.os.Handler.dispatchMessage(Handler.java:100)
E/AndroidRuntime(23320): 	at android.os.Looper.loop(Looper.java:241)
E/AndroidRuntime(23320): 	at android.app.ActivityThread.main(ActivityThread.java:7604)
E/AndroidRuntime(23320): 	at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(23320): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
E/AndroidRuntime(23320): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:941)
I/e_mlkit_exampl(23320): Clamp target GC heap from 116MB to 96MB
I/e_mlkit_exampl(23320): Alloc concurrent copying GC freed 544(58KB) AllocSpace objects, 4(3612KB) LOS objects, 3% free, 92MB/96MB, paused 52us total 25.582ms
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
I/e_mlkit_exampl(23320): Starting a blocking GC Alloc
I/Process (23320): Sending signal. PID: 23320 SIG: 9
Lost connection to device.
Exited (sigterm)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions