cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikita Matrosov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-12932) InAppBrowser plugin crash on Android
Date Mon, 10 Jul 2017 13:44:00 GMT

    [ https://issues.apache.org/jira/browse/CB-12932?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16080338#comment-16080338
] 

Nikita Matrosov commented on CB-12932:
--------------------------------------

[~thibaut], Could not reproduce it with the following list of dependencies in build.gradle:


{code:java}
dependencies {
    compile 'com.google.android.gms:play-services:11.0.2'
    compile fileTree(dir: 'libs', include: '*.jar')

    // SUB-PROJECT DEPENDENCIES START
    debugCompile(project(path: "CordovaLib", configuration: "debug"))
    releaseCompile(project(path: "CordovaLib", configuration: "release"))
    // SUB-PROJECT DEPENDENCIES END
}
{code}


But according to the stack trace, a plugin could not find 'ic_action_previous_item' icon which
is used with '_blank' target. There is a list of folders where this icon should be (https://github.com/apache/cordova-plugin-inappbrowser/blob/master/plugin.xml#L92-L95).

> InAppBrowser plugin crash on Android
> ------------------------------------
>
>                 Key: CB-12932
>                 URL: https://issues.apache.org/jira/browse/CB-12932
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-plugin-inappbrowser
>    Affects Versions: cordova@7.0.0
>            Reporter: thibaut
>
> When using the _blank option, the cordova plugin now crash the entire application on
Android 6 and 7 after updating to the last SDK available of Google:
> Fabric tells me this :
> {code:java}
> Fatal Exception: android.content.res.Resources$NotFoundException: Resource ID #0x0
>        at android.content.res.ResourcesImpl.getValue(ResourcesImpl.java:202)
>        at android.content.res.Resources.getDrawable(Resources.java:1639)
>        at android.content.res.Resources.getDrawable(Resources.java:1611)
>        at org.apache.cordova.inappbrowser.InAppBrowser$6.run(InAppBrowser.java:637)
>        at android.app.Activity.runOnUiThread(Activity.java:6030)
>        at org.apache.cordova.inappbrowser.InAppBrowser.showWebPage(InAppBrowser.java:852)
>        at org.apache.cordova.inappbrowser.InAppBrowser$1.run(InAppBrowser.java:207)
>        at android.os.Handler.handleCallback(Handler.java:751)
>        at android.os.Handler.dispatchMessage(Handler.java:95)
>        at android.os.Looper.loop(Looper.java:154)
>        at android.app.ActivityThread.main(ActivityThread.java:6692)
>        at java.lang.reflect.Method.invoke(Method.java)
>        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1468)
>        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1358)
> {code}
> I tried with _system : No Crash, but every time I use _blank, the app crashed.
> It happens since I updated my google sdk (I think it was the play services, but not sure
about this)
> Thanking you in advance



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message