You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TALA in v0.9.0 fails with "route-search work limit exceeded" on a 120-node / 100-edge diagram that the 0.4.3 plugin laid out fine #2891
Since TALA became bundled in v0.9.0, diagrams that the standalone d2plugin-tala 0.4.3 rendered without trouble now fail to compile. The engine gives up after ~2 s on a hard-coded work cap rather than taking longer, and there seems to be no way to raise it.
Repro
Generate a diagram of 40 containers with 3 nodes each and 100 cross-container connections:
$ d2 --layout tala repro.d2 out.svg
err: failed to compile repro.d2: all TALA seed attempts failed: seed 1: TALA route-search work limit exceeded: TALA EdgeRouting flavor TopDownLeftRight work exceeds limit 120000000
err: seed 2: TALA route-search work limit exceeded: TALA EdgeRouting flavor TopDownLeftRight work exceeds limit 120000000
err: seed 3: TALA route-search work limit exceeded: TALA EdgeRouting flavor TopDownLeftRight work exceeds limit 120000000
Expected
The diagram lays out, as it does with the pre-0.9.0 engine:
engine
result
d2 0.7.1 + d2plugin-tala 0.4.3, --layout tala
renders in ~10 s
d2 0.9.0 bundled TALA, --layout tala
fails in ~2 s (above)
d2 0.9.0, --layout elk
renders in <1 s
Notes
The threshold is low and sits on connection count: with the same 120 nodes, 80 connections render, 100 fail. Edge labels make no difference.
Raising the seed count does not help - --tala-seeds 12 fails the same way on every seed.
At 180 connections the error changes to TALA OVG resource limit exceeded: node count 200001 exceeds limit 200000.
--timeout / D2_TIMEOUT has no effect here: the run above passes --timeout 300 and still gives up after ~2 s, because the caps bound work units rather than wall-clock time.
The caps look like compile-time constants (maxRouteSearchWorkUnits, maxOVGWorkUnits, maxRouteStageWorkUnits in d2layouts/d2talalayout/internal/routing), so there is no flag or environment variable to trade time for a completed layout.
Ask
Could these caps be made configurable - a flag and/or a D2_TALA_* environment variable, alongside the existing --tala-seeds? D2 already lets a caller say "this may take longer" through --timeout / D2_TIMEOUT; the work caps sit outside it, so there is currently no way to spend more time on a diagram the engine considers too expensive. A knob would let callers who accept a slower layout keep rendering the diagrams the 0.4.3 plugin handled.
Tested with the official d2-v0.9.0-linux-arm64 release binary on Ubuntu 24.04 (arm64).
Hitting the same regression on a real architecture diagram, with two caps not listed above.
What happens
A ~2,100-line diagram (~230 connections, nested containers) that rendered with the standalone plugin now fails on every seed with d2 0.9.0:
$ d2 --sketch --dark-theme 104 --layout tala --timeout 300 diagram.d2
err: failed to compile diagram.d2: all TALA seed attempts failed: seed 1: TALA OVG resource limit exceeded: intersection candidate count 1138878 exceeds limit 1000000
err: seed 2: TALA AutolayoutTransactions work exceeds limit 1000000000
err: seed 3: TALA OVG resource limit exceeded: intersection candidate count 1074480 exceeds limit 1000000
engine
result
d2 0.8.2 + d2plugin-tala 0.4.3 (Homebrew)
renders in 3m49s
d2 0.9.0, bundled TALA
fails on all 3 seeds
I can't share the diagram itself (internal), but I'm happy to test builds against it.
Plugin is shadowed by the bundled engine
d2plugin-tala 0.4.3 is still installed and on PATH, but 0.9.0 ignores it:
$ d2 layout # 0.9.0
tala (bundled) - TALA is D2's native layout and edge-routing engine.
$ d2 layout # 0.8.2
tala (/opt/homebrew/bin/d2plugin-tala) - Terrastruct's AutoLayout Approach
So the only workaround today is pinning d2 to 0.8.2.
Ask
In addition to making the caps configurable (as proposed above), could there be a way to select the external d2plugin-tala when it is installed, e.g. a flag or D2_LAYOUT value that prefers the plugin over the bundled engine? That would give users a supported path while the bundled engine's limits are tuned.
Environment: macOS 26.6.2 (arm64), d2 0.9.0 from Homebrew, d2plugin-tala 0.4.3 from terrastruct/tap.
Activity
davidxia commentedon Sep 29, 2026
Hitting the same regression on a real architecture diagram, with two caps not listed above.
What happens
A ~2,100-line diagram (~230 connections, nested containers) that rendered with the standalone plugin now fails on every seed with d2 0.9.0:
d2plugin-tala0.4.3 (Homebrew)I can't share the diagram itself (internal), but I'm happy to test builds against it.
Plugin is shadowed by the bundled engine
d2plugin-tala0.4.3 is still installed and onPATH, but 0.9.0 ignores it:So the only workaround today is pinning d2 to 0.8.2.
Ask
In addition to making the caps configurable (as proposed above), could there be a way to select the external
d2plugin-talawhen it is installed, e.g. a flag orD2_LAYOUTvalue that prefers the plugin over the bundled engine? That would give users a supported path while the bundled engine's limits are tuned.Environment: macOS 26.6.2 (arm64), d2 0.9.0 from Homebrew,
d2plugin-tala0.4.3 fromterrastruct/tap.