Book a Demo

Author Topic: EA 12 keep crashing  (Read 15720 times)

Wojtas

  • EA User
  • **
  • Posts: 26
  • Karma: +0/-0
    • View Profile
EA 12 keep crashing
« on: February 18, 2015, 07:03:14 pm »
Hi,

I just installed newest version 12.0.1207. I work on repo created in EA 11. Repo has an issue, but EA11 show pop-up that there is missing element, but it was working. EA 12 just crash without any information why. Windows then show message that application stopped working and it seeks for resolution and that's all. Problem is annoying. Is only way out is to downgrade to EA11?

Best regards,
Wojtek

Wojtas

  • EA User
  • **
  • Posts: 26
  • Karma: +0/-0
    • View Profile
Re: EA 12 keep crashing
« Reply #1 on: February 18, 2015, 07:42:54 pm »
Hi again,

from other instance of EA i get this MS .NET Framework error:

Szczegó[ch322]owe informacje na temat wywo[ch322]ywania debugowania w trybie JIT (just in time)
zamiast tego okna dialogowego znajduj[ch261] si[ch281] na ko[ch324]cu tego komunikatu.

************** Tekst wyj[ch261]tku **************
System.Runtime.InteropServices.COMException (0x80040000): Can't find matching ID
   w EA.RepositoryClass.GetPackageByID(Int32 PackageID)
   w TSF.UmlToolingFramework.Wrappers.EA.Model.getElementWrapperByPackageID(Int32 packageID) w c:\Users\wij\Documents\BellekensIT\Development\Enterprise-Architect-Add-in-Framework\EAAddinFramework\EAWrappers\Model.cs:wiersz 679
   w TSF.UmlToolingFramework.Wrappers.EA.ElementWrapper.get_owner() w c:\Users\wij\Documents\BellekensIT\Development\Enterprise-Architect-Add-in-Framework\EAAddinFramework\EAWrappers\ElementWrapper.cs:wiersz 185
   w TSF.UmlToolingFramework.EANavigator.NavigatorVisuals.getImageIndex(UMLItem element) w c:\Users\wij\Documents\BellekensIT\Development\Enterprise-Architect-Toolpack\EANavigator\NavigatorVisuals.cs:wiersz 173
   w TSF.UmlToolingFramework.EANavigator.NavigatorControl.makeElementNode(UMLItem element, TreeNode parentNode, TreeNode nodeToReplace) w c:\Users\wij\Documents\BellekensIT\Development\Enterprise-Architect-Toolpack\EANavigator\NavigatorControl.cs:wiersz 310
   w TSF.UmlToolingFramework.EANavigator.NavigatorControl.addElementToTree(UMLItem element, TreeNode parentNode, TreeNode nodeToReplace) w c:\Users\wij\Documents\BellekensIT\Development\Enterprise-Architect-Toolpack\EANavigator\NavigatorControl.cs:wiersz 281
   w TSF.UmlToolingFramework.EANavigator.NavigatorControl.NavigatorTreeBeforeExpand(Object sender, TreeViewCancelEventArgs e) w c:\Users\wij\Documents\BellekensIT\Development\Enterprise-Architect-Toolpack\EANavigator\NavigatorControl.cs:wiersz 405
   w System.Windows.Forms.TreeView.OnBeforeExpand(TreeViewCancelEventArgs e)
   w System.Windows.Forms.TreeView.TvnExpanding(NMTREEVIEW* nmtv)
   w System.Windows.Forms.TreeView.WmNotify(Message& m)
   w System.Windows.Forms.TreeView.WndProc(Message& m)
   w System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   w System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   w System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Zestawy za[ch322]adowane **************
mscorlib
    Wersja zestawu: 4.0.0.0
    Wersja Win32: 4.0.30319.34014 built by: FX45W81RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
EANavigator
    Wersja zestawu: 2.4.5160.13333
    Wersja Win32: 2.4.5160.13333
    CodeBase: file:///C:/Program%20Files%20(x86)/EANavigator/EANavigator.dll
----------------------------------------
EAAddinFramework
    Wersja zestawu: 1.0.5160.13327
    Wersja Win32: 1.0.5160.13327
    CodeBase: file:///C:/Program%20Files%20(x86)/EANavigator/EAAddinFramework.DLL
----------------------------------------
Interop.EA
    Wersja zestawu: 2.10.238.1
    Wersja Win32: 2.10.238.1
    CodeBase: file:///C:/Program%20Files%20(x86)/Sparx%20Systems/EA/Interop.EA.DLL
----------------------------------------
UMLToolingFramework
    Wersja zestawu: 1.0.5159.13873
    Wersja Win32: 1.0.5159.13873
    CodeBase: file:///C:/Program%20Files%20(x86)/EANavigator/UMLToolingFramework.DLL
----------------------------------------
System.Core
    Wersja zestawu: 4.0.0.0
    Wersja Win32: 4.0.30319.33440 built by: FX45W81RTMREL
    CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System
    Wersja zestawu: 4.0.0.0
    Wersja Win32: 4.0.30319.34239 built by: FX452RTMGDR
    CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Configuration
    Wersja zestawu: 4.0.0.0
    Wersja Win32: 4.0.30319.33440 built by: FX45W81RTMREL
    CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Wersja zestawu: 4.0.0.0
    Wersja Win32: 4.0.30319.34230 built by: FX452RTMGDR
    CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Windows.Forms
    Wersja zestawu: 4.0.0.0
    Wersja Win32: 4.0.30319.33440 built by: FX45W81RTMREL
    CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------

to be continued ...

Wojtas

  • EA User
  • **
  • Posts: 26
  • Karma: +0/-0
    • View Profile
Re: EA 12 keep crashing
« Reply #2 on: February 18, 2015, 07:43:27 pm »
...

System.Drawing
    Wersja zestawu: 4.0.0.0
    Wersja Win32: 4.0.30319.33440 built by: FX45W81RTMREL
    CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Accessibility
    Wersja zestawu: 4.0.0.0
    Wersja Win32: 4.0.30319.33440 built by: FX45W81RTMREL
    CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
CustomMarshalers
    Wersja zestawu: 4.0.0.0
    Wersja Win32: 4.0.30319.33440 built by: FX45W81RTMREL
    CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_32/CustomMarshalers/v4.0_4.0.0.0__b03f5f7f11d50a3a/CustomMarshalers.dll
----------------------------------------
mscorlib.resources
    Wersja zestawu: 4.0.0.0
    Wersja Win32: 4.0.30319.33440 built by: FX45W81RTMREL
    CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_pl_b77a5c561934e089/mscorlib.resources.dll
----------------------------------------
System.Windows.Forms.resources
    Wersja zestawu: 4.0.0.0
    Wersja Win32: 4.0.30319.33440 built by: FX45W81RTMREL
    CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_pl_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------

************** Debugowanie w trybie JIT **************
Aby w[ch322][ch261]czy[ch263] debugowanie w trybie just in time (JIT), plik .config tej
aplikacji lub komputera (machine.config) musi mie[ch263]
warto[ch347][ch263] jitDebugging ustawion[ch261] w sekcji system.windows.forms.
Aplikacja musi by[ch263] równie[ch380] skompilowana z w[ch322][ch261]czonym
debugowaniem.

Na przyk[ch322]ad:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

Gdy debugowanie JIT jest w[ch322][ch261]czone, wszystkie nieobs[ch322]ugiwane wyj[ch261]tki
s[ch261] wysy[ch322]ane do debugera JIT zarejestrowanego na komputerze
i nie s[ch261] obs[ch322]ugiwane w tym oknie dialogowym.


and that's all.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: EA 12 keep crashing
« Reply #3 on: February 18, 2015, 07:50:16 pm »
Hi, that's a error coming from the EA-Navigator because you have a data inconsistency in your model.
In previous versions EA would catch that error and show it to you in a user friendly way, but apparently now they just crash.

What you need to do is run the project integrity check and fix the errors. (Shift-F9)
After that it should be OK.

I'll take a note that I should catch this type of exception myself iso leaving it to EA to handle it and I'll fix it in the next version.

Geert

Graham_Moir

  • EA User
  • **
  • Posts: 749
  • Karma: +10/-15
    • View Profile
Re: EA 12 keep crashing
« Reply #4 on: February 18, 2015, 09:08:46 pm »
Quote
In previous versions EA would catch that error and show it to you in a user friendly way, but apparently now they just crash.

Given a number of issues that have been reported with v12, there seems to be a worrying trend emerging that its quality, or at least the quality of the testing, is not what it should be and is perhaps lower than previous versions.

Wojtas

  • EA User
  • **
  • Posts: 26
  • Karma: +0/-0
    • View Profile
Re: EA 12 keep crashing
« Reply #5 on: February 19, 2015, 12:08:01 am »
Hi,

did integrity check. Now is time for observation.

Fingers crossed ;)

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: EA 12 keep crashing
« Reply #6 on: February 19, 2015, 08:46:23 am »
The API has thrown an exception that hasn't been caught in your code. As far as I know the API has always thrown that exception.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: EA 12 keep crashing
« Reply #7 on: February 19, 2015, 05:49:21 pm »
Quote
The API has thrown an exception that hasn't been caught in your code. As far as I know the API has always thrown that exception.

Simon,

That is true, but when the exception is not caught by the add-in EA used to catch it an show a popup to the user with the details.
It looks like now EA doesn't catch it anymore but instead crashes.

I believe EA should be stable enough to never crash, no matter what an add-in does wrong.

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: EA 12 keep crashing
« Reply #8 on: February 20, 2015, 01:04:41 am »
Quote
I believe EA should be stable enough to never crash, no matter what an add-in does wrong.
No! It [highlight]must[/highlight] be stable enough.

q.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: EA 12 keep crashing
« Reply #9 on: February 20, 2015, 09:42:24 am »
Quote
Quote
I believe EA should be stable enough to never crash, no matter what an add-in does wrong.
No! It [highlight]must[/highlight] be stable enough.
I wish that the world was that simple.

Firstly, there are crashes within the add-in. (eg. Access a null pointer, an uncaught exception, infinite recursion, double delete) There is no way that EA can catch these circumstances, and because the code is running inside the EA process EA will crash.

The crash described in this thread is this situation. Which leads me to conclude one of three things:
1. The EA function previously didn't throw the exception. (I know changes to results in error conditions have been rejected. Although the one I know about was removing an exception and returning null instead.)
2. The add-in code has changed. Probably not likely. You would have to remove a try-catch from your code and you would know about that.
3. It's not actually a scenario you have previously tested.

On the other hand, EA should be robust enough to handle an add-in doing unexpected things inside a broadcast. But I don't expect our programmers to think of every perverse thing an add-in might do. And even when they do, solving the problem created can be non-trivial.

As an example, if I was handling pre-drop element onto a diagram. I could do any of the following and return to EA that the drop was allowed:
  • Tell EA to reload the diagram
  • Delete the diagram
  • Close the diagram
  • Open a different diagram
  • Delete the package containing the diagram (or any ancestor)
  • Modify the object and force a reload
  • Delete the element
  • Delete the element containing the diagram (or any ancestor)
  • Add the element to the diagram myself
  • Close the model
  • Start a simulation
  • Display an error message to interrupt the drop
I could use a combination of blocking actions, checking objects still exist, checking pointers etc. to try to make EA handle all of these. But I would still be hoping that you didn't think of things that you didn't.

Even if I did, would the time be well spent? Both of you have features that you have requested for EA that haven't been implemented. Would someone dedicating days to try to make this one action survive any add-in sabotage be a higher priority to you than your most sought after features?
« Last Edit: February 20, 2015, 09:56:50 am by simonm »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: EA 12 keep crashing
« Reply #10 on: February 20, 2015, 11:23:35 am »
Well, I agree and I don't. Of course if the add-in is starting to clobber things you're lost. But if you put an add-in in a sandbox it will either return normally or it will crash. In the latter case you can show a message and eventually ask to disable the add-in. But to crash EA when the add-in crashed is not an option I would accept as system architect. Now - I'm not the SA for EA. So this is just my opinion.

q.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: EA 12 keep crashing
« Reply #11 on: February 20, 2015, 11:57:34 am »
So, what you're saying is that EA needs to be re-written so that every add-in is run in a separate process, we then need to deal with interprocess communication and many other issues such an change would require.

My estimate is that you're dealing with months of development and testing. Even with months of testing, I would expect reports of it breaking existing add-ins, at least initially. I don't know about you, but I have higher priority things that I want to see.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: EA 12 keep crashing
« Reply #12 on: February 20, 2015, 02:45:40 pm »
Maybe a sort of "global" try-catch could already help a lot.

In the software I'm working on for the client there's such a try catch build into the framework. This global try-catch mechanism also logs the error from all the clients so our monitoring team knows just how often we have a certain error.
The only time I've known it to crash was when an exception occurred during startup, before the error checking part of the framework was loaded.

But as said, I'm already working on fixing the bug in the EA Navigator and doing some exception handling of my own.

Wojtas

  • EA User
  • **
  • Posts: 26
  • Karma: +0/-0
    • View Profile
Re: EA 12 keep crashing
« Reply #13 on: February 20, 2015, 09:13:40 pm »
Hi,

well, today is disaster. EA crash so many times (few second after opening repo) so I can't work. it looks like problem is with weak connection to MSSQL server. RMDBS holds many other DB's and probably connection is slow.
Integrity check is saying that there is no problems in repo, but EA keep showing this error that there is no package with GUID. I will migrate most important root's to separate DB on different machine and will see what happen.

Have a nice day

Wojtas

  • EA User
  • **
  • Posts: 26
  • Karma: +0/-0
    • View Profile
Re: EA 12 keep crashing
« Reply #14 on: February 20, 2015, 09:33:54 pm »
Hi,

I have transfered model to local file and there is nothing better. Every action on package crash app. So this is not a connection problem but project integrity.
Error from local file;
Szczegó[ch322]owe informacje na temat wywo[ch322]ywania debugowania w trybie JIT (just in time)
zamiast tego okna dialogowego znajduj[ch261] si[ch281] na ko[ch324]cu tego komunikatu.

************** Tekst wyj[ch261]tku **************
System.NullReferenceException: Odwo[ch322]anie do obiektu nie zosta[ch322]o ustawione na wyst[ch261]pienie obiektu.
   w TSF.UmlToolingFramework.Wrappers.EA.ElementWrapper.Equals(Object obj) w c:\Users\wij\Documents\BellekensIT\Development\Enterprise-Architect-Add-in-Framework\EAAddinFramework\EAWrappers\ElementWrapper.cs:wiersz 322
   w TSF.UmlToolingFramework.EANavigator.NavigatorControl.removeRootNode(UMLItem sourceElement) w c:\Users\wij\Documents\BellekensIT\Development\Enterprise-Architect-Toolpack\EANavigator\NavigatorControl.cs:wiersz 376
   w TSF.UmlToolingFramework.EANavigator.NavigatorControl.treeBackgroundRunWorkerCompleted(Object sender, RunWorkerCompletedEventArgs e) w c:\Users\wij\Documents\BellekensIT\Development\Enterprise-Architect-Toolpack\EANavigator\NavigatorControl.cs:wiersz 157
   w System.ComponentModel.BackgroundWorker.OnRunWorkerCompleted(RunWorkerCompletedEventArgs e)
   w System.ComponentModel.BackgroundWorker.AsyncOperationCompleted(Object arg)

edited:
The problem occurs when i click on root node (most cases) or package in Project Browser. Looks that Project Browser need better error handling.


Kind Regards
« Last Edit: February 20, 2015, 10:30:00 pm by wkrolik »