Skip to content

[android] Android.Device_Emulator.JIT.Test failing on emulators with CoreCLR #112633

Description

@ivanpovazan

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=953058
Build error leg or test failing: Android.Device_Emulator.JIT.Test
Found in: #112547

Error log

[21:40:21] dbug: ADBRunner using ADB.exe supplied from /datadisks/disk1/work/C3800A6B/p/microsoft.dotnet.xharness.cli/10.0.0-prerelease.25103.1/tools/net8.0/any/../../../runtimes/any/native/adb/linux/adb
[21:40:21] dbug: Full resolved path:'/datadisks/disk1/work/C3800A6B/p/microsoft.dotnet.xharness.cli/10.0.0-prerelease.25103.1/runtimes/any/native/adb/linux/adb'
[21:40:21] info: Will attempt to find device supporting architectures: 'x86_64'
[21:40:21] dbug: Executing command: '/datadisks/disk1/work/C3800A6B/p/microsoft.dotnet.xharness.cli/10.0.0-prerelease.25103.1/runtimes/any/native/adb/linux/adb start-server'
[21:40:21] dbug: 
[21:40:21] info: Finding attached devices/emulators...
[21:40:21] dbug: Executing command: '/datadisks/disk1/work/C3800A6B/p/microsoft.dotnet.xharness.cli/10.0.0-prerelease.25103.1/runtimes/any/native/adb/linux/adb devices -l'
[21:40:21] dbug: Found 1 possible devices
[21:40:21] dbug: Evaluating output line for device serial: emulator-5554          device product:sdk_phone_x86 model:Android_SDK_built_for_x86 device:generic_x86 transport_id:1
[21:40:21] dbug: Executing command: '/datadisks/disk1/work/C3800A6B/p/microsoft.dotnet.xharness.cli/10.0.0-prerelease.25103.1/runtimes/any/native/adb/linux/adb -s emulator-5554 shell getprop ro.product.cpu.abilist'
[21:40:21] fail: No attached device supports one of required architectures x86_64
[21:40:21] dbug: No suitable devices found
[21:40:21] crit: Failed to find compatible device: x86_64
[21:40:21] dbug: Saving diagnostics data to '/datadisks/disk1/work/C3800A6B/w/B81A09C5/e/diagnostics.json'
XHarness exit code: 81 (DEVICE_NOT_FOUND)
+ exit 81
+ export _commandExitCode=81
+ /usr/bin/python3 -u /datadisks/disk1/work/C3800A6B/w/B81A09C5/u/xharness-event-processor.py
Reporting 1 events from diagnostics file `/datadisks/disk1/work/C3800A6B/w/B81A09C5/e/diagnostics.json`
Analyzing android/test@None (81)
    Encountered DEVICE_NOT_FOUND
    If this occurs repeatedly, please check for architectural mismatch, e.g. sending arm64_v8a APKs to an x86_64 / x86 only queue

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "crit: Failed to find compatible device: x86_64",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=953058
Error message validated: [crit: Failed to find compatible device: x86_64]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 2/17/2025 9:53:47 AM UTC

Report

Build Repository Test Pull Request
1630050 dotnet/runtime System.Xml.Linq.xNodeBuilder.Tests.WorkItemExecution
1626966 dotnet/runtime System.Diagnostics.Tracing.Tests.WorkItemExecution #134359
1620862 dotnet/runtime jit64_5.WorkItemExecution
1596992 dotnet/runtime System.Xml.Linq.Properties.Tests.WorkItemExecution

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 2 4

