calling thread cannot access this object because a different thread owns it

1
Getting this error after updating the widgets and replacing all the charts in the UI in polarion connector sample app.Does anyone have any clue about how to solve this? Thanks in advance. System.InvalidOperationException: The calling thread cannot access this object because a different thread owns it.    at System.Windows.Threading.Dispatcher.VerifyAccess()    at System.Windows.Media.Imaging.BitmapDecoder.get_IsDownloading()    at System.Windows.Media.Imaging.BitmapFrameDecode.get_InternalMetadata()    at System.Windows.Media.Imaging.BitmapFrameDecode.get_Metadata()    at System.Windows.Media.Imaging.BitmapFrame.Create(BitmapSource source)    at Eto.Wpf.Drawing.BitmapHandler.Save(Stream stream, ImageFormat format)    at Eto.Drawing.Bitmap.Save(Stream stream, ImageFormat format)    at Eto.Drawing.Bitmap.ToByteArray(ImageFormat imageFormat)    at Mendix.Modeler.Theming.ImageConverter.<>c__DisplayClass2_0.<ToByteArray>b__0() in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Theming\ImageConverter.cs:line 74    at Eto.Forms.Application.<>c__DisplayClass63_0`1.<Invoke>b__0()    at System.Windows.Threading.DispatcherOperation.InvokeDelegateCore()    at System.Windows.Threading.DispatcherOperation.InvokeImpl() --- End of stack trace from previous location ---    at System.Windows.Threading.DispatcherOperation.Wait(TimeSpan timeout)    at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherOperation operation, CancellationToken cancellationToken, TimeSpan timeout)    at System.Windows.Threading.Dispatcher.Invoke(Action callback, DispatcherPriority priority, CancellationToken cancellationToken, TimeSpan timeout)    at System.Windows.Threading.Dispatcher.Invoke(Action callback)    at Eto.Forms.Application.Invoke[T](Func`1 func)    at Mendix.Modeler.Theming.ImageConverter.ToByteArray(Image image) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Theming\ImageConverter.cs:line 74    at Mendix.Modeler.CodeActions.MicroflowActionInfoExtensions.ParseToEtoImage(Byte[] bytes, MicroflowActionInfo microflowActionInfo, CodeActionBitmapType type, Theme theme) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core\CodeActions\MicroflowActionInfoExtensions.cs:line 58    at Mendix.Modeler.CodeActions.MicroflowActionInfoExtensions.GetBitmap(MicroflowActionInfo microflowActionInfo, CodeActionBitmapType type) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core\CodeActions\MicroflowActionInfoExtensions.cs:line 44    at Mendix.Modeler.CodeActions.MicroflowActionInfoExtensions.GetIcon(MicroflowActionInfo microflowActionInfo, Nullable`1 theme) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core\CodeActions\MicroflowActionInfoExtensions.cs:line 20    at Mendix.Modeler.Microflows.View.ExposedActions.ExposedMicroflowCallActionMicroflowActionProvider.CreateMicroflowActionType(Microflow exposedAction) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Microflows.View\ExposedActions\ExposedMicroflowCallActionMicroflowActionProvider.cs:line 25    at Mendix.Modeler.Microflows.View.ExposedActions.ExposedMicroflowActionProvider`1.CreateTypes() in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Microflows.View\ExposedActions\ExposedMicroflowActionProvider.cs:line 46    at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)    at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)    at System.Lazy`1.CreateValue()    at Mendix.Modeler.Microflows.Actions.MicroflowActionProvider.get_Types() in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Microflows\Actions\MicroflowActionProvider.cs:line 24    at Mendix.Modeler.Microflows.Actions.MicroflowActionManager.<>c.<GetTypes>b__7_0(IMicroflowActionProvider c) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Microflows\Actions\MicroflowActionManager.cs:line 39    at System.Linq.Enumerable.SelectManySingleSelectorIterator`2.MoveNext()    at System.Collections.Generic.HashSet`1.UnionWith(IEnumerable`1 other)    at System.Collections.Generic.HashSet`1..ctor(IEnumerable`1 collection, IEqualityComparer`1 comparer)    at Mendix.Modeler.Utility.EnumerableUtil.ToSet[T](IEnumerable`1 enumerable) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Utility\EnumerableUtil.cs:line 54    at Mendix.Modeler.Microflows.Actions.MicroflowActionManager.GetTypes(String categoryName) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Microflows\Actions\MicroflowActionManager.cs:line 39    at Mendix.Modeler.Microflows.View.MicroflowEditor.<CollectTools>b__96_0(IMicroflowActionCategory category) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Microflows.View\MicroflowEditor.cs:line 808    at System.Linq.Enumerable.SelectEnumerableIterator`2.MoveNext()    at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()    at System.Linq.Lookup`2.Create(IEnumerable`1 source, Func`2 keySelector, IEqualityComparer`1 comparer)    at System.Linq.GroupedEnumerable`2.GetEnumerator()    at Mendix.Modeler.Microflows.View.MicroflowEditor.GetToolboxCategories(Boolean includeActions)+MoveNext() in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Microflows.View\MicroflowEditor.cs:line 0    at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)    at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)    at Mendix.Modeler.Common.ToolboxTab..ctor(ToolboxEditorType editorType, String caption, IEnumerable`1 categories, ToolboxTabMode availableModes, ToolboxTileWidth tileWidth) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core\Common\Toolbox\ToolboxTab.cs:line 32    at Mendix.Modeler.Microflows.View.MicroflowEditor.GetTools()+MoveNext() in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Microflows.View\MicroflowEditor.cs:line 665    at System.Collections.Generic.LargeArrayBuilder`1.AddRange(IEnumerable`1 items)    at System.Collections.Generic.EnumerableHelpers.ToArray[T](IEnumerable`1 source)    at Mendix.Modeler.Core.View.ToolWindows.ToolboxViewModel.<>c__DisplayClass24_0.<UpdateToolboxInternalAsync>b__1() in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core.View.CrossPlatform\ToolWindows\Toolbox\ToolboxViewModel.cs:line 92    at System.Threading.Tasks.Task`1.InnerInvoke()    at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location ---    at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of stack trace from previous location ---    at Mendix.Modeler.Core.View.ToolWindows.ToolboxViewModel.UpdateToolboxInternalAsync(ITabbedEditor tabbedEditor) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core.View.CrossPlatform\ToolWindows\Toolbox\ToolboxViewModel.cs:line 91    at Mendix.Modeler.Core.View.ToolWindows.ToolboxViewModel.UpdateToolboxAsync(ITabbedEditor newEditor, ITabbedEditor oldEditor) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core.View.CrossPlatform\ToolWindows\Toolbox\ToolboxViewModel.cs:line 76    at Mendix.Modeler.Core.View.ToolWindows.ToolboxViewModel.<.ctor>b__21_0(ITabbedEditor newEditor, ITabbedEditor oldEditor) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core.View.CrossPlatform\ToolWindows\Toolbox\ToolboxViewModel.cs:line 54    at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)    at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)    at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
asked
1 answers
0

Just ran into this issue all of a sudden trying to redeploy my project in 10.16.1.

Any updates how to solve this? 

Tried the following so far:

Cleaned my deployment directory

Reboot

Fresh download of project

Fresh install of Mendix 10.16.1

 

Can export my project, can run it.. It's useless now.

answered