react-native-view-shot icon indicating copy to clipboard operation
react-native-view-shot copied to clipboard

Android App crashes only with release APK and release Bunddle

Open devedu0714 opened this issue 2 years ago • 2 comments

Android App crashes only with release APK and release Bunddle

"react": "17.0.1",
"react-native": "0.64.1"

crash log

    com.facebook.react.uimanager.IllegalViewOperationException: Trying to resolve view with tag 4183 which doesn't exist
        at com.facebook.react.uimanager.NativeViewHierarchyManager.resolveView(NativeViewHierarchyManager.java:103)
        at fr.greweb.reactnativeviewshot.ViewShot.execute(ViewShot.java:171)
        at com.facebook.react.uimanager.UIViewOperationQueue$UIBlockOperation.execute(UIViewOperationQueue.java:573)
        at com.facebook.react.uimanager.UIViewOperationQueue$1.run(UIViewOperationQueue.java:908)
        at com.facebook.react.uimanager.UIViewOperationQueue.flushPendingBatches(UIViewOperationQueue.java:1019)
        at com.facebook.react.uimanager.UIViewOperationQueue.access$2600(UIViewOperationQueue.java:47)
        at com.facebook.react.uimanager.UIViewOperationQueue$DispatchUIFrameCallback.doFrameGuarded(UIViewOperationQueue.java:1079)
        at com.facebook.react.uimanager.GuardedFrameCallback.doFrame(GuardedFrameCallback.java:29)
        at com.facebook.react.modules.core.ReactChoreographer$ReactChoreographerDispatcher.doFrame(ReactChoreographer.java:175)
        at com.facebook.react.modules.core.ChoreographerCompat$FrameCallback$1.doFrame(ChoreographerCompat.java:85)
        at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1008)
        at android.view.Choreographer.doCallbacks(Choreographer.java:809)
        at android.view.Choreographer.doFrame(Choreographer.java:740)
        at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:995)
        at android.os.Handler.handleCallback(Handler.java:938)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:247)
        at android.app.ActivityThread.main(ActivityThread.java:8656)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)

devedu0714 avatar Mar 24 '22 03:03 devedu0714

@devedu0714 have you found any solution. If found any solution then can you please share here as I faced also same issue .

ForamPattha avatar May 04 '22 07:05 ForamPattha

Has this been looked at yet? This always crashes on Android when using captureRef (3.3.0), react native 0.66.1).

Nvm: https://github.com/gre/react-native-view-shot/issues/7#issuecomment-245302844

TomNes94 avatar Jun 01 '22 13:06 TomNes94