You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
System.Net.WebSockets.Client.Tests crash on OSX Mono #75307
Note: There's is most likely unrelated failure on net7.0-tvOS-Release-arm64-Mono_Release-OSX.1100.Amd64.AppleTV.Open in each of these runs
Failure:
[15:49:31] dbug: Test execution started
[15:49:32] dbug: Test log server listening on: 0.0.0.0:62555
[15:49:32] dbug: Process open exited with 0
[15:49:42] dbug: Test run completed
[15:49:42] dbug: Process log exited with 137
[15:49:42] dbug: Test run started but crashed and no test results were reported
[15:49:42] dbug: No crash reports, waiting 30 seconds for the crash report service...
[15:49:42] dbug: Found 1 new crash report(s)
[15:49:42] dbug: - Adding /Users/helix-runner/Library/Logs/DiagnosticReports/System.Net.WebSockets.Client.Tests-2022-09-02-154941.ips
[15:49:42] dbug: Successfully copied System.Net.WebSockets.Client.Tests-2022-09-02-154941.ips
[15:49:42] fail: Application test run crashed
No test log file was produced
Check logs for more information
[15:49:42] dbug: Saving diagnostics data to '/tmp/helix/working/9A9B08C3/w/AC6B0966/e/diagnostics.json'
XHarness exit code: 80 (APP_CRASH)
As @akoeplinger mentioned, mlaunch is not needed for maccatalyst, since it does not need to be added to a device neither it needs the TCP tunnel. Yet, the stack trace from @steveisok points to an issue when creating the tcp tunnel with an apple tv.
@steveisok there area few things we need to clarify what exactly is happening.
As per logs, there are two different apple tv devices: DNCENGTVOS-091 and DNCENGTVOS-061. Can we have some more info of what are the versions of those devices?
The issue happens when trying to create the tcp tunnel with 3315900bedf22783bd9d2a74d012464b00e0fc99 which is device DNCENGTVOS-061. We need someone to go to the lab and tell use the state of that device. Can we repo the issue with DNCENGTVOS-091 ?
The Xcode version used is Xcode13.app yet the latest stable is 13.4.1 (13F100) we need to verify the version of Xcode is used in the lab. mlaunch has had changes due to issues with the latests Xcodes.
I don't have access to the crash report. Can it be added to the issue?
Lets try to get answer to the above to keep looking into issues.
so it is listing two devices, but only the one directly attached has IsPaired=true. @premun can we filter out devices that are not paired?
I tried shutting down DNCENGTVOS-091 via mlaunch but looks like it just rebooted, though it doesn't show up on the other Macs for now so we should see some improvement.
Activity
karelz commentedon Sep 8, 2022
@akoeplinger @steveisok this is blocking clean CI -- happens 5x per day. Can you please look into it ASAP? Thanks!
steveisok commentedon Sep 8, 2022
Looks like it's an mlaunch issue that can't start the app. We'll need to figure out how widespread this is.
steveisok commentedon Sep 9, 2022
@mandel-macaque We haven't bumped xharness/mlaunch in runtime yet. Is this an mlaunch problem or with devices?
https://helixre107v0xdeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-heads-main-9747453e45bd47beab/System.Net.WebSockets.Client.Tests/1/console.83d2be01.log?helixlogtype=result
karelz commentedon Sep 9, 2022
Note: It happens also in 7.0 branch -- Rolling run 9064 on 9/8 AM (release/7.0) ... so perhaps it is something environmental? Or some shared infra?
akoeplinger commentedon Sep 9, 2022
The MacCatalyst failures shouldn't be related to mlaunch since afaik we don't use mlaunch to run Catalyst apps.
Fix WebSockets.Client.ConnectTest crash for apple mobile platforms
mandel-macaque commentedon Sep 9, 2022
As @akoeplinger mentioned, mlaunch is not needed for maccatalyst, since it does not need to be added to a device neither it needs the TCP tunnel. Yet, the stack trace from @steveisok points to an issue when creating the tcp tunnel with an apple tv.
@steveisok there area few things we need to clarify what exactly is happening.
Lets try to get answer to the above to keep looking into issues.
akoeplinger commentedon Sep 9, 2022
I looked at this together with @mandel-macaque and the
Read Error (error: 0xe8000004)is because mlaunch is trying to connect to the wrong device.fff44:c6:5d:6d:09:3afffisDNCENGTVOS-091which is attached toDNCENGMAC091, but we're running onDNCENGMAC061!It looks like somehow Wifi got turned on on DNCENGTVOS-091 and that causes it to be visible on the wrong machine.
mlaunch --listdev --output-format=xmlgets this:so it is listing two devices, but only the one directly attached has IsPaired=true. @premun can we filter out devices that are not paired?
I tried shutting down DNCENGTVOS-091 via mlaunch but looks like it just rebooted, though it doesn't show up on the other Macs for now so we should see some improvement.
mandel-macaque commentedon Sep 9, 2022
@akoeplinger if @premun does not have the time, I can take a quick look, that should be a simple fix in xharness.
Fix WebSockets.Client.ConnectTest crash for apple mobile platforms (#…
Fix WebSockets.Client.ConnectTest crash for apple mobile platforms
premun commentedon Sep 12, 2022
That's a nice find @akoeplinger! Fix is here: dotnet/xharness#946
Fix WebSockets.Client.ConnectTest crash for apple mobile platforms (#…
steveisok commentedon Sep 12, 2022
The tweak to make the app not crash has been merged into both main and 7.0
karelz commentedon Sep 12, 2022
Fixed in main (8.0) in PR #75344 and in 7.0 (RC2) in PR #75423
premun commentedon Sep 13, 2022
@akoeplinger @mandel-macaque looking at the logs, we already tell mlaunch to not list wireless devices so this might be a bug in mlaunch too:
notice the
--list-wireless-devices=false