picker icon indicating copy to clipboard operation
picker copied to clipboard

Touching the middle part of picker (not Icon on the right) crashes the app

Open khofesh opened this issue 5 years ago • 30 comments

"react": "17.0.1", "react-native": "0.64.0", "@react-native-picker/picker": "^1.12.0",

https://user-images.githubusercontent.com/31060467/113234262-2283a000-92cb-11eb-83f6-9bad53589685.mp4

the error details look the same to this issue (https://github.com/react-native-picker/picker/issues/220)

khofesh avatar Apr 01 '21 02:04 khofesh

Hello,

I have been facing the same issue since 0.64.

It would be interesting to have a reliable answer on this subject; various users mention solutions but no "official" answer :/

GaylordP avatar Apr 01 '21 14:04 GaylordP

I have a same issue too when upgrage react native 0.64

milule avatar Apr 02 '21 12:04 milule

Seems like the issue happens when the picker is combined with other native modules on version 0.64 https://github.com/facebook/react-native/issues/31245

Using picker on a new React Native project (v0.64) works fine I'll continue to investigate in the issue

Naturalclar avatar Apr 03 '21 01:04 Naturalclar

I have same issue; @react-native-picker/picker ^1.14.0 react-native 0.64.0

doesn't matter where I click it cause to crash

AyyanNiazi avatar Apr 05 '21 09:04 AyyanNiazi

hello I have same issue

mahmoud2802 avatar Apr 07 '21 08:04 mahmoud2802

I have same issue; @react-native-picker/picker ^1.14.0 react-native 0.64.0

when I click Icon picker it works. but when I click another space crashed.

SaeedBoroo avatar Apr 07 '21 08:04 SaeedBoroo

Facing the exact same issue as well

pdpd123 avatar Apr 07 '21 08:04 pdpd123

:<

Just upgraded to .64 on one branch while a developer added this library on another branch now we have an app crash on a new feature - mega disappointing

Left my comment on the wrong issue, one of these is a duplicate: https://github.com/react-native-picker/picker/issues/221

AlphaJuliettOmega avatar Apr 08 '21 14:04 AlphaJuliettOmega

Hello,

I have been facing the same issue since 0.64.

It would be interesting to have a reliable answer on this subject; various users mention solutions but no "official" answer :/

Would you be able to share any links or insight on possible solutions?

AlphaJuliettOmega avatar Apr 08 '21 14:04 AlphaJuliettOmega

Seems like the issue happens when the picker is combined with other native modules on version 0.64 facebook/react-native#31245

Using picker on a new React Native project (v0.64) works fine I'll continue to investigate in the issue

You're right. My picker component works on RN 0.64. I'm figuring out which component when combined with the picker crashes the app.

khofesh avatar Apr 09 '21 02:04 khofesh

So i managed to get the error

###### without gesture handler
java.lang.IllegalArgumentException: Unable to find JSIModule for class UIManager
 at com.facebook.react.bridge.JSIModuleRegistry.getModule(JSIModuleRegistry.java:24)
 at com.facebook.react.bridge.CatalystInstanceImpl.getJSIModule(CatalystInstanceImpl.java:564)
 at com.facebook.react.uimanager.UIManagerHelper.getUIManager(UIManagerHelper.java:90)
 at com.facebook.react.uimanager.UIManagerHelper.getUIManager(UIManagerHelper.java:46)
 at com.facebook.react.uimanager.UIManagerHelper.getUIManagerForReactTag(UIManagerHelper.java:40)
 at com.facebook.react.animated.NativeAnimatedNodesManager.handleEvent(NativeAnimatedNodesManager.java:505)
 at com.facebook.react.animated.NativeAnimatedNodesManager.onEventDispatch(NativeAnimatedNodesManager.java:483)
 at com.facebook.react.uimanager.events.EventDispatcherImpl.dispatchEvent(EventDispatcherImpl.java:116)
 at com.facebook.react.uimanager.JSTouchDispatcher.handleTouchEvent(JSTouchDispatcher.java:74)
 at com.facebook.react.ReactRootView.dispatchJSTouchEvent(ReactRootView.java:283)
 at com.facebook.react.ReactRootView.onInterceptTouchEvent(ReactRootView.java:201)
 at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2646)
 at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3141)
 at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2746)
 at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3141)
 at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2746)
 at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3141)
 at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2746)
 at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3141)
 at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2746)
 at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3141)
 at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2746)
 at com.android.internal.policy.DecorView.superDispatchTouchEvent(DecorView.java:498)
 at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1853)
 at android.app.Activity.dispatchTouchEvent(Activity.java:4059)
 at androidx.appcompat.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:69)
 at com.android.internal.policy.DecorView.dispatchTouchEvent(DecorView.java:456)
 at android.view.View.dispatchPointerEvent(View.java:13782)
 at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:5816)
 at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:5607)
 at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5104)
 at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5157)
 at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:5123)
 at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:5263)
 at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:5131)
 at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:5320)
 at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5104)
 at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5157)
 at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:5123)
 at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:5131)
 at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5104)
 at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:7940)
 at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:7909)
 at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:7860)
 at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:8086)
 at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:250)
 at android.os.MessageQueue.nativePollOnce(Native Method)
 at android.os.MessageQueue.next(MessageQueue.java:336)
 at android.os.Looper.loop(Looper.java:181)
 at android.app.ActivityThread.main(ActivityThread.java:7551)
 at java.lang.reflect.Method.invoke(Native Method)
 at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:995)

khofesh avatar Apr 09 '21 08:04 khofesh

The absolutely bizzare thing for me, was that I removed react-native-snap-carousel and implemented my carousel with a different library, some swiper and the error disappeared, just noting here in case it helps anyone.

For whatever reason, the horizontal flatlist or some kind of handler in the other carousel library, caused picker to crash when you click on the label, not the arrow - if you visit the view with the carousel before the view with the picker.

AlphaJuliettOmega avatar Apr 09 '21 08:04 AlphaJuliettOmega

@AlphaJuliettOmega I tried, no luck. It still crashes. We disable the picker component until we figure this out.

khofesh avatar Apr 09 '21 10:04 khofesh

The absolutely bizzare thing for me, was that I removed react-native-snap-carousel and implemented my carousel with a different library, some swiper and the error disappeared, just noting here in case it helps anyone.

For whatever reason, the horizontal flatlist or some kind of handler in the other carousel library, caused picker to crash when you click on the label, not the arrow - if you visit the view with the carousel before the view with the picker.

We used the same react-native-snap-carousel package. Commented out wherever we used that package and deleted that package from package.json and tried, Picker is now working without any crash. Switched to react-native-swiper-flatlist and it is working fine alongside react-native-picker

HishamMubarak avatar Apr 12 '21 12:04 HishamMubarak

I assume it's related to https://github.com/henninghall/react-native-date-picker/issues/301

onmotion avatar Apr 14 '21 13:04 onmotion

Hey are using react-native-tab-view ? For me the same issue started when I upgraded to react-native-tab-view from 2.16.0 to 3.0.0 in my react-native 0.64 project. The picker was crashing when I picked the middle part but when I press only the arrow it works. So I resolved it my case by downgrading back react-native-tab-view to 2.16.0. I think the problem had to do with react-native-tab-view using react-native-pager-view in their latest update.

java666p avatar Apr 17 '21 02:04 java666p

Same problem here, is there any solution?

jretamalc avatar Apr 19 '21 14:04 jretamalc

I solved it back not upgrading to 0.6 RN. Just curious, why do you have to upgrade from 0.5 to 0.6? I would suggest staying with 0.5.x a bit longer if you can

jretamalc @.***>于2021年4月19日 周一下午10:31写道:

Same problem here, is there any solution?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/react-native-picker/picker/issues/237#issuecomment-822513038, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASQNW4UJDPS6TGIHAG4WN3TTJQ5D3ANCNFSM42GBB37Q .

pdpd123 avatar Apr 20 '21 01:04 pdpd123

I solved it back not upgrading to 0.6 RN. Just curious, why do you have to upgrade from 0.5 to 0.6? I would suggest staying with 0.5.x a bit longer if you can jretamalc @.***>于2021年4月19日 周一下午10:31写道: … Same problem here, is there any solution? — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#237 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASQNW4UJDPS6TGIHAG4WN3TTJQ5D3ANCNFSM42GBB37Q .

Everytime new version of RN is released, we make new branch, then upgrade RN, and list which works and which doesn't.

khofesh avatar Apr 20 '21 02:04 khofesh

Are you using this with @react-navigation? I've just had this same issue since upgrading to 0.64 and found that this problem occurred on screens where I had enabled gestures (gestureEnabled: true in screenOptions).

boybeo68 avatar Apr 27 '21 06:04 boybeo68