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

Re: Cannot obtain a headers list for sb-rss



>> On Tue, 23 Dec 2003 07:07:39 +0900
>> 「中」== minakaji@namazu.org (NAKAJIMA Mikio) said as follows:

中> この変更以来、複数の backend において、Shimbun の記事を表示するタ
中> イミングで

中> (args-out-of-range 3115 3115) 

中> (数字はその都度変わります) というようなエラーが出るようになってし
中> まいました。debug-on-error を t にしていても error が出ないので、
中> どこでエラーになっているか捕めていません。

はい,私もそれで追跡を断念しました.一晩寝てすっきりした頭でもう一度追
い掛けてみたところ,これは非同期周りのバグではなく,MIME メッセージを
表示する段階で現れていることに気付きました[*].

  [*] nnshimbun.el の場合,一度表示した記事は別の buffer に cache を蓄
  えておくのですが,その cache されている記事でも同じ問題が再現したから.

試しに,mime-w3m-preview-text/html() 内の condition-case() を外した関
数を以下のように定義して,再度記事を表示させると,末尾に添付したような 
backtrace が得られました.と言うわけで,画像周りの最近の変更の影響を受
けているのではないでしょうか.

(defun mime-w3m-preview-text/html (entity situation)
  (mime-w3m-setup)
  (setq mime-w3m-message-structure (mime-find-root-entity entity))
  (let ((p (point))
        (xref
         (or (mime-entity-fetch-field entity "xref")
             (mime-entity-fetch-field mime-w3m-message-structure "xref"))))
    (goto-char p)
    (insert "\n")
    (goto-char p)
    (mime-w3m-save-background-color
     (save-restriction
       (narrow-to-region p p)
       (mime-insert-text-content entity)
       (run-hooks 'mime-text-decode-hook)
       (let ((w3m-safe-url-regexp mime-w3m-safe-url-regexp)
             (w3m-display-inline-images mime-w3m-display-inline-images)
             w3m-force-redisplay)
         (w3m-region p (point-max)
                     (and (stringp xref)
                          (string-match "\\`http://" xref)
                          xref)
                     (mime-content-type-parameter
                      (mime-entity-content-type entity)
                      "charset"))
         (add-text-properties p (point-max)
                              (nconc (mime-w3m-local-map-property)
                                     '(text-rendered-by-mime-w3m t))))))))

-- 
土屋 雅稔 ( TSUCHIYA Masatoshi )

Debugger entered--Lisp error: (args-out-of-range 587 587)
  get-text-property(587 w3m-image)
  (w3m-image end)
  (if (w3m-image end) end (next-single-property-change end (quote w3m-image)))
  (setq start (if (w3m-image end) end (next-single-property-change end ...)))
  (while (setq start (if ... end ...)) (setq end (or ... ...) iurl (w3m-image start) size (get-text-property start ...)) (when (and ... ...) (w3m-add-text-properties start end ...) (if ... ... ... ...)))
  (if (equal status (quote off)) (while (setq start ...) (setq end ... iurl ... size ...) (when ... ... ...)) (while (setq start ...) (setq end ... iurl ...) (when ... ... ...)) (set-buffer-modified-p nil))
  (save-excursion (if (equal status ...) (while ... ... ...) (while ... ... ...) (set-buffer-modified-p nil)))
  (let ((cur-point ...) (buffer-read-only) (end ...) start iurl image size) (save-excursion (if ... ... ... ...)))
  w3m-toggle-inline-images-internal(off nil nil)
  (unwind-protect (w3m-toggle-inline-images-internal (if w3m-display-inline-images ... ...) no-cache nil) (unless (setq w3m-display-inline-images ...) (w3m-process-stop ...)) (force-mode-line-update))
  (let ((status w3m-display-inline-images)) (unless (w3m-display-graphic-p) (error "Can't display images in this environment")) (if force (setq w3m-display-inline-images nil status nil)) (unwind-protect (w3m-toggle-inline-images-internal ... no-cache nil) (unless ... ...) (force-mode-line-update)))
  w3m-toggle-inline-images(force)
  w3m-region(559 21025 "http://www-6.ibm.com/jp/developerworks/linux/020426/j_l-keyc3.html" "ISO-2022-JP")
  (let ((w3m-safe-url-regexp mime-w3m-safe-url-regexp) (w3m-display-inline-images mime-w3m-display-inline-images) w3m-force-redisplay) (w3m-region p (point-max) (and ... ... xref) (mime-content-type-parameter ... "charset")) (add-text-properties p (point-max) (nconc ... ...)))
  (save-restriction (narrow-to-region p p) (mime-insert-text-content entity) (run-hooks (quote mime-text-decode-hook)) (let (... ... w3m-force-redisplay) (w3m-region p ... ... ...) (add-text-properties p ... ...)))
  (progn (save-restriction (narrow-to-region p p) (mime-insert-text-content entity) (run-hooks ...) (let ... ... ...)))
  (mime-w3m-save-background-color (save-restriction (narrow-to-region p p) (mime-insert-text-content entity) (run-hooks ...) (let ... ... ...)))
  (let ((p ...) (xref ...)) (goto-char p) (insert "\n") (goto-char p) (mime-w3m-save-background-color (save-restriction ... ... ... ...)))
  mime-w3m-preview-text/html([mime-buffer-entity [0 0 0 0 0 0 0] #<buffer  *Original Article nnshimbun+ibm-dev:linux*> ((type . text) (subtype . html) ("charset" . "ISO-2022-JP")) nil [mime-buffer-entity [0 0 0 0 0 0 0] 124 (... ... ...) (#0 [mime-buffer-entity [0 0 0 0 0 0 0] #<buffer  *Original Article nnshimbun+ibm-dev:linux*> ... nil #1 ... nil "base64" ... ... #<buffer  *Original Article nnshimbun+ibm-dev:linux*> 31666 31807 31808 31868] [mime-buffer-entity [0 0 0 0 0 0 0] #<buffer  *Original Article nnshimbun+ibm-dev:linux*> ... nil #1 ... nil nil nil nil #<buffer  *Original Article nnshimbun+ibm-dev:linux*> 31906 32048 32049 59452] [mime-buffer-entity [0 0 0 0 0 0 0] #<buffer  *Original Article nnshimbun+ibm-dev:linux*> ... nil #1 ... nil nil nil nil #<buffer  *Original Article nnshimbun+ibm-dev:linux*> 59490 59632 59633 80135] [mime-buffer-entity [0 0 0 0 0 0 0] #<buffer  *Original Article nnshimbun+ibm-dev:linux*> ... nil #1 ... nil nil nil nil #<buffer  *Original Article nnshimbun+ibm-dev:linux*> 80173 80315 80316 102309] [mime-buffer-entity [0 0 0 0 0 0 0] #<buffer  *Original Article nnshimbun+ibm-dev:linux*> ... nil #1 ... nil nil nil nil #<buffer  *Original Article nnshimbun+ibm-dev:linux*> 102347 102488 102489 108875]) nil nil nil "7bit" (... ... ...) nil " *Original Article nnshimbun+ibm-dev:linux*" 1 632 633 108915 nil "\xdb26\xe24c\xd2c6\xd0bc\xd2de: OpenSSH\xd2ad\xd0bc(\xdc30)\xd24e\xda49\xe6fd \xe168\ 3\xd973" "webmaster@www-6.ibm.com" "26 Apr 2002 00:00 +0900" "<j_l-keyc302002426%linux>" "" 0 0 "http://www-6.ibm.com/jp/developerworks/linux/020426/j_l-keyc3.html" nil] (0) nil "7bit" ((Content-Id . "<shimbun.0.j_l-keyc302002426%linux>")) ((Content-Id msg-id ... ... ... ... ...)) #<buffer  *Original Article nnshimbun+ibm-dev:linux*> 670 763 764 31628] ((body-presentation-method . mime-w3m-preview-text/html) (body . visible) (encoding . "7bit") ("charset" . "ISO-2022-JP") (subtype . html) (type . text) (major-mode . gnus-original-article-mode)))
  mime-display-entity([mime-buffer-entity [0 0 0 0 0 0 0] #<buffer  *Original Article nnshimbun+ibm-dev:linux*> ((type . text) (subtype . html) ("charset" . "ISO-2022-JP")) nil [mime-buffer-entity [0 0 0 0 0 0 0] 124 (... ... ...) (#0 [mime-buffer-entity [0 0 0 0 0 0 0] #<buffer  *Original Article nnshimbun+ibm-dev:linux*> ... nil #1 ... nil "base64" ... ... #<buffer  *Original Article nnshimbun+ibm-dev:linux*> 31666 31807 31808 31868] [mime-buffer-entity [0 0 0 0 0 0 0] #<buffer  *Original Article nnshimbun+ibm-dev:linux*> ... nil #1 ... nil nil nil nil #<buffer  *Original Article nnshimbun+ibm-dev:linux*> 31906 32048 32049 59452] [mime-buffer-entity [0 0 0 0 0 0 0] #<buffer  *Original Article nnshimbun+ibm-dev:linux*> ... nil #1 ... nil nil nil nil #<buffer  *Original Article nnshimbun+ibm-dev:linux*> 59490 59632 59633 80135] [mime-buffer-entity [0 0 0 0 0 0 0] #<buffer  *Original Article nnshimbun+ibm-dev:linux*> ... nil #1 ... nil nil nil nil #<buffer  *Original Article nnshimbun+ibm-dev:linux*> 80173 80315 80316 102309] [mime-buffer-entity [0 0 0 0 0 0 0] #<buffer  *Original Article nnshimbun+ibm-dev:linux*> ... nil #1 ... nil nil nil nil #<buffer  *Original Article nnshimbun+ibm-dev:linux*> 102347 102488 102489 108875]) nil nil nil "7bit" (... ... ...) nil " *Original Article nnshimbun+ibm-dev:linux*" 1 632 633 108915 nil "\xdb26\xe24c\xd2c6\xd0bc\xd2de: OpenSSH\xd2ad\xd0bc(\xdc30)\xd24e\xda49\xe6fd \xe168\ 3\xd973" "webmaster@www-6.ibm.com" "26 Apr 2002 00:00 +0900" "<j_l-keyc302002426%linux>" "" 0 0 "http://www-6.ibm.com/jp/developerworks/linux/020426/j_l-keyc3.html" nil] (0) nil "7bit" ((Content-Id . "<shimbun.0.j_l-keyc302002426%linux>")) ((Content-Id msg-id ... ... ... ... ...)) #<buffer  *Original Article nnshimbun+ibm-dev:linux*> 670 763 764 31628] nil ((major-mode . gnus-original-article-mode)))
  mime-display-multipart/related([mime-buffer-entity [0 0 0 0 0 0 0] 124 ((type . multipart) (subtype . related) ("boundary" . "===shimbun_1_16270_26714_795133===")) ([mime-buffer-entity [0 0 0 0 0 0 0] #<buffer  *Original Article nnshimbun+ibm-dev:linux*> ... nil #0 ... nil "7bit" ... ... #<buffer  *Original Article nnshimbun+ibm-dev:linux*> 670 763 764 31628] [mime-buffer-entity [0 0 0 0 0 0 0] #<buffer  *Original Article nnshimbun+ibm-dev:linux*> ... nil #0 ... nil "base64" ... ... #<buffer  *Original Article nnshimbun+ibm-dev:linux*> 31666 31807 31808 31868] [mime-buffer-entity [0 0 0 0 0 0 0] #<buffer  *Original Article nnshimbun+ibm-dev:linux*> ... nil #0 ... nil nil nil nil #<buffer  *Original Article nnshimbun+ibm-dev:linux*> 31906 32048 32049 59452] [mime-buffer-entity [0 0 0 0 0 0 0] #<buffer  *Original Article nnshimbun+ibm-dev:linux*> ... nil #0 ... nil nil nil nil #<buffer  *Original Article nnshimbun+ibm-dev:linux*> 59490 59632 59633 80135] [mime-buffer-entity [0 0 0 0 0 0 0] #<buffer  *Original Article nnshimbun+ibm-dev:linux*> ... nil #0 ... nil nil nil nil #<buffer  *Original Article nnshimbun+ibm-dev:linux*> 80173 80315 80316 102309] [mime-buffer-entity [0 0 0 0 0 0 0] #<buffer  *Original Article nnshimbun+ibm-dev:linux*> ... nil #0 ... nil nil nil nil #<buffer  *Original Article nnshimbun+ibm-dev:linux*> 102347 102488 102489 108875]) nil nil nil "7bit" ((Xref . "http://www-6.ibm.com/jp/developerworks/linux/020426/j_l-keyc3.html") (Subject . "=?ISO-2022-JP?B?GyRCNiZETCVGITwlXhsoQjogT3BlblNTSBskQiUtITwbKEIo?= =?ISO-2022-JP?B?GyRCODAbKEIpGyRCJE40SU19GyhCIBskQkJoGyhCMxskQjJzGyhC?=") (From . "webmaster@www-6.ibm.com")) nil " *Original Article nnshimbun+ibm-dev:linux*" 1 632 633 108915 nil "\xdb26\xe24c\xd2c6\xd0bc\xd2de: OpenSSH\xd2ad\xd0bc(\xdc30)\xd24e\xda49\xe6fd \xe168\ 3\xd973" "webmaster@www-6.ibm.com" "26 Apr 2002 00:00 +0900" "<j_l-keyc302002426%linux>" "" 0 0 "http://www-6.ibm.com/jp/developerworks/linux/020426/j_l-keyc3.html" nil] ((body-presentation-method . mime-display-multipart/related) (body . visible) (encoding . "7bit") ("boundary" . "===shimbun_1_16270_26714_795133===") (subtype . related) (type . multipart) (entity-button . invisible) (header . visible) (major-mode . gnus-original-article-mode)))
  mime-display-entity([mime-buffer-entity [0 0 0 0 0 0 0] 124 ((type . multipart) (subtype . related) ("boundary" . "===shimbun_1_16270_26714_795133===")) ([mime-buffer-entity [0 0 0 0 0 0 0] #<buffer  *Original Article nnshimbun+ibm-dev:linux*> ... nil #0 ... nil "7bit" ... ... #<buffer  *Original Article nnshimbun+ibm-dev:linux*> 670 763 764 31628] [mime-buffer-entity [0 0 0 0 0 0 0] #<buffer  *Original Article nnshimbun+ibm-dev:linux*> ... nil #0 ... nil "base64" ... ... #<buffer  *Original Article nnshimbun+ibm-dev:linux*> 31666 31807 31808 31868] [mime-buffer-entity [0 0 0 0 0 0 0] #<buffer  *Original Article nnshimbun+ibm-dev:linux*> ... nil #0 ... nil nil nil nil #<buffer  *Original Article nnshimbun+ibm-dev:linux*> 31906 32048 32049 59452] [mime-buffer-entity [0 0 0 0 0 0 0] #<buffer  *Original Article nnshimbun+ibm-dev:linux*> ... nil #0 ... nil nil nil nil #<buffer  *Original Article nnshimbun+ibm-dev:linux*> 59490 59632 59633 80135] [mime-buffer-entity [0 0 0 0 0 0 0] #<buffer  *Original Article nnshimbun+ibm-dev:linux*> ... nil #0 ... nil nil nil nil #<buffer  *Original Article nnshimbun+ibm-dev:linux*> 80173 80315 80316 102309] [mime-buffer-entity [0 0 0 0 0 0 0] #<buffer  *Original Article nnshimbun+ibm-dev:linux*> ... nil #0 ... nil nil nil nil #<buffer  *Original Article nnshimbun+ibm-dev:linux*> 102347 102488 102489 108875]) nil nil nil "7bit" ((Xref . "http://www-6.ibm.com/jp/developerworks/linux/020426/j_l-keyc3.html") (Subject . "=?ISO-2022-JP?B?GyRCNiZETCVGITwlXhsoQjogT3BlblNTSBskQiUtITwbKEIo?= =?ISO-2022-JP?B?GyRCODAbKEIpGyRCJE40SU19GyhCIBskQkJoGyhCMxskQjJzGyhC?=") (From . "webmaster@www-6.ibm.com")) nil " *Original Article nnshimbun+ibm-dev:linux*" 1 632 633 108915 nil "\xdb26\xe24c\xd2c6\xd0bc\xd2de: OpenSSH\xd2ad\xd0bc(\xdc30)\xd24e\xda49\xe6fd \xe168\ 3\xd973" "webmaster@www-6.ibm.com" "26 Apr 2002 00:00 +0900" "<j_l-keyc302002426%linux>" "" 0 0 "http://www-6.ibm.com/jp/developerworks/linux/020426/j_l-keyc3.html" nil] nil ((entity-button . invisible) (header . visible) (major-mode . gnus-original-article-mode)) "*Article nnshimbun+ibm-dev:linux*")
  mime-display-message([mime-buffer-entity [0 0 0 0 0 0 0] 124 ((type . multipart) (subtype . related) ("boundary" . "===shimbun_1_16270_26714_795133===")) ([mime-buffer-entity [0 0 0 0 0 0 0] #<buffer  *Original Article nnshimbun+ibm-dev:linux*> ... nil #0 ... nil "7bit" ... ... #<buffer  *Original Article nnshimbun+ibm-dev:linux*> 670 763 764 31628] [mime-buffer-entity [0 0 0 0 0 0 0] #<buffer  *Original Article nnshimbun+ibm-dev:linux*> ... nil #0 ... nil "base64" ... ... #<buffer  *Original Article nnshimbun+ibm-dev:linux*> 31666 31807 31808 31868] [mime-buffer-entity [0 0 0 0 0 0 0] #<buffer  *Original Article nnshimbun+ibm-dev:linux*> ... nil #0 ... nil nil nil nil #<buffer  *Original Article nnshimbun+ibm-dev:linux*> 31906 32048 32049 59452] [mime-buffer-entity [0 0 0 0 0 0 0] #<buffer  *Original Article nnshimbun+ibm-dev:linux*> ... nil #0 ... nil nil nil nil #<buffer  *Original Article nnshimbun+ibm-dev:linux*> 59490 59632 59633 80135] [mime-buffer-entity [0 0 0 0 0 0 0] #<buffer  *Original Article nnshimbun+ibm-dev:linux*> ... nil #0 ... nil nil nil nil #<buffer  *Original Article nnshimbun+ibm-dev:linux*> 80173 80315 80316 102309] [mime-buffer-entity [0 0 0 0 0 0 0] #<buffer  *Original Article nnshimbun+ibm-dev:linux*> ... nil #0 ... nil nil nil nil #<buffer  *Original Article nnshimbun+ibm-dev:linux*> 102347 102488 102489 108875]) nil nil nil "7bit" ((Xref . "http://www-6.ibm.com/jp/developerworks/linux/020426/j_l-keyc3.html") (Subject . "=?ISO-2022-JP?B?GyRCNiZETCVGITwlXhsoQjogT3BlblNTSBskQiUtITwbKEIo?= =?ISO-2022-JP?B?GyRCODAbKEIpGyRCJE40SU19GyhCIBskQkJoGyhCMxskQjJzGyhC?=") (From . "webmaster@www-6.ibm.com")) nil " *Original Article nnshimbun+ibm-dev:linux*" 1 632 633 108915 nil "\xdb26\xe24c\xd2c6\xd0bc\xd2de: OpenSSH\xd2ad\xd0bc(\xdc30)\xd24e\xda49\xe6fd \xe168\ 3\xd973" "webmaster@www-6.ibm.com" "26 Apr 2002 00:00 +0900" "<j_l-keyc302002426%linux>" "" 0 0 "http://www-6.ibm.com/jp/developerworks/linux/020426/j_l-keyc3.html" nil] "*Article nnshimbun+ibm-dev:linux*" nil (keymap (menu-bar keymap (Treatment menu-item "Treatment" ...) (Article menu-item "Article" ...) (edit . undefined) (post "Post" keymap "Post" ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) (commands "Commands" keymap "Article" ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...)) (33 . gnus-article-read-summary-keys) (34 . gnus-article-read-summary-keys) (35 . gnus-article-read-summary-keys) (36 . gnus-article-read-summary-keys) (37 . gnus-article-read-summary-keys) (38 . gnus-article-read-summary-keys) (39 . gnus-article-read-summary-keys) (40 . gnus-article-read-summary-keys) (41 . gnus-article-read-summary-keys) (42 . gnus-article-read-summary-keys) (43 . gnus-article-read-summary-keys) (44 . gnus-article-read-summary-keys) (46 . gnus-article-read-summary-keys) (58 . gnus-article-read-summary-keys) (59 . gnus-article-read-summary-keys) (61 . gnus-article-read-summary-keys) (64 . gnus-article-read-summary-keys) (67 . gnus-article-read-summary-keys) (68 . gnus-article-read-summary-keys) (69 . gnus-article-read-summary-keys) (73 . gnus-article-read-summary-keys) (74 . gnus-article-read-summary-keys) (76 . gnus-article-read-summary-keys) (78 . gnus-article-read-summary-keys) (80 . gnus-article-read-summary-keys) (81 . gnus-article-read-summary-keys) (83 . gnus-article-read-summary-keys) (85 . gnus-article-read-summary-keys) (86 . gnus-article-read-summary-keys) (91 . gnus-article-read-summary-keys) (92 . gnus-article-read-summary-keys) (93 . gnus-article-read-summary-keys) (94 . gnus-article-read-summary-keys) (95 . gnus-article-read-summary-keys) (96 . gnus-article-read-summary-keys) (97 . gnus-article-read-summary-keys) (98 . gnus-article-read-summary-keys) (99 . gnus-article-read-summary-keys) (100 . gnus-article-read-summary-keys) (102 . gnus-article-read-summary-keys) (103 . gnus-article-read-summary-keys) (105 . gnus-article-read-summary-keys) (106 . gnus-article-read-summary-keys) (107 . gnus-article-read-summary-keys) (108 . gnus-article-read-summary-keys) (109 . gnus-article-read-summary-keys) (110 . gnus-article-read-summary-keys) (111 . gnus-article-read-summary-keys) ...))
  gnus-article-display-mime-message()
  gnus-article-prepare-display()
  gnus-article-prepare(124 nil)
  gnus-summary-display-article(124)
  gnus-summary-next-page(nil)
  call-interactively(gnus-summary-next-page)