-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Closed
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work liste: device-specificOnly manifests on certain devicesOnly manifests on certain devicesfound in release: 1.22Found to occur in 1.22Found to occur in 1.22found in release: 1.26Found to occur in 1.26Found to occur in 1.26has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onp: cameraThe camera pluginThe camera pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyAndroid applications specificallyteam-androidOwned by Android platform teamOwned by Android platform teamtriaged-androidTriaged by Android platform teamTriaged by Android platform teamwaiting for customer responseThe Flutter team cannot make further progress on this issue until the original reporter respondsThe Flutter team cannot make further progress on this issue until the original reporter responds
Description
The last version of the camera plug when running flash (in auto or on mode) takes a picture and returns null. The error occurs on both iOS version 14.1 and Android 7,8,9. it is worth mentioning that if flash is turned off, the photo is correctly returned and it is not empty
logs
Error that registers after taking the photo.
E/flutter (21805): [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: NoSuchMethodError: The getter 'absolute' was called on null.
E/flutter (21805): Receiver: null
E/flutter (21805): Tried calling: absolute
E/flutter (21805): #0 Object.noSuchMethod (dart:core-patch/object_patch.dart:51:5)
E/flutter (21805): #1 HelpClass.compressAndGetFile (package:fanroom/managers/helper.dart:280:12)
E/flutter (21805): #2 CameraScreenState.onTakePictureButtonPressed.<anonymous closure> (package:fanroom/screens/entity/camera_screen.dart:316:51)
E/flutter (21805): <asynchronous suspension>
E/flutter (21805): #3 CameraScreenState.onTakePictureButtonPressed.<anonymous closure> (package:fanroom/screens/entity/camera_screen.dart)
E/flutter (21805): #4 _rootRunUnary (dart:async/zone.dart:1198:47)
E/flutter (21805): #5 _CustomZone.runUnary (dart:async/zone.dart:1100:19)
E/flutter (21805): #6 _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
E/flutter (21805): #7 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)
E/flutter (21805): #8 Future._propagateToListeners (dart:async/future_impl.dart:725:32)
E/flutter (21805): #9 Future._completeWithValue (dart:async/future_impl.dart:529:5)
E/flutter (21805): #10 _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:40:15)
E/flutter (21805): #11 _completeOnAsyncReturn (dart:async-patch/async_patch.dart:311:13)
E/flutter (21805): #12 CameraScreenState.takePicture (package:fanroom/screens/entity/camera_screen.dart)
E/flutter (21805): <asynchronous suspension>
E/flutter (21805): #13 CameraScreenState.onTakePictureButtonPressed (package:fanroom/screens/entity/camera_screen.dart:305:5)
E/flutter (21805): #14 CameraScreenState.build.<anonymous closure> (package:fanroom/screens/entity/camera_screen.dart:135:25)
E/flutter (21805): #15 GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:183:24)
E/flutter (21805): #16 TapGestureRecognizer.handleTapUp (package:flutter/src/gestures/tap.dart:598:11)
E/flutter (21805): #17 BaseTapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:287:5)
E/flutter (21805): #18 BaseTapGestureRecognizer.acceptGesture (package:flutter/src/gestures/tap.dart:259:7)
E/flutter (21805): #19 GestureArenaManager.sweep (package:flutter/src/gestures/arena.dart:157:27)
E/flutter (21805): #20 GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:362:20)
E/flutter (21805): #21 GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:338:22)
E/flutter (21805): #22 RendererBinding.dispatchEvent (package:flutter/src/rendering/binding.dart:267:11)
E/flutter (21805): #23 GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:295:7)
E/flutter (21805): #24 GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:240:7)
E/flutter (21805): #25 GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:213:7)
E/flutter (21805): #26 _rootRunUnary (dart:async/zone.dart:1206:13)
E/flutter (21805): #27 _CustomZone.runUnary (dart:async/zone.dart:1100:19)
E/flutter (21805): #28 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1005:7)
E/flutter (21805): #29 _invoke1 (dart:ui/hooks.dart:265:10)
E/flutter (21805): #30 _dispatchPointerDataPacket (dart:ui/hooks.dart:174:5)Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work liste: device-specificOnly manifests on certain devicesOnly manifests on certain devicesfound in release: 1.22Found to occur in 1.22Found to occur in 1.22found in release: 1.26Found to occur in 1.26Found to occur in 1.26has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onp: cameraThe camera pluginThe camera pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyAndroid applications specificallyteam-androidOwned by Android platform teamOwned by Android platform teamtriaged-androidTriaged by Android platform teamTriaged by Android platform teamwaiting for customer responseThe Flutter team cannot make further progress on this issue until the original reporter respondsThe Flutter team cannot make further progress on this issue until the original reporter responds