-
Notifications
You must be signed in to change notification settings - Fork 158
Can't run test in Android #2526
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
Comments
I found the same issue. Look like patrol not working with other language |
@chihuy105 It seams this is caused by something else, I mean I often get the same error on en_US language. |
Hi, so repro steps are:
|
It happens on every run after 6 or 7 test.
|
@chihuy105 Thanks for answer, last question, can you confirm that GG service has meaning here? If you have emulator with GG service and change language to german test pass? |
Same issue, locale is en_GB, have not tried to set to en_US:
|
Same thing. Worked fine for some time.... Will try downgrading |
@kubicki-4human did it work? @Kendru98 any news on a fix for this issue? |
@shovelmn12 Hi, you also use an emulator without Google play service? There are some other priorities now, but I will forward this to team. |
@Kendru98 I am using an emulator with google play services ... Anyways I am not using patrol anymore too many bugs and issues good luck to you :) |
@chihuy105 @kubicki-4human Hi guys, can you prepare minimal steps for reproduction? I was trying to reproduce this in german, and en_GB, but failed to reproduce. Or at least provide some native methods that fails in specific languages. |
I’m not sure but this could be the problems |
I am constantly having this error when running test in bulk i.e. without specifying a target and when I run the tests specifying the target, id does not fail. It is hard to debug though due to I need to wait about 10-20 tests to run until they fail, and the whole test process crashing. |
Downgrading didn't work, but just using another instance of emulator did. Weird.. |
what instance did you use? |
It might be related to flutter/flutter#81666 |
I think not on my case cause it’s Android |
This is related to UTF8Devcoder.convertChunked which is used framework-wide. |
hey there, I found a workaround for now:
in this way it does not crash the patrol process. |
Thanks let me check |
Same Issue .. Any updates? |
Hi @cljobs, |
Hi @cljobs !
Also it would be very useful for us to know, why your tests failed at this moment (I know, that there is no error log related to your test, but at least tell us what action should be performed in test at the moment of crash) |
jBorkowska please have a look at workaround I described above, it seams that the issue is in Patrol CLI since if you run the test via gradle, i runs all fine. |
@DmytroChuchmaiBarges I read the thread, still we need the information I wrote about to debug it on our own |
I am experiencing this issue on all the Android devices I've tested. This includes a Samsung Galaxy S22, as well as Android 13 and 14 emulators, both with and without Google Play Services. It's Logcat Error
patrol: 3.14.1 Unfortunately, I can't share the code where the error is occurring because it belongs to my company. |
Thanks @cljobs . I'll try to reproduce this error. If you're looking how to solve the error from logcat, check out this (from setup instructions): ![]() |
I try do not modify It's Logcat Error 2025-04-09 10:15:16.648 606-745 ActivityManager system_server I Force stopping debug appid=10219 user=0: finished inst com....android.googlequicksearchbox W Failed to notify listeners java.lang.SecurityException: Caller androidx.test.services:10221 cannot post for pkg androidx.test.services in user 0 (REDACTED) Failed to process cache entry for package(%s). |
Could you post full log from the run? @cljobs |
Also I didn't reproduce the crash with getting this "FlutterError.onError override" so it must be something else |
@jBorkowska Terminal Logresult:
|
From looking at your command I can tell that you don't run the same test twice, so it's not that one The log you posted is not full logcat log from the test execution, only a part with an error. Unfortunately it's not enough information to know why it crashed. Please post whole log or provide a repository where I can reproduce the error (doesn't have to be your project, even better if it's just a sample project where this error occurs) |
@pdenert I think it's related to logs feature, we fixed similar one already but this is not the same (with too long logs bc of a native error) |
maybe I found it..! my project use Logger Package to Log Http Call. |
This is my personal account. During testing, I confirmed that this error occurs when trying to print the response body using the However, although I tried creating an example project, I couldn't determine the exact text that triggers the error exposure. Is it possible to fix the problem where the CLI encounters issues when specific strings are received by modifying the patrol_cli library? |
I see. Maybe it's because the log is too long and CLI fails to print it - we had this problem before. I'll try to fix it on a branch so you can check if it helped |
Steps to reproduce
Setup the patrol. And run the test
Actual results
When run patrol test in android with a Emulator that don't have Google play service (android-34/default/arm64-v8a) in German language
The test going for awhile until it got the issue. It works on IOS side
Logs
Logs
Patrol version
patrol: 3.14.0
patrol_finders: 2.7.0
Patrol Doctor output
Patrol Doctor output
Flutter Doctor output
Flutter Doctor output
The text was updated successfully, but these errors were encountered: