From: Torquil M. <to...@gm...> - 2008-01-21 21:43:12
|
Hello, the JPG-output driver is no longer working for me using todays=20 SVN-version of plplot. I get a segmentation fault. The program makes just o= ne=20 simple plot.I will include it below. I have attached the strace output from my plplot-program when using the JPG= =20 output driver that segfaults. It looks as though it segfaults when doing=20 something font-related. Using the "-drvopt text" option does not change thi= s. In addition, when trying to open the output file from the "<18> svg" driver= in=20 konqueror, it complains with "A legal svg document requires a <svg> root=20 element". The svgcairo driver however, makes files that can be opened in=20 konqueror. I have Debian Sid with version 6b-14 of libjpeg62 and libjpeg62-dev. I=20 compiled by first installing all build-dependencies with apt-get build-dep= =20 libplplot9, and then running the standard dpkg-buildpackage command (after= =20 removing the patches that didn't apply correctly) Best regards, Torquil S=F8rensen #include <plplot/plplot.h> using namespace std; int main(int argc, const char *argv[]) { double x[] =3D { 0.1, 0.5, 0.2, 0.4, 0.4 }; double y[] =3D { 0.5, 0.4, 0.4, 0.8, 0.9 }; plparseopts(&argc, argv, PL_PARSE_FULL); plsfnam("1.jpg"); plsdev("jpeg"); plinit(); plenv(0, 1, 0, 1, 1, -2); plbop(); plbox("bcinst", 0, 0, "bcinst", 0, 0); plline(5, x, y); pleop(); plend(); return(0); } |