Giter Site home page Giter Site logo

Comments (15)

gmackall avatar gmackall commented on June 2, 2024 1

i don't remember closing this?

I think its just a Github bug, I believe updating the main branch on a fork (maybe only with the github ui?) will sometimes re-close an issue when that update pulls in a commit that contains the description "fixes #issue number".

So if a commit gets merged to main saying "fixed..." but then the issue gets re-opened, and then you update your main branch (and pull in the commit) it will sometimes re-close.

from flutter.

danagbemava-nc avatar danagbemava-nc commented on June 2, 2024

Hi @Biowulf21, is this the only device you're seeing it on or are other devices affected? I tested this on my pixel 7 running android 14 and it doesn't allow me to submit 0 items.

Can you also try uprading to the latest version of image_picker to see if you still experience this issue?

Thank you

from flutter.

Biowulf21 avatar Biowulf21 commented on June 2, 2024

Hi @Biowulf21, is this the only device you're seeing it on or are other devices affected? I tested this on my pixel 7 running android 14 and it doesn't allow me to submit 0 items.

Can you also try uprading to the latest version of image_picker to see if you still experience this issue?

Thank you

hi @danagbemava-nc , I tested this on my Samsung S21+ and it crashes the app as well. Huawei P30 Pro also crashes per our QA team.

I'll look into the latest version next week. Thank you!

EDIT: Corrected the device models

from flutter.

danagbemava-nc avatar danagbemava-nc commented on June 2, 2024

Please keep us updated

@Biowulf21, just to confirm, are you calling pickImage or pickMultiImage? On my pixel 7, with pickImage, there isn't the option to select multiple images, but pickMultiImage does allow me to select multiple images.

from flutter.

Biowulf21 avatar Biowulf21 commented on June 2, 2024

Hi @danagbemava-nc I'm using pickMultiImage. So sorry for the delay, I'm out of the house right now, but I'll be sure to update this thread later tonight. Thank you!

Edit: I tested the same flow using the latest image_pickers version (1.1.0) and the issue is still there.

from flutter.

danagbemava-nc avatar danagbemava-nc commented on June 2, 2024

Thanks for the update. Just to confirm, were the samsung s21+ and the huawei p40 both running android 13? Have you tested this on any other OS version?

from flutter.

Biowulf21 avatar Biowulf21 commented on June 2, 2024

Thanks for the update. Just to confirm, were the samsung s21+ and the huawei p40 both running android 13? Have you tested this on any other OS version?

Hello, my team and I tested this on three devices: Huawei P30 Pro (Android 12), Infinix SMART 8 (Android 13), and Samsung 21+ (Android 14).

I also updated the title of the issue for your reference @danagbemava-nc. Sorry for the confusion.

from flutter.

danagbemava-nc avatar danagbemava-nc commented on June 2, 2024

Thanks for the update.

While I cannot reproduce this on my device (the picker won't allow sending back 0 items), it seems like we are passing a null URI to https://github.com/flutter/packages/blob/6e6082660b73144e5fedf28545602c1ef6588f8e/packages/image_picker/image_picker_android/android/src/main/java/io/flutter/plugins/imagepicker/FileUtils.java#L55

I think it would be best to catch the null_pointer exception or check if the uri is null before processing.

Labeling for further insight.

from flutter.

Jackson-Antunes-Sampaio avatar Jackson-Antunes-Sampaio commented on June 2, 2024

I'm facing the same problem in "release".

Using Firebase's "Crashlytics" it returns the error below:

"PlatformException(already_active, Image picker is already active, null, null)"

from flutter.

kvn-DN avatar kvn-DN commented on June 2, 2024

Facing same problem

"PlatformException(already_active, Image picker is already active, null, null)"

do we have any solutions?

this is delaying the production release.

from flutter.

stuartmorgan avatar stuartmorgan commented on June 2, 2024

This looks like the same issue that flutter/packages#4836 fixed for single-item selection, where some pickers are, instead of returning no clip data, returning clip data with a null URI. It's not fixed for the multi-item codepath yet (see flutter/packages#4836 (comment) for a suggestion on this).

from flutter.

stuartmorgan avatar stuartmorgan commented on June 2, 2024

Re-opening since the PR didn't fix all codepaths. And in particular, the original report's stack is in handleChooseMultiImageResult, which is the one that's not fixed.

from flutter.

Mairramer avatar Mairramer commented on June 2, 2024

@stuartmorgan @gmackall I created a new PR complementing the one I had previously sent.

from flutter.

LouiseHsu avatar LouiseHsu commented on June 2, 2024

i don't remember closing this?

from flutter.

gmackall avatar gmackall commented on June 2, 2024

This should be fixed by flutter/packages#5009

from flutter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.