Skip to content
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

Error in GraphViz Preview #3

Open
Beercow opened this issue May 19, 2016 · 3 comments
Open

Error in GraphViz Preview #3

Beercow opened this issue May 19, 2016 · 3 comments

Comments

@Beercow
Copy link

Beercow commented May 19, 2016

I keep getting an error in the preview pane. Error: gvwrite_no_z problem 229693494
If I run dot -Tpng PBTEMP.16972.81957.txt -o image.png from the command line, it produces a graph.

PBTEMP.16972.81957.txt

@jrebacz
Copy link
Owner

jrebacz commented May 20, 2016

Hello Beercow,
Thanks for using the plugin and taking the time to raise this issue. I was able to preview PBTEMP.16972.81957.txt, and save a .png with the plugin, and Graphviz 2.38. The command "dot -Tpng PBTEMP.16972.81957.txt -o image.png" works fine for me too. I'd be curious to know how "dot -Tbmp PBTEMP.16972.81957.txt -o image.bmp" works on your end, because NppGraphviz uses "dot -Tbmp" to generate the preview.

I think the root cause is something in graphviz, since graphviz is forming the error message you mentioned:

https://github.com/ellson/graphviz/blob/master/lib/gvc/gvdevice.c

if ((olen = z->next_out - df)) {
ret = gvwrite_no_z (job, (char*)df, olen);
if (ret != olen) {
(job->common->errorfn) ("gvwrite_no_z problem %d\n", ret);
exit(1);
}
}

Looking at this file, it seems like the error is occurring while using ZLIB's streaming compression/uncompression functionality. 229693494 is probably the number of bytes (uncompressed) zlib is working with. That is also the size of the output .bmp file.

Thanks,
Jeff

@Beercow
Copy link
Author

Beercow commented May 20, 2016

I'll have to let yu know tomorrow. I noticed it didn't occure with all of the rendering engines, just some. I know dot caused the error, which is what I wanted in thos case, but others worked fine. I'll get you a list of which ones caused the error.

@Beercow
Copy link
Author

Beercow commented May 20, 2016

"dot -Tbmp PBTEMP.16972.81957.txt -o image.bmp" produces a bmp file just fine. The only layout engines I get the error in the GraphViz Preview pane are: dot, fdp, and circo. Not sure what the issue is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants