-
Notifications
You must be signed in to change notification settings - Fork 1.3k
ScreenshotUtil for tests is broken #4847
Comments
Stacktrace from Nexus 6p: 04-26 11:46:57.603 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] JNI DETECTED ERROR IN APPLICATION: thread Thread[10,tid=4575,Native,Thread*=0x7f92858c00,peer=0x12e814c0,"Instr: android.support.test.runner.AndroidJUnitRunner"] using JNIEnv* from thread Thread[10,tid=4575,Native,Thread*=0x7f92858c00,peer=0x12e814c0,"Instr: android.support.test.runner.AndroidJUnitRunner"]
04-26 11:46:57.603 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] in call to CallVoidMethodV
04-26 11:46:57.603 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] from void com.mapbox.mapboxsdk.maps.NativeMapView.nativeRender(long)
04-26 11:46:57.603 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] "Instr: android.support.test.runner.AndroidJUnitRunner" prio=5 tid=10 Runnable
04-26 11:46:57.603 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] | group="main" sCount=1 dsCount=0 obj=0x12e814c0 self=0x7f92858c00
04-26 11:46:57.603 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] | sysTid=4575 nice=-8 cgrp=default sched=0/0 handle=0x7f9bf34440
04-26 11:46:57.603 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] | state=R schedstat=( 92594996 8080620 137 ) utm=5 stm=3 core=1 HZ=100
04-26 11:46:57.603 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] | stack=0x7f9be32000-0x7f9be34000 stackSize=1037KB
04-26 11:46:57.603 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] | held mutexes= "mutator lock"(shared held)
04-26 11:46:57.603 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] native: #00 pc 000000000048b108 /system/lib64/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, int, char const*, art::ArtMethod*, void*)+236)
04-26 11:46:57.604 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] native: #01 pc 000000000045a2c8 /system/lib64/libart.so (art::Thread::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const+220)
04-26 11:46:57.604 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] native: #02 pc 000000000030e730 /system/lib64/libart.so (art::JavaVMExt::JniAbort(char const*, char const*)+1000)
04-26 11:46:57.604 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] native: #03 pc 000000000030efe8 /system/lib64/libart.so (art::JavaVMExt::JniAbortV(char const*, char const*, std::__va_list)+116)
04-26 11:46:57.604 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] native: #04 pc 0000000000143f1c /system/lib64/libart.so (art::ScopedCheck::AbortF(char const*, ...)+144)
04-26 11:46:57.604 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] native: #05 pc 000000000014ad48 /system/lib64/libart.so (art::ScopedCheck::Check(art::ScopedObjectAccess&, bool, char const*, art::JniValueType*) (.constprop.116)+5956)
04-26 11:46:57.604 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] native: #06 pc 000000000015d9d0 /system/lib64/libart.so (art::CheckJNI::CallMethodV(char const*, _JNIEnv*, _jobject*, _jclass*, _jmethodID*, std::__va_list, art::Primitive::Type, art::InvokeType)+684)
04-26 11:46:57.604 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] native: #07 pc 000000000015fc98 /system/lib64/libart.so (art::CheckJNI::CallVoidMethodV(_JNIEnv*, _jobject*, _jmethodID*, std::__va_list)+68)
04-26 11:46:57.604 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] native: #08 pc 00000000000ef45c /data/app/com.mapbox.mapboxsdk.testapp-1/lib/arm64/libmapbox-gl.so (_JNIEnv::CallVoidMethod(_jobject*, _jmethodID*, ...)+124)
04-26 11:46:57.604 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] native: #09 pc 00000000000f083c /data/app/com.mapbox.mapboxsdk.testapp-1/lib/arm64/libmapbox-gl.so (mbgl::android::NativeMapView::notifyMapChange(mbgl::MapChange)+40)
04-26 11:46:57.604 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] native: #10 pc 000000000017bd94 /data/app/com.mapbox.mapboxsdk.testapp-1/lib/arm64/libmapbox-gl.so (mbgl::Map::render()+104)
04-26 11:46:57.604 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] native: #11 pc 00000000000ef4bc /data/app/com.mapbox.mapboxsdk.testapp-1/lib/arm64/libmapbox-gl.so (mbgl::android::NativeMapView::render()+60)
04-26 11:46:57.604 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] native: #12 pc 000000000010597c /data/app/com.mapbox.mapboxsdk.testapp-1/lib/arm64/libmapbox-gl.so (???)
04-26 11:46:57.604 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] native: #13 pc 00000000002ce3d4 /data/app/com.mapbox.mapboxsdk.testapp-1/oat/arm64/base.odex (void com.mapbox.mapboxsdk.maps.NativeMapView.nativeRender(long)+136)
04-26 11:46:57.604 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] native: #14 pc 00000000002d24e4 /data/app/com.mapbox.mapboxsdk.testapp-1/oat/arm64/base.odex (void com.mapbox.mapboxsdk.maps.NativeMapView.render()+88)
04-26 11:46:57.604 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] native: #15 pc 00000000002b8ab0 /data/app/com.mapbox.mapboxsdk.testapp-1/oat/arm64/base.odex (void com.mapbox.mapboxsdk.maps.MapView.onDraw(android.graphics.Canvas)+276)
04-26 11:46:57.604 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] native: #16 pc 0000000001666858 /data/dalvik-cache/arm64/system@framework@boot.oat (???)
04-26 11:46:57.604 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at com.mapbox.mapboxsdk.maps.NativeMapView.nativeRender(Native method)
04-26 11:46:57.604 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at com.mapbox.mapboxsdk.maps.NativeMapView.render(NativeMapView.java:127)
04-26 11:46:57.604 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at com.mapbox.mapboxsdk.maps.MapView.onDraw(MapView.java:1264)
04-26 11:46:57.604 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at android.view.View.draw(View.java:16184)
04-26 11:46:57.604 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at android.view.View.draw(View.java:16096)
04-26 11:46:57.604 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at android.view.ViewGroup.drawChild(ViewGroup.java:3609)
04-26 11:46:57.604 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
04-26 11:46:57.604 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at android.view.View.draw(View.java:16094)
04-26 11:46:57.604 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at android.view.ViewGroup.drawChild(ViewGroup.java:3609)
04-26 11:46:57.604 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
04-26 11:46:57.604 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at android.view.View.draw(View.java:16094)
04-26 11:46:57.604 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at android.view.ViewGroup.drawChild(ViewGroup.java:3609)
04-26 11:46:57.604 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
04-26 11:46:57.604 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at android.view.View.draw(View.java:16094)
04-26 11:46:57.604 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at android.view.ViewGroup.drawChild(ViewGroup.java:3609)
04-26 11:46:57.604 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
04-26 11:46:57.604 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at android.view.View.draw(View.java:16094)
04-26 11:46:57.604 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at android.view.ViewGroup.drawChild(ViewGroup.java:3609)
04-26 11:46:57.605 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
04-26 11:46:57.605 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at android.view.View.draw(View.java:16094)
04-26 11:46:57.605 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at android.view.ViewGroup.drawChild(ViewGroup.java:3609)
04-26 11:46:57.605 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
04-26 11:46:57.605 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at android.view.View.draw(View.java:16187)
04-26 11:46:57.605 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at com.android.internal.policy.PhoneWindow$DecorView.draw(PhoneWindow.java:2690)
04-26 11:46:57.605 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at android.view.View.buildDrawingCacheImpl(View.java:15480)
04-26 11:46:57.605 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at android.view.View.buildDrawingCache(View.java:15341)
04-26 11:46:57.605 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at android.view.View.getDrawingCache(View.java:15247)
04-26 11:46:57.605 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at android.view.View.getDrawingCache(View.java:15212)
04-26 11:46:57.605 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at com.mapbox.mapboxsdk.testapp.espresso.utils.ScreenshotUtil.take(ScreenshotUtil.java:49)
04-26 11:46:57.605 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at com.mapbox.mapboxsdk.testapp.espresso.DirectionsActivityTest.testScreenshot(DirectionsActivityTest.java:53)
04-26 11:46:57.605 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at java.lang.reflect.Method.invoke!(Native method)
04-26 11:46:57.605 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
04-26 11:46:57.605 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
04-26 11:46:57.605 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
04-26 11:46:57.605 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
04-26 11:46:57.605 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
04-26 11:46:57.605 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at android.support.test.internal.statement.UiThreadStatement.evaluate(UiThreadStatement.java:55)
04-26 11:46:57.605 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at android.support.test.rule.ActivityTestRule$ActivityStatement.evaluate(ActivityTestRule.java:257)
04-26 11:46:57.605 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at org.junit.rules.RunRules.evaluate(RunRules.java:20)
04-26 11:46:57.605 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
04-26 11:46:57.605 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
04-26 11:46:57.605 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
04-26 11:46:57.605 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
04-26 11:46:57.605 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
04-26 11:46:57.605 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
04-26 11:46:57.605 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
04-26 11:46:57.605 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
04-26 11:46:57.605 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
04-26 11:46:57.605 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at org.junit.runners.Suite.runChild(Suite.java:128)
04-26 11:46:57.605 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at org.junit.runners.Suite.runChild(Suite.java:27)
04-26 11:46:57.605 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
04-26 11:46:57.606 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
04-26 11:46:57.606 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
04-26 11:46:57.606 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
04-26 11:46:57.606 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
04-26 11:46:57.606 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
04-26 11:46:57.606 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
04-26 11:46:57.606 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
04-26 11:46:57.606 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at android.support.test.internal.runner.TestExecutor.execute(TestExecutor.java:54)
04-26 11:46:57.606 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at android.support.test.runner.AndroidJUnitRunner.onStart(AndroidJUnitRunner.java:240)
04-26 11:46:57.606 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1879)
04-26 11:46:57.606 4528-4575/com.mapbox.mapboxsdk.testapp A/art: art/runtime/java_vm_ext.cc:410] |
/sub |
In #4633 I was able to take a snapshot of the MapView (both GL content as Android SDK Views). The difference with this issue is that it is taken the rootview to convert to a bitmap instead of the MapView. |
@tobrun Just to clarify, currently |
/sub |
@zugaldia it works with the Mapview but has trouble with the root view container |
Just documenting that the |
I've cherry picked the ./gradlew cC -p MapboxGLAndroidSDKTestApp The next step is going to be to review a few other changes that came with the Once this step is done the next step of the process is to run this on AWS Device Farm for proper breadth testing of devices. |
After reviewing the rest of the commit the only major change is removal of StrictMode in the TestApp's |
I just re-enabled StictMode and successfully tested locally on the same Samsung S5. I'm going to commit that to the development branch and then merge both commits into |
Ok, now the entire test infrastructure needed for |
I just fired off a new test round on AWS Device farm using the same commit from |
The results of the AWS Device Farm test run last night confirm that the Hardware Acceleration issue that impacts Android 4.4.x / KitKat and described in #4911 is still happening (see screenshot below). I'm going to further investigate where the TestApp is using Hardware Acceleration as well as how the |
Looking into how // Traditional Screenshot algorithm
View rootview;
rootview.setDrawingCacheEnabled(true);
Bitmap bitmap1 = rootview.getDrawingCache(); Next Steps
/cc @twbell |
I stopped the test at 127 out of 130 devices tested as it was clear that removing |
I refactored the code to use the "traditional Android screenshot algorithm" which is entirely Android API View based (see screenshot below) and then ran it locally on the Samsung S5. This local run errored out and produced a stack trace similar to what @tobrun first experienced above. The error seems to be caused by a threading issue with Core GL's I'm not sure of the next step at this point. This still seems like an issue with the Testing Framework itself as Mapbox Android SDK does run fine in apps on Android 4.4.x devices (sans testing code).
05-05 19:05:48.771 20082-20082/? I/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
05-05 19:05:48.771 20082-20082/? I/DEBUG: Build fingerprint: 'samsung/klteuc/klteatt:5.0/LRX21T/G900AUCU3BOC4:user/release-keys'
05-05 19:05:48.771 20082-20082/? I/DEBUG: Revision: '14'
05-05 19:05:48.771 20082-20082/? I/DEBUG: ABI: 'arm'
05-05 19:05:48.771 20082-20082/? I/DEBUG: pid: 21677, tid: 21700, name: roidJUnitRunner >>> com.mapbox.mapboxsdk.testapp <<<
05-05 19:05:48.771 20082-20082/? I/DEBUG: signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
05-05 19:05:48.841 20082-20082/? I/DEBUG: Abort message: 'art/runtime/check_jni.cc:65] JNI DETECTED ERROR IN APPLICATION: thread Thread[11,tid=21700,Native,Thread*=0xb4e0f400,peer=0x12df2f40,"Instr: android.support.test.runner.AndroidJUnitRunner"] using JNIEnv* from thread Thread[1,tid=21677,Runnable,Thread*=0xb4e07800,peer=0x86213ef0,"main"]'
05-05 19:05:48.841 20082-20082/? I/DEBUG: r0 00000000 r1 000054c4 r2 00000006 r3 00000000
05-05 19:05:48.841 20082-20082/? I/DEBUG: r4 b3affdb8 r5 00000006 r6 00000002 r7 0000010c
05-05 19:05:48.841 20082-20082/? I/DEBUG: r8 00000000 r9 b4e4f520 sl b4e0f400 fp 00001af0
05-05 19:05:48.841 20082-20082/? I/DEBUG: ip 000054c4 sp b3afda10 lr b6f14fd1 pc b6f38970 cpsr 60070010
05-05 19:05:48.841 20082-20082/? I/DEBUG: backtrace:
05-05 19:05:48.841 20082-20082/? I/DEBUG: #00 pc 00037970 /system/lib/libc.so (tgkill+12)
05-05 19:05:48.841 20082-20082/? I/DEBUG: #01 pc 00013fcd /system/lib/libc.so (pthread_kill+52)
05-05 19:05:48.841 20082-20082/? I/DEBUG: #02 pc 00014beb /system/lib/libc.so (raise+10)
05-05 19:05:48.841 20082-20082/? I/DEBUG: #03 pc 00011531 /system/lib/libc.so (__libc_android_abort+36)
05-05 19:05:48.841 20082-20082/? I/DEBUG: #04 pc 0000fcbc /system/lib/libc.so (abort+4)
05-05 19:05:48.841 20082-20082/? I/DEBUG: #05 pc 0021d4f1 /system/lib/libart.so (art::Runtime::Abort()+160)
05-05 19:05:48.841 20082-20082/? I/DEBUG: #06 pc 000a834b /system/lib/libart.so (art::LogMessage::~LogMessage()+1322)
05-05 19:05:48.841 20082-20082/? I/DEBUG: #07 pc 000b1a79 /system/lib/libart.so (art::JniAbort(char const*, char const*)+1060)
05-05 19:05:48.841 20082-20082/? I/DEBUG: #08 pc 000b1fd5 /system/lib/libart.so (art::JniAbortF(char const*, char const*, ...)+60)
05-05 19:05:48.841 20082-20082/? I/DEBUG: #09 pc 000b504d /system/lib/libart.so (art::ScopedCheck::ScopedCheck(_JNIEnv*, int, char const*)+1132)
05-05 19:05:48.841 20082-20082/? I/DEBUG: #10 pc 000bc59f /system/lib/libart.so (art::CheckJNI::CallVoidMethodV(_JNIEnv*, _jobject*, _jmethodID*, std::__va_list)+30)
05-05 19:05:48.841 20082-20082/? I/DEBUG: #11 pc 000c5d9c /data/app/com.mapbox.mapboxsdk.testapp-1/lib/arm/libmapbox-gl.so (_JNIEnv::CallVoidMethod(_jobject*, _jmethodID*, ...)+56)
05-05 19:05:48.841 20082-20082/? I/DEBUG: #12 pc 000c7990 /data/app/com.mapbox.mapboxsdk.testapp-1/lib/arm/libmapbox-gl.so (mbgl::android::NativeMapView::notifyMapChange(mbgl::MapChange)+40)
05-05 19:05:48.841 20082-20082/? I/DEBUG: #13 pc 0017e3b0 /data/app/com.mapbox.mapboxsdk.testapp-1/lib/arm/libmapbox-gl.so (mbgl::Map::render()+104)
05-05 19:05:48.841 20082-20082/? I/DEBUG: #14 pc 000c5e1c /data/app/com.mapbox.mapboxsdk.testapp-1/lib/arm/libmapbox-gl.so (mbgl::android::NativeMapView::render()+68)
05-05 19:05:48.841 20082-20082/? I/DEBUG: #15 pc 000e1d9c /data/app/com.mapbox.mapboxsdk.testapp-1/lib/arm/libmapbox-gl.so
05-05 19:05:48.841 20082-20082/? I/DEBUG: #16 pc 0014f5ab /data/dalvik-cache/arm/data@app@com.mapbox.mapboxsdk.testapp-1@base.apk@classes.dex
05-05 19:05:50.181 20082-20082/? I/DEBUG: Tombstone written to: /data/tombstones/tombstone_08 Error Log From Traditional Android Screenshot Algorithm |
Should clarify that the reason it's not blocking the release is that the issue has to do with the algorithm to take a screenshot and NOT the Mapbox Android SDK running on Android 4.4 devices. |
We have now recorded mp4 in Firebase Test Lab. Closing as not relevant anymore. |
When trying to take a screenshot using espresso (using ScreenshotUtil.java). The utility crashes with:
While it's creating a bitmap from the currently shown rootView:
The text was updated successfully, but these errors were encountered: