grossman / mscgen

Automatically exported from code.google.com/p/mscgen
GNU General Public License v2.0
0 stars 2 forks source link

Assertion when the source entity is unknown. #62

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
msc {
  foo, bar;
  ---;

  # Version of mscgen used is 0.19, OS is Windows

  # This line (when uncommented) produces a nice "Unknown destination entity 'unknown'" error
  # bar -> unknown;

  # This line (when uncommented) produces
  #     Assertion failed: startCol >= 0 && startCol < (signed)MscGetNumEntities(m), file ../../../mscgen-0.19/src/main.c, line 382
  # error
  # unknown -> bar;
}

Original issue reported on code.google.com by alexei.a...@gmail.com on 4 Feb 2011 at 7:55

GoogleCodeExporter commented 8 years ago
Hi

I can confirm the issue under Linux as well with mscgen 0.19 (from Debian). On 
a more interesting note, mscgen 0.18 (also from Debian) appears to handle this 
correct. So I have assumed this to be a regression (hench the high priority).

~Niels

Original comment by NThykier@gmail.com on 4 Feb 2011 at 10:06

GoogleCodeExporter commented 8 years ago
Yep - it's a regression.  

The text wrapping code now looks up entity names earlier - before the nice 
checks have been done.  

I'm fixing this in SVN and also making it report the line number of the 
erroneous input too.

Original comment by Michael....@gmail.com on 6 Feb 2011 at 9:03

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r175.

Original comment by Michael....@gmail.com on 6 Feb 2011 at 9:07

GoogleCodeExporter commented 8 years ago
Hey

Great, I tried backporting it on top of the 0.19 and could not reproduce the 
issue anymore. Using that I have uploaded 0.19-3 to the Debian archive, which 
should soon reach unstable. :)

~Niels

Original comment by NThykier@gmail.com on 6 Feb 2011 at 11:23