Skip to content

Unhandled Exception: PlatformException(InputImageConverterError, ImageFormat is not supported., null, null) #791

@realsoftwaresolution

Description

@realsoftwaresolution

Describe your issue. If applicable, add screenshots to help explain your problem.

E/flutter (17073): [ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: PlatformException(InputImageConverterError, ImageFormat is not supported., null, null)
E/flutter (17073): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:652:7)
E/flutter (17073): #1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:370:18)
E/flutter (17073):
E/flutter (17073): #2 MethodChannel.invokeListMethod (package:flutter/src/services/platform_channel.dart:556:35)
E/flutter (17073):
E/flutter (17073): #3 FaceDetector.processImage (package:google_mlkit_face_detection/src/face_detector.dart:23:20)
E/flutter (17073):
E/flutter (17073): #4 ScannerUtils.detect (package:face_hazri/face_recognition/detector_utils.dart:42:12)
E/flutter (17073):
E/flutter (17073): #5 _CaptureAttendanceState._initializeCamera.. (package:face_hazri/face_recognition/capture_attendance.dart:181:9)
E/flutter (17073):
E/flutter (17073): #6 _CaptureAttendanceState._initializeCamera.. (package:face_hazri/face_recognition/capture_attendance.dart:239:22)
E/flutter (17073):
E/flutter (17073):
I/flutter (17073): Image format group: ImageFormatGroup.yuv420

Steps to reproduce.

When Try to Detect Face on Android Above Issue occurred in Platform Channel.

What is the expected result?

Face Should be Detect.

Did you try our example app?

Yes

Is it reproducible in the example app?

Yes

Reproducible in which OS?

Android

Flutter/Dart Version?

[✓] Flutter (Channel stable, 3.29.3, on macOS 15.2 24C101 darwin-x64, locale
en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2025.1)
[✓] VS Code (version 1.96.2)
[✓] Connected device (4 available)
[✓] Network resources

• No issues found!

Plugin Version?

google_mlkit_face_detection: ^0.13.1
google_mlkit_commons: ^0.11.0
camera: ^0.11.2

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