Status Update
Comments
vk...@google.com <vk...@google.com> #2
This is a particularly hard device to come by - do you happen to have access to the device? If so could you provide us with the output of: adb shell dumpsys media.camera > info.txt
Thanks!
vk...@google.com <vk...@google.com> #3
Stacktrace:
Caused by: java.lang.IllegalArgumentException: Can not get supported output size under supported maximum for the format: 34
at androidx.camera.camera2.internal.SupportedSurfaceCombination.getSupportedOutputSizes(SupportedSurfaceCombination.java:355)
at androidx.camera.camera2.internal.SupportedSurfaceCombination.getSuggestedResolutions(SupportedSurfaceCombination.java:197)
at androidx.camera.camera2.internal.Camera2DeviceSurfaceManager.getSuggestedResolutions(Camera2DeviceSurfaceManager.java:198)
at androidx.camera.core.CameraX.calculateSuggestedResolutions(CameraX.java:943)
at androidx.camera.core.CameraX.bindToLifecycle(CameraX.java:293)
at androidx.camera.lifecycle.ProcessCameraProvider.bindToLifecycle(ProcessCameraProvider.java:227)
Below are some findings based on our debugging
When Dex is connected
previewConfig.getMaxResolution() is returning "731x411" as maxSize.
Inside Preview.Builder.build() -> Default_MAX_resolution is set to "CameraX.getSurfaceManager().getPreviewSize()" which is 731x411
this is being picked as maxSize.
While rendering maxSize is 731x411 and minSize is 640x480 and below are available outputSizes
0 = {Size@11860} "4032x3024"
1 = {Size@11861} "3984x2988"
2 = {Size@11862} "4032x2268"
3 = {Size@11863} "3024x3024"
4 = {Size@11864} "2976x2976"
5 = {Size@11865} "3840x2160"
6 = {Size@11866} "3264x2448"
7 = {Size@11867} "4032x1960"
8 = {Size@11868} "2880x2160"
9 = {Size@11869} "3264x1836"
10 = {Size@11870} "2160x2160"
11 = {Size@11871} "2560x1440"
12 = {Size@11872} "2224x1080"
13 = {Size@11873} "2048x1152"
14 = {Size@11874} "1920x1080"
15 = {Size@11875} "1440x1080"
16 = {Size@11876} "1088x1088"
17 = {Size@11877} "1280x720"
18 = {Size@11878} "1024x768"
19 = {Size@11879} "1056x704"
20 = {Size@11880} "960x720"
21 = {Size@11881} "960x540"
22 = {Size@11882} "720x720"
23 = {Size@11883} "800x450"
24 = {Size@11884} "720x480"
25 = {Size@11885} "640x480"
26 = {Size@11886} "352x288"
27 = {Size@11887} "320x240"
28 = {Size@11888} "256x144"
29 = {Size@11889} "176x144"
and couldn't find any size in this range.
When Dex not connected
minsize = 640x480
maxsize = 1920x1080
0 = {Size@11836} "4032x3024"
1 = {Size@11837} "3984x2988"
2 = {Size@11838} "4032x2268"
3 = {Size@11839} "3024x3024"
4 = {Size@11840} "2976x2976"
5 = {Size@11841} "3840x2160"
6 = {Size@11842} "3264x2448"
7 = {Size@11843} "4032x1960"
8 = {Size@11844} "2880x2160"
9 = {Size@11845} "3264x1836"
10 = {Size@11846} "2160x2160"
11 = {Size@11847} "2560x1440"
12 = {Size@11848} "2224x1080"
13 = {Size@11849} "2048x1152"
14 = {Size@11850} "1920x1080"
15 = {Size@11851} "1440x1080"
16 = {Size@11852} "1088x1088"
17 = {Size@11853} "1280x720"
18 = {Size@11854} "1024x768"
19 = {Size@11855} "1056x704"
20 = {Size@11856} "960x720"
21 = {Size@11857} "960x540"
22 = {Size@11858} "720x720"
23 = {Size@11859} "800x450"
24 = {Size@11860} "720x480"
25 = {Size@11861} "640x480"
26 = {Size@11862} "352x288"
27 = {Size@11863} "320x240"
28 = {Size@11864} "256x144"
29 = {Size@11865} "176x144"
and we have 12 available sizes in this range
Camera2DeviceSurfaceManager.java:: getPreviewSize()
mCameraSupportedSurfaceCombinationMap.get(cameraId).getSurfaceDefinition().getPreviewSize() = "1920x1080"
cameraId=0
ca...@gmail.com <ca...@gmail.com> #4
The issue root cause is that CameraX will default filter out sizes smaller than 640x480. For Preview, the max size will be limited to under display size. I checked the HW spec info for the issue related devices. Display size of FUJITSU F-04J/F-05J is 360x640. That will result int that no size exists in the conditions that is larger or equal to 640x480 and smaller or equal to 360x640.
A temporary workaround for this situation is to use Preview.Builder#setTargetResolution() to set a size smaller than 640x480 to bypass the problem.
For device FUJITSU arrowsM04, I checked its HW spec info and its display size I found is 1280x720. It seems that the problem should not exist in the device.
Could you confirm that the problem exist on arrowsM04 device? What will be the returned value when using Display#getRealSize to obtain the display size?
vk...@google.com <vk...@google.com> #5
> A temporary workaround for this situation is to use Preview.Builder#setTargetResolution() to set a size smaller than 640x480 to bypass the problem.
OK. I will try it.
> Could you confirm that the problem exist on arrowsM04 device?
We receive the crash report (Crashlytics) that this crash has occurred on arrowsM04.
We don't have this device so we can't confirm that the problem really exist on arrowsM04.
> What will be the returned value when using Display#getRealSize to obtain the display size?
We can't investigate it for the same reason.
Thank you.
to...@google.com <to...@google.com> #6
This issue happened on devices that the display size is smaller than 640x480. In original auto-resolution mechanism, supported sizes smaller than 640x480 will be default filter out.
The auto-resolution mechanism encodes the guaranteed configurations tables in CameraDevice#createCaptureSession(SessionConfiguration). It defines that the PREVIEW size is the small one of the device display size and 1080p. The PREVIEW size will be the maximal size limitation for Preview use case. The reason it limits the size to display size and 1080p is the stream output in display size or 1080p has been able to provide good enough preview quality. Therefore, auto-resolution mechanism will limit the selected size to be smaller than the small one of the device display size and 1080p.
With above two conditions, in this issue, all sizes smaller than 640x480 have been filter out, therefore, there is no size smaller than the display size 320x240 can be selected to use. And cause the exception.
Solution:
When the display size is smaller than 640x480, auto-resolution mechanism won't filter out those small sizes smaller than 640x480. This makes those small size be left and can be selected for the Preview use case on small display devices.
The solution has been merged and will be included in next CameraX release.
nt...@google.com <nt...@google.com> #7
Hello.
This crash still occurs.
- CAMERAX VERSION: 1.0.0-beta4
- ANDROID OS BUILD NUMBER: Android 7.1.1
- DEVICE NAME: FUJITSU F-02H
We receive following crash report from FUJITSU F-02H. So far We have received this crash report only from F-02H.
java.lang.IllegalArgumentException
Can not get supported output size under supported maximum for the format: 34
androidx.camera.camera2.internal.SupportedSurfaceCombination.getSupportedOutputSizes (SupportedSurfaceCombination.java:349)
androidx.camera.camera2.internal.SupportedSurfaceCombination.getSuggestedResolutions (SupportedSurfaceCombination.java:197)
androidx.camera.camera2.internal.Camera2DeviceSurfaceManager.getSuggestedResolutions (Camera2DeviceSurfaceManager.java:198)
androidx.camera.core.CameraX.calculateSuggestedResolutions (CameraX.java:949)
androidx.camera.core.CameraX.bindToLifecycle (CameraX.java:351)
androidx.camera.lifecycle.ProcessCameraProvider.bindToLifecycle (ProcessCameraProvider.java:230)
(our application's package name).CameraFragment.bindCameraUseCases (CameraFragment.java:174)
jb...@deezer.com <jb...@deezer.com> #8
Could you help to provide the following information to clarify the issue?
1. Is the full name of the device Fujitsu Arrows NX F-02H that has a 1440x2560 display?
2. Please help to provide the supported output sizes of ImageFormat.PRIVATE that is obtained by StreamConfigurationMap#getOutputSizes(int).
ch...@google.com <ch...@google.com> #9
- Is the full name of the device Fujitsu Arrows NX F-02H that has a 1440x2560 display?
Yes
- Please help to provide the supported output sizes of ImageFormat.PRIVATE that is obtained by StreamConfigurationMap#getOutputSizes(int).
Since we don't have this device, we'll try to collect this information in the next version of our app. The next version will be released later this month.
mi...@mikehardy.net <mi...@mikehardy.net> #10
Hello.
- Please help to provide the supported output sizes of ImageFormat.PRIVATE that is obtained by StreamConfigurationMap#getOutputSizes(int).
We have collected the output of the device where the crash occurs.
Device1
- Model : arrows Be F-05J
- Android Version : 7.1.1
- Supported output sizes of ImageFormat.PRIVATE
CameraId 0: 480x480
CameraId 1: 2048x1536 ,1920x1080 ,1280x720 ,960x720 ,640x480 ,320x240 ,176x144
Device2
- Model : Fujitsu arrows M04
- Android Version : 7.1.1
- Supported output sizes of ImageFormat.PRIVATE
CameraId 0: 480x480
CameraId 1: 2048x1536 ,1920x1080 ,1280x720 ,960x720 ,640x480 ,320x240 ,176x144
Additional Information
CameraX version : 1.0.0-beta04
We collect the supported output sizes by following code.
val errorString = buildString {
append("The supported output sizes of ImageFormat.PRIVATE: ")
(requireContext().getSystemService(Context.CAMERA_SERVICE) as CameraManager).apply {
cameraIdList.forEachIndexed { index, cameraId ->
val msg = if (VERSION.SDK_INT >= VERSION_CODES.M) {
val configurationMap =
getCameraCharacteristics(cameraId).get(CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP)
val sizes = configurationMap?.getOutputSizes(ImageFormat.PRIVATE)
"CameraId $index: ${sizes?.joinToString(" ,")}"
} else {
"CameraId $index: This device version is under M."
}
append(msg)
}
}
}
wi...@gmail.com <wi...@gmail.com> #11
vl...@gmail.com <vl...@gmail.com> #12
I tried to find the device specs and both 720x1280
size display. For the camera id 0 device, it is a different case that the display size is larger than 640x480
but the device only supports a 480x480
size. The case also caused the same IllegalArgumentException and was also fixed by 1.0.0-beta04
release. Before 480x480
size would be filtered out and then caused the IllegalArgumentException. After it was merged, the 640x480
size threshold was removed and then the 480x480
size would be kept and selected to use.
It looks like 1.0.0-beta04
release had been used to collect the supported sizes information. But the issue should have been fixed by 1.0.0-beta04
release. Did you only check the device model name to collect the supported sizes information or collect the information when the IllegalArgumentException issue happens again?
CameraX's 1.0.0-beta04
version. Maybe you can also consider to upgrade to the latest 1.0.0-rc01
version for your application. Thanks.
ho...@gmail.com <ho...@gmail.com> #13
Did you only check the device model name to collect the supported sizes information or collect the information when the IllegalArgumentException issue happens again?
We collect informations only from the device on which IllegalArgumentException happened.
Our latest app uses CameraX version 1.0.0-beta10
and this issue still occurres.
However we don't receive crash report from Fujitsu arrows Be F-05J
or Fujitsu arrows M04
so far. (This doesn't mean this issue is fixed on these devices because our app is heavily rely on camera so these device's user wouldn't use our app anymore.)
Instead, we receive crash report from
- Model : Fujitsu F-03K
- Android Version : 7.1.2
- Supported output sizes of ImageFormat.PRIVATE
CameraId 0 : 480x480
CameraId 1 : 2048x1536 ,1920x1080 ,1280x720 ,960x720 ,640x480 ,320x240 ,176x144
[Deleted User] <[Deleted User]> #14
I missed some settings when I simulated the issue by robolectric test so that I was not able to reproduce it. Now, I can reproduce the issue if the device only supports one 480x480 resolution. I'm working on the solution and target to make it included in next release.
fr...@gmail.com <fr...@gmail.com> #15
Branch: androidx-main
commit 69d15dff7bb857ee33a0f643ff42a0f8bc475ab2
Author: charcoalchen <charcoalchen@google.com>
Date: Fri Jan 08 18:30:03 2021
Fixed IllegalArgumentException issue happened when all preview supported sizes are smaller than 640x480 and display size is larger than 640x480.
Do not filter out sizes smaller than 640x480 when all preview supported sizes are smaller than 640x480 and display size is larger than 640x480.
Relnote:"Fixed IllegalArgumentException issue happened when all preview supported sizes are smaller than 640x480 and display size is larger than 640x480."
Bug: 150506192
Test: SupportedSurfaceCombinationTest
Change-Id: I2a63ce8e2ad42a9cc060c8635ac3603bf440b1ec
M camera/camera-camera2/src/main/java/androidx/camera/camera2/internal/SupportedSurfaceCombination.java
M camera/camera-camera2/src/test/java/androidx/camera/camera2/internal/SupportedSurfaceCombinationTest.java
[Deleted User] <[Deleted User]> #16
an...@gmail.com <an...@gmail.com> #17
hb...@gmail.com <hb...@gmail.com> #19
ye...@gmail.com <ye...@gmail.com> #21
ye...@gmail.com <ye...@gmail.com> #22
This is a project created by New Android Project -> Blank Activity -> Add WebView to layout/main_activity.xml, run on API21 emulator and it crashes with the following trace
11-27 14:12:26.160 3218-3218/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.crashingwebview, PID: 3218
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.crashingwebview/com.example.crashingwebview.MainActivity}: android.view.InflateException: Binary XML file line #17: Error inflating class android.webkit.WebView
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2298)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2360)
at android.app.ActivityThread.access$800(ActivityThread.java:144)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278)
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)
Caused by: android.view.InflateException: Binary XML file line #17: Error inflating class android.webkit.WebView
at android.view.LayoutInflater.createView(LayoutInflater.java:633)
at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:55)
at android.view.LayoutInflater.onCreateView(LayoutInflater.java:682)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:741)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:806)
at android.view.LayoutInflater.inflate(LayoutInflater.java:504)
at android.view.LayoutInflater.inflate(LayoutInflater.java:414)
at android.view.LayoutInflater.inflate(LayoutInflater.java:365)
at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:555)
at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:161)
at com.example.crashingwebview.MainActivity.onCreate(MainActivity.kt:10)
at android.app.Activity.performCreate(Activity.java:5937)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2251)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2360)
at android.app.ActivityThread.access$800(ActivityThread.java:144)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278)
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)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.newInstance(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:288)
at android.view.LayoutInflater.createView(LayoutInflater.java:607)
at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:55)
at android.view.LayoutInflater.onCreateView(LayoutInflater.java:682)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:741)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:806)
at android.view.LayoutInflater.inflate(LayoutInflater.java:504)
at android.view.LayoutInflater.inflate(LayoutInflater.java:414)
at android.view.LayoutInflater.inflate(LayoutInflater.java:365)
at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:555)
at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:161)
at com.example.crashingwebview.MainActivity.onCreate(MainActivity.kt:10)
at android.app.Activity.performCreate(Activity.java:5937)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2251)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2360)
at android.app.ActivityThread.access$800(ActivityThread.java:144)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278)
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)
Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x2040002
at android.content.res.Resources.getText(Resources.java:274)
at android.content.res.Resources.getString(Resources.java:360)
at com.android.org.chromium.content.browser.ContentViewCore.setContainerView(ContentViewCore.java:702)
at com.android.org.chromium.content.browser.ContentViewCore.initialize(ContentViewCore.java:608)
at com.android.org.chromium.android_webview.AwContents.createAndInitializeContentViewCore(AwContents.java:619)
at com.android.org.chromium.android_webview.AwContents.setNewAwContents(AwContents.java:758)
at com.android.org.chromium.android_webview.AwContents.<init>(AwContents.java:608)
at com.android.org.chromium.android_webview.AwContents.<init>(AwContents.java:546)
at com.android.webview.chromium.WebViewChromium.initForReal(WebViewChromium.java:312)
at com.android.webview.chromium.WebViewChromium.access$100(WebViewChromium.java:97)
at com.android.webview.chromium.WebViewChromium$1.run(WebViewChromium.java:264)
at com.android.webview.chromium.WebViewChromium$WebViewChromiumRunQueue.drainQueue(WebViewChromium.java:124)
at com.android.webview.chromium.WebViewChromium$WebViewChromiumRunQueue$1.run(WebViewChromium.java:111)
at com.android.org.chromium.base.ThreadUtils.runOnUiThread(ThreadUtils.java:144)
at com.android.webview.chromium.WebViewChromium$WebViewChromiumRunQueue.addTask(WebViewChromium.java:108)
at com.android.webview.chromium.WebViewChromium.init(WebViewChromium.java:261)
at android.webkit.WebView.<init>(WebView.java:548)
at android.web
changing appcompat library version to 1.1.0-rc01, the app launches with an empty webview without crashing.
ch...@google.com <ch...@google.com> #23
Anyway, I've found a workaround which I *think* works, at least the tests are now all passing on API 21/22. Apologies for the delay in reaching this. It unfortunately wasn't an easy bug to find a workaround for.
Pending CL:
hq...@gmail.com <hq...@gmail.com> #24
Besides, `Context.getAssets()` and `Context.getResources().getAssets()` are returning the same object on latest versions of Android in the same condition. I found that `ContextImpl.getAssets()` is returning `getResources().getAssets()` in the latest source code.
ch...@google.com <ch...@google.com> #25
ap...@google.com <ap...@google.com> #26
Branch: androidx-master-dev
commit 0850be80d556fc23a6f39a094c923665c24e3de2
Author: Chris Banes <chrisbanes@google.com>
Date: Thu Nov 28 16:39:07 2019
DayNight rewrite v2.5
We've now moved to using createConfigurationContext(),
instead of applyOverrideConfiguration(). Certain older versions
of WebView have an issue when an app uses
applyOverrideConfiguration(), but they seem to work fine
using createConfigurationContext() /shruggie.
To use createConfigurationContext(), I've had to refactor a
lot of updateNightMode() code to also have another entry
point which returns a Context for attachBaseContext().
Test: ./gradlew appcompat:connectedCheck
BUG: 141351441
Change-Id: I7a5b59071f82b79820c6df695bfa622d727f2030
M appcompat/appcompat/api/1.2.0-alpha01.txt
M appcompat/appcompat/api/current.txt
M appcompat/appcompat/api/public_plus_experimental_1.2.0-alpha01.txt
M appcompat/appcompat/api/public_plus_experimental_current.txt
M appcompat/appcompat/src/main/java/androidx/appcompat/app/AppCompatActivity.java
M appcompat/appcompat/src/main/java/androidx/appcompat/app/AppCompatDelegate.java
M appcompat/appcompat/src/main/java/androidx/appcompat/app/AppCompatDelegateImpl.java
M samples/Support7Demos/src/main/res/layout/appcompat_night_mode.xml
M samples/Support7Demos/src/main/res/values/strings.xml
ch...@google.com <ch...@google.com> #27
This should be out in AppCompat v1.2.0-alpha02
.
If you'd like to try this now, you can try the 1.2.0-SNAPSHOT
version, available at the following repository:
repositories {
maven {
url 'https://ci.android.com/builds/submitted/6043188/androidx_snapshot/latest/repository/'
}
}
[Deleted User] <[Deleted User]> #28
ye...@gmail.com <ye...@gmail.com> #29
ch...@google.com <ch...@google.com> #30
#29: Probably not. The fix is quite invasive and moves AppCompat to using yet-another-way to implement custom configuration handling. The change itself may uncover more issues so we need some soak time in alpha.
[Deleted User] <[Deleted User]> #31
ch...@google.com <ch...@google.com> #32
Hmmm, confirmed. Looks like my change didn't actually make it into the snapshot I listed above. /facepalm I just tried the latest snapshot repository available, and that is working:
androidx.appcompat:appcompat:1.2.0-SNAPSHOT
repositories {
maven {
url 'https://ci.android.com/builds/submitted/6052626/androidx_snapshot/latest/repository/'
}
}
[Deleted User] <[Deleted User]> #33
mi...@mikehardy.net <mi...@mikehardy.net> #34
I know there are lots of people getting mail on each comment, apologies, but I wanted to confirm that the fix will still be landing in 1.2.0-alpha02? I'll be ready to test it but don't waste the time if the last couple comments mean it will be in the release after alpha02 now
Thanks!
ch...@google.com <ch...@google.com> #35
Yep, should be in 1.2.0-alpha02
.
The last few comments are just about the snapshots release.
[Deleted User] <[Deleted User]> #36
ch...@gmail.com <ch...@gmail.com> #37
`1.2.0-alpha02` still not release in google maven. When you'll release this modification for everyone?
au...@gmail.com <au...@gmail.com> #38
The desire to let this change "soak" because it is a major implementation change suggests that I am probably better with "the devil I know," and should stay with the alpha01 release, particularly since it is only an issue on Android 5 and only triggered by a particular activity that is not routinely performed by most users.
Thoughts?
lu...@gmail.com <lu...@gmail.com> #39
ja...@gmail.com <ja...@gmail.com> #40
lo...@googlemail.com <lo...@googlemail.com> #41
er...@gmail.com <er...@gmail.com> #42
fr...@gmail.com <fr...@gmail.com> #43
Thanks for any info.
ch...@google.com <ch...@google.com> #44
Apologies for the delay in releasing, it slipped through the cracks. AppCompat 1.2.0-alpha02 is currently scheduled for release later this week, but may slip to next week.
ch...@google.com <ch...@google.com> #45
10...@btc.com.bh <10...@btc.com.bh> #46
[Deleted User] <[Deleted User]> #47
This is the crash when i press (NOT LONG PRESS) and select a popup:
W/System.err: android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application
W/System.err: at android.view.ViewRootImpl.setView(ViewRootImpl.java:566)
at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:282)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:85)
at android.app.Dialog.show(Dialog.java:298)
at com.android.org.chromium.content.browser.input.SelectPopupDialog.show(SelectPopupDialog.java:133)
at com.android.org.chromium.content.browser.ContentViewCore.showSelectPopup(ContentViewCore.java:2229)
W/System.err: at com.android.org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method)
at com.android.org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:53)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5254)
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:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
me...@bolt.eu <me...@bolt.eu> #49
Hey guys
If you have this argument
Wrapping Resources is not supported by the framework and you must not create your own instances of Resources at all (the APIs to do so are now marked deprecated after they were accidentally exposed).
Then you must supply a way to implement custom translations, there are many companies out there using translations on the runtime via 3rd party integration. How can we dynamically intercept the "getString" calls?
[Deleted User] <[Deleted User]> #51
Then you must supply a way to implement custom translations, there are many companies out there using translations on the runtime via 3rd party integration. How can we dynamically intercept the "getString" calls?
From the changelog:
[Deleted User] <[Deleted User]> #52
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3534)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3689)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:140)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:100)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2239)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:227)
at android.app.ActivityThread.main(ActivityThread.java:7822)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1026)
[Deleted User] <[Deleted User]> #53
Happened in a webview when long press
Model Name: P8 Lite
Manufacturer: Huawei
Android Version: Android 5.0
Native platform: armeabi-v7a
FATAL EXCEPTION: Thread-1182
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)
ji...@gmail.com <ji...@gmail.com> #54
Any guidance?
he...@gmail.com <he...@gmail.com> #55
he...@gmail.com <he...@gmail.com> #56
at android.content.res.Resources.getText(Resources.java:318)
at android.content.res.VivoResources.getText(VivoResources.java:123)
at android.content.res.Resources.getString(Resources.java:404)
at com.android.org.chromium.content.browser.ContentViewCore.setContainerView(ContentViewCore.java:694)
at com.android.org.chromium.content.browser.ContentViewCore.initialize(ContentViewCore.java:618)
at com.android.org.chromium.android_webview.AwContents.createAndInitializeContentViewCore(AwContents.java:631)
at com.android.org.chromium.android_webview.AwContents.setNewAwContents(AwContents.java:780)
at com.android.org.chromium.android_webview.AwContents.<init>(AwContents.java:619)
at com.android.org.chromium.android_webview.AwContents.<init>(AwContents.java:556)
at com.android.webview.chromium.WebViewChromium.initForReal(WebViewChromium.java:312)
at com.android.webview.chromium.WebViewChromium.access$100(WebViewChromium.java:96)
at com.android.webview.chromium.WebViewChromium$1.run(WebViewChromium.java:264)
at com.android.webview.chromium.WebViewChromium$WebViewChromiumRunQueue.drainQueue(WebViewChromium.java:123)
at com.android.webview.chromium.WebViewChromium$WebViewChromiumRunQueue$1.run(WebViewChromium.java:110)
at com.android.org.chromium.base.ThreadUtils.runOnUiThread(ThreadUtils.java:144)
at com.android.webview.chromium.WebViewChromium$WebViewChromiumRunQueue.addTask(WebViewChromium.java:107)
at com.android.webview.chromium.WebViewChromium.init(WebViewChromium.java:261)
at android.webkit.WebView.<init>(WebView.java:554)
at android.webkit.WebView.<init>(WebView.java:489)
at android.webkit.WebView.<init>(WebView.java:472)
at android.webkit.WebView.<init>(WebView.java:459)
a7...@gmail.com <a7...@gmail.com> #57
appcompat 1.2.0
12-16 14:39:57.971 14769-14769 W/ResourceType: No known package when getting value for resource number 0x02090000
12-16 14:39:57.971 14769-14769 W/System.err: android.content.res.Resources$NotFoundException: Resource ID #0x2090000
12-16 14:39:57.973 14769-14769 W/System.err: at android.content.res.Resources.getValue(Resources.java:1566)
12-16 14:39:57.973 14769-14769 W/System.err: at android.content.res.Resources.loadXmlResourceParser(Resources.java:3147)
12-16 14:39:57.973 14769-14769 W/System.err: at android.content.res.Resources.getLayout(Resources.java:1322)
12-16 14:39:57.973 14769-14769 W/System.err: at android.view.MenuInflater.inflate(MenuInflater.java:107)
12-16 14:39:57.973 14769-14769 W/System.err: at androidx.appcompat.view.SupportMenuInflater.inflate(SupportMenuInflater.java:120)
12-16 14:39:57.973 14769-14769 W/System.err: at org.chromium.content.browser.SelectActionModeCallback.createActionMenu(SelectActionModeCallback.java:123)
12-16 14:39:57.973 14769-14769 W/System.err: at org.chromium.content.browser.SelectActionModeCallback.onCreateActionMode(SelectActionModeCallback.java:104)
12-16 14:39:57.973 14769-14769 W/System.err: at com.android.internal.policy.impl.PhoneWindow$DecorView$ActionModeCallbackWrapper.onCreateActionMode(PhoneWindow.java:3511)
12-16 14:39:57.973 14769-14769 W/System.err: at androidx.appcompat.view.SupportActionModeWrapper$CallbackWrapper.onCreateActionMode(SupportActionModeWrapper.java:159)
12-16 14:39:57.973 14769-14769 W/System.err: at androidx.appcompat.app.AppCompatDelegateImpl$ActionModeCallbackWrapperV9.onCreateActionMode(AppCompatDelegateImpl.java:2678)
12-16 14:39:57.973 14769-14769 W/System.err: at androidx.appcompat.app.AppCompatDelegateImpl.startSupportActionModeFromWindow(AppCompatDelegateImpl.java:1324)
12-16 14:39:57.973 14769-14769 W/System.err: at androidx.appcompat.app.AppCompatDelegateImpl.startSupportActionMode(AppCompatDelegateImpl.java:1209)
12-16 14:39:57.973 14769-14769 W/System.err: at androidx.appcompat.app.AppCompatDelegateImpl$AppCompatWindowCallback.startAsSupportActionMode(AppCompatDelegateImpl.java:3146)
12-16 14:39:57.973 14769-14769 W/System.err: at androidx.appcompat.app.AppCompatDelegateImpl$AppCompatWindowCallback.onWindowStartingActionMode(AppCompatDelegateImpl.java:3128)
12-16 14:39:57.973 14769-14769 W/System.err: at com.android.internal.policy.impl.PhoneWindow$DecorView.startActionMode(PhoneWindow.java:2896)
12-16 14:39:57.973 14769-14769 W/System.err: at com.android.internal.policy.impl.PhoneWindow$DecorView.startActionModeForChild(PhoneWindow.java:2879)
12-16 14:39:57.973 14769-14769 W/System.err: at android.view.ViewGroup.startActionModeForChild(ViewGroup.java:732)
12-16 14:39:57.973 14769-14769 W/System.err: at android.view.ViewGroup.startActionModeForChild(ViewGroup.java:732)
12-16 14:39:57.973 14769-14769 W/System.err: at android.view.ViewGroup.startActionModeForChild(ViewGroup.java:732)
12-16 14:39:57.973 14769-14769 W/System.err: at android.view.ViewGroup.startActionModeForChild(ViewGroup.java:732)
12-16 14:39:57.973 14769-14769 W/System.err: at android.view.ViewGroup.startActionModeForChild(ViewGroup.java:732)
12-16 14:39:57.973 14769-14769 W/System.err: at android.view.ViewGroup.startActionModeForChild(ViewGroup.java:732)
12-16 14:39:57.973 14769-14769 W/System.err: at android.view.ViewGroup.startActionModeForChild(ViewGroup.java:732)
12-16 14:39:57.973 14769-14769 W/System.err: at android.view.ViewGroup.startActionModeForChild(ViewGroup.java:732)
12-16 14:39:57.973 14769-14769 W/System.err: at android.view.ViewGroup.startActionModeForChild(ViewGroup.java:732)
12-16 14:39:57.973 14769-14769 W/System.err: at android.view.ViewGroup.startActionModeForChild(ViewGroup.java:732)
12-16 14:39:57.973 14769-14769 W/System.err: at android.view.View.startActionMode(View.java:4975)
12-16 14:39:57.973 14769-14769 W/System.err: at org.chromium.content.browser.ContentViewCore.showSelectActionBar(ContentViewCore.java:2149)
12-16 14:39:57.973 14769-14769 W/System.err: at org.chromium.content.browser.ContentViewCore.onSelectionEvent(ContentViewCore.java:2206)
12-16 14:39:57.973 14769-14769 W/System.err: at org.chromium.android_webview.AwContents.nativeOnDraw(Native Method)
12-16 14:39:57.973 14769-14769 W/System.err: at org.chromium.android_webview.AwContents.access$4300(AwContents.java:90)
12-16 14:39:57.974 14769-14769 W/System.err: at org.chromium.android_webview.AwContents$AwViewMethodsImpl.onDraw(AwContents.java:2663)
12-16 14:39:57.974 14769-14769 W/System.err: at org.chromium.android_webview.AwContents.onDraw(AwContents.java:1132)
12-16 14:39:57.974 14769-14769 W/System.err: at com.android.webview.chromium.WebViewChromium.onDraw(WebViewChromium.java:1601)
12-16 14:39:57.974 14769-14769 W/System.err: at android.webkit.WebView.onDraw(WebView.java:2531)
12-16 14:39:57.974 14769-14769 W/System.err: at android.view.View.draw(View.java:15526)
12-16 14:39:57.974 14769-14769 W/System.err: at android.view.View.updateDisplayListIfDirty(View.java:14415)
12-16 14:39:57.974 14769-14769 W/System.err: at android.view.View.getDisplayList(View.java:14444)
12-16 14:39:57.974 14769-14769 W/System.err: at android.view.View.draw(View.java:15235)
12-16 14:39:57.974 14769-14769 W/System.err: at android.view.ViewGroup.drawChild(ViewGroup.java:3548)
12-16 14:39:57.974 14769-14769 W/System.err: at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3341)
12-16 14:39:57.974 14769-14769 W/System.err: at android.view.View.updateDisplayListIfDirty(View.java:14407)
12-16 14:39:57.974 14769-14769 W/System.err: at android.view.View.getDisplayList(View.java:14444)
12-16 14:39:57.974 14769-14769 W/System.err: at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3532)
12-16 14:39:57.974 14769-14769 W/System.err: at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3511)
12-16 14:39:57.974 14769-14769 W/System.err: at android.view.View.updateDisplayListIfDirty(View.java:14365)
12-16 14:39:57.974 14769-14769 W/System.err: at android.view.View.getDisplayList(View.java:14444)
12-16 14:39:57.974 14769-14769 W/System.err: at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3532)
12-16 14:39:57.974 14769-14769 W/System.err: at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3511)
12-16 14:39:57.974 14769-14769 W/System.err: at android.view.View.updateDisplayListIfDirty(View.java:14365)
12-16 14:39:57.974 14769-14769 W/System.err: at android.view.View.getDisplayList(View.java:14444)
12-16 14:39:57.974 14769-14769 W/System.err: at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3532)
12-16 14:39:57.974 14769-14769 W/System.err: at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3511)
12-16 14:39:57.974 14769-14769 W/System.err: at android.view.View.updateDisplayListIfDirty(View.java:14365)
12-16 14:39:57.974 14769-14769 W/System.err: at android.view.View.getDisplayList(View.java:14444)
12-16 14:39:57.974 14769-14769 W/System.err: at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3532)
12-16 14:39:57.974 14769-14769 W/System.err: at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3511)
12-16 14:39:57.974 14769-14769 W/System.err: at android.view.View.updateDisplayListIfDirty(View.java:14365)
12-16 14:39:57.974 14769-14769 W/System.err: at android.view.View.getDisplayList(View.java:14444)
12-16 14:39:57.974 14769-14769 W/System.err: at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3532)
12-16 14:39:57.974 14769-14769 W/System.err: at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3511)
12-16 14:39:57.974 14769-14769 W/System.err: at android.view.View.updateDisplayListIfDirty(View.java:14365)
12-16 14:39:57.974 14769-14769 W/System.err: at android.view.View.getDisplayList(View.java:14444)
12-16 14:39:57.974 14769-14769 W/System.err: at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3532)
12-16 14:39:57.974 14769-14769 W/System.err: at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3511)
12-16 14:39:57.974 14769-14769 W/System.err: at android.view.View.updateDisplayListIfDirty(View.java:14365)
12-16 14:39:57.974 14769-14769 W/System.err: at android.view.View.getDisplayList(View.java:14444)
12-16 14:39:57.974 14769-14769 W/System.err: at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3532)
12-16 14:39:57.974 14769-14769 W/System.err: at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3511)
12-16 14:39:57.974 14769-14769 W/System.err: at android.view.View.updateDisplayListIfDirty(View.java:14365)
12-16 14:39:57.974 14769-14769 W/System.err: at android.view.View.getDisplayList(View.java:14444)
12-16 14:39:57.974 14769-14769 W/System.err: at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3532)
12-16 14:39:57.974 14769-14769 W/System.err: at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3511)
12-16 14:39:57.974 14769-14769 W/System.err: at android.view.View.updateDisplayListIfDirty(View.java:14365)
12-16 14:39:57.974 14769-14769 W/System.err: at android.view.View.getDisplayList(View.java:14444)
12-16 14:39:57.975 14769-14769 W/System.err: at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3532)
12-16 14:39:57.975 14769-14769 W/System.err: at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3511)
12-16 14:39:57.975 14769-14769 W/System.err: at android.view.View.updateDisplayListIfDirty(View.java:14365)
12-16 14:39:57.975 14769-14769 W/System.err: at android.view.View.getDisplayList(View.java:14444)
12-16 14:39:57.975 14769-14769 W/System.err: at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3532)
12-16 14:39:57.975 14769-14769 W/System.err: at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3511)
12-16 14:39:57.975 14769-14769 W/System.err: at android.view.View.updateDisplayListIfDirty(View.java:14365)
12-16 14:39:57.975 14769-14769 W/System.err: at android.view.View.getDisplayList(View.java:14444)
12-16 14:39:57.975 14769-14769 W/System.err: at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:279)
12-16 14:39:57.975 14769-14769 W/System.err: at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:285)
12-16 14:39:57.975 14769-14769 W/System.err: at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:335)
12-16 14:39:57.975 14769-14769 W/System.err: at android.view.ViewRootImpl.draw(ViewRootImpl.java:3051)
12-16 14:39:57.975 14769-14769 W/System.err: at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2864)
12-16 14:39:57.975 14769-14769 W/System.err: at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2448)
12-16 14:39:57.975 14769-14769 W/System.err: at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1351)
12-16 14:39:57.975 14769-14769 W/System.err: at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6820)
12-16 14:39:57.975 14769-14769 W/System.err: at android.view.Choreographer$CallbackRecord.run(Choreographer.java:804)
12-16 14:39:57.975 14769-14769 W/System.err: at android.view.Choreographer.doCallbacks(Choreographer.java:607)
12-16 14:39:57.975 14769-14769 W/System.err: at android.view.Choreographer.doFrame(Choreographer.java:576)
12-16 14:39:57.975 14769-14769 W/System.err: at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:790)
12-16 14:39:57.975 14769-14769 W/System.err: at android.os.Handler.handleCallback(Handler.java:815)
12-16 14:39:57.975 14769-14769 W/System.err: at android.os.Handler.dispatchMessage(Handler.java:104)
12-16 14:39:57.975 14769-14769 W/System.err: at android.os.Looper.loop(Looper.java:224)
12-16 14:39:57.975 14769-14769 W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5958)
12-16 14:39:57.975 14769-14769 W/System.err: at java.lang.reflect.Method.invoke(Native Method)
12-16 14:39:57.975 14769-14769 W/System.err: at java.lang.reflect.Method.invoke(Method.java:372)
12-16 14:39:57.975 14769-14769 W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1113)
12-16 14:39:57.975 14769-14769 W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:879)
[Deleted User] <[Deleted User]> #58
"ApkAssets{path=/product/app/WebViewGoogle/WebViewGoogle.apk}"
"ApkAssets{path=/product/app/TrichromeLibrary/TrichromeLibrary.apk}"
[Deleted User] <[Deleted User]> #59
ma...@gmail.com <ma...@gmail.com> #60
Process: cz.rohlik.app.debug, PID: 26786
android.content.res.Resources$NotFoundException: Resource ID #0x20c0006
at android.content.res.ResourcesImpl.getValue(ResourcesImpl.java:225)
at android.content.res.Resources.getInteger(Resources.java:1192)
at WV.p5.onCreateActionMode(chromium-TrichromeWebViewGoogle6432.apk-stable-609919332:52)
at com.android.internal.policy.DecorView$ActionModeCallback2Wrapper.onCreateActionMode(DecorView.java:2722)
at com.android.internal.policy.DecorView.startActionMode(DecorView.java:926)
at com.android.internal.policy.DecorView.startActionModeForChild(DecorView.java:882)
at android.view.ViewGroup.startActionModeForChild(ViewGroup.java:1035)
at android.view.ViewGroup.startActionModeForChild(ViewGroup.java:1035)
at android.view.ViewGroup.startActionModeForChild(ViewGroup.java:1035)
at android.view.ViewGroup.startActionModeForChild(ViewGroup.java:1035)
at android.view.ViewGroup.startActionModeForChild(ViewGroup.java:1035)
at android.view.ViewGroup.startActionModeForChild(ViewGroup.java:1035)
at android.view.ViewGroup.startActionModeForChild(ViewGroup.java:1035)
at android.view.ViewGroup.startActionModeForChild(ViewGroup.java:1035)
at android.view.View.startActionMode(View.java:7654)
at org.chromium.content.browser.selection.SelectionPopupControllerImpl.F(chromium-TrichromeWebViewGoogle6432.apk-stable-609919332:84)
at org.chromium.content.browser.selection.SelectionPopupControllerImpl.I(chromium-TrichromeWebViewGoogle6432.apk-stable-609919332:138)
at WV.EM.a(chromium-TrichromeWebViewGoogle6432.apk-stable-609919332:38)
at WV.qO.g(chromium-TrichromeWebViewGoogle6432.apk-stable-609919332:7)
at WV.n4.run(chromium-TrichromeWebViewGoogle6432.apk-stable-609919332:14)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:335)
at android.os.Looper.loopOnce(Looper.java:161)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7870)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
Description
Version used:1.1.0
Theme used:
Devices/Android versions reproduced on: API 23
I recently migrated one of my projects to androidx and updated androidx.appcompat:appcompat to version 1.1.0, then I found webview crashes when long pressed. Changing to version 1.0.0 solved this problem, and I have to suppress the line to avoid inspection. Abandoning AppCompatActivity also works, but there's reasons that I have to use it.
Here're what I got from Logcat:
09-21 01:12:51.916 11995-11995/top.donmor.tiddloidlite W/ResourceType: No known package when getting value for resource number 0x02090000
09-21 01:12:51.916 11995-11995/top.donmor.tiddloidlite W/ResourceType: No known package when getting value for resource number 0x02090000
09-21 01:12:51.916 11995-11995/top.donmor.tiddloidlite W/System.err: android.content.res.Resources$NotFoundException: Resource ID #0x2090000
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at android.content.res.Resources.getValue(Resources.java:1351)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at android.content.res.Resources.loadXmlResourceParser(Resources.java:2774)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at android.content.res.Resources.getLayout(Resources.java:1165)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at android.view.MenuInflater.inflate(MenuInflater.java:108)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at org.chromium.content.browser.SelectActionModeCallback.createActionMenu(SelectActionModeCallback.java:153)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at org.chromium.content.browser.SelectActionModeCallback.onCreateActionMode(SelectActionModeCallback.java:124)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at com.android.webview.chromium.FloatingSelectActionModeCallback.onCreateActionMode(FloatingSelectActionModeCallback.java:32)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at com.android.internal.policy.PhoneWindow$DecorView$ActionModeCallback2Wrapper.onCreateActionMode(PhoneWindow.java:3531)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at com.android.internal.policy.PhoneWindow$DecorView.startActionMode(PhoneWindow.java:2772)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at com.android.internal.policy.PhoneWindow$DecorView.startActionModeForChild(PhoneWindow.java:2729)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at android.view.ViewGroup.startActionModeForChild(ViewGroup.java:812)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at android.view.ViewGroup.startActionModeForChild(ViewGroup.java:812)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at android.view.ViewGroup.startActionModeForChild(ViewGroup.java:812)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at android.view.ViewGroup.startActionModeForChild(ViewGroup.java:812)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at android.view.ViewGroup.startActionModeForChild(ViewGroup.java:812)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at android.view.View.startActionMode(View.java:5335)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at com.android.webview.chromium.WebViewContentsClientAdapter.startFloatingActionMode(WebViewContentsClientAdapter.java:432)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at com.android.webview.chromium.WebViewContentsClientAdapter.startActionMode(WebViewContentsClientAdapter.java:414)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at org.chromium.android_webview.AwContentViewClient.startActionMode(AwContentViewClient.java:73)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at org.chromium.content.browser.ContentViewCore.showSelectActionMode(ContentViewCore.java:2131)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at org.chromium.content.browser.ContentViewCore.onSelectionEvent(ContentViewCore.java:2203)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at org.chromium.android_webview.AwContents.nativeOnDraw(Native Method)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at org.chromium.android_webview.AwContents.access$4500(AwContents.java:92)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at org.chromium.android_webview.AwContents$AwViewMethodsImpl.onDraw(AwContents.java:2731)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at org.chromium.android_webview.AwContents.onDraw(AwContents.java:1191)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at com.android.webview.chromium.WebViewChromium.onDraw(WebViewChromium.java:1713)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at android.webkit.WebView.onDraw(WebView.java:2486)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at android.view.View.draw(View.java:16178)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at android.view.View.updateDisplayListIfDirty(View.java:15174)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3593)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3573)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at android.view.View.updateDisplayListIfDirty(View.java:15134)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3593)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3573)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at android.view.View.updateDisplayListIfDirty(View.java:15134)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3593)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3573)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at android.view.View.updateDisplayListIfDirty(View.java:15134)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3593)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3573)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at android.view.View.updateDisplayListIfDirty(View.java:15134)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3593)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3573)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at android.view.View.updateDisplayListIfDirty(View.java:15134)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3593)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3573)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at android.view.View.updateDisplayListIfDirty(View.java:15134)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:281)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:287)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:322)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at android.view.ViewRootImpl.draw(ViewRootImpl.java:2615)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2434)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2067)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1107)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6013)
09-21 01:12:51.917 11995-11995/top.donmor.tiddloidlite W/System.err: at android.view.Choreographer$CallbackRecord.run(Choreographer.java:858)
09-21 01:12:51.918 11995-11995/top.donmor.tiddloidlite W/System.err: at android.view.Choreographer.doCallbacks(Choreographer.java:670)
09-21 01:12:51.918 11995-11995/top.donmor.tiddloidlite W/System.err: at android.view.Choreographer.doFrame(Choreographer.java:606)
09-21 01:12:51.918 11995-11995/top.donmor.tiddloidlite W/System.err: at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
09-21 01:12:51.918 11995-11995/top.donmor.tiddloidlite W/System.err: at android.os.Handler.handleCallback(Handler.java:739)
09-21 01:12:51.918 11995-11995/top.donmor.tiddloidlite W/System.err: at android.os.Handler.dispatchMessage(Handler.java:95)
09-21 01:12:51.918 11995-11995/top.donmor.tiddloidlite W/System.err: at android.os.Looper.loop(Looper.java:148)
09-21 01:12:51.918 11995-11995/top.donmor.tiddloidlite W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5417)
09-21 01:12:51.918 11995-11995/top.donmor.tiddloidlite W/System.err: at java.lang.reflect.Method.invoke(Native Method)
09-21 01:12:51.918 11995-11995/top.donmor.tiddloidlite W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
09-21 01:12:51.918 11995-11995/top.donmor.tiddloidlite W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
09-21 01:12:51.918 11995-11995/top.donmor.tiddloidlite A/chromium: [FATAL:jni_android.cc(249)] Check failed: false. Please include Java exception stack in crash report
--------- beginning of crash
09-21 01:12:51.918 11995-11995/top.donmor.tiddloidlite A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 11995 (or.tiddloidlite)
09-21 01:12:52.020 1352-1352/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
09-21 01:12:52.020 1352-1352/? A/DEBUG: Build fingerprint: 'Android/sdk_google_phone_x86/generic_x86:6.0/MASTER/5525988:userdebug/test-keys'
09-21 01:12:52.020 1352-1352/? A/DEBUG: Revision: '0'
09-21 01:12:52.020 1352-1352/? A/DEBUG: ABI: 'x86'
09-21 01:12:52.021 1352-1352/? A/DEBUG: pid: 11995, tid: 11995, name: or.tiddloidlite >>> top.donmor.tiddloidlite <<<
09-21 01:12:52.021 1352-1352/? A/DEBUG: signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
09-21 01:12:52.031 1352-1352/? A/DEBUG: Abort message: '[FATAL:jni_android.cc(249)] Check failed: false. Please include Java exception stack in crash report
'
09-21 01:12:52.032 1352-1352/? A/DEBUG: eax 00000000 ebx 00002edb ecx 00002edb edx 00000006
09-21 01:12:52.032 1352-1352/? A/DEBUG: esi b7754c50 edi 0000000b
09-21 01:12:52.032 1352-1352/? A/DEBUG: xcs 00000073 xds 0000007b xes 0000007b xfs 00000007 xss 0000007b
09-21 01:12:52.032 1352-1352/? A/DEBUG: eip b731da56 ebp 00002edb esp bf98fd60 flags 00200206
09-21 01:12:52.033 1352-1352/? A/DEBUG: backtrace:
09-21 01:12:52.034 1352-1352/? A/DEBUG: #00 pc 00083a56 /system/lib/libc.so (tgkill+22)
09-21 01:12:52.034 1352-1352/? A/DEBUG: #01 pc 00081608 /system/lib/libc.so (pthread_kill+70)
09-21 01:12:52.034 1352-1352/? A/DEBUG: #02 pc 00027205 /system/lib/libc.so (raise+36)
09-21 01:12:52.034 1352-1352/? A/DEBUG: #03 pc 000209e4 /system/lib/libc.so (abort+80)
09-21 01:12:52.034 1352-1352/? A/DEBUG: #04 pc 0037328a /system/app/webview/webview.apk (offset 0x7ea000)
09-21 01:12:52.034 1352-1352/? A/DEBUG: #05 pc 000009a3 /data/misc/shared_relro/libwebviewchromium32.relro
09-21 01:12:52.158 1352-1352/? A/DEBUG: Tombstone written to: /data/tombstones/tombstone_02
09-21 01:12:52.158 1352-1352/? E/DEBUG: AM write failed: Broken pipe
09-21 01:12:52.158 1676-12061/system_process W/ActivityManager: Force finishing activity top.donmor.tiddloidlite/.MainActivity
09-21 01:12:52.158 1676-1701/system_process I/BootReceiver: Copying /data/tombstones/tombstone_02 to DropBox (SYSTEM_TOMBSTONE)
09-21 01:12:52.162 1235-2139/? D/gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 1327104
09-21 01:12:52.209 1235-1235/? E/EGL_emulation: tid 1235: eglCreateSyncKHR(1881): error 0x3004 (EGL_BAD_ATTRIBUTE)
09-21 01:12:52.223 1676-12061/system_process E/JavaBinder: !!! FAILED BINDER TRANSACTION !!! (parcel size = 104)
09-21 01:12:52.223 1676-12061/system_process W/ActivityManager: Exception thrown during pause
android.os.DeadObjectException: Transaction failed on small parcel; remote process probably died
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(Binder.java:503)
at android.app.ApplicationThreadProxy.schedulePauseActivity(ApplicationThreadNative.java:727)
at com.android.server.am.ActivityStack.startPausingLocked(ActivityStack.java:867)
at com.android.server.am.ActivityStack.finishActivityLocked(ActivityStack.java:2907)
at com.android.server.am.ActivityStack.finishTopRunningActivityLocked(ActivityStack.java:2763)
at com.android.server.am.ActivityStackSupervisor.finishTopRunningActivityLocked(ActivityStackSupervisor.java:2755)
at com.android.server.am.ActivityManagerService.handleAppCrashLocked(ActivityManagerService.java:11971)
at com.android.server.am.ActivityManagerService.makeAppCrashingLocked(ActivityManagerService.java:11867)
at com.android.server.am.ActivityManagerService.crashApplication(ActivityManagerService.java:12556)
at com.android.server.am.ActivityManagerService.handleApplicationCrashInner(ActivityManagerService.java:12063)
at com.android.server.am.NativeCrashListener$NativeCrashReporter.run(NativeCrashListener.java:86)
09-21 01:12:52.226 1233-1233/? E/lowmemorykiller: Error writing /proc/11995/oom_score_adj; errno=22
09-21 01:12:52.241 1676-1687/system_process D/GraphicsStats: Buffer count: 7
09-21 01:12:52.241 1676-1687/system_process I/WindowState: WIN DEATH: Window{b9f5e85 u0 top.donmor.tiddloidlite/top.donmor.tiddloidlite.MainActivity}
09-21 01:12:52.244 1676-1754/system_process W/InputDispatcher: channel '8fc5e01 PopupWindow:6f5edf2 (server)' ~ Consumer closed input channel or an error occurred. events=0x9
09-21 01:12:52.244 1676-1754/system_process E/InputDispatcher: channel '8fc5e01 PopupWindow:6f5edf2 (server)' ~ Channel is unrecoverably broken and will be disposed!
09-21 01:12:52.245 1676-1754/system_process W/InputDispatcher: channel '28d3ee7 PopupWindow:ccd1bf9 (server)' ~ Consumer closed input channel or an error occurred. events=0x9
09-21 01:12:52.245 1676-1754/system_process E/InputDispatcher: channel '28d3ee7 PopupWindow:ccd1bf9 (server)' ~ Channel is unrecoverably broken and will be disposed!
09-21 01:12:52.245 1676-1863/system_process I/WindowState: WIN DEATH: Window{8fc5e01 u0 PopupWindow:6f5edf2}
09-21 01:12:52.245 1676-1863/system_process W/InputDispatcher: Attempted to unregister already unregistered input channel '8fc5e01 PopupWindow:6f5edf2 (server)'
09-21 01:12:52.247 1676-10504/system_process I/WindowState: WIN DEATH: Window{28d3ee7 u0 PopupWindow:ccd1bf9}
09-21 01:12:52.249 1358-1358/? I/Zygote: Process 11995 exited due to signal (6)
09-21 01:12:52.286 1676-10504/system_process W/InputDispatcher: Attempted to unregister already unregistered input channel '28d3ee7 PopupWindow:ccd1bf9 (server)'
09-21 01:12:52.288 1676-3353/system_process I/ActivityManager: Process top.donmor.tiddloidlite (pid 11995) has died
09-21 01:12:52.309 2211-2211/com.google.android.googlequicksearchbox:search I/BackgroundMemoryTrimmer: Trimming objects from memory, since app is in the background.
09-21 01:12:52.378 1676-1686/system_process I/art: Background partial concurrent mark sweep GC freed 6754(527KB) AllocSpace objects, 9(1244KB) LOS objects, 26% free, 11MB/15MB, paused 48.707ms total 156.667ms
09-21 01:12:52.383 2023-2301/com.android.launcher3 D/EGL_emulation: eglMakeCurrent: 0xae414480: ver 2 0 (tinfo 0xae4125e0)
09-21 01:12:52.413 1676-3390/system_process I/OpenGLRenderer: Initialized EGL, version 1.4
09-21 01:12:52.429 1676-3390/system_process D/EGL_emulation: eglCreateContext: 0x9c010620: maj 2 min 0 rcv 2
09-21 01:12:52.431 1676-3390/system_process D/EGL_emulation: eglMakeCurrent: 0x9c010620: ver 2 0 (tinfo 0x9f162830)
09-21 01:12:52.472 1676-3390/system_process D/EGL_emulation: eglMakeCurrent: 0x9c010620: ver 2 0 (tinfo 0x9f162830)
09-21 01:12:52.633 1676-2303/system_process I/AccountManagerService: getTypesVisibleToCaller: isPermitted? true
09-21 01:12:52.710 1676-1860/system_process I/AccountManagerService: getTypesVisibleToCaller: isPermitted? true
09-21 01:12:52.952 1676-1703/system_process W/WindowAnimator: Failed to dispatch window animation state change.
android.os.DeadObjectException
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(Binder.java:503)
at android.view.IWindow$Stub$Proxy.onAnimationStopped(IWindow.java:534)
at com.android.server.wm.WindowAnimator.updateWindowsLocked(WindowAnimator.java:286)
at com.android.server.wm.WindowAnimator.animateLocked(WindowAnimator.java:678)
at com.android.server.wm.WindowAnimator.-wrap0(WindowAnimator.java)
at com.android.server.wm.WindowAnimator$1.doFrame(WindowAnimator.java:123)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:856)
at android.view.Choreographer.doCallbacks(Choreographer.java:670)
at android.view.Choreographer.doFrame(Choreographer.java:603)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
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.os.HandlerThread.run(HandlerThread.java:61)
at com.android.server.ServiceThread.run(ServiceThread.java:46)
09-21 01:12:53.008 1676-1693/system_process I/UsageStatsService: User[0] Flushing usage stats to disk
09-21 01:13:00.057 1235-1309/? D/hwcomposer: hw_composer sent 769 syncs in 60s