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

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

[Octave-bug-tracker] [bug #61088] opengl renderer - render warning repet


From: Nicholas Jankowski
Subject: [Octave-bug-tracker] [bug #61088] opengl renderer - render warning repetition, command window behavior
Date: Tue, 30 Nov 2021 12:06:30 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36

Update of bug #61088 (project octave):

                Severity:              3 - Normal => 2 - Minor              
                 Release:                   6.3.0 => 6.4.0                  
                 Summary: infinite warning loop - opengl renderer - data
greater than float capacity => opengl renderer - render warning repetition,
command window behavior

    _______________________________________________________

Follow-up Comment #5:

updating that something similar came up again in bug #39243 and bug #61591.  

running the following triggers similar warning behavior:


>> xdata = cosd (0:60:360);
>> ydata = sind (0:60:360);
>> h = patch (xdata, ydata, 'b', 'marker', 's'); %%draws hexagon
>> set (h, 'xdata', xdata(1:end-3))
>> warning: opengl_renderer: x/y/zdata must have the same dimensions.  Not
rendering.
warning: opengl_renderer: x/y/zdata must have the same dimensions.  Not
rendering.
warning: opengl_renderer: x/y/zdata must have the same dimensions.  Not
rendering.
get(h,'xdata'), get(h, 'ydata')
ans =

   1.0000   0.5000  -0.5000  -1.0000

ans =

        0
   0.8660
   0.8660
        0
  -0.8660
  -0.8660
        0
>> set (h, 'ydata', ydata(1:end-3)  %%figure renders 4pt trapezoid, warnings
cease


Note the warning appears after the >>, which doesn't reappear until the next
typed command as every figure interaction triggers the warning repetition
until the condition is fixed. (no more warnings after the ydata set command)

the warning is also triggered when creating a mismatched figure (which errors
in matlab), but ...

>> xdata = cosd (0:60:360);
>> ydata = sind (0:60:360);
>> h = patch (xdata, ydata(1:end-1), 'b', 'marker', 's');
>> warning: opengl_renderer: x/y/zdata must have the same dimensions.  Not
rendering.
warning: opengl_renderer: x/y/zdata must have the same dimensions.  Not
rendering.
get(h,'xdata'), get(h, 'ydata')
ans =
   1.0000
   0.5000
  -0.5000
  -1.0000
  -0.5000
   0.5000
   1.0000

ans =
        0
   0.8660
   0.8660
        0
  -0.8660
  -0.8660

>> h = patch (xdata, ydata, 'b', 'marker', 's');
>> warning: opengl_renderer: x/y/zdata must have the same dimensions.  Not
rendering.
warning: opengl_renderer: x/y/zdata must have the same dimensions.  Not
rendering.
warning: opengl_renderer: x/y/zdata must have the same dimensions.  Not
rendering.
>> get(h,'xdata'), get(h, 'ydata')
ans =
   1.0000
   0.5000
  -0.5000
  -1.0000
  -0.5000
   0.5000
   1.0000

ans =
        0
   0.8660
   0.8660
        0
  -0.8660
  -0.8660
        0

>> warning: opengl_renderer: x/y/zdata must have the same dimensions.  Not
rendering.


Even after overwriting h, the 'every interaction' warning persists.  maybe
this is just my misunderstanding of how figures work. I understand adding
another plot to that figure wouldn't clear the problem creating the warning,
but I thought overwriting h should. or does the invalid plot still exist
there, just no longer named h?

retitling with a more accurate description and removing tie to specific opengl
warning

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?61088>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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