操作
バグ #1223
完了自分のプロフィールタブを開いたときにGtk-CRITICAL **: gtk_box_pack: assertion 'GTK_IS_WIDGET (child)' failedが出る
プラグイン名:
user_detail_view
クラッシュする:
いいえ
説明
自分のプロフィールタブを開くと、以下の出力が出ます。他人の場合は出ません。
Gtk-CRITICAL **: gtk_box_pack: assertion 'GTK_IS_WIDGET (child)' failed from /Users/akkie/mikutter/core/mui/gtk_extension.rb:227:in `closeup' from /Users/akkie/mikutter/core/plugin/user_detail_view/user_detail_view.rb:258:in `block in relation_bar' from /Users/akkie/mikutter/core/plugin/user_detail_view/user_detail_view.rb:189:in `each' from /Users/akkie/mikutter/core/plugin/user_detail_view/user_detail_view.rb:189:in `relation_bar' from /Users/akkie/mikutter/core/plugin/user_detail_view/user_detail_view.rb:90:in `block (2 levels) in <top (required)>' from /Users/akkie/mikutter/core/plugin/gui/widget.rb:70:in `instance_eval' from /Users/akkie/mikutter/core/plugin/gui/widget.rb:70:in `instance_eval_with_delegate' from /Users/akkie/mikutter/core/plugin/gui/gui.rb:74:in `block (5 levels) in <top (required)>' from /Users/akkie/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/pluggaloid-1.1.1/lib/pluggaloid/plugin.rb:148:in `handler_tag' from /Users/akkie/mikutter/core/plugin/gui/gui.rb:71:in `block (4 levels) in <top (required)>' from /Users/akkie/mikutter/core/plugin/user_detail_view/user_detail_view.rb:61:in `each' from /Users/akkie/mikutter/core/plugin/user_detail_view/user_detail_view.rb:61:in `block in show_profile' from /Users/akkie/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/delayer-deferred-2.0.0/lib/delayer/deferred/chain/base.rb:18:in `activate' from /Users/akkie/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/delayer-deferred-2.0.0/lib/delayer/deferred/worker.rb:93:in `block (2 levels) in wait_and_activate' from /Users/akkie/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/delayer-deferred-2.0.0/lib/delayer/deferred/worker.rb:87:in `catch' from /Users/akkie/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/delayer-deferred-2.0.0/lib/delayer/deferred/worker.rb:87:in `block in wait_and_activate' from /Users/akkie/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/delayer-deferred-2.0.0/lib/delayer/deferred/worker.rb:86:in `catch' from /Users/akkie/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/delayer-deferred-2.0.0/lib/delayer/deferred/worker.rb:86:in `wait_and_activate' from /Users/akkie/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/delayer-deferred-2.0.0/lib/delayer/deferred/worker.rb:76:in `block (2 levels) in fiber' from /Users/akkie/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/delayer-deferred-2.0.0/lib/delayer/deferred/worker.rb:75:in `loop' from /Users/akkie/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/delayer-deferred-2.0.0/lib/delayer/deferred/worker.rb:75:in `block in fiber'
https://dev.mikutter.hachune.net/projects/mikutter/repository/revisions/master/entry/core/plugin/user_detail_view/user_detail_view.rb#L258 で、
followbuttonをcloseupするとき、followbuttonは他人のプロフィールタブを開いたときにしか作成されていないためエラーになっていました。
followbuttonが作られたときだけcloseupするようにパッチを作成してみたので添付します。
ファイル
再現手順
debugで起動する
自分のプロフィールタブを開いて出力を確認する
他人のプロフィールタブを開いて出力がないことを確認する
操作