apache / apache/cordova-plugin-inappbrowser

Live app is crashing due to InappBrowser

Open
#935 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.1k
Forks
2.2k
PR merge metrics
No merged PRs in 30d

Description

Getting these crash errors on the firebase console.

There are issues with the current version. Below is the stack trace for your reference.

Fatal Exception: android.content.res.Resources$NotFoundException
Resource ID #0x0
android.content.res.ResourcesImpl.getValueForDensity (ResourcesImpl.java:225)
android.content.res.Resources.getDrawableForDensity (Resources.java:887)
android.content.res.XResources.getDrawableForDensity (XResources.java:874)
android.content.res.Resources.getDrawable (Resources.java:827)
android.content.res.XResources.getDrawable (XResources.java:796)
android.content.res.Resources.getDrawable (Resources.java:802)
android.content.res.XResources.getDrawable (XResources.java:770)
org.apache.cordova.inappbrowser.InAppBrowser$7.run (InAppBrowser.java:830)
android.app.Activity.runOnUiThread (Activity.java:6283)
org.apache.cordova.inappbrowser.InAppBrowser.showWebPage (InAppBrowser.java:1046)
org.apache.cordova.inappbrowser.InAppBrowser$1.run (InAppBrowser.java:245)
android.os.Handler.handleCallback (Handler.java:873)
android.os.Handler.dispatchMessage (Handler.java:99)
android.os.Looper.loop (Looper.java:193)
android.app.ActivityThread.main (ActivityThread.java:6718)
java.lang.reflect.Method.invoke (Method.java)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:493)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:858)

Contributor guide

Open the contributing guide

Research direction

Start with the Firebase crash stack trace and inspect org.apache.cordova.inappbrowser.InAppBrowser, especially InAppBrowser.java at lines 830 and 1046. Reproduce the Resources$NotFoundException in the live app or a comparable Android setup, then verify that opening the InAppBrowser no longer crashes and add or update a regression test if the repository provides one.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.