bugGNU Octave - Bugs: bug #55654, Image not displayed with YDir set...

 
 

bug #55654: Image not displayed with YDir set to normal

Submitted by:  Guillaume <gyom>
Submitted on:  Wed 06 Feb 2019 10:48:11 AM UTC  
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Guillaume Open/Closed:  Closed
Release:  dev Operating System:  Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

( Jump to the original submission)

Thu 14 Feb 2019 04:09:20 PM UTC, comment #13:

Ahh, good news at last. Marking as fixed and closing report.

Rik <rik5>
Project Administrator
Thu 14 Feb 2019 10:09:42 AM UTC, comment #12:

Success! It now works and the image does not disappear any more. Thanks Rik and Pantxo!

Guillaume <gyom>
Wed 13 Feb 2019 05:31:39 PM UTC, comment #11:

@Guillaume: Another request, can you try with the development branch and this changeset

This is Pantxo's work which I checked in this morning. It completely re-does the way OpenGL renders images and therefore might fix this issue.

Rik <rik5>
Project Administrator
Wed 13 Feb 2019 10:14:40 AM UTC, comment #10:

I tried again with the latest dev but the issue is still here.

Guillaume <gyom>
Mon 11 Feb 2019 12:55:07 AM UTC, comment #9:

@Guillaume: Can you check whether thing have improved since this changeset:

This is only 37 hours old, but I think it could be related. In bug #55634 I found it quite easy to make plots disappear with certain pbaspect combinations.

Rik <rik5>
Project Administrator
Fri 08 Feb 2019 11:28:17 AM UTC, comment #8:

Thanks for confirming. I could also reproduce it from within a Linux VM where there was no HW-accelerated OpenGL. It only occurs for some very specific ratios (and YDir normal seems to matter too).

Guillaume <gyom>
Thu 07 Feb 2019 05:44:10 PM UTC, comment #7:

@Guillaume, comment #3:
You're right, on Windows, with some careful vertical resizing I managed to get an empty figure (the axes are drawn nevertheless).
See attached pic.

Operating System => Any

(file #46204)

Philip Nienhuis <philipnienhuis>
Project Member
Thu 07 Feb 2019 05:28:12 PM UTC, comment #6:

If that is the case then Guillaume will need to try installing something like the Nouveau drivers for NVIDIA hardware, switch to that, and see if it makes a difference.

Given that other platforms aren't seeing it, I suspect that will fix it.

Rik <rik5>
Project Administrator
Thu 07 Feb 2019 05:00:49 PM UTC, comment #5:

I think LIBGL_ALWAYS_SOFTWARE only works with the Mesa libraries (or ones derived from Mesa) and the Nvidia OpenGL library is not.

John W. Eaton <jwe>
Project Administrator
Thu 07 Feb 2019 04:47:32 PM UTC, comment #4:

Try setting the environment variable

before starting Octave. That should use SW rendering over Nvidia HW drivers.

Rik <rik5>
Project Administrator
Thu 07 Feb 2019 11:41:05 AM UTC, comment #3:

Thanks for the feedbacks. I indeed use NVIDIA drivers on Linux - is there a way to easily test without?

I tried on WIndows and couldn't reproduce the bug at first either. But you will notice that resizing the window horizontally is rather smooth, while vertically is quite jiggly (I think mainly due to the redrawing of the 'coordinates' lower bar of the figure) and if you try long enough you will at some point observe the same issue that the image is empty. When that's the case, calling drawnow or refresh has no effect.

Guillaume <gyom>
Wed 06 Feb 2019 06:28:42 PM UTC, comment #2:

Works or me on Windows 7 as well.
There are some delays during redrawing but in the end (after 0.2 sec or so) the figure looks good.

Philip Nienhuis <philipnienhuis>
Project Member
Wed 06 Feb 2019 04:18:44 PM UTC, comment #1:

This works for me. I'm running Kubuntu 18.04 and using this tip

This could also have to do with your video card if you are using HW-accelerated OpenGL.

The fact that resizing the figure causes the image to re-appear suggests something hard to debug, but relatively simple. Somewhere a call to drawnow() or refresh() is effectively not getting made.

Rik <rik5>
Project Administrator
Wed 06 Feb 2019 10:48:11 AM UTC, original submission:

When I run the following:

the image disappears and the content of the axis is empty when 'Ydir' is set to 'normal'. Resizing the figure in the vertical axis can make it reappear (this might also be something you have to do to observe the problem in the first instance with a different screen configuration). The fact that it comes and goes seems to indicate there might be a rounding error somewhere.

Guillaume <gyom>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by gyom (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

     

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-02-14 rik5 StatusWorks For Me => Fixed
        Open/ClosedOpen => Closed
    2019-02-07 philipnienhuis Attached File- => Added Bug55654_win7.PNG, #46204
        Operating SystemGNU/Linux => Any
    2019-02-06 rik5 StatusNone => Works For Me

    Back to the top


    Powered by Savane 3.4