Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image Picker - Error Piking Image "PlatformException(already_active, Image picker is already active, null)" #36529

Closed
FlutterForefront opened this issue Jul 19, 2019 · 25 comments
Labels
customer: crowd Affects or could affect many people, though not necessarily a specific customer. p: image_picker The Image Picker plugin. package flutter/packages repository. See also p: labels. waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds

Comments

@FlutterForefront
Copy link

FlutterForefront commented Jul 19, 2019

E/flutter (23001): [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: PlatformException(already_active, Image picker is already active, null)
E/flutter (23001): #0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:564:7)
E/flutter (23001): #1      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:316:33)
E/flutter (23001): <asynchronous suspension>
E/flutter (23001): #2      ImagePicker.pickImage (package:image_picker/image_picker.dart:50:40)
E/flutter (23001): <asynchronous suspension>
E/flutter (23001): #3      _MyHomePageState._onImageButtonPressed.<anonymous closure> (package:vendor_app/main.dart:64:34)
E/flutter (23001): #4      State.setState (package:flutter/src/widgets/framework.dart:1141:30)
E/flutter (23001): #5      _MyHomePageState._onImageButtonPressed (package:vendor_app/main.dart:45:5)
E/flutter (23001): #6      _MyHomePageState.build.<anonymous closure> (package:vendor_app/main.dart:149:15)
E/flutter (23001): #7      _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:635:14)
E/flutter (23001): #8      _InkResponseState.build.<anonymous closure> (package:flutter/src/material/ink_well.dart:711:32)
E/flutter (23001): #9      GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:182:24)
E/flutter (23001): #10     TapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:365:11)
E/flutter (23001): #11     TapGestureRecognizer.acceptGesture (package:flutter/src/gestures/tap.dart:312:7)
E/flutter (23001): #12     GestureArenaManager.sweep (package:flutter/src/gestures/arena.dart:156:27)
E/flutter (23001): #13     _WidgetsFlutterBinding&BindingBase&GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:222:20)
E/flutter (23001): #14     _WidgetsFlutterBinding&BindingBase&GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:198:22)
E/flutter (23001): #15     _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:156:7)
E/flutter (23001): #16     _WidgetsFlutterBinding&BindingBase&GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:102:7)
E/flutter (23001): #17     _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:86:7)
E/flutter (23001): #18     _rootRunUnary (dart:async/zone.dart:1136:13)
E/flutter (23001): #19     _CustomZone.runUnary (dart:async/zone.dart:1029:19)
E/flutter (23001): #20     _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
E/flutter (23001): #21     _invoke1 (dart:ui/hooks.dart:250:10)
E/flutter (23001): #22     _dispatchPointerDataPacket (dart:ui/hooks.dart:159:5)
E/flutter (23001): 
@zzpmaster
Copy link

+1

@Mephistol
Copy link

have you solved this problem?

@chloe722
Copy link

I encountered the same issue

@TejaDroid
Copy link

This same issue also encounter in my app, Here got the solution, may this will help you too.

@david701
Copy link

david701 commented Sep 5, 2019

I solved the problem by running "flutter clean"

@VickySalunkhe
Copy link

facing the same issue on beta and master channels

@loveangle66
Copy link

+1

2 similar comments
@LIPKKKK
Copy link

LIPKKKK commented Sep 19, 2019

+1

@desire0420
Copy link

+1

@desire0420
Copy link

请问下大家是怎么解决的

@firatcetiner
Copy link

Same issue here.ImagePicker.pickImage() returns object every single time, just annoying

@BondarenkoStas
Copy link

BondarenkoStas commented Sep 24, 2019

Can somebody please provide a small self-contained app that demonstrates the problem? You can include small examples inline if they're enclosed by backticks, or just provide a public link to a github "gist" - https://gist.github.com/.

P.S. If you mark +1 to follow the issue, you can just subscribe and put thumb up on the issue body, in this way issues look more clean.

@BondarenkoStas BondarenkoStas added customer: crowd Affects or could affect many people, though not necessarily a specific customer. p: image_picker The Image Picker plugin. plugin waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds labels Sep 24, 2019
@iapicca
Copy link
Contributor

iapicca commented Nov 11, 2019

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!

Thanks for your contribution.

@iapicca iapicca closed this as completed Nov 11, 2019
@hahazheng
Copy link

我也遇到了同样的问题 ,有解决方案了么

@mahbubsabuj
Copy link

I solved the problem by running "flutter clean"

thanks.it worked!

@PitiDev
Copy link

PitiDev commented Nov 22, 2019

+1 same

@lifelikejuly
Copy link

lifelikejuly commented Dec 5, 2019

If you have use Flutter_Boost maybe this problem is onActivityResult not use
alibaba/flutter_boost#263

@ajouni
Copy link

ajouni commented Dec 17, 2019

I solved the problem by running "flutter clean"

True story

@migalv
Copy link

migalv commented Jan 13, 2020

Hello, I found this issue from a Crashlytics report in Firebase, so I don't know exactly how to reproduce this. And I would like to solve it. Can anyone help me out?

@iapicca
Copy link
Contributor

iapicca commented Jan 27, 2020

Could everyone who still has this problem please file a new issue with the exact descriptions what happens, logs and the output of 'flutter doctor -v' please.
All system setups can be slightly different so it's always better to open new issues and reference related issues.

@hpsaah
Copy link

hpsaah commented Jan 28, 2020

I had the same error and I solved the problem by upgrading the image_picker package to ^0.6.2+1

@weshare12
Copy link

weshare12 commented Mar 26, 2020

same problem, the new version of the image_picker already solves this problem. version: image_picker: ^0.6.3+4

@DCrow
Copy link

DCrow commented Apr 2, 2020

Having the same problem on image_picker: 0.6.4

@moho12n
Copy link

moho12n commented Apr 7, 2020

having the same problem on multi_image_picker: ^4.6.5+rc.1

@lock
Copy link

lock bot commented Apr 25, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@lock lock bot locked and limited conversation to collaborators Apr 25, 2020
@flutter-triage-bot flutter-triage-bot bot added the package flutter/packages repository. See also p: labels. label Jul 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
customer: crowd Affects or could affect many people, though not necessarily a specific customer. p: image_picker The Image Picker plugin. package flutter/packages repository. See also p: labels. waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds
Projects
None yet
Development

No branches or pull requests