bugGNU Octave - Bugs: bug #48893, Qt: setting figure to large size...

 
 

bug #48893: Qt: setting figure to large size crashes octave

Submitter:  Dmitri A. Sergatskov <dasergatskov>
Submitted:  Thu 25 Aug 2016 03:13:27 AM UTC
   
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Works For Me Assigned to:  None
Originator Name:  Dmtri A. Sergatskov Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Tue 06 Mar 2018 07:51:16 PM UTC, comment #10: 

Closing report as this now seems to work okay for everyone.

Rik <rik5>
Group administrator
Tue 06 Mar 2018 07:17:30 PM UTC, comment #9: 

Works for me as well with
octave:4> _opengl_info_
   version: 3.0 Mesa 17.3.5
    vendor: Intel Open Source Technology Center
  renderer: Mesa DRI Intel(R) Haswell Desktop

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Tue 06 Mar 2018 04:40:49 PM UTC, comment #8: 

The original test case works for me with both fltk and qt on a system with intel graphics:


octave:1> __opengl_info__
   version: 3.0 Mesa 17.3.3
    vendor: Intel Open Source Technology Center
  renderer: Mesa DRI Intel(R) HD Graphics 400 (Braswell)


John W. Eaton <jwe>
Group administrator
Tue 06 Mar 2018 04:09:43 PM UTC, comment #7: 

It works on computers with amd graphics. It would take me some time (few hours) before I can check this on intel graphics.

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Tue 06 Mar 2018 04:04:20 PM UTC, comment #6: 

This works for me now too (Qt 5.6).  Dmitri?  If it works for you then we can close this.

Rik <rik5>
Group administrator
Tue 06 Mar 2018 12:56:42 PM UTC, comment #5: 

I can't reproduce this bug anymore. Since the last time I checked, I switched to building Octave with Qt 5.7 and thud QOpenGLWidget. Could some of you check?

Pantxo Diribarne <pantxo>
Group Member
Thu 15 Sep 2016 06:58:19 PM UTC, comment #4: 

Re-titling the report to mention that this is only a problem with Qt.  I can also confirm that it crashes my system as well.

Rik <rik5>
Group administrator
Thu 25 Aug 2016 09:13:56 PM UTC, comment #3: 

end of previous comment:


figure ("position", [0 0 10000 5000])
get (1, "position")
#->ans = 2     24   1306    652
figure ('position',[0,0,10000,10000])
# intel_do_flush_locked failed: No space left on device


After the crash the calling terminal (in --no-gui mode only) is left messed up
and unusable.

This looks like an openGL driver specific issue (I have nouveau MESA driver
and intel graphics chipset) that is triggered for large requested window size
... but that fltk doesn't trigger.

Pantxo Diribarne <pantxo>
Group Member
Thu 25 Aug 2016 09:12:34 PM UTC, comment #2: 

Actually Qt also rescales the window to fit into the screen at small enough width/height. Don't know where the threshold is:


figure ("position", [0 0 10000 5000])
get (1, "position")
#->ans = 2     24   1306    652
figure ('position',[0,0,10000,10000])
# intel_do_flush_locked failed: No space left on device
-verabtim-

After the crash the calling terminal (in --no-gui mode only) is left messed up and unusable.

This looks like an openGL driver specific issue (I have nouveau MESA driver and intel graphics chipset) that is triggered for large requested window size ... but that fltk doesn't trigger.

Pantxo Diribarne <pantxo>
Group Member
Thu 25 Aug 2016 03:17:31 PM UTC, comment #1: 

Hi,

I can confirm the bug with qt toolkit only. With fltk the figure takes all available screen splace and the "position" property is set accordingly:


graphics_toolkit fltk
figure ('position',[0,0,10000,10000])
get (1, "position")
# ->ans =   2     24   1307    694


The above behavior looks appropriate to me and we could implement it in qt.

Pantxo Diribarne <pantxo>
Group Member
Thu 25 Aug 2016 03:13:27 AM UTC, original submission:  


octave:1> h  = figure(1)
h =  1
octave:2> set(h,'Position',[0,0,10000,10000])
octave:3> intel_do_flush_locked failed: No space left on device
panic: Segmentation fault -- stopping myself...
attempting to save variables to ' �'...
save to ' �' complete
Segmentation fault (core dumped)


changeset:   22378:9e3459ecbeb7

i7 intel graphics controller

No crash on AMD graphics. The figure screen becomes full-screen and completely un-usable even after i reset the 'Position' to
a more reasonable size.

Dmitri

Dmitri A. Sergatskov <dasergatskov>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

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 pantxo (Posted a comment)
  • -email is unavailable- added by dasergatskov (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-03-06 rik5 Open/ClosedOpen Closed
    2018-03-06 rik5 StatusConfirmed Works For Me
    2016-09-15 rik5 Summarysetting figure to large size crashes octave Qt: setting figure to large size crashes octave
    2016-08-25 pantxo StatusNone Confirmed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code