{"action":"created","issue":{"url":"https://api.github.com/repos/jrebacz/NppGraphViz/issues/3","repository_url":"https://api.github.com/repos/jrebacz/NppGraphViz","labels_url":"https://api.github.com/repos/jrebacz/NppGraphViz/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/jrebacz/NppGraphViz/issues/3/comments","events_url":"https://api.github.com/repos/jrebacz/NppGraphViz/issues/3/events","html_url":"https://github.com/jrebacz/NppGraphViz/issues/3","id":155816762,"number":3,"title":"Error in GraphViz Preview","user":{"login":"Beercow","id":10360919,"avatar_url":"https://avatars.githubusercontent.com/u/10360919?v=3","gravatar_id":"","url":"https://api.github.com/users/Beercow","html_url":"https://github.com/Beercow","followers_url":"https://api.github.com/users/Beercow/followers","following_url":"https://api.github.com/users/Beercow/following{/other_user}","gists_url":"https://api.github.com/users/Beercow/gists{/gist_id}","starred_url":"https://api.github.com/users/Beercow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Beercow/subscriptions","organizations_url":"https://api.github.com/users/Beercow/orgs","repos_url":"https://api.github.com/users/Beercow/repos","events_url":"https://api.github.com/users/Beercow/events{/privacy}","received_events_url":"https://api.github.com/users/Beercow/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-19T19:33:00Z","updated_at":"2016-05-20T00:40:40Z","closed_at":null,"body":"I keep getting an error in the preview pane. Error: gvwrite_no_z problem 229693494\r\nIf I run dot -Tpng PBTEMP.16972.81957.txt -o image.png from the command line, it produces a graph.\r\n\r\n[PBTEMP.16972.81957.txt](https://github.com/jrebacz/NppGraphViz/files/273326/PBTEMP.16972.81957.txt)\r\n "},"comment":{"url":"https://api.github.com/repos/jrebacz/NppGraphViz/issues/comments/220489581","html_url":"https://github.com/jrebacz/NppGraphViz/issues/3#issuecomment-220489581","issue_url":"https://api.github.com/repos/jrebacz/NppGraphViz/issues/3","id":220489581,"user":{"login":"jrebacz","id":12651687,"avatar_url":"https://avatars.githubusercontent.com/u/12651687?v=3","gravatar_id":"","url":"https://api.github.com/users/jrebacz","html_url":"https://github.com/jrebacz","followers_url":"https://api.github.com/users/jrebacz/followers","following_url":"https://api.github.com/users/jrebacz/following{/other_user}","gists_url":"https://api.github.com/users/jrebacz/gists{/gist_id}","starred_url":"https://api.github.com/users/jrebacz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrebacz/subscriptions","organizations_url":"https://api.github.com/users/jrebacz/orgs","repos_url":"https://api.github.com/users/jrebacz/repos","events_url":"https://api.github.com/users/jrebacz/events{/privacy}","received_events_url":"https://api.github.com/users/jrebacz/received_events","type":"User","site_admin":false},"created_at":"2016-05-20T00:40:40Z","updated_at":"2016-05-20T00:40:40Z","body":"Hello Beercow,\r\nThanks 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.  \r\n\r\nI think the root cause is something in graphviz, since graphviz is forming the error message you mentioned:\r\n\r\nhttps://github.com/ellson/graphviz/blob/master/lib/gvc/gvdevice.c\r\n\r\n> if ((olen = z->next_out - df)) {\r\n\t\tret = gvwrite_no_z (job, (char*)df, olen);\r\n\t        if (ret != olen) {\r\n                    (job->common->errorfn) (\"gvwrite_no_z problem %d\\n\", ret);\r\n\t            exit(1);\r\n\t        }\r\n\t    }\r\n\r\nLooking 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.  \r\n\r\nThanks,\r\nJeff"}}
{"actor":{"display_login":"jrebacz"}}