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

App doesn't stop in Visual Studio Code #9522

Open
satial-interfaces opened this issue Nov 23, 2022 · 4 comments
Open

App doesn't stop in Visual Studio Code #9522

satial-interfaces opened this issue Nov 23, 2022 · 4 comments

Comments

@satial-interfaces
Copy link

When running an Avalonia 11 preview 4 desktop app in debug mode from Visual Studio Code, exiting it (the app) will not terminate it. It hangs in one of the threads (it seems). This does not happen if running the app from the command line in debug mode. The app needs to be force closed to be able to shut it down.

To Reproduce, do the following

  1. Create the app-mvvm template-based app
  2. Replace the 0.10.18 references with 11.0.0-preview4
  3. Run it
  4. Close it
  5. It keeps running

Expected behavior: it should terminate the app properly and give back result 0.

  • OS: macOS Ventura (on Apple Silicon)
  • Version 11.0.0-preview4
  • Visual Studio Code 1.73.1
@maxkatz6
Copy link
Member

It hangs in one of the threads (it seems)

Can you show the stacktrace of this thread? It's possible on Visual Studio and Rider, not sure about others.

@satial-interfaces
Copy link
Author

Yes, I can get a stack trace in Visual Studio Code. But: all threads are running, and cannot be paused when exiting the 11.0 app. It can only be terminated. I've tried Rider (2022.3 EAP 8), but the same issue is there as well. All threads are running and cannot be paused.

Maybe someone can check this on Windows? It might be a platform problem.

@timunie
Copy link
Contributor

timunie commented Nov 24, 2022

I wonder if anything else is missing or wrong. I think it would be great if you can share your project with us. So we can check it on our own.

@satial-interfaces
Copy link
Author

app-mvvm.zip

I've attached the demo project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants