octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #53186] Without osmesa it is not possible to p


From: Dmitri A. Sergatskov
Subject: [Octave-bug-tracker] [bug #53186] Without osmesa it is not possible to print/getframe invisible figures
Date: Fri, 2 Mar 2018 09:41:07 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0

Follow-up Comment #35, bug #53186 (project octave):

That might have some problems:


uildbot.octave.org:8010/builders/gcc-lto-fedora/builds/1346/steps/test/logs/stdio

>>>>> processing
/home/buildbotu/fc25-x86_64/gcc-lto-fedora/src/scripts/image/getframe.m
***** testif HAVE_QOFFSCREENSURFACE
 hf = figure ("visible", "off");
 unwind_protect
   pos = get (hf, "position");
   assert (size (getframe (hf).cdata)(1:2), pos(4:-1:3));
 unwind_protect_cleanup
   close (hf);
 end_unwind_protect
!!!!! test failed
ASSERT errors for:  assert (size (getframe (hf).cdata) (1:2),pos (4:-1:3))

  Location  |  Observed  |  Expected  |  Reason
    (1)           0           420        Abs err 420 exceeds tol 0 by 4e+02
    (2)           0           560        Abs err 560 exceeds tol 0 by 6e+02



and


http://buildbot.octave.org:8010/builders/gcc-6-debian/builds/1408/steps/test/logs/stdio

>>>>> processing
/var/lib/buildbot/workers/buildbot.octave.org/gcc-6-debian/src/scripts/image/getframe.m
***** testif HAVE_QOFFSCREENSURFACE
 hf = figure ("visible", "off");
 unwind_protect
   hax = axes ("visible", "off", "position", [0 0 1 1]);
   verts = [0 0; .5 0; 1 0; ...
            0 .5; .5 .5; 1 .5; ...
            0 1; .5 1; 1 1];
   faces = [1 2 5 4; 2 3 6 5; 4 5 8 7; 5 6 9 8];
   fvc = [1 0 0; 0 1 0; 0 0 1; 1 0 1];
   patch ("vertices", verts, "faces", faces, "facevertexcdata", fvc, ...
          "facecolor", "flat");

   kk = 1;
   pos = get (hf, "position");

   for jj = [0.05 0.55]
     for ii = [0.05 0.55]
       rect = [ii jj .4 .4].*[pos(3:4) pos(3:4)];
       frame = getframe (hax, rect).cdata;
       assert (frame(:,:,1) == fvc(kk,1)*255);
       assert (frame(:,:,2) == fvc(kk,2)*255);
       assert (frame(:,:,3) == fvc(kk,3)*255);
       kk++;
     endfor
   endfor
 unwind_protect_cleanup
   close (hf);
 end_unwind_protect
!!!!! test failed
assert (frame (:, :, 1) == fvc (kk, 1) * 255) failed



Dmitri.
-- 



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?53186>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]