B3nedikt/AppLocale

Webview is crashing, but not able to reproduce exact case.

asimkumars opened this issue · 1 comments

Hi,
Webview is crashing, but not able to reproduce exact case. we have used the below version of the restring library
restrings = '5.1.4'
viewpump = '4.0.7'
reword = '4.0.1'
applocale = '2.0.3'

we are using 1.3.1 of appcompact.

below is the crash from stack trace which is not reproducable everytime, i was just trying to navigate to different window or something inside webview then i got this crash.

E/ViewSystem: ViewRootImpl #2 Surface is not valid.
E/ViewRootImpl: sendUserActionEvent() mView == null
E/ViewSystem: ViewRootImpl #2 Surface is not valid.
E/ViewSystem: ViewRootImpl #2 Surface is not valid.
E/MotionRecognitionManager: mSContextService = null
E/MotionRecognitionManager: motionService = null
E/WebEngage: App has crashed
android.content.res.Resources$NotFoundException: String resource ID #0x313004a
E/SensorManager: nativeGetSensorAtIndex: name, vendor - 0, K2HH Acceleration , STM
E/SensorManager: nativeGetSensorAtIndex: name, vendor - 1, GP2A002 Proximity Sensor, SHARP
E/SensorManager: nativeGetSensorAtIndex: name, vendor - 2, Screen Orientation Sensor, Samsung Electronics
E/File: fail readDirectory() errno=2
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.next.nlp, PID: 16554
android.content.res.Resources$NotFoundException: String resource ID #0x313004a
at android.content.res.Resources.getText(Resources.java:1484)
at android.content.res.Resources.getString(Resources.java:1580)
at dev.b3nedikt.restring.internal.ResourcesDelegate.getString(ResourcesDelegate.kt:50)
at dev.b3nedikt.restring.internal.RestringResources.getString(RestringResources.kt:41)
at android.content.Context.getString(Context.java:415)
at org.chromium.content.browser.selection.SelectionPopupControllerImpl.j(chromium-SystemWebViewGoogle.aab-stable-460607100:49)
at b9.onActionItemClicked(chromium-SystemWebViewGoogle.aab-stable-460607100:19)
at my.onActionItemClicked(chromium-SystemWebViewGoogle.aab-stable-460607100:1)
at com.android.internal.policy.PhoneWindow$DecorView$ActionModeCallback2Wrapper.onActionItemClicked(PhoneWindow.java:4234)
at com.android.internal.view.FloatingActionMode$4.onMenuItemSelected(FloatingActionMode.java:108)
at com.android.internal.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:801)
at com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:158)
at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:954)
at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:944)
at com.android.internal.view.FloatingActionMode$5.onMenuItemClick(FloatingActionMode.java:138)
at com.android.internal.widget.FloatingToolbar$FloatingToolbarMainPanel$1.onClick(FloatingToolbar.java:1298)
at android.view.View.performClick(View.java:5716)
at android.widget.TextView.performClick(TextView.java:10926)
at android.view.View$PerformClick.run(View.java:22596)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:7325)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
E/File: fail readDirectory() errno=2
E/File: fail readDirectory() errno=2
E/WebEngage: App was crashed last time,

Since this was related to restring so updated the issue there -> B3nedikt/restring#96 and closing here.