I have successfully installed octplot 0.3.9 using ./configure, make, and make install
When I try to run the demos that come with octplot, I get the errors shown below for each demo. Below that is information about the computer system I am using, including the processor, memory, and operating system.
octave:2> bar_demo.m
error: `set' undefined near line 34 column 1
error: near line 34 of file `/home/bbarbee/Downloads/octplot-0.3.9/demos/bar_demo.m'
octave:3> layer_demo
error: `axes' undefined near line 23 column 1
error: near line 23 of file `/home/bbarbee/Downloads/octplot-0.3.9/demos/layer_demo.m'
octave:3> line_demo
error: value on right hand side of assignment is undefined
error: evaluating assignment expression near line 24, column 4
error: evaluating for command near line 23, column 1
error: near line 31 of file `/home/bbarbee/Downloads/octplot-0.3.9/demos/line_demo.m'
specgram_demo
error: `set' undefined near line 33 column 1
error: near line 33 of file `/home/bbarbee/Downloads/octplot-0.3.9/demos/specgram_demo.m'
text_demo
error: `line' undefined near line 32 column 3
error: evaluating for command near line 30, column 1
error: near line 48 of file `/home/bbarbee/Downloads/octplot-0.3.9/demos/text_demo.m'
==== MY SYSTEM ====
Octave version: 2.9.8
Operating System: Linux, Fedora Core 4, 2.6.17-1.2142_FC4smp i686
1 GB RAM
Processor info:
cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 2
model name : Intel(R) Pentium(R) 4 CPU 2.60GHz
stepping : 9
cpu MHz : 2593.961
cache size : 512 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 1
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid xtpr
bogomips : 5192.91
processor : 1
vendor_id : GenuineIntel
cpu family : 15
model : 2
model name : Intel(R) Pentium(R) 4 CPU 2.60GHz
stepping : 9
cpu MHz : 2593.961
cache size : 512 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 1
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid xtpr
bogomips : 5187.32
Logged In: YES
user_id=136223
Originator: NO
Brent,
could you please send the output of the following octave commands:
path
type toggle_octplot
Shai
Logged In: YES
user_id=1536569
Originator: YES
Octave's search path contains the following directories:
.
/usr/libexec/octave/site/oct/api-v21/i686-redhat-linux-gnu
/usr/libexec/octave/site/oct/api-v21/i686-redhat-linux-gnu/octave-forge
/usr/share/octave/2.9.8/site/m
/usr/share/octave/2.9.8/site/m/octplot
/usr/share/octave/site/m
/usr/share/octave/site/m/startup
/usr/share/octave/site/m/octave-forge
/usr/share/octave/site/m/octave-forge/struct
/usr/share/octave/site/m/octave-forge/vrml
/usr/share/octave/site/m/octave-forge/image
/usr/share/octave/site/m/octave-forge/integration
/usr/share/octave/site/m/octave-forge/splines
/usr/share/octave/site/m/octave-forge/symband
/usr/share/octave/site/m/octave-forge/ode
/usr/share/octave/site/m/octave-forge/miscellaneous
/usr/share/octave/site/m/octave-forge/special-matrix
/usr/share/octave/site/m/octave-forge/irsa
/usr/share/octave/site/m/octave-forge/control
/usr/share/octave/site/m/octave-forge/linear-algebra
/usr/share/octave/site/m/octave-forge/signal
/usr/share/octave/site/m/octave-forge/audio
/usr/share/octave/site/m/octave-forge/strings
/usr/share/octave/site/m/octave-forge/plot
/usr/share/octave/site/m/octave-forge/general
/usr/share/octave/site/m/octave-forge/octcdf
/usr/share/octave/site/m/octave-forge/symbolic
/usr/share/octave/site/m/octave-forge/tsa
/usr/share/octave/site/m/octave-forge/io
/usr/share/octave/site/m/octave-forge/ident
/usr/share/octave/site/m/octave-forge/comm
/usr/share/octave/site/m/octave-forge/civil
/usr/share/octave/site/m/octave-forge/pdb
/usr/share/octave/site/m/octave-forge/mapping
/usr/share/octave/site/m/octave-forge/time
/usr/share/octave/site/m/octave-forge/fixed
/usr/share/octave/site/m/octave-forge/econometrics
/usr/share/octave/site/m/octave-forge/statistics
/usr/share/octave/site/m/octave-forge/graceplot
/usr/share/octave/site/m/octave-forge/NaN
/usr/share/octave/site/m/octave-forge/geometry
/usr/share/octave/site/m/octave-forge/specfun
/usr/share/octave/site/m/octave-forge/optim
/usr/libexec/octave/2.9.8/oct/i686-redhat-linux-gnu
/usr/share/octave/2.9.8/m
/usr/share/octave/2.9.8/m/deprecated
/usr/share/octave/2.9.8/m/optimization
/usr/share/octave/2.9.8/m/image
/usr/share/octave/2.9.8/m/polynomial
/usr/share/octave/2.9.8/m/miscellaneous
/usr/share/octave/2.9.8/m/special-matrix
/usr/share/octave/2.9.8/m/sparse
/usr/share/octave/2.9.8/m/testfun
/usr/share/octave/2.9.8/m/finance
/usr/share/octave/2.9.8/m/path
/usr/share/octave/2.9.8/m/control
/usr/share/octave/2.9.8/m/control/util
/usr/share/octave/2.9.8/m/control/base
/usr/share/octave/2.9.8/m/control/obsolete
/usr/share/octave/2.9.8/m/control/system
/usr/share/octave/2.9.8/m/control/hinf
/usr/share/octave/2.9.8/m/linear-algebra
/usr/share/octave/2.9.8/m/pkg
/usr/share/octave/2.9.8/m/signal
/usr/share/octave/2.9.8/m/audio
/usr/share/octave/2.9.8/m/quaternion
/usr/share/octave/2.9.8/m/strings
/usr/share/octave/2.9.8/m/plot
/usr/share/octave/2.9.8/m/general
/usr/share/octave/2.9.8/m/io
/usr/share/octave/2.9.8/m/startup
/usr/share/octave/2.9.8/m/elfun
/usr/share/octave/2.9.8/m/time
/usr/share/octave/2.9.8/m/statistics
/usr/share/octave/2.9.8/m/statistics/distributions
/usr/share/octave/2.9.8/m/statistics/models
/usr/share/octave/2.9.8/m/statistics/base
/usr/share/octave/2.9.8/m/statistics/tests
/usr/share/octave/2.9.8/m/set
/usr/share/octave/2.9.8/m/specfun
octave:2> type toggle_octplot
toggle_octplot is the script file: /usr/share/octave/2.9.8/site/m/octplot/toggle_octplot.m
## Copyright (C) 2005 Shai Ayal
##
## This program is free software; you can redistribute it and/or modify it
## under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2, or (at your option)
## any later version.
##
## OctPlot is distributed in the hope that it will be useful, but
## WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
## General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with OctPlot; see the file COPYING. If not, write to the Free
## Software Foundation, 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
## -*- texinfo -*-
## @deftypefn {Function File} toggle_octplot
## This script toggles octplot operation.
## @end deftypefn
## @seealso{set,get,plot,hold}
## Author: shaia
## this needs a newer version of dispatch
if( ~exist("octplot_config_info","var"))
global octplot_config_info
octplot_config_info.path = \ "/usr/libexec/octave/2.9.8/site/octplot-0.3.9";
octplot_config_info.version = \ "0.3.9";
octplot_config_info.in_use = 0;
octplot_config_info.clear_command = "clear ";
octplot_tmp1 = glob (sprintf ("%s/*.m", octplot_config_info.path));
if(isempty(octplot_tmp1))
% running inside the distribution directory
octplot_tmp1 = glob ("*.m");
endif
for octplot_tmp2 = 1 : length (octplot_tmp1)
octplot_config_info.clear_command = \ sprintf ("%s %s", \ octplot_config_info.clear_command, \ split (split (octplot_tmp1 {octplot_tmp2}, "/") (end, :), ".") (1, :));
endfor
endif
if(octplot_config_info.in_use==0)
eval (octplot_config_info.clear_command);
dispatch("pause","opause","any");
dispatch("set","oset","any");
dispatch("hold","ohold","any");
dispatch("gset","gnuplot_warn","any");
dispatch("graw","gnuplot_warn","any");
dispatch("oneplot","gnuplot_warn","any");
dispatch("clg","gnuplot_warn","any");
## set some function as commands (not neading ())
mark_as_command hold
mark_as_command clf
mark_as_command cla
mark_as_command gca
mark_as_command gcf
mark_as_command figure
mark_as_command grid
mark_as_command print
mark_as_command box
## lock all important functions
mlock("octplot_redraw");
mlock("octplot_command");
mlock("octplot_atexit");
## redraw at prompt if needed
input_event_hook("octplot_redraw");
## kill at octave exit
atexit("octplot_atexit");
octplot_config_info.in_use = 1;
## special for running inside the distribution directory
[s, err, msg] = stat("./octplot_dist_dir.txt");
if (err==0)
octplot_path("./octplot");
set(0,"DefaultFontDir","../fonts/");
else
addpath(octplot_config_info.path);
eval (octplot_config_info.clear_command);
endif
else
dispatch("pause","any");
dispatch("set","any");
dispatch("hold","any");
dispatch("gset","any");
dispatch("graw","any");
dispatch("oneplot","any");
dispatch("clg","any");
input_event_hook();
## kill octplot
octplot_atexit;
rmpath(octplot_config_info.path);
eval (octplot_config_info.clear_command);
octplot_config_info.in_use = 0;
endif
Logged In: YES
user_id=136223
Originator: NO
Thanks,
now, the output of:
ls usr/libexec/octave/2.9.8/site/octplot-0.3.9
Shai
Logged In: YES
user_id=1536569
Originator: YES
ls /usr/libexec/octave/2.9.8/site/octplot-0.3.9
area.m colorbar.m gca.m legend_props.m octplot_redraw.oct plotyy.m subplot.m
axes.m colormap.m gcf.m line.m ohold.m __plt__.m surface.m
axes_props.m contourc.m get.m line_overlap.m opause.m __pltopt__.m surface_props.m
axis.m __contourc__.oct gnuplot_warn.m line_props.m oset.m print.m text3.m
barh.m contour.m grid.m loglog.m pareto.m quiver.m text.m
__bar.m __drawnow__.m hold.m __nxtplt__.m patch.m semilogx.m text_props.m
bar.m figure.m iscolorspec.m octplot patch_props.m semilogy.m title.m
box.m figure_props.m ishold.m octplot_atexit.m pcolor.m set.m xlabel.m
cla.m fonts isproperty.m octplot_command.oct pie.m specgram.m ylabel.m
clf.m freqz_plot.m legend.m octplot_path.oct plot.m stem.m
Logged In: YES
user_id=136223
Originator: NO
I see that the /usr/libexec/octave/2.9.8/site/octplot-0.3.9 directory, containing all of octplot's files is no in your path.
did you issue the toggle_octplot command before trying the demos?
Shai
Logged In: YES
user_id=1536569
Originator: YES
I didn't realize that I needed to run toggle_octplot first. I ran that command, and now the demos cause octave to crash:
octave:1> toggle_octplot
octave:2> ls
bar_demo.m line_demo.m Makefile.am octave-core text_demo.m
layer_demo.m Makefile Makefile.in specgram_demo.m
octave:3> line_demo
type line_props for help on line properties
octave:4> panic: Segmentation fault -- stopping myself...
attempting to save variables to `octave-core'...
save to `octave-core' complete
Segmentation fault
Logged In: YES
user_id=136223
Originator: NO
OK, now we're getting somewhere :)
so, what happens if you just try:
toggle_octplot
plot(1:10);
-- do you see a window pop up?
-- do you get a segmentation fault?
Shai
Logged In: YES
user_id=1536569
Originator: YES
I executed the sequence of commands just as you specified them.
Yes, I see a window pop up.
Yes, I get a segmentation fault.
octave:1> toggle_octplot
octave:2> plot(1:10);
octave:3> panic: Segmentation fault -- stopping myself...
attempting to save variables to `octave-core'...
save to `octave-core' complete
Segmentation fault
Logged In: YES
user_id=136223
Originator: NO
Thanks,
Just to make sure thsi is an old bug that's already fixed, can you please try to compile and use the latest svn version?
instructions are at:
http://octplot.sourceforge.net/moreInstallation.html
Shai
Logged In: YES
user_id=1536569
Originator: YES
octave:1> toggle_octplot
Octplot version 0.3.99 Copyright (C) 2003-2007 By Shai Ayal.
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
Report bugs at http://octplot.sourceforge.net
For general help, type "help octplot"
octave:2> ls
bar_demo.m layer_demo.m line_demo.m Makefile Makefile.am Makefile.in octave-core specgram_demo.m text_demo.m
octave:3> bar_demo
dx =
Columns 1 through 13:
0.20000 0.20000 0.20000 0.20000 0.20000 0.20000 0.20000 0.20000 0.20000 0.20000 0.20000 0.20000 0.20000
Columns 14 through 26:
0.20000 0.20000 0.20000 0.20000 0.20000 0.20000 0.20000 0.20000 0.20000 0.20000 0.20000 0.20000 0.20000
Columns 27 through 29:
0.20000 0.20000 0.20000
usage: size of x and c must be equal
error: evaluating if command near line 58, column 5
error: evaluating if command near line 39, column 3
error: called from `patch' in file `/usr/libexec/octave/2.9.8/site/octplot-0.3.99/patch.m'
error: evaluating assignment expression near line 86, column 12
error: evaluating for command near line 85, column 7
error: evaluating for command near line 84, column 5
error: evaluating if command near line 67, column 3
error: called from `__bar' in file `/usr/libexec/octave/2.9.8/site/octplot-0.3.99/__bar.m'
error: evaluating assignment expression near line 85, column 6
error: called from `bar' in file `/usr/libexec/octave/2.9.8/site/octplot-0.3.99/bar.m'
error: near line 25 of file `/home/bbarbee/Downloads/octplot-0.3.9/demos/bar_demo.m'
octave:3> panic: Segmentation fault -- stopping myself...
attempting to save variables to `octave-core'...
save to `octave-core' complete
Segmentation fault
Logged In: YES
user_id=136223
Originator: NO
Hmm, well it was worth the try ....
I need deeper debugging. I would be happy if you bear with me:
you need 2 terminals.
in terminal 1:
octave
octplot_enable
octplot_command("noop");
in terminal 2:
ps -u yourusername
find the pid of the octplot process -- call it PID
gdb /usr/libexec/octave/2.9.8/site/octplot-0.3.99/octplot PID
c
in terminal 1:
plot(1:10);
send me the output of gdb from terminal 2
Thanks
Shai
Logged In: YES
user_id=1536569
Originator: YES
Shai, sorry it is has taken me a while to respond. Below is the gdb output you requested:
gdb /usr/libexec/octave/2.9.8/site/octplot-0.3.99/octplot 27741
GNU gdb Red Hat Linux (6.3.0.0-1.84rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1".
Attaching to program: /usr/libexec/octave/2.9.8/site/octplot-0.3.99/octplot, process 27741Reading symbols from shared object read from target memory...done.
Loaded system supplied DSO at 0x9e8000
`shared object read from target memory' has disappeared; keeping its symbols.
Reading symbols from /usr/lib/libfreetype.so.6...done.
Loaded symbols for /usr/lib/libfreetype.so.6
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /usr/lib/libfltk_gl.so.1.1...done.
Loaded symbols for /usr/lib/libfltk_gl.so.1.1
Reading symbols from /usr/X11R6/lib/libGLU.so.1...done.
Loaded symbols for /usr/X11R6/lib/libGLU.so.1
Reading symbols from /usr/lib/nvidia/libGL.so.1...done.
Loaded symbols for /usr/lib/nvidia/libGL.so.1
Reading symbols from /usr/lib/libfltk.so.1.1...done.
Loaded symbols for /usr/lib/libfltk.so.1.1
Reading symbols from /usr/X11R6/lib/libXext.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXext.so.6
Reading symbols from /usr/X11R6/lib/libX11.so.6...done.
Loaded symbols for /usr/X11R6/lib/libX11.so.6
Reading symbols from /usr/lib/libstdc++.so.6...done.
Loaded symbols for /usr/lib/libstdc++.so.6
Reading symbols from /lib/libm.so.6...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libgcc_s.so.1...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /usr/lib/nvidia/libGLcore.so.1...done.
Loaded symbols for /usr/lib/nvidia/libGLcore.so.1
Reading symbols from /usr/lib/nvidia/tls/libnvidia-tls.so.1...done.
Loaded symbols for /usr/lib/nvidia/tls/libnvidia-tls.so.1
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
0x009e8402 in __kernel_vsyscall ()
(gdb) c
Continuing.
Program exited normally. (Note: This last line of text appeared after I ran " plot(1:10); " in octave.)
Logged In: YES
user_id=136223
Originator: NO
Very strange -- it seems octplot just exited. just to make sure this is a legitimate exit, can you please add the following breakpoint just before entering "c" in gdb:
b octplotapp.cpp:166
b octplotapp.cpp:266
c
and see if it hits the breakpoint?
Shai
Shai
Logged In: YES
user_id=1626005
Originator: NO
<subject: Pre-Packaged Demo Program Errors >
2007.04.27.12:44:44 UT
Hello octplot guys,
My system is a Dell OptiPlex GX260 (2400 MHz)
with an Intel 82845G/GL/GE/PE/GV graphics card. I have
WinXP SP2 with CygWin 1.5.24-2 that includes octave-2.1.73
as well as octave-forge and octave-headers. I'm using
the svn-456 and compiling with gcc-3.3.3-3.
I have gone over to the directory containing the
pre-packaged demonstration scripts in the svn456 of
octplot-0.3.9 to see whether I could reproduce the problem
experienced by Brent Barbee. I do get errors on just two
of the demo scripts: bar_demo.m and layer_demo.m.
Fortunately, they seem to be exactly the same error:
octave:25> bar_demo;
<output>
dx =
Columns 1 through 14:
0.20000 0.20000 0.20000 0.20000 0.20000 0.20000 0.20000
0.20000 0.20000 0.20000 0.20000 0.20000 0.20000 0.20000
Columns 15 through 28:
0.20000 0.20000 0.20000 0.20000 0.20000 0.20000 0.20000
0.20000 0.20000 0.20000 0.20000 0.20000 0.20000 0.20000
Column 29:
0.20000
usage: size of x and c must be equal
error: evaluating if command near line 65, column 5
error: evaluating if command near line 45, column 3
error: called from `patch' in
file `/usr/lib/octave/2.1.73/site/octplot-0.4.0/patch.m'
error: evaluating assignment expression near line 86, column 12
error: evaluating for command near line 85, column 7
error: evaluating for command near line 84, column 5
error: evaluating if command near line 67, column 3
error: called from `__bar' in
file `/usr/lib/octave/2.1.73/site/octplot-0.4.0/__bar.m'
error: evaluating assignment expression near line 85, column 6
error: called from `bar' in
file `/usr/lib/octave/2.1.73/site/octplot-0.4.0/bar.m'
error: near line 25 of
file `/usr/src/octplot-0.3.9-456/demos/bar_demo.m'
</output>
The output of the variable 'dx' comes from __bar.m at
line 109. There needs to be a semi-colon there to suppress
that output. The real problem is something about the way
that __bar.m calls the function patch.m.
My output from bar_demo.m and layer_demo.m are figures
with single black rectangles in the regions where the scripts
failed on the first patch that they needed to graph. I have
attached two jpegs of the output that I saw.
It seems to me that this may be broken because of
recent changes to patch.m.
George
gbarrick@kent.edu
Logged In: YES
user_id=1626005
Originator: NO
<subject: Pre-Packaged Demo Program Errors >
2007.04.27.13:00:43 UT
Hello guys,
Well. I lied. I did not attach my two jpegs
because I have not been able to convince the
SourceForge site to permit me to do that. I figure
you guys can generate your own output.
George
gbarrick@kent.edu
Logged In: YES
user_id=136223
Originator: NO
I fixed the bugs reported by George at 27 April in svn revision 458
Shai
Logged In: YES
user_id=1626005
Originator: NO
<subject: Pre-Packaged Demo Program Errors >
2007.04.28.15:33:07 UT
Hello Shai,
All of the problems that I could reproduce from this
thread have been addressed. If we could get Brent or someone
else with a Fedora/Octave-2.9.8 system to try the svn, maybe
we could close this thread.
George
gbarrick@kent.edu