[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[mhc:02232] Re: gemcal on gtk2



On March 30, 2006, [mhc:02193],
nom (at quickhack.net) wrote:

> ruby-gkt2 しかDebian だとパッケージがないので,
> こっちに移行すべきですよね.

gemcalのgtk2対応について、Debianパッケージのmhc 0.25.1+20050120-2
以降に当たっているパッチを添付します。

手元では概ね動作しているものの、closeボタンを押して終了する際に、
下記のようにsegfaultになってしまいます。

----
$ gemcal
/usr/lib/ruby/1.8/mhc-gtk.rb:699:in `exit': exit
         from /usr/lib/ruby/1.8/mhc-gtk.rb:699:in `initialize'
         from /usr/bin/gemcal:566:in `call'
         from /usr/bin/gemcal:566:in `destroy'
         from /usr/bin/gemcal:566:in `initialize'
         from /usr/bin/gemcal:694:in `call'
         from /usr/bin/gemcal:694:in `main'
         from /usr/bin/gemcal:694
/usr/lib/ruby/1.8/glib2.rb:45:in `exit': exit
         from /usr/lib/ruby/1.8/glib2.rb:45:in `exit_application'
         from /usr/lib/ruby/1.8/mhc-gtk.rb:699:in `destroy'
         from /usr/bin/gemcal:566:in `initialize'
         from /usr/bin/gemcal:694:in `call'
         from /usr/bin/gemcal:694:in `main'
         from /usr/bin/gemcal:694
/usr/lib/ruby/1.8/glib2.rb:45: [BUG] Segmentation fault
ruby 1.8.5 (2006-08-25) [i486-linux]

Aborted
----

あと、手元では再現しないのですが、Debian BTSへのバグレポート

  Bug#384141: mhc-utils: PROBLEM in gemcal
  http://bugs.debian.org/384141

によると、別のエラーも起こっているようです。

| Package: mhc-utils
| Version: 0.25.1+20050120-2
| Severity: important
| 
| I cannot use gemcal. The following messages are would help you to fix
| this problem. 
| 
| (eval): line 41
|    GLib-GObject-WARNING **:invalid cast from `GtkListStore' to `GtkWidget'
| (eval): line 41
|    Gtk-CRITICAL **:gtk_widget_freeze_child_notify: assertion `GTK_IS_WIDGET (widget)' failed
| (eval): line 41
|    Gtk-CRITICAL **:gtk_container_add: assertion `GTK_IS_WIDGET (widget)' failed(eval): line 41
|    Gtk-CRITICAL **:gtk_widget_thaw_child_notify: assertion `GTK_IS_WIDGET (widget)' failed
| /usr/lib/ruby/1.8/mhc-gtk.rb:863:in `buffer': can't modify frozen object (TypeError)
|         from /usr/lib/ruby/1.8/mhc-gtk.rb:863:in `replace_text'
|         from /usr/bin/gemcal:361:in `open'
|         from /usr/bin/gemcal:375:in `open'
|         from /usr/bin/gemcal:347:in `initialize'
|         from /usr/bin/gemcal:501:in `open_sch_edit'
|         from /usr/bin/gemcal:477:in `initialize'
|         from /usr/lib/ruby/1.8/mhc-gtk.rb:531:in `signal_connect'
|         from /usr/bin/gemcal:694

どなたか、原因・対策のわかる方はいらっしゃいませんか?

-- 
木下達也

Attachment: gtk2.patch
Description: Binary data

Attachment: mhc-kconv.patch
Description: Binary data