Webview's addJavascriptInterface() Error

04-04 02:19:48.018  24614-24614/net.mymasters.MyMastersNet I/Process﹕ Sending signal. PID: 24614 SIG: 9

04-04 02:20:55.788  24917-24917/net.mymasters.MyMastersNet I/art﹕ Thread[1,tid=24917,WaitingForJniOnLoad,Thread*=0xb5007800,peer=0x73de5ec0,“main”] recursive attempt to load library “/data/app/net.mymasters.MyMastersNet-1/lib/arm/libjnlua5.1.so”

04-04 02:20:55.790  24917-24917/net.mymasters.MyMastersNet I/OpenAL_SLES﹕ alc_opensles_init

04-04 02:20:55.853  24917-24917/net.mymasters.MyMastersNet I/WebViewFactory﹕ Loading com.google.android.webview version 40 (1808730-arm) (code 423501)

04-04 02:20:55.873  24917-24917/net.mymasters.MyMastersNet I/LibraryLoader﹕ Time to load native libraries: 3 ms (timestamps 6843-6846)

04-04 02:20:55.873  24917-24917/net.mymasters.MyMastersNet I/LibraryLoader﹕ Expected native library version number “”,actual native library version number “”

04-04 02:20:55.884  24917-24917/net.mymasters.MyMastersNet V/WebViewChromiumFactoryProvider﹕ Binding Chromium to main looper Looper (main, tid 1) {1f527e9}

04-04 02:20:55.885  24917-24917/net.mymasters.MyMastersNet I/LibraryLoader﹕ Expected native library version number “”,actual native library version number “”

04-04 02:20:55.885  24917-24917/net.mymasters.MyMastersNet I/chromium﹕ [INFO:library_loader_hooks.cc(108)] Chromium logging enabled: level = 0, default verbosity = 0

04-04 02:20:55.895  24917-24917/net.mymasters.MyMastersNet I/BrowserStartupController﹕ Initializing chromium process, singleProcess=true

04-04 02:20:55.895  24917-24917/net.mymasters.MyMastersNet W/art﹕ Attempt to remove local handle scope entry from IRT, ignoring

04-04 02:20:55.907  24917-24917/net.mymasters.MyMastersNet W/chromium﹕ [WARNING:resource_bundle.cc(304)] locale_file_path.empty()

04-04 02:20:55.907  24917-24917/net.mymasters.MyMastersNet I/chromium﹕ [INFO:aw_browser_main_parts.cc(63)] Load from apk succesful, fd=32 off=125804 len=3669

04-04 02:20:55.907  24917-24917/net.mymasters.MyMastersNet I/chromium﹕ [INFO:aw_browser_main_parts.cc(76)] Loading webviewchromium.pak from, fd:33 off:390788 len:1143511

04-04 02:20:55.916  24917-24917/net.mymasters.MyMastersNet I/Adreno-EGL﹕ <qeglDrvAPI_eglInitialize:410>: QUALCOMM Build: 10/24/14, 167c270, I68fa98814b

04-04 02:20:55.969  24917-24917/net.mymasters.MyMastersNet W/chromium﹕ [WARNING:data_reduction_proxy_settings.cc(328)] SPDY proxy OFF at startup

04-04 02:20:55.980  24917-24917/net.mymasters.MyMastersNet W/art﹕ Attempt to remove local handle scope entry from IRT, ignoring

04-04 02:20:55.983  24917-24917/net.mymasters.MyMastersNet W/AwContents﹕ onDetachedFromWindow called when already detached. Ignoring

04-04 02:20:55.990  24917-24917/net.mymasters.MyMastersNet W/art﹕ Attempt to remove local handle scope entry from IRT, ignoring

04-04 02:20:55.990  24917-24917/net.mymasters.MyMastersNet W/art﹕ Attempt to remove local handle scope entry from IRT, ignoring

04-04 02:20:56.011  24917-24961/net.mymasters.MyMastersNet D/OpenGLRenderer﹕ Render dirty regions requested: true

