[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [FR-devel] reproducible bug
From: |
Rich Kilmer |
Subject: |
RE: [FR-devel] reproducible bug |
Date: |
Sat, 21 Dec 2002 09:44:13 -0500 |
I don't have time to look at this as I am about to go on vacation...it
may be in the fxscintilla/ruby_autoindent.rb file that this error is
occurring. Laurent or Curt, if you could look into this is would be
cool. We could also just disable the autoindent if this is a problem
that cannot be resolved.
-rich
> -----Original Message-----
> From: address@hidden
> [mailto:address@hidden
> On Behalf Of Joao Pedrosa
> Sent: Saturday, December 21, 2002 9:37 AM
> To: address@hidden
> Subject: [FR-devel] reproducible bug
>
>
> Hi
>
> Environment:
> Latest FreeRide from CVS (I erased my files as asked
> by Rich).
> Fox 1.0.28
> FXRuby 1.0.17
> Ruby 1.7.3 from CVS
> Mandrake 9
>
> When I am editing a small source code FR crashes after
> typing or deleting code. It occurs in just two lines
> of code.
>
> Well, I hope you can debug it.
>
> Everything happens after a block if then else,
> including the "end" word of that block, and a new line
> that I add after that "end" by pressing ENTER. If it
> didnt crash yet I follow adding a word (which can
> crash it after just a @ character) in the new created
> line and pressing SPACE (which can crash it as well).
> If it survived this long, I indent the line that
> contains the "end" word and then I try modify the
> following new line by retyping something and pressing
> SPACE and keep redoing it until it crashes.
>
> this is the block:
>
> == BOB
> else
>
> tag = @t.buffer.create_tag( "blue_foreground" + Kernel.rand.to_s, {
> :foreground => "white",
> :background => "black"
> })
>
> end
> == EOB
>
> This bug occured after deletion of characters:
>
> ./plugins/rubyide_fox_gui/editpane.rb:94: [BUG]
> Segmentation fault
> ruby 1.7.3 (2002-12-15) [i686-linux]
> ./run.sh: line 1: 2235 Aborted ruby
> -I. -Iso -Iredist freeride.rb
>
> This bug occured after insertion of the @ character:
>
> ./plugins/rubyide_fox_gui/editpane.rb:92: [BUG]
> Segmentation fault
> ruby 1.7.3 (2002-12-15) [i686-linux]
> ./run.sh: line 1: 2238 Aborted ruby
> -I. -Iso -Iredist freeride.rb
>
> This bug occured after pressing ENTER:
>
> ./plugins/rubyide_fox_gui/fxscintilla/ruby_autoindent.rb:123:
> [BUG] Segmentation fault
> ruby 1.7.3 (2002-12-15) [i686-linux]
> ./run.sh: line 1: 2240 Aborted ruby
> -I. -Iso -Iredist freeride.rb
>
> This bug occured after selecting some text from the
> end to the start of the line:
>
> ./plugins/rubyide_fox_gui/editpane.rb:96: [BUG]
> Segmentation fault
> ruby 1.7.3 (2002-12-15) [i686-linux]
> ./run.sh: line 1: 2242 Aborted ruby
> -I. -Iso -Iredist freeride.rb
>
>
> Sorry for this bad report format :-)
>
> Please tell me if you need more details.
>
> Thanks.
> Joao
>
>
> == BOF
> require 'gtk2'
>
> class Janela < Gtk::Window
> def initialize
> super(Gtk::Window::TOPLEVEL)
>
> set_size_request( 400, 300 )
> set_title( "Hello World!" )
> signal_connect( "delete_event" ) { Gtk.main_quit }
> mb = Gtk::MenuBar.new
> file_mi = Gtk::MenuItem.new("Ãrquivo")
> file_menu = Gtk::Menu.new
> exit_mi = Gtk::MenuItem.new("Sair")
> file_menu.append(exit_mi)
> file_mi.set_submenu(file_menu)
> mb.append(file_mi)
>
> nb = Gtk::Notebook.new
>
>
> @bool = true
>
>
> @inText = Gtk::Entry.new
> @inText.signal_connect("activate") {
> @t.buffer.insert_at_cursor @inText.text + "\n"
> p @t.buffer.methods.sort
>
> @t.scroll_to_iter(@t.buffer.get_iter_at_offset(-1),0,true,0,0)
> @inText.text = ""
>
> tag = nil
>
> if @bool == true then
> tag = @t.buffer.create_tag( "blue_foreground" + Kernel.rand.to_s, {
> :foreground => "red",
> :background => "yellow"
> })
>
> else
>
> tag = @t.buffer.create_tag( "blue_foreground" + Kernel.rand.to_s, {
> :foreground => "white",
> :background => "black"
> })
>
> end
>
> @t.buffer.insert_with_tags(@t.buffer.get_iter_at_offset(0),
> "This is test.", tag)
> }
>
> scrolledWindow = Gtk::ScrolledWindow.new(nil,nil)
> scrolledWindow.set_policy(Gtk::POLICY_ALWAYS,
> Gtk::POLICY_ALWAYS)
> @t = Gtk::TextView.new
>
> scrolledWindow.add_with_viewport(@t)
> vbox = Gtk::VBox.new(false,0)
> vbox.pack_start(mb, false, false, 0)
> vbox.add(nb)
> vbox.pack_end(@inText, false, false, 0)
>
>
>
> @t.buffer.set_text "Alo\nVoce!"
>
> @t.modify_text Gtk::STATE_NORMAL,
> Gdk::Color.new(255,255,65000)
>
>
> nb.append_page scrolledWindow,
> Gtk::Label.new("status")
>
>
>
> #window.add(mb)
>
> #window.add(t)
> add(vbox)
>
>
>
> show_all
>
> end
> end
>
> Gtk.init
>
> janela = Janela.new
>
> Gtk.main
> == EOF
>
>
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
_______________________________________________
Freeride-devel mailing list
address@hidden
http://mail.nongnu.org/mailman/listinfo/freeride-devel