Sparx Systems Forum

Enterprise Architect => Bugs and Issues => Topic started by: Graham_Moir on May 24, 2011, 01:10:20 am

Title: Instability of rtf document generation in 9
Post by: Graham_Moir on May 24, 2011, 01:10:20 am
I'm finding the RTF generator in 9 much less stable than in 8.  It used to crash fairly regularly in 8,  but nowhere near as much as it does in 9.  Using a model in 9 that was originally put together with EA 8, generating the same document multiple times without restarting EA predictably seems to follow one of these 2 sequences.

1.  First run, generally OK
2.  Second or third run comes up with "EA encountered an improper argument"  followed by crash to desktop

or

1.  First run only picks up Master document template and none of the model documents resulting in output with a cover page only.  
2.  Once this happens the generator never finds the full virtual document definition unless you generate a different document and come back to the original one.

On top of that there's
a. The issue skiwi has raised with items such as diagram legends and hyperlinks being picked up and erroneously, irritatingly, added to the output document.  
b.  Numbering problems when iterating through child packages.  I notice from the release notes that this functionality has been touched to "fix" it but in my case it used to work in EA 8, but now I get level 3 which should be say 3.1.1 jumping back to 3.x  and level 4 jumping forward to level 5 as  3.1.0.0.1   This is without changing any templates in 9.

Anyone else experiencing similar problems ?  :(
Title: Re: Instability of rtf document generation in 9
Post by: skiwi on May 24, 2011, 12:35:15 pm
I can confirm this behaviour in spades.
I reported it from one of the beta releases.
Title: Re: Instability of rtf document generation in 9
Post by: jean-eric on May 25, 2011, 03:03:40 am
I'm always having really bad times with report templating, since 7.5. It's just a nightmare when you need to change a template, because you never know what is going to happen, and how much time it will take to fix what used to work previously. I've been experiencing so many weird things, the latest ones:
Just unbelievable - and unmanageable.
It's so bad: being able to deliver the content of a model (and getting back the revisions) through (well structured and pleasant) reports is a key point to work with the business stakeholders !...
Title: Re: Instability of rtf document generation in 9
Post by: skiwi on May 25, 2011, 06:48:16 am
One thing I cannot repeat enough, and that has solved many of our problems,
is that is is essential to have one, and one only, set of styles for all document templates.
NEVER change styles in a template, always update in normal.rtf and update (update all templates).

This is exacerbated by the choice and generation of RTF as the file format, and the decades long issues Word has dealing with list styles, and redefinition of styles in a compound document.
Title: Re: Instability of rtf document generation in 9
Post by: Graham_Moir on May 25, 2011, 07:27:21 pm
Quote
I'm finding the RTF generator in 9 much less stable than in 8.  It used to crash fairly regularly in 8,  but nowhere near as much as it does in 9.  Using a model in 9 that was originally put together with EA 8, generating the same document multiple times without restarting EA predictably seems to follow one of these 2 sequences.

1.  First run, generally OK
2.  Second or third run comes up with "EA encountered an improper argument"  followed by crash to desktop

or

1.  First run only picks up Master document template and none of the model documents resulting in output with a cover page only.  
2.  Once this happens the generator never finds the full virtual document definition unless you generate a different document and come back to the original one.

On top of that there's
a. The issue skiwi has raised with items such as diagram legends and hyperlinks being picked up and erroneously, irritatingly, added to the output document.  
b.  Numbering problems when iterating through child packages.  I notice from the release notes that this functionality has been touched to "fix" it but in my case it used to work in EA 8, but now I get level 3 which should be say 3.1.1 jumping back to 3.x  and level 4 jumping forward to level 5 as  3.1.0.0.1   This is without changing any templates in 9.

Anyone else experiencing similar problems ?  :(

I've raised a bug report for all this.
Title: Re: Instability of rtf document generation in 9
Post by: Oliver F. on June 02, 2011, 12:17:45 am
Quote
b.  Numbering problems when iterating through child packages.  I notice from the release notes that this functionality has been touched to "fix" it but in my case it used to work in EA 8, but now I get level 3 which should be say 3.1.1 jumping back to 3.x  and level 4 jumping forward to level 5 as  3.1.0.0.1   This is without changing any templates in 9.

Anyone else experiencing similar problems ?  :(

Same here !!!  :o
Title: Re: Instability of rtf document generation in 9
Post by: Oliver F. on June 10, 2011, 10:02:49 pm
Since in the meantime 906 and 907 have been released, can somebody confirm a fix for this?

Oliver
Title: Re: Instability of rtf document generation in 9
Post by: skiwi on June 13, 2011, 06:29:41 am
Nope, but we have found that manually uninstalling EA 8 or EA 9 beta,
rebooting, and then separately installing EA 9 does seem to reduce the incidence of this.
Title: Re: Instability of rtf document generation in 9
Post by: skiwi on June 15, 2011, 07:00:48 am
I can confirm that Sparx have confirmed the crash as an Issue ID: 11059255
Title: Re: Instability of rtf document generation in 9
Post by: Jan Dickele on June 17, 2011, 10:28:54 pm
Quote
Quote
b.  Numbering problems when iterating through child packages.  I notice from the release notes that this functionality has been touched to "fix" it but in my case it used to work in EA 8, but now I get level 3 which should be say 3.1.1 jumping back to 3.x  and level 4 jumping forward to level 5 as  3.1.0.0.1   This is without changing any templates in 9.

Anyone else experiencing similar problems ?  :(

Same here !!!  :o

Same here. I can not use version 9 with this new 'Feature'. I have reported it as bug.
Title: Re: Instability of rtf document generation in 9
Post by: aldr1c on July 05, 2011, 05:26:25 am
Any timescale on a resolution to this 'bug'?  With an unworkable report generator, the business case to use this tool (and expand the user base at work) is seriously impacted.  The lack of a reproducibly accurate report is rather embarrassing - I corrected a model report, and 2 hours later - with nothing in the model (or even the computer - I was in a meeting during the time) altered, the report was borked once more.

I too have had random hangs and crashes - often when trying to view rtf files generated by the tool.  Package reports work with the diagrams, master/sub document reports do not.  I would love to pass on some debug info, however none seems to be getting generated on my machines.
Title: Re: Instability of rtf document generation in 9
Post by: skiwi on July 05, 2011, 06:50:13 am
Quote
With an unworkable report generator

I can't say the report generator is unworkable for us.
With some care and the work arounds (see previous posts in this thread) our documents come out reliably.
I hope Sparx will in the next release, however, strive to continue to address the usability and stability of the document generator, and improve the regression testing!
Title: Re: Instability of rtf document generation in 9
Post by: aldr1c on July 05, 2011, 04:19:21 pm
OK, let me put some context around this.  I use the term unworkable because there is currently no assurance that the reports generated will be based on the data against which they were originally written.  Thus, 2 runs of the same report can lead to 2 different result sets and possibly 2 different engineers working against different data.  Another issue (reported elsewhere iirc) is that in a master/sub document report, a model report based on a query that returns a diagram will result in a blank page (suggesting no data, although usually the generator will omit empty sections), however a report run against the model document itself will return with the error 'Document Generation Failed', with no additional information.  Running a diagram report against the package works of course, however the diagrams required are in several packages in the tree.

Now, I really like this tool - I have been using it and publicising it in the places I work, however whilst the report generator is 'under the weather', I cannot really push for its increasing use - chance of much egg on ones face :-/
Title: Re: Instability of rtf document generation in 9
Post by: skiwi on July 06, 2011, 06:14:27 am
Yes, we don't use queries in our reports, so haven't encountered issues there.
I do wish Sparx would treat issues with documentation generation with far more urgency.
I would be more than happy to test betas with document fixes (and improvements) for them .
Title: Re: Instability of rtf document generation in 9
Post by: fwoolz on July 06, 2011, 04:52:08 pm
"Improper argument" crashes here when using a Master document... running the EA 9 build 907.
Title: Re: Instability of rtf document generation in 9
Post by: Graham_Moir on July 12, 2011, 08:13:21 pm
Build 908 has been released and the release notes suggest some stability issues have been addressed, although not all the bugs mentioned here.

Title: Re: Instability of rtf document generation in 9
Post by: Oliver F. on October 06, 2011, 08:56:00 pm
Quote
Since in the meantime 906 and 907 have been released, can somebody confirm a fix for this?

To bring up this old topic: I just installed 910 today and at a first glance the numbering issue seems to be fixed.

Oliver
Title: Re: Instability of rtf document generation in 9
Post by: Graham_Moir on October 06, 2011, 09:42:38 pm
9.1 build 910 does seem to be a lot more stable, although I have managed to crash it once using the RTF generation dialogue.