# Assert (sz \>= 2) in convertSPtoRoute

**URL:** <https://forum.graphviz.org/t/assert-sz-2-in-convertsptoroute/689>\
**Category:** Help\
**Created:** [June 5, 2021, 1:15pm UTC](https://forum.graphviz.org/t/assert-sz-2-in-convertsptoroute/689 "2021-06-05T13:15:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcobn](https://sea2.discourse-cdn.com/graphviz/user_avatar/forum.graphviz.org/marcobn/32/392_2.png) [@marcobn](https://forum.graphviz.org/u/marcobn)\
**Post date:** [June 5, 2021, 1:15pm UTC](https://forum.graphviz.org/t/assert-sz-2-in-convertsptoroute/689/1 "2021-06-05T13:15:59Z")

</div>

Hi, I have some dot files that were working with no problem in version 2.44.1 and now run into an error in ortho.c , line 155. By simply comparing ortho.c in 2.44 and 2.47 I see that the line 155: `assert(sz \>= 2);’ has been added only in the new version. But now all my files are broken. A dot file is listed below.  
Any help is greatly appreciated!

Marco Buongiorno Nardelli, PhD  
University Distinguished Research Professor  
University of North Texas  
CEMI, Center for Experimental Music and Intermedia  
iARTA, Initiative for Advanced Research in Technology and the Arts  
ArtSciLab, ATEC @ the University of Texas at Dallas  
Associate Fellow, IMéRA - Institut d’Études Avancée d’Aix-Marseille Université

[http://ermes.unt.edu](http://ermes.unt.edu)

> **[materials sound music - contemporary music, new media art](https://www.materialssoundmusic.com)**
>
> Music, Science and Data-Driven Composition
> Contemporary music
> New media art
> Music theory and composition

+++++++++++++++ test.dot ++++++++++++++++  
digraph {  
model=subset pad=0.1 rankdir=LR ratio=0.8 size=“10,10” splines=ortho  
graph [fontname=“Helvetica Neue” fontsize=32 label=“Requiem - performer 2 layer 0” labelloc=t nodesep=0.01]  
node [fontname=“Helvetica Neue” fontsize=16 shape=rectangle]  
edge [arrowType=normal]  
30  
30 → 8  
1  
8 → 1  
27  
1 → 27  
0  
27 → 0  
18  
0 → 18  
3  
18 → 3  
3 → 8  
34  
8 → 34  
34 → 27  
9  
27 → 9  
9 → 8  
26  
8 → 26  
32  
26 → 32  
6  
32 → 6  
16  
6 → 16  
15  
16 → 15  
15 → 8  
13  
8 → 13  
22  
13 → 22  
22 → 32  
37  
32 → 37  
28  
37 → 28  
36  
28 → 36  
36 → 18  
48  
18 → 48  
50  
48 → 50  
19  
50 → 19  
17  
19 → 17  
17 → 8  
35  
8 → 35  
35 → 22  
43  
22 → 43  
2  
43 → 2  
52  
2 → 52  
52 → 8  
29  
8 → 29  
29 → 16  
5  
16 → 5  
11  
5 → 11  
40  
11 → 40  
12  
40 → 12  
12 → 8  
8 → 32  
20  
32 → 20  
14  
20 → 14  
14 → 12  
12 → 22  
46  
22 → 46  
33  
46 → 33  
33 → 16  
16 → 22  
22 → 33  
33 → 18  
10  
18 → 10  
10 → 28  
28 → 18  
4  
18 → 4  
41  
4 → 41  
41 → 50  
23  
50 → 23  
23 → 27  
31  
27 → 31  
49  
31 → 49  
49 → 18  
39  
18 → 39  
21  
39 → 21  
21 → 32  
38  
32 → 38  
7  
38 → 7  
7 → 41  
41 → 50  
50 → 8  
51  
8 → 51  
24  
51 → 24  
24 → 8  
8 → 14  
14 → 8  
8 → 24  
24 → 16  
16 → 11  
42  
11 → 42  
42 → 27  
27 → 19  
19 → 7  
7 → 22  
22 → 49  
49 → 22  
22 → 7  
45  
7 → 45  
25  
45 → 25  
47  
25 → 47  
47 → 25  
25 → 8  
8 → 22  
22 → 27  
27 → 47  
47 → 8  
8 → 27  
27 → 50  
44  
50 → 44  
44 → 28  
28 → 27  
27 → 21  
21 → 27  
27 → 2  
2 → 8  
8 → 33  
33 → 11  
30  
11 → 30  
30 → 2  
2 → 30  
8 [label=“high  
low  
mezzo  
external”]  
1 [label=“high  
high  
forte  
internal”]  
27 [label=“low  
low  
mezzo  
internal”]  
0 [label=“high  
high  
forte  
external”]  
18 [label=“low  
high  
forte  
external”]  
3 [label=“high  
high  
mezzo  
internal”]  
34 [label=“low  
medium  
piano  
external”]  
9 [label=“high  
low  
mezzo  
internal”]  
26 [label=“low  
low  
mezzo  
external”]  
32 [label=“low  
medium  
mezzo  
external”]  
6 [label=“high  
low  
forte  
external”]  
16 [label=“high  
medium  
piano  
external”]  
15 [label=“high  
medium  
mezzo  
internal”]  
13 [label=“high  
medium  
forte  
internal”]  
22 [label=“low  
high  
piano  
external”]  
37 [label=“middle  
high  
mezzo  
external”]  
28 [label=“low  
low  
piano  
external”]  
36 [label=“middle  
high  
forte  
internal”]  
48 [label=“middle  
medium  
forte  
internal”]  
50 [label=“middle  
medium  
mezzo  
internal”]  
19 [label=“low  
high  
forte  
internal”]  
17 [label=“high  
medium  
piano  
internal”]  
35 [label=“middle  
high  
forte  
external”]  
43 [label=“middle  
low  
mezzo  
external”]  
2 [label=“high  
high  
mezzo  
external”]  
52 [label=“middle  
medium  
piano  
internal”]  
29 [label=“low  
low  
piano  
internal”]  
5 [label=“high  
high  
piano  
internal”]  
11 [label=“high  
low  
piano  
internal”]  
40 [label=“middle  
high  
piano  
internal”]  
12 [label=“high  
medium  
forte  
external”]  
20 [label=“low  
high  
mezzo  
external”]  
14 [label=“high  
medium  
mezzo  
external”]  
46 [label=“middle  
low  
piano  
internal”]  
33 [label=“low  
medium  
mezzo  
internal”]  
10 [label=“high  
low  
piano  
external”]  
4 [label=“high  
high  
piano  
external”]  
41 [label=“middle  
low  
forte  
external”]  
23 [label=“low  
high  
piano  
internal”]  
31 [label=“low  
medium  
forte  
internal”]  
49 [label=“middle  
medium  
mezzo  
external”]  
39 [label=“middle  
high  
piano  
external”]  
21 [label=“low  
high  
mezzo  
internal”]  
38 [label=“middle  
high  
mezzo  
internal”]  
7 [label=“high  
low  
forte  
internal”]  
51 [label=“middle  
medium  
piano  
external”]  
24 [label=“low  
low  
forte  
external”]  
42 [label=“middle  
low  
forte  
internal”]  
45 [label=“middle  
low  
piano  
external”]  
25 [label=“low  
low  
forte  
internal”]  
47 [label=“middle  
medium  
forte  
external”]  
44 [label=“middle  
low  
mezzo  
internal”]  
30 [label=“low  
medium  
forte  
external”]  
45 [label=“middle  
low  
piano  
external” shape=circle style=filled]  
49 [label=“middle  
medium  
mezzo  
external” shape=circle style=filled]  
16 [label=“high  
medium  
piano  
external” shape=circle style=filled]  
52 [label=“middle  
medium  
piano  
internal” shape=circle style=filled]  
28 [label=“low  
low  
piano  
external” shape=circle style=filled]  
9 [label=“high  
low  
mezzo  
internal” shape=circle style=filled]  
32 [label=“low  
medium  
mezzo  
external” shape=circle style=filled]  
15 [label=“high  
medium  
mezzo  
internal” shape=circle style=filled]  
28 [label=“low  
low  
piano  
external” shape=circle style=filled]  
28 [label=“low  
low  
piano  
external” shape=circle style=filled]  
32 [label=“low  
medium  
mezzo  
external” shape=circle style=filled]  
28 [label=“low  
low  
piano  
external” shape=circle style=filled]  
49 [label=“middle  
medium  
mezzo  
external” shape=circle style=filled]  
42 [label=“middle  
low  
forte  
internal” shape=circle style=filled]  
1 [label=“high  
high  
forte  
internal” shape=circle style=filled]  
14 [label=“high  
medium  
mezzo  
external” shape=circle style=filled]  
}

---

<div class="post-metadata">

**Author:** ![steveroush](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@steveroush](https://forum.graphviz.org/u/steveroush)\
**Post date:** [June 5, 2021, 2:16pm UTC](https://forum.graphviz.org/t/assert-sz-2-in-convertsptoroute/689/2 "2021-06-05T14:16:58Z")

</div>

see: [Assertion error when using `dot` in `ortho.c` in `convertSPtoRoute` in graphviz 2.47.2 (not an issue in graphviz 2.46.1) (#2082) · Issues · graphviz / graphviz · GitLab](https://gitlab.com/graphviz/graphviz/-/issues/2082)

---

<div class="post-metadata">

**Author:** ![smattr](https://sea2.discourse-cdn.com/graphviz/user_avatar/forum.graphviz.org/smattr/32/85_2.png) [@smattr](https://forum.graphviz.org/u/smattr)\
**Post date:** [June 5, 2021, 4:19pm UTC](https://forum.graphviz.org/t/assert-sz-2-in-convertsptoroute/689/3 "2021-06-05T16:19:14Z")

</div>

Fixed in [fix incorrect return value in inside\_polygon (!1988) · Merge requests · graphviz / graphviz · GitLab](https://gitlab.com/graphviz/graphviz/-/merge_requests/1988) which should make it into the 2.47.3 release. Apologies for the inconvenience.

---

<div class="post-metadata">

**Author:** ![marcobn](https://sea2.discourse-cdn.com/graphviz/user_avatar/forum.graphviz.org/marcobn/32/392_2.png) [@marcobn](https://forum.graphviz.org/u/marcobn)\
**Post date:** [June 5, 2021, 7:34pm UTC](https://forum.graphviz.org/t/assert-sz-2-in-convertsptoroute/689/4 "2021-06-05T19:34:39Z")

</div>

Thank you Matthew! Is there any way I can get a patch for the homebrew installation on Mac? I am a composer, and I use GraphViz to generate my graphic scores, and I have a recording this week for which I need to generate the parts. Unfortunately I have only my laptop (I am out of town for this) and I do not have access to my studio computer that still has the 2.44.1. Should I try to reinstall from master on GitLab directly?  
Thanks again,  
marco

---

<div class="post-metadata">

**Author:** ![smattr](https://sea2.discourse-cdn.com/graphviz/user_avatar/forum.graphviz.org/smattr/32/85_2.png) [@smattr](https://forum.graphviz.org/u/smattr)\
**Post date:** [June 5, 2021, 8:21pm UTC](https://forum.graphviz.org/t/assert-sz-2-in-convertsptoroute/689/5 "2021-06-05T20:21:15Z")

</div>

I think Homebrew allows you to install older versions, right? Unless you need a particular feature from 2.47.2, you should be able to install 2.47.1 instead to work around this for now.

---

<div class="post-metadata">

**Author:** ![marcobn](https://sea2.discourse-cdn.com/graphviz/user_avatar/forum.graphviz.org/marcobn/32/392_2.png) [@marcobn](https://forum.graphviz.org/u/marcobn)\
**Post date:** [June 5, 2021, 9:05pm UTC](https://forum.graphviz.org/t/assert-sz-2-in-convertsptoroute/689/6 "2021-06-05T21:05:49Z")

</div>

No, but I downloaded the 2.47.1 snapshot from the website and compiled. It works!  
Thanks again for your help!  
marco

---

<div class="post-metadata">

**Author:** ![scnorth](https://sea2.discourse-cdn.com/graphviz/user_avatar/forum.graphviz.org/scnorth/32/89_2.png) [@scnorth](https://forum.graphviz.org/u/scnorth)\
**Post date:** [June 5, 2021, 9:11pm UTC](https://forum.graphviz.org/t/assert-sz-2-in-convertsptoroute/689/7 "2021-06-05T21:11:07Z")

</div>

Sorry for the trouble. If you are building from source, as an end user, that’s impressive.
