Uno 5.0 : System.MissingMethodException: Method not found: double Microsoft.UI.Xaml.Thickness.get_Left() #14364
giraudremy
started this conversation in
General
Replies: 1 comment 15 replies
-
Thanks for the report. This is generally caused by a incompatible package included in your project that is targeting Uno 4.x and not Uno 5.x. Which dependencies do you have in your projects? |
Beta Was this translation helpful? Give feedback.
15 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have migrate my Wasm application from Uno 4.10 to 5.0 and at runtime I have controls that have disappeared.
On console windows I can see this
fail: Uno.UI.Dispatching.NativeDispatcher[0] NativeDispatcher unhandled exception System.MissingMethodException: Method not found: double Microsoft.UI.Xaml.Thickness.get_Left() at Microsoft.UI.Xaml.FrameworkElement.InnerMeasureCore(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/FrameworkElement.Layout.crossruntime.cs:line 103 at Microsoft.UI.Xaml.FrameworkElement.MeasureCore(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/FrameworkElement.Layout.crossruntime.cs:line 81 at Microsoft.UI.Xaml.UIElement.Measure(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/UIElement.Layout.crossruntime.cs:line 176 at Microsoft.UI.Xaml.FrameworkElement.MeasureElement(UIElement view, Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/FrameworkElement.cs:line 301 at Microsoft.UI.Xaml.Controls.ItemsPresenter.MeasureOverride(Size size) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/Controls/ItemsControl/ItemsPresenter.cs:line 459 at Microsoft.UI.Xaml.FrameworkElement.InnerMeasureCore(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/FrameworkElement.Layout.crossruntime.cs:line 103 at Microsoft.UI.Xaml.FrameworkElement.MeasureCore(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/FrameworkElement.Layout.crossruntime.cs:line 81 at Microsoft.UI.Xaml.UIElement.Measure(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/UIElement.Layout.crossruntime.cs:line 176 at Microsoft.UI.Xaml.FrameworkElement.MeasureElement(UIElement view, Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/FrameworkElement.cs:line 301 at Microsoft.UI.Xaml.FrameworkElement.MeasureFirstChild(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/FrameworkElement.cs:line 747 at Microsoft.UI.Xaml.Controls.Control.MeasureOverride(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/Controls/Control/Control.cs:line 471 at Microsoft.UI.Xaml.FrameworkElement.InnerMeasureCore(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/FrameworkElement.Layout.crossruntime.cs:line 103 at Microsoft.UI.Xaml.FrameworkElement.MeasureCore(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/FrameworkElement.Layout.crossruntime.cs:line 81 at Microsoft.UI.Xaml.UIElement.Measure(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/UIElement.Layout.crossruntime.cs:line 176 at Microsoft.UI.Xaml.FrameworkElement.MeasureElement(UIElement view, Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/FrameworkElement.cs:line 301 at Microsoft.UI.Xaml.Controls.Border.MeasureOverride(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/Controls/Border/Border.Layout.cs:line 45 at Microsoft.UI.Xaml.FrameworkElement.InnerMeasureCore(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/FrameworkElement.Layout.crossruntime.cs:line 103 at Microsoft.UI.Xaml.FrameworkElement.MeasureCore(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/FrameworkElement.Layout.crossruntime.cs:line 81 at Microsoft.UI.Xaml.UIElement.Measure(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/UIElement.Layout.crossruntime.cs:line 176 at Microsoft.UI.Xaml.FrameworkElement.MeasureElement(UIElement view, Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/FrameworkElement.cs:line 301 at Microsoft.UI.Xaml.Controls.Grid.MeasureCell(UIElement child, CellUnitTypes rowHeightTypes, CellUnitTypes columnWidthTypes, Boolean forceRowToInfinity, Double rowSpacing, Double columnSpacing) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/Controls/Grid/Grid.cs:line 498 at Microsoft.UI.Xaml.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Int32 cellCount, Double rowSpacing, Double columnSpacing, Boolean ignoreColumnDesiredSize, Boolean forceRowToInfinity, CellCacheStackVector& cellCacheVector) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/Controls/Grid/Grid.cs:line 373 at Microsoft.UI.Xaml.Controls.Grid.MeasureOverride(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/Controls/Grid/Grid.cs:line 1043 at Microsoft.UI.Xaml.FrameworkElement.InnerMeasureCore(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/FrameworkElement.Layout.crossruntime.cs:line 103 at Microsoft.UI.Xaml.FrameworkElement.MeasureCore(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/FrameworkElement.Layout.crossruntime.cs:line 81 at Microsoft.UI.Xaml.UIElement.Measure(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/UIElement.Layout.crossruntime.cs:line 176 at Microsoft.UI.Xaml.FrameworkElement.MeasureElement(UIElement view, Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/FrameworkElement.cs:line 301 at Microsoft.UI.Xaml.Controls.Border.MeasureOverride(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/Controls/Border/Border.Layout.cs:line 45 at Microsoft.UI.Xaml.FrameworkElement.InnerMeasureCore(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/FrameworkElement.Layout.crossruntime.cs:line 103 at Microsoft.UI.Xaml.FrameworkElement.MeasureCore(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/FrameworkElement.Layout.crossruntime.cs:line 81 at Microsoft.UI.Xaml.UIElement.Measure(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/UIElement.Layout.crossruntime.cs:line 176 at Microsoft.UI.Xaml.FrameworkElement.MeasureElement(UIElement view, Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/FrameworkElement.cs:line 301 at Microsoft.UI.Xaml.Controls.Grid.MeasureOverride(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/Controls/Grid/Grid.cs:line 1043 at Microsoft.UI.Xaml.FrameworkElement.InnerMeasureCore(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/FrameworkElement.Layout.crossruntime.cs:line 103 at Microsoft.UI.Xaml.FrameworkElement.MeasureCore(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/FrameworkElement.Layout.crossruntime.cs:line 81 at Microsoft.UI.Xaml.UIElement.Measure(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/UIElement.Layout.crossruntime.cs:line 176 at Microsoft.UI.Xaml.FrameworkElement.MeasureElement(UIElement view, Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/FrameworkElement.cs:line 301 at Microsoft.UI.Xaml.Controls.Grid.MeasureCell(UIElement child, CellUnitTypes rowHeightTypes, CellUnitTypes columnWidthTypes, Boolean forceRowToInfinity, Double rowSpacing, Double columnSpacing) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/Controls/Grid/Grid.cs:line 498 at Microsoft.UI.Xaml.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Int32 cellCount, Double rowSpacing, Double columnSpacing, Boolean ignoreColumnDesiredSize, Boolean forceRowToInfinity, CellCacheStackVector& cellCacheVector) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/Controls/Grid/Grid.cs:line 373 at Microsoft.UI.Xaml.Controls.Grid.MeasureOverride(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/Controls/Grid/Grid.cs:line 1043 at Microsoft.UI.Xaml.FrameworkElement.InnerMeasureCore(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/FrameworkElement.Layout.crossruntime.cs:line 103 at Microsoft.UI.Xaml.FrameworkElement.MeasureCore(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/FrameworkElement.Layout.crossruntime.cs:line 81 at Microsoft.UI.Xaml.UIElement.Measure(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/UIElement.Layout.crossruntime.cs:line 176 at Microsoft.UI.Xaml.FrameworkElement.MeasureElement(UIElement view, Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/FrameworkElement.cs:line 301 at Microsoft.UI.Xaml.Controls.Border.MeasureOverride(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/Controls/Border/Border.Layout.cs:line 45 at Microsoft.UI.Xaml.FrameworkElement.InnerMeasureCore(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/FrameworkElement.Layout.crossruntime.cs:line 103 at Microsoft.UI.Xaml.FrameworkElement.MeasureCore(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/FrameworkElement.Layout.crossruntime.cs:line 81 at Microsoft.UI.Xaml.UIElement.Measure(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/UIElement.Layout.crossruntime.cs:line 176 at Microsoft.UI.Xaml.FrameworkElement.MeasureElement(UIElement view, Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/FrameworkElement.cs:line 301 at Microsoft.UI.Xaml.FrameworkElement.MeasureFirstChild(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/FrameworkElement.cs:line 747 at Microsoft.UI.Xaml.Controls.Control.MeasureOverride(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/Controls/Control/Control.cs:line 471 at Microsoft.UI.Xaml.Controls.ContentControl.MeasureOverride(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/Controls/ContentControl/ContentControl.wasm.cs:line 42 at Microsoft.UI.Xaml.FrameworkElement.InnerMeasureCore(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/FrameworkElement.Layout.crossruntime.cs:line 103 at Microsoft.UI.Xaml.FrameworkElement.MeasureCore(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/FrameworkElement.Layout.crossruntime.cs:line 81 at Microsoft.UI.Xaml.UIElement.Measure(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/UIElement.Layout.crossruntime.cs:line 176 at Microsoft.UI.Xaml.FrameworkElement.MeasureElement(UIElement view, Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/FrameworkElement.cs:line 301 at Microsoft.UI.Xaml.Controls.StackPanel.MeasureOverride(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/Controls/StackPanel/StackPanel.Layout.cs:line 52 at Microsoft.UI.Xaml.FrameworkElement.InnerMeasureCore(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/FrameworkElement.Layout.crossruntime.cs:line 103 at Microsoft.UI.Xaml.FrameworkElement.MeasureCore(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/FrameworkElement.Layout.crossruntime.cs:line 81 at Microsoft.UI.Xaml.UIElement.Measure(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/UIElement.Layout.crossruntime.cs:line 176 at Microsoft.UI.Xaml.FrameworkElement.MeasureElement(UIElement view, Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/FrameworkElement.cs:line 301 at Microsoft.UI.Xaml.Controls.StackPanel.MeasureOverride(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/Controls/StackPanel/StackPanel.Layout.cs:line 52 at Microsoft.UI.Xaml.FrameworkElement.InnerMeasureCore(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/FrameworkElement.Layout.crossruntime.cs:line 103 at Microsoft.UI.Xaml.FrameworkElement.MeasureCore(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/FrameworkElement.Layout.crossruntime.cs:line 81 at Microsoft.UI.Xaml.UIElement.Measure(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/UIElement.Layout.crossruntime.cs:line 176 at Microsoft.UI.Xaml.UIElement.Measure(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/UIElement.Layout.crossruntime.cs:line 176 at Microsoft.UI.Xaml.UIElement.Measure(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/UIElement.Layout.crossruntime.cs:line 176 at Microsoft.UI.Xaml.UIElement.Measure(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/UIElement.Layout.crossruntime.cs:line 176 at Microsoft.UI.Xaml.UIElement.Measure(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/UIElement.Layout.crossruntime.cs:line 176 at Microsoft.UI.Xaml.UIElement.Measure(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/UIElement.Layout.crossruntime.cs:line 176 at Microsoft.UI.Xaml.UIElement.Measure(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/UIElement.Layout.crossruntime.cs:line 176 at Microsoft.UI.Xaml.UIElement.Measure(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/UIElement.Layout.crossruntime.cs:line 176 at Microsoft.UI.Xaml.UIElement.Measure(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/UIElement.Layout.crossruntime.cs:line 176 at Microsoft.UI.Xaml.UIElement.Measure(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/UIElement.Layout.crossruntime.cs:line 176 at Microsoft.UI.Xaml.UIElement.Measure(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/UIElement.Layout.crossruntime.cs:line 176 at Microsoft.UI.Xaml.UIElement.Measure(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/UIElement.Layout.crossruntime.cs:line 176 at Microsoft.UI.Xaml.UIElement.Measure(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/UIElement.Layout.crossruntime.cs:line 176 at Microsoft.UI.Xaml.UIElement.Measure(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/UIElement.Layout.crossruntime.cs:line 176 at Microsoft.UI.Xaml.UIElement.Measure(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/UIElement.Layout.crossruntime.cs:line 176 at Microsoft.UI.Xaml.UIElement.Measure(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/UIElement.Layout.crossruntime.cs:line 176 at Microsoft.UI.Xaml.UIElement.Measure(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/UIElement.Layout.crossruntime.cs:line 176 at Microsoft.UI.Xaml.UIElement.Measure(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/UIElement.Layout.crossruntime.cs:line 176 at Microsoft.UI.Xaml.UIElement.Measure(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/UIElement.Layout.crossruntime.cs:line 176 at Microsoft.UI.Xaml.UIElement.Measure(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/UIElement.Layout.crossruntime.cs:line 176 at Microsoft.UI.Xaml.UIElement.Measure(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/UIElement.Layout.crossruntime.cs:line 176 at Microsoft.UI.Xaml.UIElement.Measure(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/UIElement.Layout.crossruntime.cs:line 176 at Microsoft.UI.Xaml.UIElement.Measure(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/UIElement.Layout.crossruntime.cs:line 176 at Microsoft.UI.Xaml.UIElement.Measure(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/UIElement.Layout.crossruntime.cs:line 176 at Microsoft.UI.Xaml.UIElement.Measure(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/UIElement.Layout.crossruntime.cs:line 176 at Microsoft.UI.Xaml.UIElement.Measure(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/UIElement.Layout.crossruntime.cs:line 176 at Microsoft.UI.Xaml.UIElement.Measure(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/UIElement.Layout.crossruntime.cs:line 176 at Microsoft.UI.Xaml.UIElement.Measure(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/UIElement.Layout.crossruntime.cs:line 176 at Microsoft.UI.Xaml.UIElement.Measure(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/UIElement.Layout.crossruntime.cs:line 176 at Microsoft.UI.Xaml.UIElement.Measure(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/UIElement.Layout.crossruntime.cs:line 176 at Microsoft.UI.Xaml.UIElement.Measure(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/UIElement.Layout.crossruntime.cs:line 176 at Microsoft.UI.Xaml.UIElement.Measure(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/UIElement.Layout.crossruntime.cs:line 176 at Microsoft.UI.Xaml.UIElement.Measure(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/UIElement.Layout.crossruntime.cs:line 176 at Microsoft.UI.Xaml.UIElement.Measure(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/UIElement.Layout.crossruntime.cs:line 176 at Microsoft.UI.Xaml.UIElement.Measure(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/UIElement.Layout.crossruntime.cs:line 176 at Microsoft.UI.Xaml.UIElement.Measure(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/UIElement.Layout.crossruntime.cs:line 176 at Microsoft.UI.Xaml.UIElement.Measure(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/UIElement.Layout.crossruntime.cs:line 176 at Microsoft.UI.Xaml.UIElement.Measure(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/UIElement.Layout.crossruntime.cs:line 176 at Microsoft.UI.Xaml.UIElement.Measure(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/UIElement.Layout.crossruntime.cs:line 176 at Microsoft.UI.Xaml.UIElement.Measure(Size availableSize) in /agent/_work/1/s/src/Uno.UI/UI/Xaml/UIElement.Layout.crossruntime.cs:line 171 at Microsoft.UI.Xaml.Window.DispatchInvalidateMeasure() in /agent/_work/1/s/src/Uno.UI/UI/Xaml/Window.wasm.cs:line 92 at Microsoft.UI.Xaml.Window.<InnerInvalidateMeasure>b__78_0() in /agent/_work/1/s/src/Uno.UI/UI/Xaml/Window.wasm.cs:line 68 at Uno.UI.Dispatching.NativeDispatcher.<>c__DisplayClass14_1.<EnqueueOperation>b__0() in /agent/_work/1/s/src/Uno.UI.Dispatching/Native/NativeDispatcher.cs:line 263 at Uno.UI.Dispatching.NativeDispatcher.DispatchItems() in /agent/_work/1/s/src/Uno.UI.Dispatching/Native/NativeDispatcher.cs:line 131
I compile in debug with no linker, What could cause this error?
I have an other issue, but I don't know if it spécific to 5.0 version, but I use this kind of code
` protected DispatcherQueue _dispatcher;
_dispatcher = DispatcherQueue.GetForCurrentThread();
`
When Method1 is not call on UI thread, _dispatcher.HasThreadAccess always return false and I enter a sort of infinite loop which has the effect of increasing the browser's CPU and never call DoSomething.
This work well in WinUI app's.
Thank you for your help.
Beta Was this translation helpful? Give feedback.
All reactions