PSDev / LicensesDialog

LicensesDialog is an open source library to display licenses of third-party libraries in an Android app.
http://psdev.de/LicensesDialog
Apache License 2.0
850 stars 145 forks source link

Resources$NotFoundException on Google Play console pre-launch report #98

Closed er-mo closed 4 years ago

er-mo commented 5 years ago

Screen Size: 720 × 1280 Screen Density (dpi): 320 Model Name: P8 Lite RAM: 2048 MB Manufacturer: Huawei OpenGL ES Version: 2.0 Android Version: Android 5.0 Native Platform: armeabi-v7a Locale: en_US CPU Make: HiSilicon CPU Model: Hi6220

Stacktrace: FATAL EXCEPTION: ControllerMessenger Process PID: 18867 android.content.res.Resources$NotFoundException: String resource ID #0x3040002 at android.content.res.HwResources.getText(HwResources.java:1252) at android.content.res.Resources.getString(Resources.java:374) at com.android.org.chromium.content.browser.ContentViewCore.setContainerView(ContentViewCore.java:948) at com.android.org.chromium.content.browser.ContentViewCore.initialize(ContentViewCore.java:848) at com.android.org.chromium.android_webview.AwContents.createAndInitializeContentViewCore(AwContents.java:649) at com.android.org.chromium.android_webview.AwContents.setNewAwContents(AwContents.java:788) at com.android.org.chromium.android_webview.AwContents.<init>(AwContents.java:635) at com.android.org.chromium.android_webview.AwContents.<init>(AwContents.java:573) at com.android.webview.chromium.WebViewChromium.initForReal(WebViewChromium.java:315) at com.android.webview.chromium.WebViewChromium.access$100(WebViewChromium.java:100) at com.android.webview.chromium.WebViewChromium$1.run(WebViewChromium.java:267) at com.android.webview.chromium.WebViewChromium$WebViewChromiumRunQueue.drainQueue(WebViewChromium.java:127) at com.android.webview.chromium.WebViewChromium$WebViewChromiumRunQueue$1.run(WebViewChromium.java:114) at com.android.org.chromium.base.ThreadUtils.runOnUiThread(ThreadUtils.java:144) at com.android.webview.chromium.WebViewChromium$WebViewChromiumRunQueue.addTask(WebViewChromium.java:111) at com.android.webview.chromium.WebViewChromium.init(WebViewChromium.java:264) at android.webkit.WebView.<init>(WebView.java:548) at android.webkit.WebView.<init>(WebView.java:483) at android.webkit.WebView.<init>(WebView.java:466) at android.webkit.WebView.<init>(WebView.java:453) at android.webkit.WebView.<init>(WebView.java:443) at de.psdev.licensesdialog.LicensesDialog.createWebView(LicensesDialog.java:178) at de.psdev.licensesdialog.LicensesDialog.create(LicensesDialog.java:79) at de.psdev.licensesdialog.LicensesDialog.show(LicensesDialog.java:162)

hameno commented 5 years ago

Thanks for the report. I'm not sure if the library if really the cause of this error. Can you please try and find the string resource behind #0x3040002 ? I think you can use the APK analyzer in Android Studio with your APK.

er-mo commented 5 years ago

You are probably right. I was not able to locate that resource.

ziSo12 commented 5 years ago

Getting the same error, also with this library on Android 5.0 pre-launch report Issue: android.content.res.Resources$NotFoundException: String resource ID #0x3040002

Test ID

1 Screen Size

720 × 1280 Test Duration

300 seconds Screen Density (dpi) 320 Model Name P8 Lite RAM 2048 MB Manufacturer Huawei OpenGL ES Version 2.0 Android Version Android 5.0 Native Platform armeabi-v7a Locale en_US CPU Make HiSilicon CPU Model Hi6220

Seems the library is using this value somehow but it can't be found.

pavelaizen commented 5 years ago

Device: Huawei Y6 TIT-AL00

 android.content.res.Resources$NotFoundException: String resource ID #0x3040003
    at android.content.res.HwResources.getText(HwResources.java:1287)
    at android.content.res.Resources.getString(Resources.java:431)
    at com.android.org.chromium.content.browser.ContentViewCore.setContainerView(ContentViewCore.java:709)
    at com.android.org.chromium.content.browser.ContentViewCore.initialize(ContentViewCore.java:633)
    at com.android.org.chromium.android_webview.AwContents.createAndInitializeContentViewCore(AwContents.java:685)
    at com.android.org.chromium.android_webview.AwContents.setNewAwContents(AwContents.java:834)
    at com.android.org.chromium.android_webview.AwContents.<init>(AwContents.java:670)
    at com.android.org.chromium.android_webview.AwContents.<init>(AwContents.java:605)
    at com.android.webview.chromium.WebViewChromium.initForReal(WebViewChromium.java:319)
    at com.android.webview.chromium.WebViewChromium.access$100(WebViewChromium.java:104)
    at com.android.webview.chromium.WebViewChromium$1.run(WebViewChromium.java:271)
    at com.android.webview.chromium.WebViewChromium$WebViewChromiumRunQueue.drainQueue(WebViewChromium.java:131)
    at com.android.webview.chromium.WebViewChromium$WebViewChromiumRunQueue$1.run(WebViewChromium.java:118)
    at com.android.org.chromium.base.ThreadUtils.runOnUiThread(ThreadUtils.java:144)
    at com.android.webview.chromium.WebViewChromium$WebViewChromiumRunQueue.addTask(WebViewChromium.java:115)
    at com.android.webview.chromium.WebViewChromium.init(WebViewChromium.java:268)
    at android.webkit.WebView.<init>(WebView.java:597)
    at android.webkit.WebView.<init>(WebView.java:531)
    at android.webkit.WebView.<init>(WebView.java:514)
    at android.webkit.WebView.<init>(WebView.java:501)
    at android.webkit.WebView.<init>(WebView.java:491)
hameno commented 4 years ago

Unless this happens on a real device and can be reproduced I'm not gonna investigate further. Please comment if this is somehow reproducible on a real device.

luke40 commented 4 years ago

Screen Size: 720 × 1280 Screen Density (dpi): 320 Model Name: P8 Lite RAM: 2048 MB Manufacturer: Huawei OpenGL ES Version: 2.0 Android Version: Android 5.0 Native Platform: armeabi-v7a Locale: en_US CPU Make: HiSilicon CPU Model: Hi6220

Stacktrace: FATAL EXCEPTION: ControllerMessenger Process PID: 18867 android.content.res.Resources$NotFoundException: String resource ID #0x3040002 at android.content.res.HwResources.getText(HwResources.java:1252) at android.content.res.Resources.getString(Resources.java:374) at com.android.org.chromium.content.browser.ContentViewCore.setContainerView(ContentViewCore.java:948) at com.android.org.chromium.content.browser.ContentViewCore.initialize(ContentViewCore.java:848) at com.android.org.chromium.android_webview.AwContents.createAndInitializeContentViewCore(AwContents.java:649) at com.android.org.chromium.android_webview.AwContents.setNewAwContents(AwContents.java:788) at com.android.org.chromium.android_webview.AwContents.<init>(AwContents.java:635) at com.android.org.chromium.android_webview.AwContents.<init>(AwContents.java:573) at com.android.webview.chromium.WebViewChromium.initForReal(WebViewChromium.java:315) at com.android.webview.chromium.WebViewChromium.access$100(WebViewChromium.java:100) at com.android.webview.chromium.WebViewChromium$1.run(WebViewChromium.java:267) at com.android.webview.chromium.WebViewChromium$WebViewChromiumRunQueue.drainQueue(WebViewChromium.java:127) at com.android.webview.chromium.WebViewChromium$WebViewChromiumRunQueue$1.run(WebViewChromium.java:114) at com.android.org.chromium.base.ThreadUtils.runOnUiThread(ThreadUtils.java:144) at com.android.webview.chromium.WebViewChromium$WebViewChromiumRunQueue.addTask(WebViewChromium.java:111) at com.android.webview.chromium.WebViewChromium.init(WebViewChromium.java:264) at android.webkit.WebView.<init>(WebView.java:548) at android.webkit.WebView.<init>(WebView.java:483) at android.webkit.WebView.<init>(WebView.java:466) at android.webkit.WebView.<init>(WebView.java:453) at android.webkit.WebView.<init>(WebView.java:443) at de.psdev.licensesdialog.LicensesDialog.createWebView(LicensesDialog.java:178) at de.psdev.licensesdialog.LicensesDialog.create(LicensesDialog.java:79) at de.psdev.licensesdialog.LicensesDialog.show(LicensesDialog.java:162)

hameno commented 4 years ago

This seems to be a bug with appcompat 1.1.0: https://issuetracker.google.com/issues/141132133 It is not caused by this library, and as such I'm going to lock this thread now.