04-04 02:20:56.018  24917-24917/net.mymasters.MyMastersNet D/Atlas﹕ Validating map…

04-04 02:20:56.041  24917-24961/net.mymasters.MyMastersNet I/OpenGLRenderer﹕ Initialized EGL, version 1.4

04-04 02:20:56.045  24917-24961/net.mymasters.MyMastersNet D/OpenGLRenderer﹕ Enabling debug mode 0

04-04 02:20:56.103  24917-24917/net.mymasters.MyMastersNet W/BindingManager﹕ Cannot call determinedVisibility() - never saw a connection for the pid: 24917

04-04 02:20:58.492  24917-24917/net.mymasters.MyMastersNet W/IInputConnectionWrapper﹕ showStatusIcon on inactive InputConnection

04-04 02:20:58.885  24917-24917/net.mymasters.MyMastersNet D/AndroidRuntime﹕ Shutting down VM

04-04 02:20:58.886  24917-24917/net.mymasters.MyMastersNet E/AndroidRuntime﹕ FATAL EXCEPTION: main

    Process: net.mymasters.MyMastersNet, PID: 24917

    java.lang.NullPointerException: Attempt to invoke virtual method ‘long com.ansca.corona.CoronaRuntime.getJavaToNativeBridgeAddress()’ on a null object reference

            at com.ansca.corona.CoronaView.onSaveInstanceState(CoronaView.java:116)

            at android.view.View.dispatchSaveInstanceState(View.java:13550)

            at android.view.ViewGroup.dispatchSaveInstanceState(ViewGroup.java:2859)

            at android.view.ViewGroup.dispatchSaveInstanceState(ViewGroup.java:2865)

            at android.view.ViewGroup.dispatchSaveInstanceState(ViewGroup.java:2865)

            at android.view.View.saveHierarchyState(View.java:13533)

            at com.android.internal.policy.impl.PhoneWindow.saveHierarchyState(PhoneWindow.java:1940)

            at android.app.Activity.onSaveInstanceState(Activity.java:1365)

            at android.app.Activity.performSaveInstanceState(Activity.java:1297)

            at android.app.Instrumentation.callActivityOnSaveInstanceState(Instrumentation.java:1272)

            at android.app.ActivityThread.callCallActivityOnSaveInstanceState(ActivityThread.java:3923)

            at android.app.ActivityThread.performStopActivityInner(ActivityThread.java:3334)

            at android.app.ActivityThread.handleStopActivity(ActivityThread.java:3390)

            at android.app.ActivityThread.access$1100(ActivityThread.java:144)

            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1307)

            at android.os.Handler.dispatchMessage(Handler.java:102)

            at android.os.Looper.loop(Looper.java:135)

            at android.app.ActivityThread.main(ActivityThread.java:5221)

            at java.lang.reflect.Method.invoke(Native Method)

            at java.lang.reflect.Method.invoke(Method.java:372)

            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)

            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)

Can you provide more context into what you’re trying to do? 

What version of CoronaCards are you using?

I use latest version. (CoronaCards 2015.2604)

I want Java communicates with Javascript using Webview.

I used webview.addJavascriptInterface() and touched button in webview. And it calls Java’s function.

And I open a camera roll to select photo. Then it crashed.

Engineering needs to see your code.  Please file a bug report and post the bug report # back here.  Please make sure to include everything needed to build the project in a .zip file.

Thanks

Rob

Can you provide more context into what you’re trying to do? 

What version of CoronaCards are you using?

I use latest version. (CoronaCards 2015.2604)

I want Java communicates with Javascript using Webview.

I used webview.addJavascriptInterface() and touched button in webview. And it calls Java’s function.

And I open a camera roll to select photo. Then it crashed.

Engineering needs to see your code.  Please file a bug report and post the bug report # back here.  Please make sure to include everything needed to build the project in a .zip file.

Thanks

Rob