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] MAUI App Crashes/Freezes on Debugging (iOS & Android) with Real Device #27204

Open
ikeoriaku123 opened this issue Jan 17, 2025 · 4 comments
Labels
platform/android 🤖 platform/iOS 🍎 platform/macOS 🍏 macOS / Mac Catalyst potential-regression This issue described a possible regression on a currently supported version., verification pending s/needs-info Issue needs more info from the author t/bug Something isn't working

Comments

@ikeoriaku123
Copy link

Description

When running a .NET MAUI app on a real iOS or Android device using Visual Studio Code in debug mode, the app runs successfully only after following a strict sequence:

Delete bin and obj folders
Perform a clean build
Restore dependencies
Rebuild the project
Delete the app from the device
Deploy and run the app

However, when attempting to re-run the app without repeating the above steps, the application either crashes on startup or freezes. This forces me to repeat the entire cycle again.

Steps to Reproduce

  1. Run the MAUI app on a real device (iOS/Android) using Visual Studio Code in debug mode.
  2. The app works only after deleting bin/obj, cleaning, restoring, rebuilding, and deleting the app from the device.
  3. Stop debugging and attempt to run the app again.
  4. The app either crashes on launch or freezes.
  5. Repeating the cleanup cycle is necessary for it to work again.

Expected Behavior
The app should run consistently in debug mode without requiring a full clean-up and rebuild every time.
Actual Behavior
The app crashes or freezes unless the cleanup steps are performed before every debug session.

Additional Information
.NET MAUI Version: [Provide your MAUI version]
Visual Studio Code Version: [Provide VS Code version]
Operating System: [Windows/macOS + version]
Target Devices: [iOS version / Android version & model]
Any Exception Logs?: [Attach logs if available]

Link to public reproduction project repository

No response

Version with bug

9.0.14 SR1.4

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

8.0.90 SR9

Affected platforms

iOS, Android, macOS

Affected platform versions

iOS 15.8, iOS 18, Android 10

Did you find any workaround?

The workaround is going through that annoying cycle

Relevant log output

@ikeoriaku123 ikeoriaku123 added the t/bug Something isn't working label Jan 17, 2025
@ikeoriaku123
Copy link
Author

This is also happening in version 9.030

@jfversluis
Copy link
Member

Without any reproduction or logs of any kind it will be impossible for us to determine what might be going on here or where the source of this issue might be.

If you revert back to 8.0.90 SR9 does it then work again? Or is it still broken now in this state? Are you able to test this project on Windows with Visual Studio? Does that show the same behavior? Does it only happen with a certain project or if you start a new project does it happen there as well?

@jfversluis jfversluis added the s/needs-info Issue needs more info from the author label Jan 17, 2025
Copy link
Contributor

Hi @ikeoriaku123. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

@ikeoriaku123
Copy link
Author

@jfversluis I haven't reverted back to 8.0.90 SR9. I still do get the issue with 8.0.90 SR9 but not as frequent as now. The interesting is that I am not seeing any logs or any reason for the crash which makes it more difficult. I have tried deleting and reinstalling visual studio code but to no avail. I cannot use visual studio for mac as it's been retired. Am I the only one experiencing this issue. I know I have seen some complaining but not on github

@ikeoriaku123 ikeoriaku123 reopened this Jan 17, 2025
@samhouts samhouts added platform/macOS 🍏 macOS / Mac Catalyst platform/android 🤖 platform/iOS 🍎 potential-regression This issue described a possible regression on a currently supported version., verification pending labels Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform/android 🤖 platform/iOS 🍎 platform/macOS 🍏 macOS / Mac Catalyst potential-regression This issue described a possible regression on a currently supported version., verification pending s/needs-info Issue needs more info from the author t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants