Project

General

Profile

バグ #1430

起動時にクラッシュする

Added by toshi_a 初音 about 2 months ago. Updated about 2 months ago.

Status:
終了
Priority:
通常
Target version:
プラグイン名:
ブランチ:
topic/1430-delayer-1.1.2
クラッシュする:
Yes

Description

現在のdevelopブランチ 3b7f02d6 で起動するとクラッシュします。

/home/toshi/.cache/bundle/mikutter-cli/ruby/2.7.0/gems/delayer-1.1.1/lib/delayer/delayed_procedure.rb:30:in `>=': stack level too deep (SystemStackError)
    from /home/toshi/.cache/bundle/mikutter-cli/ruby/2.7.0/gems/delayer-1.1.1/lib/delayer/delayed_procedure.rb:30:in `add'
    from /home/toshi/.cache/bundle/mikutter-cli/ruby/2.7.0/gems/delayer-1.1.1/lib/delayer/delayed_procedure.rb:31:in `add'
    from /home/toshi/.cache/bundle/mikutter-cli/ruby/2.7.0/gems/delayer-1.1.1/lib/delayer/delayed_procedure.rb:31:in `add'
    from /home/toshi/.cache/bundle/mikutter-cli/ruby/2.7.0/gems/delayer-1.1.1/lib/delayer/delayed_procedure.rb:31:in `add'
    from /home/toshi/.cache/bundle/mikutter-cli/ruby/2.7.0/gems/delayer-1.1.1/lib/delayer/delayed_procedure.rb:31:in `add'
    from /home/toshi/.cache/bundle/mikutter-cli/ruby/2.7.0/gems/delayer-1.1.1/lib/delayer/delayed_procedure.rb:31:in `add'
    from /home/toshi/.cache/bundle/mikutter-cli/ruby/2.7.0/gems/delayer-1.1.1/lib/delayer/delayed_procedure.rb:31:in `add'
    from /home/toshi/.cache/bundle/mikutter-cli/ruby/2.7.0/gems/delayer-1.1.1/lib/delayer/delayed_procedure.rb:31:in `add'
     ... 9351 levels...
    from /home/toshi/Project/mikutter/plugin/gtk/mainloop.rb:10:in `catch'
    from /home/toshi/Project/mikutter/plugin/gtk/mainloop.rb:10:in `mainloop'
    from /home/toshi/Project/mikutter/mikutter.rb:81:in `boot!'
    from /home/toshi/Project/mikutter/mikutter.rb:117:in `<main>'

再現手順

  • 起動する
  • クラッシュする
#1

Updated by Shibafu Midorino about 2 months ago

スタックの浅いところでgtk pluginがDelayerを呼んでいるようですが、さて…

/home/shibafu/git/mikutter/vendor/bundle/ruby/2.7.0/gems/delayer-1.1.1/lib/delayer/delayed_procedure.rb:39:in `add'
/home/shibafu/git/mikutter/vendor/bundle/ruby/2.7.0/gems/delayer-1.1.1/lib/delayer/delayed_procedure.rb:31:in `add'
/home/shibafu/git/mikutter/vendor/bundle/ruby/2.7.0/gems/delayer-1.1.1/lib/delayer/delayed_procedure.rb:39:in `add'
/home/shibafu/git/mikutter/vendor/bundle/ruby/2.7.0/gems/delayer-1.1.1/lib/delayer/extend.rb:169:in `block in reserve'
/home/shibafu/git/mikutter/vendor/bundle/ruby/2.7.0/gems/delayer-1.1.1/lib/delayer/extend.rb:167:in `synchronize'
/home/shibafu/git/mikutter/vendor/bundle/ruby/2.7.0/gems/delayer-1.1.1/lib/delayer/extend.rb:167:in `reserve'
/home/shibafu/git/mikutter/vendor/bundle/ruby/2.7.0/gems/delayer-1.1.1/lib/delayer/delayed_procedure.rb:21:in `initialize'
/home/shibafu/git/mikutter/vendor/bundle/ruby/2.7.0/gems/delayer-1.1.1/lib/delayer/extend.rb:28:in `new'
/home/shibafu/git/mikutter/vendor/bundle/ruby/2.7.0/gems/delayer-1.1.1/lib/delayer/extend.rb:28:in `initialize'
/home/shibafu/git/mikutter/vendor/bundle/ruby/2.7.0/gems/delayer-1.1.1/lib/delayer.rb:37:in `new'
/home/shibafu/git/mikutter/vendor/bundle/ruby/2.7.0/gems/delayer-1.1.1/lib/delayer.rb:37:in `method_missing'
/home/shibafu/git/mikutter/plugin/gtk/gtk.rb:440:in `block (2 levels) in <top (required)>'
/home/shibafu/git/mikutter/vendor/bundle/ruby/2.7.0/gems/pluggaloid-1.3.1/lib/pluggaloid/listener.rb:25:in `call'
/home/shibafu/git/mikutter/vendor/bundle/ruby/2.7.0/gems/pluggaloid-1.3.1/lib/pluggaloid/event.rb:159:in `block (2 levels) in call_all_listeners'
/home/shibafu/git/mikutter/vendor/bundle/ruby/2.7.0/gems/pluggaloid-1.3.1/lib/pluggaloid/event.rb:158:in `each'
/home/shibafu/git/mikutter/vendor/bundle/ruby/2.7.0/gems/pluggaloid-1.3.1/lib/pluggaloid/event.rb:158:in `block in call_all_listeners'
/home/shibafu/git/mikutter/vendor/bundle/ruby/2.7.0/gems/pluggaloid-1.3.1/lib/pluggaloid/event.rb:157:in `catch'
/home/shibafu/git/mikutter/vendor/bundle/ruby/2.7.0/gems/pluggaloid-1.3.1/lib/pluggaloid/event.rb:157:in `call_all_listeners'
/home/shibafu/git/mikutter/vendor/bundle/ruby/2.7.0/gems/pluggaloid-1.3.1/lib/pluggaloid/event.rb:43:in `block in call'
/home/shibafu/git/mikutter/vendor/bundle/ruby/2.7.0/gems/delayer-1.1.1/lib/delayer/procedure.rb:26:in `run'
/home/shibafu/git/mikutter/vendor/bundle/ruby/2.7.0/gems/delayer-1.1.1/lib/delayer/extend.rb:102:in `run_once'
/home/shibafu/git/mikutter/vendor/bundle/ruby/2.7.0/gems/delayer-1.1.1/lib/delayer.rb:37:in `method_missing'
/home/shibafu/git/mikutter/plugin/gtk/mainloop.rb:23:in `block (2 levels) in mainloop'
/home/shibafu/git/mikutter/plugin/gtk/mainloop.rb:12:in `loop'
/home/shibafu/git/mikutter/plugin/gtk/mainloop.rb:12:in `block in mainloop'
/home/shibafu/git/mikutter/plugin/gtk/mainloop.rb:10:in `catch'
/home/shibafu/git/mikutter/plugin/gtk/mainloop.rb:10:in `mainloop'
mikutter.rb:81:in `boot!'
mikutter.rb:117:in `<main>'
#2

Updated by toshi_a 初音 about 2 months ago

plugin/gtk/gtk.rb:440

OSC大阪のお知らせを配信し始めたので顕在化した

#3

Updated by toshi_a 初音 about 2 months ago

  • Status changed from 実装待ち to レビュー待ち
  • Assignee changed from toshi_a 初音 to Shibafu Midorino
  • ブランチ set to topic/1430-delayer-1.1.2

修正した。他の人の環境でも動くか知りたいのでお願いします

#4

Updated by Shibafu Midorino about 2 months ago

  • Status changed from レビュー待ち to マージ待ち

3b7f02d6 の環境で、delayerを最新版に更新した状態で、rbenvから入れた下記バージョンのRubyで正常起動できることを確認しました。

  • ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-linux]
  • ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux]
#5

Updated by Shibafu Midorino about 2 months ago

はて、 #note-4 は何を寝ぼけたことを言っているんでしょうね……!
ちゃんと指定ブランチをチェックアウトして再確認しました。OKです。

#6

Updated by cob odo about 2 months ago

WSLでもruby-2.6.5/2.7.0ともに問題なく動きました。

#7

Updated by toshi_a 初音 about 2 months ago

  • Status changed from マージ待ち to 終了

Also available in: Atom PDF