[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #41747] Octave crashes if you try to plot and
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #41747] Octave crashes if you try to plot and your video card is not configured for OpenGL |
Date: |
Sun, 27 Apr 2014 02:37:44 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.152 Safari/537.36 |
Follow-up Comment #3, bug #41747 (project octave):
The segfault occurs in the function Fl_Gl_Window::make_current(). The
following patch avoids a crash for me:
--- a/__init_fltk__.cc
+++ b/__init_fltk__.cc
@@ -932,7 +932,10 @@ public:
if (fp.is_visible ())
{
canvas->show ();
- canvas->make_current ();
+ if (! canvas->shown ())
+ error ("unable to plot with OpenGL");
+ else
+ canvas->make_current ();
}
}
In this case I end up seeing the error message "unable to plot with OpenGL"
and I get a figure with an empty drawing area, no segfault.
With this patch I still end up with an empty figure being created, but it at
least avoids crashing Octave. When I run "figure" I get an empty figure
created with no crash or error message from Octave, but a message, presumably
from FLTK, saying "Insufficient GL support". So there might still be a
different way to catch this even before a figure is created.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?41747>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/