[Tioga-users] [Fwd: Re: tioga 1.4]
edder
edder at tkwsping.nl
Mon Feb 5 06:21:01 EST 2007
> I'm curious about this part. Could you output the command tree whithin
> your gem directory ?
edwin at zaphod:~/tmp/samples$ /usr/bin/ls
/usr/lib/ruby/gems/1.8/gems/tioga-1.4/
Tioga_README lgpl.txt lib split tests
edwin at zaphod:~/tmp/samples$ /usr/bin/ls
/usr/lib/ruby/gems/1.8/gems/tioga-1.4/lib
Arcs_and_Circles.rb FigureMaker.so Strokes.rb
ColorConstants.rb Figures_and_Plots.rb TeX_Text.rb
Colorbars.rb Flate.so TexPreamble.rb
Colormaps.rb Function.so Titles_and_Labels.rb
Coordinate_Conversions.rb Function_extras.rb Transparency.rb
Creating_Paths.rb Images.rb Using_Paths.rb
Doc.rb Legends.rb Utils.rb
Dtable.so MarkerConstants.rb X_and_Y_Axes.rb
Dtable_extras.rb Markers.rb irb_tioga.rb
Dvector.so Numeric_extras.rb tioga.rb
Dvector_extras.rb Page_Frame_Bounds.rb tioga_ui.rb
Executive.rb Rectangles.rb tioga_ui_cmds.rb
FigMkr.rb Shading.rb
FigureConstants.rb Special_Paths.rb
> BTW, you need to have
> require 'rubygems'
> before
> require 'Tioga/FigureMaker'
> in the script, else the rubygem lookup mechanism simply doesn't work and
> require will fail. [I and Bill and JJ got caught by this as well, so
> don't feel bad if that is the case ;-)...]
I'm pretty sure that's all in order, especially since it works as soon as
I move everything to Tioga:
edwin at zaphod:~$ cat /usr/bin/tioga
#!/usr/bin/env ruby
#
# This file was generated by RubyGems.
#
# The application 'tioga' is installed as part of a gem, and
# this file is here to facilitate running it.
#
require 'rubygems'
version = "> 0"
if ARGV.size > 0 && ARGV[0][0]==95 && ARGV[0][-1]==95
if Gem::Version.correct?(ARGV[0][1..-2])
version = ARGV[0][1..-2]
ARGV.shift
end
end
require_gem 'tioga', version
load 'tioga'
edwin at zaphod:~/tmp/samples$ tioga sample.rb -l
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__':
no such file to load -- Tioga/tioga_ui.rb (LoadError)
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require'
from /usr/lib/ruby/gems/1.8/gems/tioga-1.4/split/scripts/tioga:2
from /usr/bin/tioga:18:in `load'
from /usr/bin/tioga:18
I also tried the following, but got the same error message:
require 'rubygems'
version = "> 0"
if ARGV.size > 0 && ARGV[0][0]==95 && ARGV[0][-1]==95
if Gem::Version.correct?(ARGV[0][1..-2])
version = ARGV[0][1..-2]
ARGV.shift
end
end
#require_gem 'tioga', version
#load 'tioga'
require 'Tioga/FigureMaker'
>> Next I get an segmentation fault when trying to plot a plot:
>> edwin at vimes:~/documents/rhul/popdyn/article$ tioga popdyn_plots.rb -13
>> loading /home/edwin/documents/rhul/popdyn/article/popdyn_plots.rb
>> /usr/lib/ruby/site_ruby/1.8/Tioga/FigMkr.rb:897: [BUG] Segmentation
>> fault
>> ruby 1.8.5 (2006-12-04) [i686-linux]
>>
>> Aborted
>>
>> The corresponding line in FigMkr.rb:
>> show_axis(self.xaxis_loc) if self.xaxis_visible
>>
>> (This happened with both the gem version and the other version).
>> I'm using gentoo linux, gcc 4.1.1.
>
> If this one is a reproducible bug, here is how to get useful input for
> me to debug: run
>
> gdb ruby
> [then, whithin gdb]
> run your_script.rb and its command line arguments
> [then, when it fails with a segfault,]
> bt
>
> This should allow us to track the problem. My guess is it might be
> packaging-related (ie, my fault).
(gdb) run /usr/bin/tioga sine.rb -0
Starting program: /usr/bin/ruby /usr/bin/tioga sine.rb -0
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
loading /home/edwin/tmp/samples/sine.rb
Program received signal SIGSEGV, Segmentation fault.
0xb79ef9e8 in End_Axis_Standard_State at plt ()
from /usr/lib/ruby/gems/1.8/gems/tioga-1.4/lib/Tioga/FigureMaker.so
(gdb)
BTW I now tried it on another machine (although still gentoo and gcc
4.1.1) and still the same problem
The end :)
Edwin
More information about the Tioga-users
mailing list