Assertion when the source entity is unknown.
Closed this issue · 4 comments
GoogleCodeExporter commented
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
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
- Changed state: Accepted
- Added labels: Component-Logic, OpSys-All, Priority-High
- Removed labels: Priority-Medium
GoogleCodeExporter commented
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
This issue was closed by revision r175.
Original comment by Michael....@gmail.com
on 6 Feb 2011 at 9:07
- Changed state: Fixed
GoogleCodeExporter commented
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
- Changed state: Verified