Skip to content
This repository has been archived by the owner on Nov 11, 2019. It is now read-only.

Getting an Android Specific error #40

Open
matthewfbenjamin opened this issue Dec 27, 2018 · 2 comments
Open

Getting an Android Specific error #40

matthewfbenjamin opened this issue Dec 27, 2018 · 2 comments

Comments

@matthewfbenjamin
Copy link

matthewfbenjamin commented Dec 27, 2018

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"
        }
    }
}
plrthink added a commit to mockingbot/react-native-advanced-webview that referenced this issue Jan 23, 2019
plrthink added a commit to mockingbot/react-native-advanced-webview that referenced this issue Jan 24, 2019
@BenitoP
Copy link

BenitoP commented Mar 14, 2019

@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

@matthewfbenjamin
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants