react-native-advanced-webview icon indicating copy to clipboard operation
react-native-advanced-webview copied to clipboard

Getting an Android Specific error

Open matthewfbenjamin opened this issue 6 years ago • 2 comments

I get this error and it seems to be when the webview is unmounting.

Attempt to write to field 'java.util.ArrayList im.shimo.react.webview.AdvancedWebViewManager$AdvancedWebViewClient.mPendingMessages' on a null object reference
onDropViewInstance
    AdvancedWebViewManager.java:463
onDropViewInstance
    AdvancedWebViewManager.java:48
dropView
    NativeViewHierarchyManager.java:573
dropView
    NativeViewHierarchyManager.java:584
dropView
    NativeViewHierarchyManager.java:584
dropView
    NativeViewHierarchyManager.java:584
dropView
    NativeViewHierarchyManager.java:584
dropView
    NativeViewHierarchyManager.java:584
manageChildren
    NativeViewHierarchyManager.java:470
execute
    UIViewOperationQueue.java:227
run
    UIViewOperationQueue.java:894
flushPendingBatches
    UIViewOperationQueue.java:1001
access$2400
    UIViewOperationQueue.java:46
doFrameGuarded
    UIViewOperationQueue.java:1061
doFrame
    GuardedFrameCallback.java:29
doFrame
    ReactChoreographer.java:134
doFrame
    ChoreographerCompat.java:105
run
    Choreographer.java:947
doCallbacks
    Choreographer.java:761
doFrame
    Choreographer.java:693
run
    Choreographer.java:935
handleCallback
    Handler.java:873
dispatchMessage
    Handler.java:99
loop
    Looper.java:193
main
    ActivityThread.java:6669
invoke
    Method.java
run
    RuntimeInit.java:493
main
    ZygoteInit.java:858

The React Native Repo has an issue open here. Any advice would be greatly appreciated, especially if anyone has seen this before.

Using:

React Native: 0.57.7
React: 16.6.3
android {
    compileSdkVersion 26
    buildToolsVersion '27.0.3'
    defaultConfig {
        minSdkVersion 21
        targetSdkVersion 26
        versionCode 1
        versionName version
        multiDexEnabled true
        ndk {
            abiFilters "armeabi-v7a", "x86"
        }
    }
}

matthewfbenjamin avatar Dec 27 '18 15:12 matthewfbenjamin

@matthewfbenjamin Did you manage to solve this issue? I see there were commits which seems to fix the issue but I am still having this problem with the latest version

BenitoP avatar Mar 14 '19 08:03 BenitoP

@BenitoP Sorry mate, I just decided to use the react-native-community webview as I didn't need the advanced features

matthewfbenjamin avatar Mar 14 '19 12:03 matthewfbenjamin