Actions
バグ #1229
closed特定のMessage Modelが表示される時クラッシュすることがある
プラグイン名:
ブランチ:
クラッシュする:
Yes
Description
SystemMessageにiconメソッドが実装されていない。関係する場所を調べ、必要なところに実装する。
{{MIKUTTER_DIR}}/core/mui/cairo_miracle_painter.rb:449:in `main_icon': undefined method `icon' for #<Mikutter::System::Message:0x0000558dd2888640> (NoMethodError) from {{MIKUTTER_DIR}}/core/lib/uithreadonly.rb:22:in `block (2 levels) in singleton class' from {{MIKUTTER_DIR}}/core/mui/cairo_miracle_painter.rb:493:in `block in render_main_icon_square' from {{MIKUTTER_DIR}}/core/mui/cairo_miracle_painter.rb:491:in `save' from {{MIKUTTER_DIR}}/core/mui/cairo_miracle_painter.rb:491:in `render_main_icon_square' from {{MIKUTTER_DIR}}/core/lib/uithreadonly.rb:22:in `block (2 levels) in singleton class' from {{MIKUTTER_DIR}}/core/mui/cairo_miracle_painter.rb:486:in `render_main_icon' from {{MIKUTTER_DIR}}/core/lib/uithreadonly.rb:22:in `block (2 levels) in singleton class' from {{MIKUTTER_DIR}}/core/mui/cairo_miracle_painter.rb:466:in `render_to_context' from {{MIKUTTER_DIR}}/core/lib/uithreadonly.rb:22:in `block (2 levels) in singleton class' from {{MIKUTTER_DIR}}/core/mui/cairo_miracle_painter.rb:437:in `gen_pixmap' from {{MIKUTTER_DIR}}/core/lib/uithreadonly.rb:22:in `block (2 levels) in singleton class' from {{MIKUTTER_DIR}}/core/mui/cairo_miracle_painter.rb:443:in `gen_pixbuf' from {{MIKUTTER_DIR}}/core/lib/uithreadonly.rb:22:in `block (2 levels) in singleton class' from {{MIKUTTER_DIR}}/core/mui/cairo_miracle_painter.rb:126:in `pixbuf' from {{MIKUTTER_DIR}}/core/lib/uithreadonly.rb:22:in `block (2 levels) in singleton class' from {{MIKUTTER_DIR}}/core/mui/cairo_cell_renderer_message.rb:149:in `render_message' from {{MIKUTTER_DIR}}/core/mui/cairo_cell_renderer_message.rb:128:in `uri=' from {{MIKUTTER_DIR}}/core/plugin/gtk/mainloop.rb:10:in `main' from {{MIKUTTER_DIR}}/core/plugin/gtk/mainloop.rb:10:in `mainloop' from {{MIKUTTER_DIR}}/mikutter.rb:68:in `boot!' from {{MIKUTTER_DIR}}/mikutter.rb:104:in `<main>'
Files
再現手順
- 手順A
- 一晩放置していた
- 手順B
- Twitterアカウントを登録する
- そのTwitterアカウントを登録するのに使ったCKが凍結されるのを待つ
- 検索タブで任意のワードで検索する
Updated by Akira Ouchi about 7 years ago
- File system_message_icon.diff system_message_icon.diff added
ほかはまだ見てませんが、とりあえずSystemMessageにiconメソッドを実装するパッチをつくったので添付します。
Updated by toshi_a 初音 about 7 years ago
#1205 や #1225 では、Message Modelにuserメソッドがあるとも限らないと書いているが、実際にはuserメソッドはもともと必須とされている 。
一方でMessage#iconは規定がなく、User#iconは規定されているので、message.user.iconは必ず成功する前提で書き直したほうが良い。
Updated by toshi_a 初音 about 7 years ago
- Related to 機能 #1205: 返信時にGtk::PostBoxがIntelligentTextviewを付加するための要件を緩和してほしい added
Updated by toshi_a 初音 about 7 years ago
- Related to バグ #1225: userメソッドを持たないMessageモデルを使うとmikutterがクラッシュする added
Updated by toshi_a 初音 about 7 years ago
Actions