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

[IOS] Maui .NET 8 (VS 2022 17.9.6) The app has been terminated when start debugging #22330

Closed
MaheshTFS opened this issue May 10, 2024 · 7 comments
Labels
area-tooling XAML & C# Hot Reload, XAML Editor, Live Visual Tree, Live Preview, Debugging platform/iOS 🍎 s/move-to-vs-feedback Tells automation to ask the person to use VS Feedback to report the issue t/bug Something isn't working

Comments

@MaheshTFS
Copy link

Description

Default template MAUI app debug is crashing after splash screen on iPhone (iOS 15.8.2)
"The app has been terminated."

Steps to Reproduce

  1. Default MAUI app.
  2. Debug it on iOS device.

Link to public reproduction project repository

No response

Version with bug

8.0.21 SR4.1

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

iOS 15.8.2

Did you find any workaround?

No

Relevant log output

The app has been terminated.
@MaheshTFS MaheshTFS added the t/bug Something isn't working label May 10, 2024
Copy link
Contributor

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@PureWeen PureWeen added s/move-to-vs-feedback Tells automation to ask the person to use VS Feedback to report the issue area-tooling XAML & C# Hot Reload, XAML Editor, Live Visual Tree, Live Preview, Debugging labels May 10, 2024
@alex-dubatov
Copy link

alex-dubatov commented May 13, 2024

Has the same issue.

Trying to debug (throught usb) maui app on IPad (5th generation, IOS 16.7.7) using Visual Studio 17.9.6 on Windows.
Output log on first my computer:

The app has been terminated

Output log on second my computer:

13:03:11:977	Loaded assembly: /private/var/containers/Bundle/Application/65DE3163-8BF3-4911-839A-762447AB7D13/MauiExample.app/System.Private.CoreLib.dll [External]
13:03:12:032	Loaded assembly: /private/var/containers/Bundle/Application/65DE3163-8BF3-4911-839A-762447AB7D13/MauiExample.app/Microsoft.iOS.dll [External]
13:03:12:032	Loaded assembly: /private/var/containers/Bundle/Application/65DE3163-8BF3-4911-839A-762447AB7D13/MauiExample.app/System.Runtime.dll [External]
13:03:12:032	Loaded assembly: /private/var/containers/Bundle/Application/65DE3163-8BF3-4911-839A-762447AB7D13/MauiExample.app/System.Collections.dll [External]
13:03:12:095	Loaded assembly: /private/var/containers/Bundle/Application/65DE3163-8BF3-4911-839A-762447AB7D13/MauiExample.app/System.Runtime.InteropServices.dll [External]
13:03:12:095	Loaded assembly: /private/var/containers/Bundle/Application/65DE3163-8BF3-4911-839A-762447AB7D13/MauiExample.app/System.Threading.Thread.dll [External]
13:03:12:159	Loaded assembly: /private/var/containers/Bundle/Application/65DE3163-8BF3-4911-839A-762447AB7D13/MauiExample.app/System.Threading.dll [External]
13:03:12:256	Loaded assembly: /private/var/containers/Bundle/Application/65DE3163-8BF3-4911-839A-762447AB7D13/MauiExample.app/System.Net.Http.dll [External]
13:03:12:316	Loaded assembly: /private/var/containers/Bundle/Application/65DE3163-8BF3-4911-839A-762447AB7D13/MauiExample.app/System.Net.Primitives.dll [External]
13:03:13:051	Loaded assembly: /private/var/containers/Bundle/Application/65DE3163-8BF3-4911-839A-762447AB7D13/MauiExample.app/System.Numerics.Vectors.dll [External]
13:03:22:632	Loaded assembly: /private/var/containers/Bundle/Application/65DE3163-8BF3-4911-839A-762447AB7D13/MauiExample.app/System.Net.Sockets.dll [External]
13:03:22:686	Loaded assembly: /private/var/containers/Bundle/Application/65DE3163-8BF3-4911-839A-762447AB7D13/MauiExample.app/System.Drawing.Primitives.dll [External]
13:03:22:686	Loaded assembly: /private/var/containers/Bundle/Application/65DE3163-8BF3-4911-839A-762447AB7D13/MauiExample.app/System.Private.Uri.dll [External]
13:03:31:844	The app has been terminated

@bzd3y
Copy link

bzd3y commented May 15, 2024

This seems like a duplicate of #11392.

@MaheshTFS @alex-dubatov I listed some things that might be able to help get around this here: #11392 (comment)

@alex-dubatov
Copy link

@bzd3y Thanks for the advice! Nothing helps.

Build log:

11:50:52:600	1>------ Deploy started: Project: MauiExample, Configuration: Debug Any CPU ------
11:50:52:654	1>Starting deploy 'MauiExample' into the device 'iPad (Pro) - real'...
11:50:52:717	1>Deploying 'MauiExample.app' into the device 'iPad (Pro) - real'...
11:51:12:591	1>Deploy succeeded. The app 'MauiExample.app' has been successfully deployed on iPad (Pro) - real.
11:51:12:601	========== Deploy: 1 succeeded, 0 failed, 0 skipped ==========
11:51:12:601	========== Deploy completed at 11:51 AM and took 20.027 seconds ==========
11:51:12:865	Launching 'MauiExample' on 'iPad (Pro) - real'...
11:51:12:946	Connecting iOS Debugger to 'iPad (Pro) - real' over USB on port 10000...
11:51:15:493	Connected iOS Debugger to 'iPad (Pro) - real' over USB on port 10000
11:51:15:493	Connecting iOS Debugger to 'iPad (Pro) - real' over USB on port 10000...
11:51:15:493	Connecting iOS Debugger to 'iPad (Pro) - real' over USB on port 10000...
11:51:15:493	Connected iOS Debugger to 'iPad (Pro) - real' over USB on port 10000
11:51:15:493	Reading from debug console stream...
11:51:15:493	Reading from device stream...
11:51:15:493	Reading from machine (TCP) stream...
11:51:15:493	Connected iOS Debugger to 'iPad (Pro) - real' over USB on port 10000
11:51:15:493	Connected IDB.Local to Debugger port 55968
11:51:15:493	Please launch the application 'MauiExample' on the device 'iPad (Pro) - real' to continue. For the first launch, if the application does not show up, please reboot your device.
11:51:35:805	Closing debug communication from device stream
11:51:35:819	Error writting to debug stream. Details: Cannot access a disposed object.
11:51:35:819	Object name: 'AppleDeviceUsbStream'.
11:51:35:907	Closing debug communication from machine (TCP)
11:51:35:907	Cannot read from machine (TCP) stream anymore...

@emaf
Copy link
Contributor

emaf commented May 17, 2024

@alex-dubatov from the build output I see you are using Hot Restart (iOS device connected directly to Windows). As this is a tooling issue, could you report it from inside VS -> Help -> Send Feedback -> Report a problem

@MaheshTFS Are you also trying to debug using Hot Restart by plugging your device to your Windows PC?

@emaf
Copy link
Contributor

emaf commented May 20, 2024

@alex-dubatov If you haven't done already, could you please upvote it?

I'm closing this in favor of the issue you linked.

@emaf emaf closed this as completed May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-tooling XAML & C# Hot Reload, XAML Editor, Live Visual Tree, Live Preview, Debugging platform/iOS 🍎 s/move-to-vs-feedback Tells automation to ask the person to use VS Feedback to report the issue t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants