Skip to content

BUTTON no longer respond to click in debug #23501

Closed as duplicate
Closed as duplicate

Description

@Xiaoy312

Current behavior 🐛

^ title

Image `` just stopped working in recent update... Click event wont fire. not sure if relevant, on pointer-over/leave or click (visual state changes), there is these exceptions (always in pair):
call stack
00 uno000_BindingPathItemWtf.Program.Main(args) Line 20
01 Uno.UI.Hosting.UnoPlatformHost.Run() Line 22
02 Uno.UI.Hosting.UnoPlatformHost.RunCore() Line 17
03 Uno.UI.Runtime.Skia.Win32.Win32Host.RunLoop()	Unknown
04 Uno.UI.Runtime.Skia.Win32.Win32EventLoop.RunOnce()	Unknown
05 Windows.Win32.PInvoke.GetMessage(lpMsg, hWnd, wMsgFilterMin, wMsgFilterMax)	Unknown
06 Windows.Win32.PInvoke.GetMessage(lpMsg, hWnd, wMsgFilterMin, wMsgFilterMax)	Unknown
07 [Managed to Native Transition]	
08 [Native to Managed Transition]	
09 Uno.UI.Runtime.Skia.Win32.Win32WindowWrapper.WndProc(hwnd, msg, wParam, lParam)	Unknown
10 Uno.UI.Runtime.Skia.Win32.Win32WindowWrapper.WndProcInner(hwnd, msg, wParam, lParam)	Unknown
11 Uno.UI.Runtime.Skia.Win32.Win32WindowWrapper.OnWmActivate(wParam, lParam)	Unknown
12 Uno.UI.Xaml.Controls.NativeWindowWrapperBase.ActivationState.set(value) Line 119
13 Uno.UI.Xaml.Controls.BaseWindowImplementation.OnNativeActivationChanged(sender, state) Line 231
14 Uno.UI.Xaml.Controls.BaseWindowImplementation.OnActivationStateChanged(state) Line 253
15 Uno.UI.Xaml.Controls.BaseWindowImplementation.RaiseActivated(args) Line 49
16 Uno.UI.Xaml.Controls.WindowChrome.OnActivate(sender, e) Line 97
17 Microsoft.UI.Xaml.VisualStateManager.GoToState(control, stateName, useTransitions) Line 197
18 Microsoft.UI.Xaml.VisualStateManager.GoToStateCore(control, templateRoot, stateName, group, state, useTransitions) Line 201
19 Microsoft.UI.Xaml.VisualStateManager.GoToStateCorePrivateBaseImplementation(control, group, state, useTransitions) Line 234
20 Microsoft.UI.Xaml.VisualStateGroup.GoToState(element, state, useTransitions, onStateChanged) Line 340
21 Microsoft.UI.Xaml.VisualStateGroup.ClearPropertiesNotSetInNextState(element, prevSetters, prevAnimation, nextSetters, nextAnimation) Line 464
22 System.Linq.Enumerable.Any<Uno.UI.DataBinding.BindingPath>(source, predicate)	Unknown
23 Microsoft.UI.Xaml.VisualStateGroup.ClearPropertiesNotSetInNextState.AnonymousMethod__0(path) Line 465
24 Uno.UI.DataBinding.BindingPath.PrefixOfOrEqualTo(that) Line 318
25 Uno.UI.DataBinding.BindingPath.BindingItem.Equals(that) Line 525
26 Uno.UI.DataBinding.BindingPath.BindingItem.Equals.__ComparePropertyName|61_0(name1, name2) Line 542
27 System.Runtime.CompilerServices.RuntimeHelpers.CreateSpan<char>(fldHandle)	Unknown
28 System.Runtime.CompilerServices.RuntimeHelpers.GetSpanDataFrom(fldHandle, targetTypeHandle, count)	Unknown
29 [System.ArgumentException thrown]	

Expected behavior 🎯

^ should NEVER happen

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

uno000_BindingPathItemWtf.zip

  • launch the app in visual studio with 'Start Debugging (F5)'
  • click the button

Workaround 🛠️

Start Without Debugging (Ctrl+F5)...
or
Debugging → General → uncheck "Suppress JIT optimization on module load (Managed only)

Renderer 🎨

  • Skia
  • Native

Affected platforms 📱💻🖥️

Desktop (Windows)

Uno.Sdk version (and other relevant versions) 📦

[email protected]

IDE version 🧑‍💻

No response

Anything else we need to know? 💬

No response

Activity

  1. added theissue type on Jun 18, 2026
  2. added
    triage/untriaged
    on Jun 18, 2026
  3. agneszitte commented on Oct 22, 2026

    @agneszitte
    Member

    @Xiaoy312 found the cause of this one. The 6.7 build of Uno.UI.dll stores some constant data at unaligned addresses, and the .NET runtime checks that alignment only when the debugger turns JIT optimizations off. That's why buttons stopped responding under F5 but not under Ctrl+F5.

    Everything is now tracked in #25626: the repro, the workarounds, and which IDEs and versions are affected.

    Closing this as a duplicate of #25626.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    triage/untriaged

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions