Giter Site home page Giter Site logo

Android app crashes due to the exception: java.lang.IllegalArgumentException: pointerIndex out of range about react-native-photo-view HOT 14 OPEN

alwx avatar alwx commented on August 17, 2024 7
Android app crashes due to the exception: java.lang.IllegalArgumentException: pointerIndex out of range

from react-native-photo-view.

Comments (14)

carstenhag avatar carstenhag commented on August 17, 2024 1

See https://issuetracker.google.com/issues/143448308, they won't fix it. ViewPager (1) is now also deprecated so move to ViewPager2.

from react-native-photo-view.

vandervidi avatar vandervidi commented on August 17, 2024

@xzdev I get the same crash :(
Did you fix this?

from react-native-photo-view.

alwx avatar alwx commented on August 17, 2024

@xzdev @vandervidi need to see your code to understand the problem.

from react-native-photo-view.

waleedarshad-vf avatar waleedarshad-vf commented on August 17, 2024

Same problem +1

from react-native-photo-view.

waleedarshad-vf avatar waleedarshad-vf commented on August 17, 2024

on zooming in and out it just crashed randomly :(

from react-native-photo-view.

zsajjad avatar zsajjad commented on August 17, 2024

Same issue on zooming out to maximum!

from react-native-photo-view.

juanmanuelarze avatar juanmanuelarze commented on August 17, 2024

same here

from react-native-photo-view.

edencakir avatar edencakir commented on August 17, 2024

same

from react-native-photo-view.

loiclouvet avatar loiclouvet commented on August 17, 2024

Same issue

from react-native-photo-view.

GuillaumeMunsch avatar GuillaumeMunsch commented on August 17, 2024

Same here

from react-native-photo-view.

Borisboky avatar Borisboky commented on August 17, 2024

+1

from react-native-photo-view.

douglasjunior avatar douglasjunior commented on August 17, 2024

Same here, only for two Samsung devices.

from react-native-photo-view.

JonoH avatar JonoH commented on August 17, 2024

+1

from react-native-photo-view.

JiboStore avatar JiboStore commented on August 17, 2024

me too, any solution?

I found this:
Baseflow/PhotoView#293

But I'm not sure how to apply, pretty new to react-native here...

EDIT:
probably related to this too:
#22
but again, I'm not sure how to apply, it seems to suggest using another component

EDIT2:
Figured out the exception was due to bug inside android api and the common accepted workaround was to surround onInterceptTouchEvent with try-catch block. A couple of pull-requests on react-native code base has been done, but none has been accepted yet. Current solution might need to fork the react-native code base, apply the fix, and rebuild.

*. facebook/react-native#13166
*. facebook/react-native#12085
*. facebook/react-native#17167
*. https://facebook.github.io/react-native/docs/android-building-from-source.html

from react-native-photo-view.

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.