[Uim-bugs] [Bug 2471] uim-pref crashes when there's no ~/.uim.d directory
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Sat Feb 5 09:14:03 EET 2005
Please do not reply to this email: if you want to comment on the bug, go to
the URL shown below and enter yourcomments there.
https://bugs.freedesktop.org/show_bug.cgi?id=2471
------- Additional Comments From mover at hct.zaq.ne.jp 2005-02-04 23:14 -------
Use following patch,
The output result from im.scm seems to be written in loader.scm and
installed-modules.scm.
Anyway, I noticed that installed-modules.scm doesn't contain "direct"
input method. Is this ok?
Index: lazy-load.scm
===================================================================
--- lazy-load.scm (revision 523)
+++ lazy-load.scm (working copy)
@@ -45,6 +45,11 @@
stub-im-init-handler))
(init-handler id im arg)
(begin
+ (print init-handler)
+ (print stub-im-init-handler)
+ (print im)
+ (print (map im-name im-list))
+ (print enabled-im-list)
(error "stub IM actualization failed")
#f))))
context))))))
-----------------------------------
debian% LIBUIM_VERBOSE=5 uim-pref-gtk 2>&1 | grep -10 ERROR
(define direct-get-candidate-handler (lambda (dc idx) ()))
(define direct-set-candidate-index-handler (lambda (dc idx) ()))
(direct-configure-widgets)
(register-im (quote direct) "*" "UTF-8" (N_ "Direct") (N_ "Pass through all
user input without any modification") () direct-init-handler
direct-release-handler context-mode-handler direct-key-press-handler
direct-key-release-handler direct-reset-handler direct-get-candidate-handler
direct-set-candidate-index-handler context-prop-activate-handler)
done.
#<CLOSURE (id fake-im fake-arg) (let-internal (stub-im) ((retrieve-im name))
(let-internal (stub-im-init-handler) ((and stub-im (im-init-handler stub-im)))
(and (require-module module-name) (let-internal (im) ((retrieve-im name))
(let-internal (init-handler) ((im-init-handler im)) (let-internal (arg)
((im-init-arg im)) (let-internal (context) ((if (not (eq? init-handler
stub-im-init-handler)) (init-handler id im arg) (begin (print init-handler)
(print stub-im-init-handler) (print im) (print (map im-name im-list)) (print
enabled-im-list) (error "stub IM actualization failed") ()))) context)))))))>
#<CLOSURE (id fake-im fake-arg) (let-internal (stub-im) ((retrieve-im name))
(let-internal (stub-im-init-handler) ((and stub-im (im-init-handler stub-im)))
(and (require-module module-name) (let-internal (im) ((retrieve-im name))
(let-internal (init-handler) ((im-init-handler im)) (let-internal (arg)
((im-init-arg im)) (let-internal (context) ((if (not (eq? init-handler
stub-im-init-handler)) (init-handler id im arg) (begin (print init-handler)
(print stub-im-init-handler) (print im) (print (map im-name im-list)) (print
enabled-im-list) (error "stub IM actualization failed") ()))) context)))))))>
(direct "*" "UTF-8" "Direct" "Pass through all user input without any
modification" () #<CLOSURE (id fake-im fake-arg) (let-internal (stub-im)
((retrieve-im name)) (let-internal (stub-im-init-handler) ((and stub-im
(im-init-handler stub-im))) (and (require-module module-name) (let-internal
(im) ((retrieve-im name)) (let-internal (init-handler) ((im-init-handler im))
(let-internal (arg) ((im-init-arg im)) (let-internal (context) ((if (not (eq?
init-handler stub-im-init-handler)) (init-handler id im arg) (begin (print
init-handler) (print stub-im-init-handler) (print im) (print (map im-name
im-list)) (print enabled-im-list) (error "stub IM actualization failed") ())))
context)))))))> () () () () () () () () "direct")
(direct latin ipa viqr romaja hangul3 hangul2 tutcode tcode skk prime anthy
pinyin-big5 pyunihan py)
(py pyunihan pinyin-big5 anthy prime skk tcode tutcode hangul2 hangul3 romaja
viqr ipa latin)
ERROR: stub IM actualization failed
*backtrace*
>>(error "stub IM actualization failed")
at /usr/local/share/uim/lazy-load.scm:53
>>(if (not (eq? init-handler stub-im-init-handler)) (init-handler id im arg)
(begin (print init-handler) (print stub-im-init-handler) (print im) (print (map
im-name im-list)) (print enabled-im-list) (error "stub IM actualization
failed") ())) at /usr/local/share/uim/lazy-load.scm:44
>>(handler id im arg) at /usr/local/share/uim/im.scm:236
>>(create-context 0 (quote ()) (quote direct))
zsh: segmentation fault (core dumped) LIBUIM_VERBOSE=5 uim-pref-gtk 2>& 1 |
zsh: done grep -10 ERROR
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the uim-bugs
mailing list