-
Notifications
You must be signed in to change notification settings - Fork 422
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
d2 freezes immediately when rendering diagram, after upgrade to v0.6.7 #2140
Comments
Is this a copy paste of what you ran? If so, |
Oops, that's my bad, I will correct it above, I typed it in and forgot the >. I will try different versions when I'm back at my laptop. Thanks for the quick reply! |
Ok, I'm on better internet now, and apparently that has something to do with what I was experiencing... First, I installed all versions between v0.6.1 and v0.6.7. All up to v0.6.7 do render the d2 graph as expected, but one note is that at v0.6.6 I saw the same As for v0.6.7, what I was experiencing as a freeze before, now seems to be initialization of a Chromium download:
I was able to cancel this download with ctrl+C without any issue this time around. I don't see anything about a new dependency like this in the release notes but maybe I just need to have Chromium for d2 to work now? Just looking for clarification on that then. For my needs I'll be 100% fine with just using v0.6.6, but I am happy to try other tests if that would help you. |
Ah I see. Yeah Playwright is needed for PNG exports unfortunately (https://d2lang.com/tour/exports/#png). It's the only possible way to convert SVGs to PNGs. I'm not sure why it's different on different versions, as that shouldn't have changed... I'll leave this open in case anyone else runs into the same. I really appreciate you trying each version and the detailed report |
Sounds good, thanks for the explanation. |
I just upgraded from v0.6.1 to v0.6.7, and now when I try to render a diagram the process just freezes.
This prints
and then just stops. When I ctrl-C to cancel, nothing happens and I eventually just have to close the console.
I reinstalled the older version with
and it now works properly.
I'm on PopOS 22 (Ubuntu) and here's the output from the install
The text was updated successfully, but these errors were encountered: