Blank White Images

If you're having trouble using Context Free or don't understand the language, ask for help here.

Moderators: MtnViewJohn, chris, mtnviewmark

Post Reply
joe
Posts: 2
Joined: Wed Sep 07, 2005 5:17 pm

Blank White Images

Post by joe »

Using the Linux command line version, when I try to render an image in a large size (bigger than about 1000x1000), I often end up with nothing but a blank white image.

This happens awfully quickly for the amount of computation that's supposed to be being done and It's pretty clear that the swap doesn't get touched. So I did a little experiment which revealed that the problem crops up whenever cfdg saves shapes to temp files.

Thoughts?

joe
Posts: 2
Joined: Wed Sep 07, 2005 5:17 pm

Post by joe »

I found the problem.

The buffer supplied to mktemp() must have six X's at the end. On line 50 of src-unix/posixSystem.cpp the buffer is only initialized to have 5 X's. Adding one more fixed it.

Post Reply