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

[BUG] Debugger Crashes When Starting Camera with .NET MAUI Extension #1736

Open
t-satake opened this issue Jan 23, 2025 · 0 comments
Open

[BUG] Debugger Crashes When Starting Camera with .NET MAUI Extension #1736

t-satake opened this issue Jan 23, 2025 · 0 comments
Assignees
Labels
area-dotnet-debugging Issues around .NET Debugging with console, ASP.NET, or Aspire area-maui bug Something isn't working vs-sync Add this label to synchronize the issue to AzDo vs-syncd Linked to AzDO

Comments

@t-satake
Copy link

t-satake commented Jan 23, 2025

Describe the Issue

When debugging an iOS app using the .NET MAUI extension in Visual Studio Code, the debugger crashes when starting the camera.
This issue does not occur when maui.configuration.experimental.useVSDbg is set to false.
However, since this option was deprecated in version 1.7.x, it can no longer be avoided.
In version 1.6.x, this option works, so there is no problem.

Here is the video of the issue:

CameraAppCrash.mp4

Here is the error log of the issue:

xcrun devicectl -j /var/folders/p5/s8qp61mx76ddz1__gps5ghph0000gn/T/tmp5SoqvQ.tmp device info processes --device XXXXXXXX-YYYYYYYYYYYYYYYY --filter "executable.path == '/private/var/containers/Bundle/Application/E0D12346-E2BC-4F0A-94B6-556C936A811B/CrashOnCapture.app/CrashOnCapture'"
16:35:09  Acquired tunnel connection to device.
16:35:09  Enabling developer disk image services.
16:35:10  Acquired usage assertion.
ERROR: An error occurred while communicating with a remote process. (com.apple.dt.CoreDeviceError error 3 (0x03))
       ----------------------------------------
           The connection was invalidated. (com.apple.Mercury.error error 1001 (0x3E9))
           XPCConnectionDescription = <RemoteXPCPeerConnection 0x600001df03c0> { <remote connection: 0x11560b140> { type = preconnected, state = canceled, remote service name = (null), server mode = 0, protocol version number = 1, protocol feature flags = 0x6, local service version = 0, remote service version = 0, traffic class = 0, (root, reply) helo received = (1, 1), next msg id = 29, first msg id = 1, send in progress = 0, preexisting socket = -1 }
error MT1045: Failed to execute 'devicectl': 'devicectl -j /var/folders/p5/s8qp61mx76ddz1__gps5ghph0000gn/T/tmp5SoqvQ.tmp device info processes --device XXXXXXXX-YYYYYYYYYYYYYYYY --filter "executable.path == '/private/var/containers/Bundle/Application/E0D12346-E2BC-4F0A-94B6-556C936A811B/CrashOnCapture.app/CrashOnCapture'"' returned the exit code 1.
error MT1046: Additional output: xcrun devicectl -j /var/folders/p5/s8qp61mx76ddz1__gps5ghph0000gn/T/tmp5SoqvQ.tmp device info processes --device XXXXXXXX-YYYYYYYYYYYYYYYY --filter "executable.path == '/private/var/containers/Bundle/Application/E0D12346-E2BC-4F0A-94B6-556C936A811B/CrashOnCapture.app/CrashOnCapture'"
error MT1046: Additional output: 16:35:09  Acquired tunnel connection to device.
error MT1046: Additional output: 16:35:09  Enabling developer disk image services.
error MT1046: Additional output: 16:35:10  Acquired usage assertion.
error MT1046: Additional output: ERROR: An error occurred while communicating with a remote process. (com.apple.dt.CoreDeviceError error 3 (0x03))
error MT1046: Additional output:        ----------------------------------------
error MT1046: Additional output:            The connection was invalidated. (com.apple.Mercury.error error 1001 (0x3E9))
error MT1046: Additional output:            XPCConnectionDescription = <RemoteXPCPeerConnection 0x600001df03c0> { <remote connection: 0x11560b140> { type = preconnected, state = canceled, remote service name = (null), server mode = 0, protocol version number = 1, protocol feature flags = 0x6, local service version = 0, remote service version = 0, traffic class = 0, (root, reply) helo received = (1, 1), next msg id = 29, first msg id = 1, send in progress = 0, preexisting socket = -1 }
プログラム 'CrashOnCapture.dll' がコード 0 (0x0) で終了しました。

XXXXXXXX-YYYYYYYYYYYYYYYY is my device id.

Steps To Reproduce

  1. Open the camera app and start MediaPicker.Default.CapturePhotoAsync.
  2. Repeatedly take photos.
  3. The debugger disconnects from the device, and the debugger session ends.

This issue can be reproduced in the following repository:
https://github.com/t-satake/CrashOnCapture.git

Expected Behavior

  1. Open the camera app and start MediaPicker.Default.CapturePhotoAsync.
  2. Repeatedly take photos.
  3. Successfully complete the photo capture without disconnecting.

Environment Information

  • MacOS Sonoma / Sequoia
  • Apple M1 Pro / M4 Pro
  • iPhone SE2 (iOS 17.7.1 / 18.2.1)
  • Xcode 15.4
  • VS Code 1.96.4
  • Extension version 1.7.12

| VS Bug 2352347

@t-satake t-satake added the bug Something isn't working label Jan 23, 2025
@webreidi webreidi added area-dotnet-debugging Issues around .NET Debugging with console, ASP.NET, or Aspire area-maui labels Jan 23, 2025
@mauroa mauroa self-assigned this Jan 23, 2025
@mauroa mauroa added the vs-sync Add this label to synchronize the issue to AzDo label Jan 23, 2025
@AllenD-MSFT AllenD-MSFT added the vs-syncd Linked to AzDO label Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-dotnet-debugging Issues around .NET Debugging with console, ASP.NET, or Aspire area-maui bug Something isn't working vs-sync Add this label to synchronize the issue to AzDo vs-syncd Linked to AzDO
Projects
None yet
Development

No branches or pull requests

4 participants