[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #39936] Error or crash when plotting with no f
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #39936] Error or crash when plotting with no fonts installed |
Date: |
Wed, 04 Sep 2013 04:33:16 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.57 Safari/537.36 |
URL:
<http://savannah.gnu.org/bugs/?39936>
Summary: Error or crash when plotting with no fonts installed
Project: GNU Octave
Submitted by: mtmiller
Submitted on: Wed 04 Sep 2013 12:33:15 AM EDT
Category: Plotting
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: GNU/Linux
_______________________________________________________
Details:
I'm not sure if anything can be done about this in Octave, and maybe this is a
completely invalid configuration to test against, feel free to close as
invalid if so. But reporting anyway since it could potentially happen on
misconfigured systems and results in a variety of errors.
Testing on a system with no fonts installed, simulated by intentionally doing
the following as root on my system:
# mv /usr/share/fonts /usr/share/fonts-diverted
# mv /etc/fonts /etc/fonts-diverted
# rm -rf /var/cache/fontconfig
With gnuplot, the following warnings and errors occur, Octave stays running:
octave:1> plot (1:10);
warning: could not match any font: *-normal-normal-10
warning: ft_render: unable to load appropriate font
warning: could not match any font: *-normal-normal-10
warning: ft_render: unable to load appropriate font
[...]
warning: ft_render: invalid bounding box, cannot render
[...]
octave:2> legend;
warning: could not match any font: *-normal-normal-10
warning: ft_render: unable to load appropriate font
[...]
error: legend: A(I): index out of bounds; value 3 out of bound 0
error: called from:
error: /.../share/octave/3.7.6+/m/plot/legend.m at line 622, column 22
error: structure has no member 'orientation'
error: evaluating argument list element number 1
error: called from:
error: /.../share/octave/3.7.6+/m/plot/private/__go_draw_axes__.m at line
-1, column -1
error: /.../share/octave/3.7.6+/m/plot/private/__go_draw_figure__.m at line
172, column 17
error: /.../share/octave/3.7.6+/m/plot/__gnuplot_drawnow__.m at line 86,
column 5
Using FLTK, Octave simply exits after the same stream of warnings:
octave:1> plot (1:10);
warning: could not match any font: *-normal-normal-10
warning: ft_render: unable to load appropriate font
warning: could not match any font: *-normal-normal-10
warning: ft_render: unable to load appropriate font
[...]
Unable to find fonts. Check your FontConfig configuration.
$ echo $?
1
The last error message and call to exit(1) are in the FLTK library itself.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?39936>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #39936] Error or crash when plotting with no fonts installed,
Mike Miller <=