Crash Reported and Flickering Screen

Mobile Testing, Android App Testing.
vikram_u_k
Posts: 15
Joined: Tue Mar 15, 2016 12:16 pm

Crash Reported and Flickering Screen

Post by vikram_u_k » Mon Apr 04, 2016 12:01 pm

Hi Support,
With Ranorex Version 5.4.5 testing a Multithreaded Android4.4.2 Native APK, we have noted flickering screens while running the Tests.


a Fatal exception for the UIAutomator is observed. Kindly suggest if any changes are needed for running the Tests or if the Ranorex service has a dependency on the UIAutomator which is causing the Fatal Exceptions.
Attachments
Error-UIAutomator.txt
UIAutomator Error
(4.48 KiB) Downloaded 55 times

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Crash Reported and Flickering Screen

Post by Support Team » Wed Apr 06, 2016 9:41 am

Hi vikram_u_k,

In order to analyze this problem in more detail I'd need a copy of your non-instrumented apk file.
May I ask you if you could send it to [email protected]?

This allows me reproducing the problem directly on my device.

Thank you in advance.

Regards,
Markus (S)
.
Image

vikram_u_k
Posts: 15
Joined: Tue Mar 15, 2016 12:16 pm

Re: Crash Reported and Flickering Screen

Post by vikram_u_k » Wed Apr 06, 2016 11:00 am

Hi Markus,
We are running the Application through Ranorex and face 2 Issues

1) Flickering on the Screen when run via Ranorex, Normal operation without Ranorex is OK
2) Exceptions being Reported ( Runtime, IllegalState and NullPointer).
Attachments
MyAndroidApp7Thread.zip
APK under Test
(438.52 KiB) Downloaded 40 times
AnotherBoardError.txt
Error from same APK on another Board
(3.53 KiB) Downloaded 39 times

vikram_u_k
Posts: 15
Joined: Tue Mar 15, 2016 12:16 pm

Re: Crash Reported and Flickering Screen

Post by vikram_u_k » Thu Apr 07, 2016 5:41 am

Found Additional Details for the GetService Error..

Do let me know what is UIAutomator Service getting GetService Instance for ?.

E/AndroidRuntime(22811): *** FATAL EXCEPTION IN SYSTEM PROCESS: main
E/AndroidRuntime(22811): java.lang.IllegalStateException: UiAutomationService andr[email protected]2cc5cfe0alread
y registered!
E/AndroidRuntime(22811): at android.os.Parcel.readException(Parcel.java:1473)
E/AndroidRuntime(22811): at android.os.Parcel.readException(Parcel.java:1419)
E/AndroidRuntime(22811): at android.view.accessibility.IAccessibilityManager$Stub$Proxy.registerUiTestAutomationService(IAccessibilityManager.java:342)
Attachments
Error Details.txt
Source Details from Android Code
(2.92 KiB) Downloaded 38 times

vikram_u_k
Posts: 15
Joined: Tue Mar 15, 2016 12:16 pm

Re: Crash Reported and Flickering Screen

Post by vikram_u_k » Thu Apr 07, 2016 10:32 am

Hi Support,
On another Device running 4.0.3, the Test suites fail with this Error(attached) to generate Screenshots..
Could any pointers be given on what is wrong?.

Something as an Exception exists on the APK, or in the Order of Steps in the Testcase or is it a UIAutomator Error?.
Attachments
Error-4.0.3.txt
Error for Ranorex Screenshots in 4.0.3 Android
(4.5 KiB) Downloaded 40 times

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Crash Reported and Flickering Screen

Post by Support Team » Fri Apr 08, 2016 12:33 pm

Hi vikram_u_k,

Thank you for the apk file and the additional logs. Unfortunately I was not able to reproduce your mentioned issues. I've installed the application on my android devices, but I haven't noticed any flickering or crashes.

May I ask you if this behavior only occurred on a specific device or if you can also reproduce it on other devices.

Regards,
Markus (S)
.
Image

vikram_u_k
Posts: 15
Joined: Tue Mar 15, 2016 12:16 pm

Re: Crash Reported and Flickering Screen

Post by vikram_u_k » Mon Apr 11, 2016 11:33 am

Hi Support,
we are getting a UIAutomator/Fatal Exception consistently on 2 devices( one running 4.0.3 and another 4.4.3).

Both have a UIAutomator error and a Binder Unknown Error code 0xfffffff7 error. Other than this, uninstalling the Ranorex Service and running them also reports a UIAutomator Error on 4.0.3.
Any suggestions for resolving this Error?.

Regards,
Vikram U

vikram_u_k
Posts: 15
Joined: Tue Mar 15, 2016 12:16 pm

Re: Crash Reported and Flickering Screen

Post by vikram_u_k » Tue Apr 12, 2016 7:03 am

Hi Support,
Would it be possible to share contact numbers for a brief support call. We are still evaluating Ranorex but have issues related to Instrumentation process and UIAutomator crashes.

Kindly mail us your numbers.

regards,
Vikram UK

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Crash Reported and Flickering Screen

Post by Support Team » Tue Apr 12, 2016 2:07 pm

Hi Vikram UK,

May I ask you to get in touch with us by email? Therefore, please send an email to [email protected].

Thank you in advance.

Regards,
Markus (S)
.
Image

vikram_u_k
Posts: 15
Joined: Tue Mar 15, 2016 12:16 pm

Re: Crash Reported and Flickering Screen

Post by vikram_u_k » Wed Apr 13, 2016 11:08 am

Hi Support,
We have narrowed the Error to this Log statement:

I/System.out( 2169): ------------------------------------------------------|
I/System.out( 2169): E: File res/drawable/back_btn_text_drawable.xml from dr
I/System.out( 2169): awable resource ID #0x7f020002
I/System.out( 2169): ------------------------------------------------------|
W/System.err( 2169): android.content.res.Resources$NotFoundException: File res/drawable/back_btn_text_drawable.xml from drawable resource ID #0x7f020002

From the Application itself we note these Resources are available using the AAPT Badging Tool( i.e. aapt dump resources AUT.apk.

config (default):
resource 0x7f020002 com.lotus:drawable/back_btn_text_drawable: t=0x03 d=0x00000000 (s=0x0008 r=0x00)
resource 0x7f020005 com.lotus:drawable/btn_start_drawable: t=0x03 d=0x00000001 (s=0x0008 r=0x00)
resource 0x7f020006 com.lotus:drawable/btn_text_selector: t=0x03 d=0x00000002 (s=0x0008 r=0x00)
Attachments
Errors-Ranorex-5.4.6.txt
Errors from 5.4.6
(8.26 KiB) Downloaded 39 times

vikram_u_k
Posts: 15
Joined: Tue Mar 15, 2016 12:16 pm

Re: Crash Reported and Flickering Screen

Post by vikram_u_k » Fri Apr 15, 2016 11:50 am

For the Screen Flickering issue on OpenGL, we have noted this Setting as passed on to the Development team.

GlSurfaceVierw has 2 Render modes
public final static int RENDERMODE_WHEN_DIRTY = 0;
public final static int RENDERMODE_CONTINUOUSLY = 1;

In the GLSurfaceFragment.java, the mode is set to Dirty..
private void initVscView() {
myGLSurfaceView.setRenderMode( GLSurfaceView.RENDERMODE_WHEN_DIRTY )

Will this affect the OpenGL display?.

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Crash Reported and Flickering Screen

Post by Support Team » Fri Apr 15, 2016 2:43 pm

Hi Vikram UK,

I'd like to discuss this problem with you personally. May I ask you to get in touch with me by email ([email protected]) ?

Thank you in advance.

Regards,
Markus (S)
.
Image