Modeler Crashes while opening project

0
During a deployment to the cloud my modeler crashed, and now whenever I try to open my project again my modeler crashes and I can't possibly open the project anymore. I've tried reinstalling the modeler (5.19) and redownloading the project from the team server Mendix.Modeler.Utility.Progress.ProgressException ---> System.InvalidOperationException: Opening the original project file failed. ---> Newtonsoft.Json.JsonReaderException: Read past end of current container context. Path 'FormCall.Arguments[1].Widget.Widget.FirstWidget.Widgets[5].ControlBar.SearchButton.Tooltip.$ID'. at Newtonsoft.Json.Bson.BsonReader.ReadNormal() at Newtonsoft.Json.Bson.BsonReader.ReadInternal() at Newtonsoft.Json.Linq.JContainer.ReadContentFrom(JsonReader r) at Newtonsoft.Json.Linq.JContainer.ReadTokenFrom(JsonReader reader) at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader) at Mendix.Modeler.Storage.ContentsUtil.ParseBson(Byte[] bson) in c:\jenkins\workspace\AppStudio-Modeler\src\Mendix.Modeler.Storage\ContentsUtil.cs:line 17 at Mendix.Modeler.Storage.Operations.UnitContentsLoader.ConstructUnitFromContents(IStorageUnit container, Byte[] contents) in c:\jenkins\workspace\AppStudio-Modeler\src\Mendix.Modeler.Storage\Operations\UnitContentsLoader.cs:line 26 at Mendix.Modeler.Storage.Operations.UnitLoader.ConstructUnit(IStorageUnit container, DbDataReader reader) in c:\jenkins\workspace\AppStudio-Modeler\src\Mendix.Modeler.Storage\Operations\UnitLoader.cs:line 209 at Mendix.Modeler.Storage.Operations.UnitLoader.LoadChildUnits(IStorageUnit unit) in c:\jenkins\workspace\AppStudio-Modeler\src\Mendix.Modeler.Storage\Operations\UnitLoader.cs:line 137 at Mendix.Modeler.Storage.Operations.UnitLoader.LoadChildUnits(IStorageUnit unit) in c:\jenkins\workspace\AppStudio-Modeler\src\Mendix.Modeler.Storage\Operations\UnitLoader.cs:line 173 at Mendix.Modeler.Storage.Operations.UnitLoader.Load[T](IProgressInfo info, Dictionary`2 _knownUnits, Boolean& conversionNeeded) in c:\jenkins\workspace\AppStudio-Modeler\src\Mendix.Modeler.Storage\Operations\UnitLoader.cs:line 45 at Mendix.Modeler.Operations.Loader30.<>c__DisplayClass2.<DoLoad>b__0(Database database) in c:\jenkins\workspace\AppStudio-Modeler\src\Mendix.Modeler.Core\Operations\Loader30.cs:line 21 at Mendix.Modeler.Utility.DbConnectors.DbConnector.WithoutTransactionDo[TResult](Func`1 action) in c:\jenkins\workspace\AppStudio-Modeler\src\Mendix.Modeler.Utility\DbConnectors\DbConnector.cs:line 64 at Mendix.Modeler.Utility.DbConnectors.SQLiteConnector.Do[TResult](String filePath, Boolean useTransaction, Func`2 action) in c:\jenkins\workspace\AppStudio-Modeler\src\Mendix.Modeler.Utility\DbConnectors\SQLiteConnector.cs:line 54 at Mendix.Modeler.Storage.Database.Do[TResult](String filePath, Boolean useTransaction, Func`2 action) in c:\jenkins\workspace\AppStudio-Modeler\src\Mendix.Modeler.Storage\Database.cs:line 163 at Mendix.Modeler.Operations.Loader30.DoLoad(IProgressInfo info, String filePath) in c:\jenkins\workspace\AppStudio-Modeler\src\Mendix.Modeler.Core\Operations\Loader30.cs:line 17 --- End of inner exception stack trace --- at Mendix.Modeler.VersionControl.RevProjectBaseFileCache.ConvertBaseFileIfPossible(IProgressInfo info, Int64 desiredRevision) in c:\jenkins\workspace\AppStudio-Modeler\src\Mendix.Modeler.Core\VersionControl\RevProjectBaseFileCache.cs:line 81 at Mendix.Modeler.Main.ProjectFileOpener.<AddConvertProjectBaseFileStep>b__1(IProgressInfo info) in c:\jenkins\workspace\AppStudio-Modeler\src\Mendix.Modeler.Core\Main\ProjectFileOpener.cs:line 105 at Mendix.Modeler.Utility.Progress.ProcessRunner.RunStep(Step step) in c:\jenkins\workspace\AppStudio-Modeler\src\Mendix.Modeler.UIFramework\Progress\ProcessRunner.cs:line 87 at Mendix.Modeler.Utility.Progress.ProcessRunner.worker_DoWork(Object sender, DoWorkEventArgs e) in c:\jenkins\workspace\AppStudio-Modeler\src\Mendix.Modeler.UIFramework\Progress\ProcessRunner.cs:line 67 at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument) --- End of inner exception stack trace --- at Mendix.Modeler.Utility.Progress.ProcessRunner.Run() in c:\jenkins\workspace\AppStudio-Modeler\src\Mendix.Modeler.UIFramework\Progress\ProcessRunner.cs:line 49 at Mendix.Modeler.Main.ProjectFileOpener.DoOpenProject() in c:\jenkins\workspace\AppStudio-Modeler\src\Mendix.Modeler.Core\Main\ProjectFileOpener.cs:line 89 at Mendix.Modeler.Main.ProjectFileOpener.OpenProject() in c:\jenkins\workspace\AppStudio-Modeler\src\Mendix.Modeler.Core\Main\ProjectFileOpener.cs:line 64 at Mendix.Modeler.WindowsGui.ProjectManagement.ProjectOpenerUI.OpenRecentProject(String projectFilePath) in c:\jenkins\workspace\AppStudio-Modeler\src\Mendix.Modeler.WindowsGui\ProjectManagement\ProjectOpenerUI.cs:line 62 at Mendix.Modeler.Utility.FuncUtil.CallMeMaybe[TArg](Action`1 action, TArg arg) in c:\jenkins\workspace\AppStudio-Modeler\src\Mendix.Modeler.Utility\FuncUtil.cs:line 35 at Mendix.Modeler.Utility.FuncUtil.CallMeMaybe[TArg](Action`1 action, TArg arg) in c:\jenkins\workspace\AppStudio-Modeler\src\Mendix.Modeler.Utility\FuncUtil.cs:line 35 at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs) 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.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e) at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs) 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) Solution: Support suggested to ''revert to revision'' with tortoise, however when we tried to commit the revision it said that the project was out of date and then it started updating the project from the teamserver (and thus downloading the corrupt files and breaking the project. The way we solved it is by created a branch from an earlier deployment point, make a change and then commit that change. This way the team server sees this as the 'newest' version and will download this.
asked
2 answers
1

Can you try and remove the ".mendix-cache" directory from the root of your project and try again?

answered
0

Not that it provides a solution, but it might help r&d when looking into this, or maybe it produces an error which would be more helpful. You could try opening the .mpr file with mprtool.exe (which is found in the bin folder of your Mendix installation).

answered