Activity

  1. added this to the 10.0.0 milestone on Feb 17, 2025
  2. ivanpovazan commented on Feb 17, 2025

    @ivanpovazan
    MemberAuthor

    @kotlarmilos there is a failure on #112547 indicating that for CoreCLR on Android we use a queue which has only x86 emulators, causing the test to fail as we target x64 specifically.

    Do we have queues with x64 emulators only that we could use?

  3. kotlarmilos commented on Feb 17, 2025

    @kotlarmilos
    Member

    I am not aware of a separate queue with x64-only emulators. This failure appears to be machine-specific. In successful runs, there are two emulators available, and one is selected. I assume one is x64 and the other is x86. Here is an example of a successful run: https://helixr1107v0xdcypoyl9e7f.blob.core.windows.net/dotnet-runtime-refs-pull-112625-merge-5c5e4bed3d564f6eb6/Android.Device_Emulator.JIT.Test.Attempt.2/1/console.7eba4a2f.log?helixlogtype=result

    Alternatively, we could restart this specific machine.

    /cc: @matouskozak

  4. matouskozak commented on Feb 17, 2025

    @matouskozak
    Member

    I am not aware of a separate queue with x64-only emulators. This failure appears to be machine-specific. In successful runs, there are two emulators available, and one is selected. I assume one is x64 and the other is x86. Here is an example of a successful run: https://helixr1107v0xdcypoyl9e7f.blob.core.windows.net/dotnet-runtime-refs-pull-112625-merge-5c5e4bed3d564f6eb6/Android.Device_Emulator.JIT.Test.Attempt.2/1/console.7eba4a2f.log?helixlogtype=result

    I think queues with Android API <= 29 have both x64 and x86 simulators installed and it appears that XHarness is trying to connect to both even though we need just the x64 version. I think re-run would make the test pass.

    Alternatively, we could restart this specific machine.

    I think these are VMs but you can try asking in First Responders as it seems that this specific VM is on the top of the failures list (in the past 3 days).

    Image

  5. ivanpovazan commented on Feb 17, 2025

    @ivanpovazan
    MemberAuthor

    I think queues with Android API <= 29 have both x64 and x86 simulators installed

    Yes, I think that is the problem, or better to say that on this particular failure there aren't two emulators installed:

    [21:40:21] dbug: Found 1 possible devices
    [21:40:21] dbug: Evaluating output line for device serial: emulator-5554          device product:sdk_phone_x86 model:Android_SDK_built_for_x86 device:generic_x86 transport_id:1
    [21:40:21] dbug: Executing command: '/datadisks/disk1/work/C3800A6B/p/microsoft.dotnet.xharness.cli/10.0.0-prerelease.25103.1/runtimes/any/native/adb/linux/adb -s emulator-5554 shell getprop ro.product.cpu.abilist'
    [21:40:21] fail: No attached device supports one of required architectures x86_64
    

    Via xharness we:

    I think this host machine just does not have a x64 emulator installed and that is why it fails. The question is, if it is the only host with this problem.

  6. steveisok commented on Feb 20, 2025

    @steveisok
    Member

    @ivanpovazan did anyone raise this with FR? They should be able to go into the machines and determine if it's all installed properly.

  7. ivanpovazan commented on Feb 20, 2025

    @ivanpovazan
    MemberAuthor

    I updated the ErrorMessage pattern to: fail: No attached device supports one of required architectures x86_64 as the previous one was picking up cases when there are no devices at all.

  8. ivanpovazan commented on Feb 20, 2025

    @ivanpovazan
    MemberAuthor

    The problematic machines have been deleted. I suggest monitoring this issue for some time, to see if we catch some other misbehaviors.

  9. removed their assignment
    on Jul 22, 2025
  10. modified the milestones: 10.0.0, 11.0.0 on Aug 6, 2025
  11. mdh1418 commented on Sep 15, 2025

    @mdh1418
    Member

    Hit another instance on #119666
    Console log: 'System.Security.Cryptography.Tests' from job 11bc29de-540f-459c-985d-8372009d0fc6 workitem ae0f0b0e-2256-4d0c-8bcd-1a7091d3e301 (ubuntu.2204.amd64.android.29.open.svc) executed on machine a001SM8 running Linux-6.8.0-1031-azure-x86_64-with-glibc2.35
    Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1146782&view=logs&j=d2662c5d-2295-5cda-9ba6-af0bc2edd8b5&t=36dd21ca-62d0-56c6-8b4b-9b795819c96a

    From the adb diagnostic logs

    [21:49:12] dbug: ADBRunner using ADB.exe supplied from /datadisks/disk1/work/A996091E/p/microsoft.dotnet.xharness.cli/10.0.0-prerelease.25405.1/tools/net8.0/any/../../../runtimes/any/native/adb/linux/adb
    [21:49:12] dbug: Full resolved path:'/datadisks/disk1/work/A996091E/p/microsoft.dotnet.xharness.cli/10.0.0-prerelease.25405.1/runtimes/any/native/adb/linux/adb'
    [21:49:12] info: Will attempt to find device supporting architectures: 'x86_64'
    [21:49:12] dbug: Executing command: '/datadisks/disk1/work/A996091E/p/microsoft.dotnet.xharness.cli/10.0.0-prerelease.25405.1/runtimes/any/native/adb/linux/adb start-server'
    [21:49:13] dbug: 
    [21:49:13] info: Finding attached devices/emulators...
    [21:49:13] dbug: Executing command: '/datadisks/disk1/work/A996091E/p/microsoft.dotnet.xharness.cli/10.0.0-prerelease.25405.1/runtimes/any/native/adb/linux/adb devices -l'
    [21:49:13] dbug: Found 1 possible devices
    [21:49:13] dbug: Evaluating output line for device serial: emulator-5554          device product:sdk_phone_x86 model:Android_SDK_built_for_x86 device:generic_x86 transport_id:1
    [21:49:13] dbug: Executing command: '/datadisks/disk1/work/A996091E/p/microsoft.dotnet.xharness.cli/10.0.0-prerelease.25405.1/runtimes/any/native/adb/linux/adb -s emulator-5554 shell getprop ro.product.cpu.abilist'
    [21:49:13] fail: No attached device supports one of required architectures x86_64
    [21:49:13] dbug: No suitable devices found
    [21:49:13] crit: Failed to find compatible device: x86_64
    [21:49:13] dbug: Saving diagnostics data to '/datadisks/disk1/work/A996091E/w/B5700986/e/diagnostics.json'
    XHarness exit code: 81 (DEVICE_NOT_FOUND)
    
  12. sbomer commented on Oct 15, 2025

    @sbomer
    Member

    Hit the DEVICE_NOT_FOUND failure again in https://dev.azure.com/dnceng-public/public/_build/results?buildId=1175493&view=results. Failure log: https://helixr1107v0xdcypoyl9e7f.blob.core.windows.net/dotnet-runtime-refs-heads-sbomer-naot-androidfa2e9dba3b01454994/System.Xml.Linq.Events.Tests.Attempt.3/1/console.618b10d7.log?helixlogtype=result&skoid=8eda00af-b5ec-4be9-b69b-0919a2338892&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2025-10-15T20%3A39%3A52Z&ske=2025-10-15T21%3A39%3A52Z&sks=b&skv=2024-11-04&sv=2024-11-04&se=2025-10-15T21%3A39%3A52Z&sr=b&sp=rl&sig=ziLLWsEwTbCy8D6Zqq56DnWtUz2xK8qEpdrkSG09fxU%3D

    ++ xharness android test --app System.Xml.Linq.Events.Tests.apk --output-directory /datadisks/disk1/work/B51E0945/w/B9150A16/uploads --timeout 00:30:00 --package-name net.dot.System.Xml.Linq.Events.Tests -v --instrumentation net.dot.MonoRunner
    ++ dotnet exec /datadisks/disk1/work/B51E0945/p/microsoft.dotnet.xharness.cli/10.0.0-prerelease.25475.1/tools/net8.0/any/Microsoft.DotNet.XHarness.CLI.dll android test --app System.Xml.Linq.Events.Tests.apk --output-directory /datadisks/disk1/work/B51E0945/w/B9150A16/uploads --timeout 00:30:00 --package-name net.dot.System.Xml.Linq.Events.Tests -v --instrumentation net.dot.MonoRunner
    + sleep 2280
    + wait 2335
    [10.0.0-prerelease.25475.1+d9aba438cae0eb814085c71dd6caa19e99c8e052] XHarness command issued: android test --app System.Xml.Linq.Events.Tests.apk --output-directory /datadisks/disk1/work/B51E0945/w/B9150A16/uploads --timeout 00:30:00 --package-name net.dot.System.Xml.Linq.Events.Tests -v --instrumentation net.dot.MonoRunner
    [20:17:53] dbug: ADBRunner using ADB.exe supplied from /datadisks/disk1/work/B51E0945/p/microsoft.dotnet.xharness.cli/10.0.0-prerelease.25475.1/tools/net8.0/any/../../../runtimes/any/native/adb/linux/adb
    [20:17:53] dbug: Full resolved path:'/datadisks/disk1/work/B51E0945/p/microsoft.dotnet.xharness.cli/10.0.0-prerelease.25475.1/runtimes/any/native/adb/linux/adb'
    [20:17:53] info: Will attempt to find device supporting architectures: 'x86_64'
    [20:17:53] dbug: Executing command: '/datadisks/disk1/work/B51E0945/p/microsoft.dotnet.xharness.cli/10.0.0-prerelease.25475.1/runtimes/any/native/adb/linux/adb start-server'
    [20:17:53] dbug: 
    [20:17:53] info: Finding attached devices/emulators...
    [20:17:53] dbug: Executing command: '/datadisks/disk1/work/B51E0945/p/microsoft.dotnet.xharness.cli/10.0.0-prerelease.25475.1/runtimes/any/native/adb/linux/adb devices -l'
    [20:17:53] dbug: No attached devices found
                     Exit code: 0
                     Std out:
                     List of devices attached            
    

    ...

    [20:19:24] dbug: All 9 retries of action failed
    [20:19:24] warn: No attached devices / emulators detected. Check that any emulators have been started, and attached device(s) are connected via USB, powered-on, unlocked and authorized.
    [20:19:24] dbug: No suitable devices found
    [20:19:24] crit: Failed to find compatible device: x86_64
    [20:19:24] dbug: Saving diagnostics data to '/datadisks/disk1/work/B51E0945/w/B9150A16/e/diagnostics.json'
    XHarness exit code: 81 (DEVICE_NOT_FOUND)
    
  13. kotlarmilos commented on Oct 16, 2025

    @kotlarmilos
    Member

    Looks like some host machines don't have a x64 emulator installed. I will reach out to engineering team.

  14. modified the milestones: 11.0.0, 12.0.0 on Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions