Re: "text 100,100 Cockatoo"
Bob Friesenhahn <[email protected]> Tue, 4 Oct 2011 16:37:20 -0500 (CDT)
| Newsgroups | gmane.comp.video.graphicsmagick.apis |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 4 Oct 2011, [email protected] wrote: > > When trying to set a primitive: > imgstruct->drawinfo->primitive="text 200,200 abcdefg"; > DrawImage(imgstruct->image, imgstruct->drawinfo); /* <--- fails, segfault */ > > > imgstruct->drawinfo->primitive="text 200,200 abcdef"; /* <--- one less char to writeout */ > DrawImage(imgstruct->image, imgstruct->drawinfo); /* <--- works fine */ > > What have I run into? Obviously something has a bug. You won't know exactly what unless you build with debugging enabled (-g) and inspect a core file in a debugger. It could be a bug in GM, some weird issue with FreeType, or a problem with your own code. If you can't reproduce this issue via the command line, then the issue is likely to be in your own code. Are you able to rebuild GraphicsMagick in debugging mode? Since you are using NetBSD I will assume that you are capable of accomplishing almost anything. :-) If NetBSD has a valgrind port (like FreeBSD does) then you might be able to find the problem via 'valgrind --tool=memcheck command ...'. Bob -- Bob Friesenhahn [email protected], http://www.simplesystems.org/users/bfriesen/ GraphicsMagick Maintainer, http://www.GraphicsMagick.org/ ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1