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

No compatible code running on the thread #12635

Closed
sitecompass opened this issue Jun 16, 2023 · 7 comments
Closed

No compatible code running on the thread #12635

sitecompass opened this issue Jun 16, 2023 · 7 comments
Assignees
Labels
area/external Categorizes an issue or PR as being external to the Uno difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification

Comments

@sitecompass
Copy link

Current behavior

Using MVVM Toolkit, and Command, add a button to the xaml, bind the button to the command and place a breakpoint within the code. Then debug on either emulator of physical device and an this error comes up:

image

Expected behavior

Break point should be hit

UnoApp4.zip

How to reproduce it (as minimally and precisely as possible)

No response

Workaround

None

Works on UWP/WinUI

Yes

Environment

Uno.UI.RemoteControl / Uno.WinUI.RemoteControl

NuGet package version(s)

No response

Affected platforms

Android

IDE

Visual Studio 2022

IDE version

17.6.3

Relevant plugins

None

Anything else we need to know?

No response

@sitecompass sitecompass added difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification labels Jun 16, 2023
@sitecompass
Copy link
Author

Ok, I have an update, when trying this on an earlier version of Visual Studio (17.4.8) the issue is no longer happening.

This then appears to be a Uno Platform / Visual Studio 17.6.3 (also tried .2) issue as MAUI does not have this issue either

@Youssef1313
Copy link
Member

Youssef1313 commented Jun 16, 2023

This seems like a Visual Studio bug.

People are complaining in https://stackoverflow.com/questions/76337441/xamarin-forms-breakpoint-not-hit-on-android-no-compatible-code-running-on-the-t in 17.6 as well and not related to Uno Platform.

I can't find any vsfeedback item for this though.

Stack Overflow
When I put a breakpoint on an event function on any project, even on a project I just created. I get: No compatible code running on the thread This happens only on Android projects, on Uwp projects...

@Youssef1313 Youssef1313 added the area/external Categorizes an issue or PR as being external to the Uno label Jun 16, 2023
@NalonAu
Copy link

NalonAu commented Jun 17, 2023

Thanks @Youssef1313. Yeah I got the opinion of it being Uno related only because it doesn't happen with MAUI. Seeing that stack overflow link it does appear to be maybe more of an issue with Visual Studio and Xamarin platforms (including Uno Platform).

I'm actually surprised this issue hasn't become more public considering how blocking it can be.

@jeromelaban jeromelaban self-assigned this Jun 22, 2023
@MCAleckson
Copy link

This bug is now stopping my team as well. Flying blind without the ability to debug...

@NalonAu
Copy link

NalonAu commented Jun 30, 2023

This bug is now stopping my team as well. Flying blind without the ability to debug...

Hey, so the only way I was able to get around this was to roll back visual studio to 17.4.8. hopefully this gets fixed soon. This issue doesn't happen with MAUI but does affect Xamarin/Uno projects

@Youssef1313
Copy link
Member

Youssef1313 commented Jul 5, 2023

@jeromelaban
Copy link
Member

The issue on VS community has been marked as in the process of being published.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/external Categorizes an issue or PR as being external to the Uno difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification
Projects
None yet
Development

No branches or pull requests

5 participants