Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resources$NotFoundException On Google Robo Test #974

Closed
NickIliev opened this issue Mar 16, 2018 · 8 comments
Closed

Resources$NotFoundException On Google Robo Test #974

NickIliev opened this issue Mar 16, 2018 · 8 comments
Assignees

Comments

@NickIliev
Copy link

NickIliev commented Mar 16, 2018

From @rakeshgirase on March 15, 2018 21:42

Please, provide the details below:

Did you verify this is a real problem by searching the [NativeScript Forum]

Yes

Tell us about the problem

One out of 10 devices which were under test encountered following exception and I felt like not leaving it this time as I got a logs of the same.
logcat.txt
Though there is nothing specific, I have attached the video of the test which gave this exception:
Video: https://drive.google.com/open?id=1uiGHhPdT8LhQ83HMlczgrY-w5FRFkn5n
Following is stacktrace:

03-14 23:11:59.425: I/Robo(14384): android.content.res.Resources$NotFoundException: Resource ID #0xffffffec
03-14 23:11:59.425: I/Robo(14384): 	at android.content.res.ResourcesImpl.getValue(ResourcesImpl.java:255)
03-14 23:11:59.425: I/Robo(14384): 	at android.content.res.Resources.loadXmlResourceParser(Resources.java:2187)
03-14 23:11:59.425: I/Robo(14384): 	at android.content.res.Resources.getAnimation(Resources.java:1202)
03-14 23:11:59.425: I/Robo(14384): 	at android.animation.AnimatorInflater.loadAnimator(AnimatorInflater.java:127)
03-14 23:11:59.425: I/Robo(14384): 	at android.animation.AnimatorInflater.loadAnimator(AnimatorInflater.java:108)
03-14 23:11:59.425: I/Robo(14384): 	at android.animation.AnimatorInflater.loadAnimator(AnimatorInflater.java:93)
03-14 23:11:59.425: I/Robo(14384): 	at android.app.FragmentManagerImpl.loadAnimator(FragmentManager.java:828)
03-14 23:11:59.425: I/Robo(14384): 	at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1072)
03-14 23:11:59.425: I/Robo(14384): 	at android.app.FragmentManagerImpl.removeFragment(FragmentManager.java:1283)
03-14 23:11:59.425: I/Robo(14384): 	at android.app.BackStackRecord.run(BackStackRecord.java:766)
03-14 23:11:59.425: I/Robo(14384): 	at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1585)
03-14 23:11:59.425: I/Robo(14384): 	at android.app.FragmentManagerImpl$1.run(FragmentManager.java:484)
03-14 23:11:59.425: I/Robo(14384): 	at android.os.Handler.handleCallback(Handler.java:755)
03-14 23:11:59.425: I/Robo(14384): 	at android.os.Handler.dispatchMessage(Handler.java:95)
03-14 23:11:59.425: I/Robo(14384): 	at android.support.test.espresso.base.Interrogator.loopAndInterrogate(Interrogator.java:148)
03-14 23:11:59.425: I/Robo(14384): 	at android.support.test.espresso.base.UiControllerImpl.loopUntil(UiControllerImpl.java:465)

Which platform(s) does your issue occur on?

Android
image

Please provide the following version numbers that your issue occurs with:

  • CLI: (run tns --version to fetch it)
  • Cross-platform modules: (check the 'version' attribute in the
    node_modules/tns-core-modules/package.json file in your project)
  • Runtime(s): (look for the "tns-android" and "tns-ios" properties in the
    package.json file of your project)
  • Plugin(s): (look for the version number in the package.json file of your
    project)
    The complete project can be found at https://github.com/rakeshgirase/QSB.

Please tell us how to recreate the issue in as much detail as possible.

The best approach would be to get your code running in the NativeScript Playground and share the link with us, along with any additional details or steps to reproduce needed for examining the issue there.

Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.

I understand that it is an issue which is difficult to pin point and fix.. Its strange that code works just fine on 9 out of 10 devices. However, if at all code is required then you can find it https://github.com/rakeshgirase/QSB

Copied from original issue: NativeScript/NativeScript#5549

@sserdyuk
Copy link

sserdyuk commented Mar 22, 2018

@NickIliev I'd like to add my two cents here.

First, I do have the same reports from the pre-launch testing in Firebase Test Lab. I get these consistently since Google implemented "more comprehensive pre-launch report" that "now explores your app even more deeply and may find more crashes". All quoted text is Google's.

I get 2-3 reports for each build. Here's a graph of issues since January 18th 2018. See graphs and screenshots below.

Second, more importantly, this is not only happening during robo testing in the lab, I also have a similar crash report from the real production use.

From what I can see in the videos, it seems to be related to user action during or right after navigating back. I use topmost().goBack(); to return from the list of categories, and that's about where it's crashing.

I can actually recreate it on my phone by tapping while transitions are happening, similar to how the robo testers do it in the videos.

I think this deserves a high priority ticket, and I'd be happy to help solve the issue.

$ tns info
All NativeScript components versions information
┌──────────────────┬─────────────────┬────────────────┬─────────────┐
│ Component        │ Current version │ Latest version │ Information │
│ nativescript     │ 3.4.3           │ 3.4.3          │ Up to date  │
│ tns-core-modules │ 3.4.1           │ 3.4.1          │ Up to date  │
│ tns-android      │ 3.4.2           │ 3.4.2          │ Up to date  │
│ tns-ios          │ 3.4.1           │ 3.4.1          │ Up to date  │
└──────────────────┴─────────────────┴────────────────┴─────────────┘

Please note the logcat files and videos from the Test Lab below:

logcat (2).txt
screen video (2)

logcat (1).txt
screen video (1)

logcat.txt
screen video

Firebase Crash Reporting for production app:

image

Pre-launch testing in Firebase Test Lab:

image

image

image

image

image

@sserdyuk
Copy link

sserdyuk commented Apr 2, 2018

@NickIliev Did you see my comment that it is also happening in production? Is that not a concern? It's been 11 days and there's no activity here.

@Plamen5kov
Copy link
Contributor

Hi @sserdyuk
I tried to reproduce the issues you're facing but without steps to reproduce, It's going to be really difficult to help you.
Can you provide us with some sample repo that has better odds of crashing?

@sserdyuk
Copy link

sserdyuk commented Apr 3, 2018

@Plamen5kov Here's logcat from a real device I just recreated it on. I added verbose logging per your instructions in the other issue.

log1.txt

declare function __enableVerboseLogging()
__enableVerboseLogging()

@etabakov
Copy link
Contributor

@sserdyuk I was able to reproduce the issue using your project and we are currently looking for the reason. I will get back when we have any update.

@sserdyuk
Copy link

@etabakov Terrific. Thank you!

@etabakov etabakov self-assigned this Apr 10, 2018
@etabakov
Copy link
Contributor

After some investigation it looks like the problem is related to multiple slide transitions trying to be executed simultaneously and asynchronously.

@NickIliev
Copy link
Author

This issue was moved to NativeScript/NativeScript#5657

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants