Skip to content

Failed to create PNG image #214

Answered by v-dobrev
jchan192 asked this question in Q&A
Dec 22, 2021 · 3 comments · 1 reply
Discussion options

You must be logged in to vote

For me the script works fine on macOS.

One thing to remember is that when the GLVis window opens, it stops reading the script after the "solution mesh-file sol-file" command, so it will not automatically execute the following commands. To do that, one needs to press the space key in the GLVis window. I suspect you are already doing that, otherwise you will not get the file "result.png".

One thing you can try is to test if screenshots work for you without using a script. Can you try running the command

glvis -m A.mesh -g A.gf

and then take a screenshot by pressing the S key. Is the generated file (GLVis_s01.png) a black png as well? If that is the case, can you give us more details about h…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@tzanio
Comment options

Answer selected by tzanio
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants