Giter VIP home page Giter VIP logo

Comments (4)

thedoritos avatar thedoritos commented on August 16, 2024

Thanks for reporting the issue. I'll investigate it on next weekend.

from unimgpicker.

thedoritos avatar thedoritos commented on August 16, 2024

Hi, @groznybear

Could you give me more information? I added an activity to help debugging 🐛

  1. Checkout the branch fix/crash_on_galaxy_s7.
  2. Open the Android project at unimgpicker_android with Android Studio.
  3. Run app with debug mode on your device.
  4. Set some breakpoints and find out what's going wrong within Picker.java lines 93-123.

It seems the value of opts.outWidth at the line 106 to be zero.
That is probably because reading image options at lines 96-98 is somehow failing.

// Decode metadata
BitmapFactory.Options opts = new BitmapFactory.Options();
opts.inJustDecodeBounds = true;
BitmapFactory.decodeStream(inputStream, null, opts);
inputStream.close();

Thank you.


FYI, I run the sample scene on following environment, and it worked.

Device: Nexus 5
OS: Android 6.0.1
Unity: 5.5.1f1

from unimgpicker.

groznybear avatar groznybear commented on August 16, 2024

Hi, after couple of weeks of "bug fixing", seems like I found the reason of my problem! Seems like I accidentally turned on "Do not keep activities" switch, under "Developers" tab in Settings. Turning it off fixed the problem. I'm sorry I disturbed you! You may check this option, if that was an actual reason. Thank you for your attention! Plugin works well now!

from unimgpicker.

thedoritos avatar thedoritos commented on August 16, 2024

Thanks for the report. I'm happy to hear the plugin is working.
Feel free to report another issue if you find any bugs or inconveniences.

Thank you :)

from unimgpicker.

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.