Book a Demo

Author Topic: Adding an element to a diagram hangs EA and breaks the diagram  (Read 5127 times)

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Hi all,


Got a bit of a problem.

I've got a SQL Server project with a modelling team working away. Certain elements, however, appear to be broken.

If a broken element is added to a diagram, EA hangs and has to be killed.

On restart, I can verify in the database that the element has been added to the diagram; however, if I try to open said diagram, EA hangs and has to be killed.

This occurs even in a fresh empty diagram.

The only thing I can see that's odd in t_diagramobjects is that Sequence = 999999, and ObjectStyle only contains the DUID -- no colour or font properties, or anything else.

This is consistent for certain elements. I haven't investigated the elements themselves just yet, but does anyone recognize this? We're on 15.0.1512.


/Uffe
My theories are always correct, just apply them to the right reality.

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Adding an element to a diagram hangs EA and breaks the diagram
« Reply #1 on: May 20, 2020, 08:01:55 pm »
Nailed it.

The element name ends with a non-breaking space, which causes EA to hang.

EA hangs if you create an element with such a name in a diagram, or if you drag an element with such a name onto a diagram.
In either case, the element is created / added to the diagram, but if you open the diagram again (after a restart) EA will hang again.
So it's the diagram rendering that's at issue, not element or diagram object creation.

Non-breaking space at the beginning of, or in the middle of, an element name do not cause this behaviour.

EA displays non-break spaces as whitespace, but you can check whether a string contains a non-breaking space by pasting it into Word and switching on formatting symbols; it is shown as a degree symbol.

Reported.


/Uffe

My theories are always correct, just apply them to the right reality.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Adding an element to a diagram hangs EA and breaks the diagram
« Reply #2 on: May 20, 2020, 08:02:46 pm »
No, but it feels like something that might get solved by the project integrity check.

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Adding an element to a diagram hangs EA and breaks the diagram
« Reply #3 on: May 20, 2020, 08:27:46 pm »
Tried with the non-breaking space. Worked with no issue.

q.

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Adding an element to a diagram hangs EA and breaks the diagram
« Reply #4 on: May 20, 2020, 08:33:25 pm »
Welp, not in 1512 on SQL Server. It was definitely that, removing the offending character resolved the issue.

/U
My theories are always correct, just apply them to the right reality.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Adding an element to a diagram hangs EA and breaks the diagram
« Reply #5 on: May 20, 2020, 08:47:01 pm »
I once had a similar issue that happened after pasting text from a pdf into the notes field.

The text had a curly backtick (something looking similar to this: `) and that made EA crash hard upon saving the notes.

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Adding an element to a diagram hangs EA and breaks the diagram
« Reply #6 on: May 20, 2020, 10:01:46 pm »
Welp, not in 1512 on SQL Server. It was definitely that, removing the offending character resolved the issue.

/U
I used 15.1.1526 with EAP. Sorry, don't have a SQL server installed right now.

q.