saitoha / tanasinn

三 ┏( ^o^)┛ < Terminal emulator extension for Firefox / Thunderbird / SeaMonkey.
http://saitoha.github.com/tanasinn
Other
47 stars 4 forks source link

Terminal looks unintended booting. #2

Closed tobynet closed 11 years ago

tobynet commented 11 years ago

Overview

Tanasinn 0.3.1.1 has not intended behavior for me in my Ubuntu 12.04 and Firefox enviroments.

Steps

  1. Ubuntu 12.04 + Firefox 16.0.2 を用意。以下は環境等。

    $ lsb_release -d
    Description:    Ubuntu 12.04.1 LTS
    $ uname -a
    Linux linuxpasocon 3.2.0-32-generic #51-Ubuntu SMP XXX XXX XXX XX:XX:XX XXX XXXX x86_64 x86_64 x86_64 GNU/Linux
    $ firefox -v
    Mozilla Firefox 16.0.2
    $ python --version
    Python 2.7.3
    # パッケージを更新しておく
    $ sudo apt-get install && sudo apt-get upgrade
  2. Firefoxを全て終了する。念の為、 $ mv ~/.tanasinn/ /tmp として、tanasinn の設定を新規にしておく
  3. $ firefox -ProfileManager にて新規のプロファイルtestを作成
  4. http://zuse.jp/tanasinn/index.html から tanasinn version 0.3.1.1 の拡張をダウンロード
  5. 先程作成したFirefox の test プロファイルを起動する
  6. ダウンロードした tanasinn の拡張(tanasinn-current.xpi)をFirefox にドラッグアンドドロップして、インストール
  7. CTRL、 CTRLと連続してキーを殴打し、出現した黒いコマンドラインテキストボックスに man man と入力しようとするが、キーを入力してから表示されるまで数秒かかり、反映が遅いように見える。(補完候補に時間が掛かっているようにも見える)
  8. コマンドラインテキストボックスに man man (Enter) と打つと、黒い四角いターミナルが表示される。 ターミナル内で文字列等が表示されない。キー入力は通っているかわからない。
  9. マウスで画面を選択すると、画面下部に selected: [242, 1214] のような表示がされる。

    Logs

~/.tanasinn/log/tanasinn-js.log

[Exception... "Component returned failure code: 0x80520006 (NS_ERROR_FILE_TARGET_DOES_NOT_EXIST) [nsIFile.isExecutable]"  nsresult: "0x80520006 (NS_ERROR_FILE_TARGET_DOES_NOT_EXIST)"  location: "JS frame :: resource:///modules/XPIProvider.jsm -> file:///home/pasocon/.mozilla/firefox/r2bzyb1l.test/extensions/tanasinn@zuse.jp/bootstrap.js -> file:///home/pasocon/.mozilla/firefox/r2bzyb1l.test/extensions/tanasinn@zuse.jp/modules/common/process.js?1352709827826 -> file:///home/pasocon/.mozilla/firefox/r2bzyb1l.test/extensions/tanasinn@zuse.jp/modules/common/common.js?1352709827827 -> file:///home/pasocon/.mozilla/firefox/r2bzyb1l.test/extensions/tanasinn@zuse.jp/modules/desktop_components/programcompleter.js?1352543084000 :: generateEntries :: line 52"  data: no]
[Exception... "Component returned failure code: 0x80520006 (NS_ERROR_FILE_TARGET_DOES_NOT_EXIST) [nsIFile.isExecutable]"  nsresult: "0x80520006 (NS_ERROR_FILE_TARGET_DOES_NOT_EXIST)"  location: "JS frame :: resource:///modules/XPIProvider.jsm -> file:///home/pasocon/.mozilla/firefox/r2bzyb1l.test/extensions/tanasinn@zuse.jp/bootstrap.js -> file:///home/pasocon/.mozilla/firefox/r2bzyb1l.test/extensions/tanasinn@zuse.jp/modules/common/process.js?1352709827826 -> file:///home/pasocon/.mozilla/firefox/r2bzyb1l.test/extensions/tanasinn@zuse.jp/modules/common/common.js?1352709827827 -> file:///home/pasocon/.mozilla/firefox/r2bzyb1l.test/extensions/tanasinn@zuse.jp/modules/desktop_components/programcompleter.js?1352543084000 :: generateEntries :: line 52"  data: no]
[JavaScript Message: "tanasinn: DECRST 45 - Reverse-wraparound Mode was reset." {file: "file:///home/pasocon/.mozilla/firefox/r2bzyb1l.test/extensions/tanasinn@zuse.jp/modules/session_components/reversewrap.js" line: 95 name: "deactivate"}]
[JavaScript Message: "tanasinn: DECAAM - DECAAM (disable answerback) was called." {file: "file:///home/pasocon/.mozilla/firefox/r2bzyb1l.test/extensions/tanasinn@zuse.jp/modules/session_components/answerback.js" line: 142 name: "deactivate"}]
[JavaScript Message: "tanasinn: TTY Server started. arguments: [/home/pasocon/.mozilla/firefox/r2bzyb1l.test/extensions/tanasinn@zuse.jp/modules/ttydriver.py, 34301]." {file: "file:///home/pasocon/.mozilla/firefox/r2bzyb1l.test/extensions/tanasinn@zuse.jp/modules/session_components/externaldriver.js" line: 224 name: "start"}]
[JavaScript Message: "tanasinn: DECSET - DECARM (Auto-repeat Keys) is set." {file: "file:///home/pasocon/.mozilla/firefox/r2bzyb1l.test/extensions/tanasinn@zuse.jp/modules/session_components/autorepeat.js" line: 131 name: "activate"}]
[JavaScript Message: "tanasinn: DECRST - DECSCNM (Reverse video) was called." {file: "file:///home/pasocon/.mozilla/firefox/r2bzyb1l.test/extensions/tanasinn@zuse.jp/modules/session_components/reversevideo.js" line: 125 name: "deactivate"}]
[JavaScript Message: "tanasinn: Connected to ttydriver. port: 43073" {file: "file:///home/pasocon/.mozilla/firefox/r2bzyb1l.test/extensions/tanasinn@zuse.jp/modules/session_components/ttyiomanager.js" line: 235 name: "onSocketAccepted"}]
[JavaScript Message: "tanasinn: Started to observe incoming data." {file: "file:///home/pasocon/.mozilla/firefox/r2bzyb1l.test/extensions/tanasinn@zuse.jp/modules/session_components/ttyiomanager.js" line: 238 name: "onSocketAccepted"}]
[JavaScript Message: "tanasinn: Controller::onStartRequest called. " {file: "file:///home/pasocon/.mozilla/firefox/r2bzyb1l.test/extensions/tanasinn@zuse.jp/modules/session_components/ttycontroller.js" line: 262 name: "onStartRequest"}]
TypeError: this.request("get/root-element").ownerDocument.defaultView is null
called at: ' file:///home/pasocon/.mozilla/firefox/r2bzyb1l.test/extensions/tanasinn@zuse.jp/modules/desktop_components/session.js: 263'.
The above Error is trapped in the following local event handler. 'event/broker-stopping'.
TypeError: this.request("get/root-element").ownerDocument.defaultView is null
called at: ' file:///home/pasocon/.mozilla/firefox/r2bzyb1l.test/extensions/tanasinn@zuse.jp/modules/common/tupbase.js: 802'.
The above Error is trapped in the following local event handler. 'uninstall/vimperator'.
[JavaScript Message: "tanasinn: Resources in TTY have been cleared." {file: "file:///home/pasocon/.mozilla/firefox/r2bzyb1l.test/extensions/tanasinn@zuse.jp/modules/session_components/tty.js" line: 139 name: "uninstall"}]
[JavaScript Message: "tanasinn: Resources in CommandlineHistory have been cleared." {file: "file:///home/pasocon/.mozilla/firefox/r2bzyb1l.test/extensions/tanasinn@zuse.jp/modules/session_components/history.js" line: 75 name: "uninstall"}]
TypeError: this.request("get/root-element").ownerDocument.defaultView is null
called at: ' file:///home/pasocon/.mozilla/firefox/r2bzyb1l.test/extensions/tanasinn@zuse.jp/modules/desktop_components/session.js: 263'.
The above Error is trapped in the following local event handler. 'event/broker-stopping'.
TypeError: this.request("get/root-element").ownerDocument.defaultView is null
called at: ' file:///home/pasocon/.mozilla/firefox/r2bzyb1l.test/extensions/tanasinn@zuse.jp/modules/common/tupbase.js: 802'.
The above Error is trapped in the following local event handler. 'uninstall/keysnail'.
[JavaScript Message: "tanasinn: onStopRequest called. status: 2147500036" {file: "file:///home/pasocon/.mozilla/firefox/r2bzyb1l.test/extensions/tanasinn@zuse.jp/modules/session_components/ttyiomanager.js" line: 300 name: "onStopRequest"}]
[JavaScript Message: "tanasinn: Controller::onStopRequest called. status: 2147500036." {file: "file:///home/pasocon/.mozilla/firefox/r2bzyb1l.test/extensions/tanasinn@zuse.jp/modules/session_components/ttycontroller.js" line: 278 name: "onStopRequest"}]
saitoha commented 11 years ago

修正したつもりです。バージョン0.3.1.5を試してみてください。 http://zuse.jp/tanasinn/index.html

いちおう原因としては、プラグインどうしの依存関係定義(初期化順を保証するための)をきちんとやらなかったのがいけなかったです。さらに言えば、環境によってたまたま動作してしまう曖昧さがあったということで、そこをどうしていくかがこれからの課題として明らかになってよかったです。ありがとうございます。

tobynet commented 11 years ago

動きました!!! ありがとうございました。

tanasinn-with-sixel

※ Stepsの7の入力が遅いのは別の問題のようなので、一旦closeします。