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

0
Hi All,   I am using studio pro 10.5. I tried to commit my code changes to GIT. as a 1st step I did commit my local changes - done successfully.  then 2nd step I am trying to pull code...  that time getting below error. if anybody faced this issue, Please help me to get fix it.     Error :  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.CopyCommon(BitmapFrameDecode sourceBitmapFrameDecode)    at System.Windows.Media.Imaging.BitmapFrameDecode.CloneCore(Freezable sourceFreezable)    at System.Windows.Freezable.Clone()    at System.Windows.Media.Imaging.BitmapSource.Clone()    at Eto.Wpf.Drawing.BitmapHandler.Clone(Nullable`1 rectangle)    at Eto.Drawing.Bitmap.Clone(Nullable`1 rectangle)    at Mendix.Modeler.Theming.ImageEditor.MakeBitmapSemiTransparent(Bitmap bitmap) in Mendix.Modeler.Theming\ImageEditor.cs:line 32    at Mendix.Modeler.Theming.ImageEditor.MakeSemiTransparent(Image image) in Mendix.Modeler.Theming\ImageEditor.cs:line 25    at Mendix.Modeler.Projects.ProjectExplorers.ProjectExplorerNode.UpdatePreIcon(ProjectExplorerTreeInfo treeInfo, Boolean allowPreIcon) in Mendix.Modeler.Core\Projects\ProjectExplorers\ProjectExplorerNode.cs:line 107    at Mendix.Modeler.Projects.ProjectExplorers.NamedDocumentNode..ctor(IExplorerOperations explorerOperations, IDynamicContextMenuProvider dynamicContextMenuProvider, INamedDocument namedDocument, ProjectExplorerTreeInfo info) in Mendix.Modeler.Core\Projects\ProjectExplorers\NamedDocumentNode.cs:line 38    at Mendix.Modeler.Microflows.View.Microflows.MicroflowDocumentTypeView.CreateDocumentNode(IExplorerOperations explorerOperations, IDynamicContextMenuProvider dynamicContextMenuProvider, INamedDocument doc, ProjectExplorerTreeInfo info) in Mendix.Modeler.Microflows.View\Microflows\MicroflowDocumentTypeView.cs:line 60    at Mendix.Modeler.Core.View.ToolWindows.Nodes.ModuleNode.FolderNodeExtensions.<>c__DisplayClass1_0.<GetChildNodes>b__3(INamedDocument d) in Mendix.Modeler.Core.View\ToolWindows\ProjectExplorer\Nodes\ModuleNode\FolderNodeExtensions.cs:line 29    at System.Linq.Enumerable.SelectIPartitionIterator`2.MoveNext()       Thanks, Satya.   
asked
3 answers
0

Hi Satya, does it help when you restart Studio Pro (and maybe also Windows itself)? It seems this is a specific issue related to access rights on the Operation System level.

 

If a restart doesn't help you out, you can try to remove your local app and retrieve it from the Team Server. However, this will delete any local changes you have made so far.

answered
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
0

I had the same problem after creating a new module and copying some elements to the new module. After changing the navigation and microflows to point to the new module I excluded the old elements from the project (SQL data import elements) Here the error occured the first time when I want to save my changes. Here I got the first error that the database was locked by another process but sved my changes. 

 

After these changes I could not save anything anymore, export or start the app locally.

 

I downloaded the last stable committed version again and have thrown away my changes from this morning and it works again. 

 

 

 

answered