Hello Everybody, whenever I try to translate from English to Bulgarian via Language -> Batch Translate, there is always an error: System.InvalidOperationException: The calling thread cannot access this object because a different thread owns it. at System.Windows.Threading.Dispatcher.VerifyAccess() at Microsoft.Web.WebView2.Wpf.WebView2.get_CoreWebView2() at Mendix.Modeler.Controls.WebBrowser.Windows.WebView2WebBrowserHandler.<>c__DisplayClass53_0.<PostMessage>b__0() in Mendix.Modeler.Controls.WebBrowser.Windows\WebView2WebBrowserHandler.cs:line 345 at Mendix.Modeler.Microflows.View.WebCanvas.WebMicroflowCanvas.OnCurrentSelectionChanged() in Mendix.Modeler.Microflows.View\WebCanvas\WebMicroflowCanvas.cs:line 206 at Mendix.Modeler.Common.Selection.Purge() in Mendix.Modeler.Core\Common\Model\Selection.cs:line 128 at Mendix.Modeler.Core.View.Editors.TabbedEditor.PurgeSelection() in Mendix.Modeler.Core.View\Editors\TabbedEditors\TabbedEditor.cs:line 214 at Mendix.Modeler.Core.View.Editors.TabbedEditor.OnUndoManagerAfterCommit(Boolean onlyVisualChanges) in Mendix.Modeler.Core.View\Editors\TabbedEditors\TabbedEditor.cs:line 342 at Mendix.Modeler.Utility.UndoManager.CommitTransaction() in Mendix.Modeler.Utility\Undo\UndoManager.cs:line 409 at Mendix.Modeler.Utility.UndoManager.CommitTransaction(IUndoManagerProvider provider) in Mendix.Modeler.Utility\Undo\UndoManager.cs:line 215 at Mendix.Modeler.Utility.UndoManager.TransactionDo(IUndoManagerProvider provider, String actionDescription, Func`1 action) in Mendix.Modeler.Utility\Undo\UndoManager.cs:line 273 at Mendix.Modeler.Operations.Updater.Apply(IDatabase db, IDocument document, String undoDescription, Action action, Boolean save) in Mendix.Modeler.Core\Operations\Refactorings\Updater.cs:line 105 at Mendix.Modeler.Operations.Updater.<>c__DisplayClass6_0`1.<UpdateDocuments>b__0(IDatabase db, TDocument document) in Mendix.Modeler.Core\Operations\Refactorings\Updater.cs:line 49 at Mendix.Modeler.Operations.Updater.<>c__DisplayClass7_0`1.<UpdateDocuments>b__0(IDatabase db) in Mendix.Modeler.Core\Operations\Refactorings\Updater.cs:line 77 at Mendix.Modeler.Storage.Database.<>c__DisplayClass22_0.<Do>b__0(IDatabase db) in Mendix.Modeler.Storage\Database.cs:line 145 at Mendix.Modeler.Storage.Database.<>c__DisplayClass23_0`1.<Do>b__0(IDbConnector connector) in Mendix.Modeler.Storage\Database.cs:line 161 at Mendix.Modeler.Storage.DbConnectors.SQLiteConnector.<>c__DisplayClass2_0`1.<Do>b__0() in Mendix.Modeler.Storage\DbConnectors\SQLiteConnector.cs:line 44 at Mendix.Modeler.Storage.DbConnectors.DbConnector.TransactionDo[TResult](Func`1 action) in Mendix.Modeler.Storage\DbConnectors\DbConnector.cs:line 36 at Mendix.Modeler.Storage.DbConnectors.SQLiteConnector.Do[TResult](String filePath, Boolean useTransaction, Func`2 action, Boolean forceNewConnector) in Mendix.Modeler.Storage\DbConnectors\SQLiteConnector.cs:line 43 at Mendix.Modeler.Storage.Database.Do[TResult](String filePath, Boolean useTransaction, Func`2 action) in Mendix.Modeler.Storage\Database.cs:line 161 at Mendix.Modeler.Storage.Database.Do(String filePath, Boolean useTransaction, Action`1 action) in Mendix.Modeler.Storage\Database.cs:line 143 at Mendix.Modeler.Operations.Updater.UpdateDocuments[TDocument](String what, IEnumerable`1 _documents, IProgressInfo info, Action`2 action, Boolean raiseStructureChanged) in Mendix.Modeler.Core\Operations\Refactorings\Updater.cs:line 70 at Mendix.Modeler.Operations.Updater.UpdateDocuments[TDocument](String what, IEnumerable`1 documents, String undoDescription, Action`1 action, Boolean save, IProgressInfo info, Boolean raiseStructureChanged) in Mendix.Modeler.Core\Operations\Refactorings\Updater.cs:line 49 at Mendix.Modeler.Core.View.Texts.BatchForm.ApplyChanges(IProgressInfo info, Dictionary`2 translationDict) in Mendix.Modeler.Core.View\Texts\BatchForm.cs:line 326 at Mendix.Modeler.Core.View.Texts.BatchForm.<>c__DisplayClass45_0.<RunBatch>b__0(IProgressInfo info) in Mendix.Modeler.Core.View\Texts\BatchForm.cs:line 314 at Mendix.Modeler.UIFramework.Progress.ProcessRunner.RunStep(IStep step) in Mendix.Modeler.UIFramework\Progress\ProcessRunner.cs:line 163 at Mendix.Modeler.UIFramework.Progress.ProcessRunner.OnDoWork(Object sender, DoWorkEventArgs e) in Mendix.Modeler.UIFramework\Progress\ProcessRunner.cs:line 81 at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)--- End of stack trace from previous location --- at Mendix.Modeler.UIFramework.Progress.ProcessRunner.Run() in Mendix.Modeler.UIFramework\Progress\ProcessRunner.cs:line 57 at Mendix.Modeler.UIFramework.Progress.ProgressUtil.Run(IProcess process) in Mendix.Modeler.UIFramework\Progress\ProgressUtil.cs:line 15 at Mendix.Modeler.UIFramework.Progress.ProgressUtil.Do(String message, Boolean reportsProgress, Boolean supportsCancellation, Action`1 action) in Mendix.Modeler.UIFramework\Progress\ProgressUtil.cs:line 82 at Mendix.Modeler.UIFramework.Progress.ProgressUtil.Do(Boolean reportsProgress, Boolean supportsCancellation, Action`1 action) in Mendix.Modeler.UIFramework\Progress\ProgressUtil.cs:line 66 at Mendix.Modeler.Core.View.Texts.BatchForm.RunBatch(List`1 filteredItems) in Mendix.Modeler.Core.View\Texts\BatchForm.cs:line 314 at Mendix.Modeler.Core.View.Texts.BatchForm.ExecuteBatch() in Mendix.Modeler.Core.View\Texts\BatchForm.cs:line 110 at Mendix.Modeler.UIFramework.ButtonSpec.<>c__DisplayClass43_0.<GetCommandWithAction>b__0(Object _, EventArgs _) in Mendix.Modeler.UIFramework\Specs\ButtonSpec.cs:line 128 at Eto.Forms.Button.OnClick(EventArgs e) at Eto.Forms.Button.Callback.OnClick(Button widget, EventArgs e) at Eto.Wpf.Forms.Controls.ButtonHandler`3.<Initialize>b__14_0(Object sender, RoutedEventArgs e) at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) at System.Windows.Controls.Primitives.ButtonBase.OnClick() at System.Windows.Controls.Button.OnClick() at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e) at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent) at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args) at System.Windows.Input.InputManager.ProcessStagingArea() at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport) at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel) at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) 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) Is there a solution or a workaround ?
asked
Georgi Ivanov
2 answers
0
Since it is impossible to mark your own answer as accepted, I'm copying yours. This will help others filter the forum more efficiently when looking for a solution to this problem:
answered
Eline Bijkerk
1
It turned out to be a misconfiguration in Mendix Studio Pro. If anyone ever have this error when trying to write anything in their native language - different than English, refer to this picture:
Disable all options here. Edit -> Preferences -> New features