Skip to content

iOS.Device.Aot.Test crash: crit: System.Exception: Failed to list devices. #4499

Closed
@steveharter

Description

@steveharter

Build

https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=873775

Build leg reported

iOS.Device.Aot.Test.WorkItemExecution

Pull Request

dotnet/runtime#109977

Known issue core information

Fill out the known issue JSON section by following the step by step documentation on how to create a known issue

 {
    "ErrorMessage" : "System.Exception: Failed to list devices.",
    "BuildRetry": false,
    "ErrorPattern": "",
    "ExcludeConsoleLog": false
 }

log


  Xcode: /tmp/helix/working/AEA60A2B/w/A3DB08EF/e/apple_build/AppBundle/iOS.Device.Aot.Test/iOS.Device.Aot.Test.xcodeproj
  App: /tmp/helix/working/AEA60A2B/w/A3DB08EF/e/apple_build/AppBundle/iOS.Device.Aot.Test/Release-iphoneos/iOS.Device.Aot.Test.app
  App moved to: /private/tmp/helix/working/AEA60A2B/w/A3DB08EF/e/iOS.Device.Aot.Test.app/
/private/tmp/helix/working/AEA60A2B/p/dotnet-cli/sdk/9.0.100-rc.2.24474.11/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets(166,5): error NETSDK1045: The current .NET SDK does not support targeting .NET 10.0.  Either target .NET 9.0 or lower, or use a version of the .NET SDK that supports .NET 10.0. Download the .NET SDK from https://aka.ms/dotnet/download [/private/tmp/helix/working/AEA60A2B/w/A3DB08EF/e/publish/ProxyProjectForAOTOnHelix.proj]
Signing bundle /tmp/helix/working/AEA60A2B/w/A3DB08EF/e/iOS.Device.Aot.Test.app
    "/Users/helix-runner/Library/Keychains/signing-certs.keychain-db"
Signing file /tmp/helix/working/AEA60A2B/w/A3DB08EF/e/iOS.Device.Aot.Test.app/iOS.Device.Aot.Test
/tmp/helix/working/AEA60A2B/w/A3DB08EF/e/iOS.Device.Aot.Test.app/iOS.Device.Aot.Test: signed app bundle with Mach-O thin (arm64) [net.dot.iOS.Device.Aot.Test]
Signing file /tmp/helix/working/AEA60A2B/w/A3DB08EF/e/iOS.Device.Aot.Test.app/native/iOS.Device.Aot.Test.o
/tmp/helix/working/AEA60A2B/w/A3DB08EF/e/iOS.Device.Aot.Test.app/native/iOS.Device.Aot.Test.o: signed generic [iOS.Device.Aot.Test]
Signing file /tmp/helix/working/AEA60A2B/w/A3DB08EF/e/iOS.Device.Aot.Test.app
/tmp/helix/working/AEA60A2B/w/A3DB08EF/e/iOS.Device.Aot.Test.app: replacing existing signature
/tmp/helix/working/AEA60A2B/w/A3DB08EF/e/iOS.Device.Aot.Test.app: signed app bundle with Mach-O thin (arm64) [net.dot.iOS.Device.Aot.Test]
[10.0.0-prerelease.24564.1+0ab02377ba48f064551d5231bbdbb0649eb7960c] XHarness command issued: apple run --app /tmp/helix/working/AEA60A2B/w/A3DB08EF/e/iOS.Device.Aot.Test.app --output-directory /tmp/helix/working/AEA60A2B/w/A3DB08EF/uploads --target ios-device --timeout 01:15:00 --xcode /Applications/Xcode_14.3.app -v --launch-timeout 00:05:00 --signal-app-end --expected-exit-code 42 --
[15:58:23] info: Preparing run for ios-device
[15:58:23] info: Looking for available ios-device devices..
[15:58:23] dbug: Looking for available ios-device devices. Storing logs into list-ios-device-20241119_155823.log
[15:58:54] crit: System.Exception: Failed to list devices.
                    at Microsoft.DotNet.XHarness.iOS.Shared.Hardware.HardwareDeviceLoader.LoadDevices(ILog log, Boolean includeLocked, Boolean forceRefresh, Boolean listExtraData, Boolean includeWirelessDevices, CancellationToken cancellationToken) in /_/src/Microsoft.DotNet.XHarness.iOS.Shared/Hardware/HardwareDeviceLoader.cs:line 104
                    at Microsoft.DotNet.XHarness.Apple.DeviceFinder.FindDevice(TestTargetOs target, String deviceName, ILog log, Boolean includeWirelessDevices, Boolean pairedDevicesOnly, CancellationToken cancellationToken) in /_/src/Microsoft.DotNet.XHarness.Apple/DeviceFinder.cs:line 74
                    at Microsoft.DotNet.XHarness.Apple.BaseOrchestrator.OrchestrateOperationInternal(TestTargetOs target, String deviceName, Boolean includeWirelessDevices, Boolean resetSimulator, Boolean enableLldb, GetAppBundleInfoFunc getAppBundle, ExecuteMacCatalystAppFunc executeMacCatalystApp, ExecuteAppFunc executeApp, CancellationToken cancellationToken) in /_/src/Microsoft.DotNet.XHarness.Apple/Orchestration/BaseOrchestrator.cs:line 215
                    at Microsoft.DotNet.XHarness.Apple.BaseOrchestrator.OrchestrateOperation(TestTargetOs target, String deviceName, Boolean includeWirelessDevices, Boolean resetSimulator, Boolean enableLldb, GetAppBundleInfoFunc getAppBundle, ExecuteMacCatalystAppFunc executeMacCatalystApp, ExecuteAppFunc executeApp, CancellationToken cancellationToken) in /_/src/Microsoft.DotNet.XHarness.Apple/Orchestration/BaseOrchestrator.cs:line 96
                    at Microsoft.DotNet.XHarness.Apple.RunOrchestrator.OrchestrateRun(GetAppBundleInfoFunc getAppBundleInfo, TestTargetOs target, String deviceName, TimeSpan timeout, TimeSpan launchTimeout, Int32 expectedExitCode, Boolean includeWirelessDevices, Boolean resetSimulator, Boolean enableLldb, Boolean signalAppEnd, Boolean waitForExit, IReadOnlyCollection`1 environmentalVariables, IEnumerable`1 passthroughArguments, CancellationToken cancellationToken) in /_/src/Microsoft.DotNet.XHarness.Apple/Orchestration/RunOrchestrator.cs:line 221
                    at Microsoft.DotNet.XHarness.CLI.Commands.Apple.AppleAppCommand`1.Invoke(ILogger logger) in /_/src/Microsoft.DotNet.XHarness.CLI/Commands/Apple/AppleAppCommand.cs:line 68
                    at Microsoft.DotNet.XHarness.CLI.Commands.XHarnessCommand`1.Invoke(IEnumerable`1 arguments) in /_/src/Microsoft.DotNet.XHarness.CLI/Commands/XHarnessCommand.cs:line 145
XHarness exit code: 71 (GENERAL_FAILURE)
Removing empty log files:
ls: /tmp/helix/working/AEA60A2B/w/A3DB08EF/uploads/xunit-*.xml: No such file or directory
+ exit_code=71
+ '[' -f /tmp/helix/working/AEA60A2B/w/A3DB08EF/e/.retry ']'
+ '[' -f /tmp/helix/working/AEA60A2B/w/A3DB08EF/e/.reboot ']'
+ exit 71
+ export _commandExitCode=71
+ _commandExitCode=71
+ /usr/local/bin/python3 -u /tmp/helix/working/AEA60A2B/w/A3DB08EF/u/xharness-event-processor.py
WARNING: Diagnostics file not found at `/tmp/helix/working/AEA60A2B/w/A3DB08EF/e/diagnostics.json`
+ /usr/local/bin/python3 /tmp/helix/working/AEA60A2B/p/reporter/run.py https://dev.azure.com/dnceng-public/ public 22795102 eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IjdSd2F5dmlYRHFoZnN6MTZSNmxPbXNXWWxTQSJ9.eyJuYW1laWQiOiJjNzczZjJjMi01MTIwLTQyMDctYWZlMi1hZmFmMzVhOGJjMGEiLCJzY3AiOiJhcHBfdG9rZW4iLCJhdWkiOiJkNjUwMjk0ZC1lNWRkLTRhNTYtOTk0Yy1lNzU3M2ZkN2FlYzIiLCJzaWQiOiJmYWNmYjM3My0yM2Q2LTQ3NGItODM2ZS04ZmVkNmY2MWI2ZWIiLCJCdWlsZElkIjoiY2JiMTgyNjEtYzQ4Zi00YWJiLTg2NTEtOGNkY2I1NDc0NjQ5Ozg3Mzc3NSIsIkRlZklkIjoiMTI5Iiwiam9icmVmIjoiMGJmMDA1M2UtNTU4NC00MGY3LTgzMWItOTFlN2I5ZmFkMGFmOjFhN2YyZDBmLTQwM2YtNWYxYS1hZmJiLTIwNDY2ZDdhYzU0ZSIsInBwaWQiOiJ2c3RmczovLy9CdWlsZC9CdWlsZC84NzM3NzUiLCJvcmNoaWQiOiIwYmYwMDUzZS01NTg0LTQwZjctODMxYi05MWU3YjlmYWQwYWYuYnVpbGQuYnVpbGRfaW9zX2FybTY0X3JlbGVhc2VfYWxsc3Vic2V0c19uYXRpdmVhb3QuX19kZWZhdWx0IiwicmVwb0lkcyI6IiIsImlzcyI6ImFwcC52c3Rva2VuLnZpc3VhbHN0dWRpby5jb20iLCJhdWQiOiJhcHAudnN0b2tlbi52aXN1YWxzdHVkaW8uY29tfHZzbzo2ZmNjOTJlNS03M2E3LTRmODgtOGQxMy1kOTA0NWI0NWZiMjciLCJuYmYiOjE3MzIwNDY3NTMsImV4cCI6MTczMjA1ODc1M30.hfx7goN3TXLyZiN2nyoPxc-T24k6SFkTi6rBCd8--mmIEFavcYDhT9Xt4m4j0i15iN8Y-v3OJ6w-KmKWAvd1knRUD_zPlbPKdiT_-d2hTO-SVFGbppMqYVQluHaqDxyw0Xb7yXYvzlVcBdTF-1cjC9lOXeYKXy2rOid4LF_gldmqorVWwqzpG1mfofE4rgXuhGWUwVQFWZxe0K-9NFJOsS9LiMPfGav5MMyVStZyHiVa_eS3B7CfxwV0SfrwStYM3uXKMKerr_VVDBgajCOc_WwFgtHWbdNxcr9y24GF7Z1VIvzUn1ZfWZGK55e6aWZwU4IZ3vaGoCUi0ttFieuRDA
2024-11-19T20:58:55.190Z	INFO   	run.py	run(48)	main	Beginning reading of test results.
2024-11-19T20:58:55.190Z	INFO   	run.py	__init__(42)	read_results	Searching '/private/tmp/helix/working/AEA60A2B/w/A3DB08EF/e' for test results files
2024-11-19T20:58:55.194Z	INFO   	run.py	__init__(42)	read_results	Searching '/tmp/helix/working/AEA60A2B/w/A3DB08EF/uploads' for test results files
2024-11-19T20:58:55.194Z	WARNING	run.py	__init__(55)	read_results	No results file found in any of the following formats: xunit, junit, trx
2024-11-19T20:58:55.194Z	INFO   	run.py	packing_test_reporter(30)	report_results	Packing 0 test reports to '/tmp/helix/working/AEA60A2B/w/A3DB08EF/e/__test_report.json'
2024-11-19T20:58:55.195Z	INFO   	run.py	packing_test_reporter(33)	report_results	Packed 1565 bytes
+ /usr/local/bin/python3 /tmp/helix/working/AEA60A2B/p/gen-debug-dump-docs.py -buildid 873775 -workitem iOS.Device.Aot.Test -jobid 304f7219-c3d1-4dd4-acbe-36d1ff0dec9a -outdir /tmp/helix/working/AEA60A2B/w/A3DB08EF/uploads -templatedir /tmp/helix/working/AEA60A2B/p -dumpdir /cores -productver 10.0.0
/usr/local/bin/python3: can't open file '/tmp/helix/working/AEA60A2B/p/gen-debug-dump-docs.py': [Errno 2] No such file or directory
+ exit 71
./xharness-runner.apple.sh: line 187: 62166 Killed: 9               sleep "$command_timeout"
['iOS.Device.Aot.Test' END OF WORK ITEM LOG: Command exited with 71]

@dotnet/dnceng

Release Note Category

  • Feature changes/additions
  • Bug fixes
  • Internal Infrastructure Improvements

Release Note Description

Additional information about the issue reported

No response

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=873775
Error message validated: [System.Exception: Failed to list devices.]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 11/20/2024 3:17:36 PM UTC

Report

Build Definition Test Pull Request
875124 dotnet/runtime System.Runtime.Tests.WorkItemExecution dotnet/runtime#104488
875051 dotnet/runtime iOS.Device.LibraryMode.Test.WorkItemExecution dotnet/runtime#110023
874703 dotnet/runtime System.Runtime.Tests.WorkItemExecution dotnet/runtime#110010
874640 dotnet/runtime iOS.Device.ExportManagedSymbols.Test.WorkItemExecution dotnet/runtime#109540
873775 dotnet/runtime iOS.Device.Aot.Test.WorkItemExecution dotnet/runtime#109977

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 5 5

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions