avidyalalala / sunpinyin

Automatically exported from code.google.com/p/sunpinyin
0 stars 0 forks source link

和最新的 ibus git 编译出的 ibus-sunpinyin 不能正常运行 #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
但是 ibus-pinyin 是能正常运行的。

ibus-sunpinyin 输入 'd' 能出现候选词,但是继续输入 
'a',就会导致
ibus-sunpinyin 崩溃:

ERROR:sunpinyin_lookup_table.cpp:65:int
SunPinyinLookupTable::update_candidates(const ICandidateList&): as
sertion failed: (IBUS_IS_LOOKUP_TABLE (m_lookup_table))                   

(ibus-daemon:8423): IBUS-DEBUG: From ::1.3 to (null), Error:
org.freedesktop.DBus.Error.NoReply : Did not 
receive a reply. Possible causes include: the remote application did not
send a reply, the message bus sec
urity policy blocked the reply, the reply timeout expired, or the network
connection was broken.          
**
IBUS:ERROR:ibusimpl.c:898:bus_ibus_impl_set_global_engine: assertion
failed: (ibus->global_engine == NULL)
(ibus-gconf:8424): IBUS-DEBUG: bus disconnected

ibus git: b29403bd7318575b15680999aa85f479fdefa83d

Original issue reported on code.google.com by find...@gmail.com on 28 Feb 2010 at 4:23

GoogleCodeExporter commented 9 years ago
Comment 1 by tchaikov, Feb 10, 2010
如果用 1.2.0 branch 的 ibus 就不会出现问题。似乎用 master 的 
ibus 就会发生 gobject 对
象的类型在再次使用的时候就会发生改变。比如 propertylist 
在构造的时候还是 ibus
serializable,等到 focus_in() 里面再用的时候,就会不对。但是 
ibus-pinyin 却不会出现这
个问题。

Original comment by find...@gmail.com on 28 Feb 2010 at 4:28

GoogleCodeExporter commented 9 years ago

Original comment by tchai...@gmail.com on 1 Mar 2010 at 5:43

GoogleCodeExporter commented 9 years ago
据黄鹏说,ibus-1.2和ibus-trunk的主要区别是:

> 主要是 IBus里的对象默认初始化的时候都是floating的,
> 
如果你把一个新建对象传给其他函数之后,不需要再调用g_obj
ect_unref了

Original comment by find...@gmail.com on 10 Mar 2010 at 12:22

GoogleCodeExporter commented 9 years ago
大赞,多谢!回头我试试看!

Original comment by tchai...@gmail.com on 10 Mar 2010 at 2:55

GoogleCodeExporter commented 9 years ago
fixed in rc8 and the latest hg.

Original comment by tchai...@gmail.com on 12 Mar 2010 at 3:59

GoogleCodeExporter commented 9 years ago
fixed in rc8 and the latest hg.

Original comment by tchai...@gmail.com on 12 Mar 2010 at 3:59

GoogleCodeExporter commented 9 years ago
Issue 27 has been merged into this issue.

Original comment by tchai...@gmail.com on 12 Mar 2010 at 4:16

GoogleCodeExporter commented 9 years ago
Still have this issue.

ibus:git version 8ba5979f404725b684a005ab747c0fbf5baced87
ibus-sunpiyin:the lagest reversion when I report this bug.

Exact the same behavior.
The first letter can be inputted and when inputting the second char, ibus hangs.

$ ibus-daemon -r -x -v

(ibus-daemon:27077): IBUS-WARNING **: org.freedesktop.DBus.Error.Failed: Can 
not get
value [general/hotkey->trigger]

(ibus-daemon:27077): IBUS-WARNING **: org.freedesktop.DBus.Error.Failed: Can 
not get
value [general/hotkey->next_engine]

(ibus-daemon:27077): IBUS-WARNING **: org.freedesktop.DBus.Error.Failed: Can 
not get
value [general/hotkey->prev_engine]

(ibus-daemon:27077): IBUS-WARNING **: org.freedesktop.DBus.Error.Failed: Can 
not get
value [general->use_global_engine]

(ibus-daemon:27077): IBUS-WARNING **: org.freedesktop.DBus.Error.Failed: Can 
not get
value [general->embed_preedit_text]
(ibus-daemon:27077): IBUS-DEBUG: From ::1.1 to :1.6, Error:
org.freedesktop.DBus.Error.Failed : Can not get value 
[panel->(ibus-daemon:27077):
IBUS-DEBUG: From ::1.1 to :1.3, Error: org.freedesktop.DBus.Error.Failed : Can 
not
get value [engine/SunPinyin/Pinyin->Scheme]

(ibus-engine-sunpinyin:27084): IBUS-WARNING **: 
org.freedesktop.DBus.Error.Failed:
Can not get value [engine/SunPinyin/Pinyin->Scheme]
(ibus-daemon:27077): IBUS-DEBUG: From ::1.1 to :1.3, Error:
org.freedesktop.DBus.Error.Failed : Can not get value
[engine/SunPinyin/QuanPin/Fuzzy->Enabled]

(ibus-engine-sunpinyin:27084): IBUS-WARNING **: 
org.freedesktop.DBus.Error.Failed:
Can not get value [engine/SunPinyin/QuanPin/Fuzzy->Enabled]
(ibus-daemon:27077): IBUS-DEBUG: From ::1.1 to :1.3, Error:
org.freedesktop.DBus.Error.Failed : Can not get value
[engine/SunPinyin/QuanPin/AutoCorrection->Enabled]

(ibus-engine-sunpinyin:27084): IBUS-WARNING **: 
org.freedesktop.DBus.Error.Failed:
Can not get value [engine/SunPinyin/QuanPin/AutoCorrection->Enabled]
(ibus-daemon:27077): IBUS-DEBUG: From ::1.1 to :1.3, Error:
org.freedesktop.DBus.Error.Failed : Can not get value
[engine/SunPinyin/General->PageSize]

(ibus-engine-sunpinyin:27084): IBUS-WARNING **: 
org.freedesktop.DBus.Error.Failed:
Can not get value [engine/SunPinyin/General->PageSize]
(ibus-daemon:27077): IBUS-DEBUG: From ::1.1 to :1.3, Error:
org.freedesktop.DBus.Error.Failed : Can not get value
[engine/SunPinyin/General/InitialStatus->Mode]

(ibus-engine-sunpinyin:27084): IBUS-WARNING **: 
org.freedesktop.DBus.Error.Failed:
Can not get value [engine/SunPinyin/General/InitialStatus->Mode]
(ibus-daemon:27077): IBUS-DEBUG: From ::1.1 to :1.3, Error:
org.freedesktop.DBus.Error.Failed : Can not get value
[engine/SunPinyin/General/InitialStatus->Letter]

(ibus-engine-sunpinyin:27084): IBUS-WARNING **: 
org.freedesktop.DBus.Error.Failed:
Can not get value [engine/SunPinyin/General/InitialStatus->Letter]
(ibus-daemon:27077): IBUS-DEBUG: From ::1.1 to :1.3, Error:
org.freedesktop.DBus.Error.Failed : Can not get value
[engine/SunPinyin/General/InitialStatus->Punct]

(ibus-engine-sunpinyin:27084): IBUS-WARNING **: 
org.freedesktop.DBus.Error.Failed:
Can not get value [engine/SunPinyin/General/InitialStatus->Punct]
(ibus-daemon:27077): IBUS-DEBUG: From ::1.1 to :1.3, Error:
org.freedesktop.DBus.Error.Failed : Can not get value
[engine/SunPinyin/General->MemoryPower]

(ibus-engine-sunpinyin:27084): IBUS-WARNING **: 
org.freedesktop.DBus.Error.Failed:
Can not get value [engine/SunPinyin/General->MemoryPower]
(ibus-daemon:27077): IBUS-DEBUG: From ::1.1 to :1.3, Error:
org.freedesktop.DBus.Error.Failed : Can not get value
[engine/SunPinyin/General->PageSize]

(ibus-engine-sunpinyin:27084): IBUS-WARNING **: 
org.freedesktop.DBus.Error.Failed:
Can not get value [engine/SunPinyin/General->PageSize]
(ibus-daemon:27077): IBUS-DEBUG: From ::1.1 to :1.3, Error:
org.freedesktop.DBus.Error.Failed : Can not get value 
[engine/SunPinyin/General->Charset]

(ibus-engine-sunpinyin:27084): IBUS-WARNING **: 
org.freedesktop.DBus.Error.Failed:
Can not get value [engine/SunPinyin/General->Charset]
(ibus-daemon:27077): IBUS-DEBUG: From ::1.1 to :1.3, Error:
org.freedesktop.DBus.Error.Failed : Can not get value
[engine/SunPinyin/Keyboard/Page->MinusEquals]

(ibus-engine-sunpinyin:27084): IBUS-WARNING **: 
org.freedesktop.DBus.Error.Failed:
Can not get value [engine/SunPinyin/Keyboard/Page->MinusEquals]
(ibus-daemon:27077): IBUS-DEBUG: From ::1.1 to :1.3, Error:
org.freedesktop.DBus.Error.Failed : Can not get value
[engine/SunPinyin/Keyboard/Page->CommaPeriod]

(ibus-engine-sunpinyin:27084): IBUS-WARNING **: 
org.freedesktop.DBus.Error.Failed:
Can not get value [engine/SunPinyin/Keyboard/Page->CommaPeriod]
(ibus-daemon:27077): IBUS-DEBUG: From ::1.1 to :1.3, Error:
org.freedesktop.DBus.Error.Failed : Can not get value
[engine/SunPinyin/Keyboard/Page->Brackets]

(ibus-engine-sunpinyin:27084): IBUS-WARNING **: 
org.freedesktop.DBus.Error.Failed:
Can not get value [engine/SunPinyin/Keyboard/Page->Brackets]
(ibus-daemon:27077): IBUS-DEBUG: From ::1.1 to :1.3, Error:
org.freedesktop.DBus.Error.Failed : Can not get value
[engine/SunPinyin/Keyboard->ModeSwitch]

(ibus-engine-sunpinyin:27084): IBUS-WARNING **: 
org.freedesktop.DBus.Error.Failed:
Can not get value [engine/SunPinyin/Keyboard->ModeSwitch]
(ibus-daemon:27077): IBUS-DEBUG: From ::1.1 to :1.3, Error:
org.freedesktop.DBus.Error.Failed : Can not get value
[engine/SunPinyin/Keyboard->PunctSwitch]

(ibus-engine-sunpinyin:27084): IBUS-WARNING **: 
org.freedesktop.DBus.Error.Failed:
Can not get value [engine/SunPinyin/Keyboard->PunctSwitch]
(ibus-daemon:27077): IBUS-DEBUG: From ::1.1 to :1.3, Error:
org.freedesktop.DBus.Error.Failed : Can not get value
[engine/SunPinyin/General/PunctMapping->Enabled]

(ibus-engine-sunpinyin:27084): IBUS-WARNING **: 
org.freedesktop.DBus.Error.Failed:
Can not get value [engine/SunPinyin/General/PunctMapping->Enabled]

(ibus-engine-sunpinyin:27084): IBUS-CRITICAL **: ibus_serializable_serialize:
assertion `IBUS_IS_SERIALIZABLE (object)' failed

(ibus-engine-sunpinyin:27084): IBUS-CRITICAL **: 
ibus_message_append_args_valist:
assertion `retval' failed

(ibus-engine-sunpinyin:27084): GLib-GObject-CRITICAL **: g_object_is_floating:
assertion `G_IS_OBJECT (object)' failed

(ibus-daemon:27077): IBUS-WARNING **: org.freedesktop.DBus.Error.InvalidArgs: 
Message
does not have arguments!

(ibus-engine-sunpinyin:27084): GLib-GObject-CRITICAL **: g_object_is_floating:
assertion `G_IS_OBJECT (object)' failed

(ibus-engine-sunpinyin:27084): GLib-GObject-CRITICAL **: g_object_unref: 
assertion
`G_IS_OBJECT (object)' failed

(ibus-engine-sunpinyin:27084): GLib-GObject-CRITICAL **: g_object_is_floating:
assertion `G_IS_OBJECT (object)' failed

(ibus-engine-sunpinyin:27084): GLib-GObject-CRITICAL **: g_object_unref: 
assertion
`G_IS_OBJECT (object)' failed
**
IBUS:ERROR:ibuslookuptable.c:403:ibus_lookup_table_set_page_size: assertion 
failed:
(IBUS_IS_LOOKUP_TABLE (table))
(ibus-daemon:27077): IBUS-DEBUG: From ::1.3 to (null), Error:
org.freedesktop.DBus.Error.NoReply : Did not receive a reply. Possible causes
include: the remote application did not send a reply, the message bus security 
policy
blocked the reply, the reply timeout expired, or the network connection was 
broken.
^C

Original comment by cnye...@gmail.com on 13 Mar 2010 at 12:00

GoogleCodeExporter commented 9 years ago
不好意思,我测试的时候还是链接的 ibus 1.2.0 。

Original comment by tchai...@gmail.com on 13 Mar 2010 at 1:04

GoogleCodeExporter commented 9 years ago

Original comment by tchai...@gmail.com on 13 Mar 2010 at 1:04

GoogleCodeExporter commented 9 years ago
this issue can be reproduced with ibus-sunpinyin rc8 compiled against ibus 
1.2.99.
but if it is compiled with 1.2.0, everything go back to normal. i will leave the
support of 1.2.99 for next release... sorry.

Original comment by tchai...@gmail.com on 13 Mar 2010 at 1:17

GoogleCodeExporter commented 9 years ago
Yes it works fine if compile with ibus-1.2.0.20100111

However I encountered another problem with exactly the same error message,not 
sure if
I should submit another issue.I think there is something wrong with 
ibus-sunpinyin hg
version and ibus-1.2.0 too.

Environment:
ibus-1.2.0.20100111
ibus-sunpinyin: latest hg version

After compile ibus-sunpinyin with ibus 1.2.0, everything is fine at first.
I followed the instruction here:
http://groups.google.com/group/sunpinyin-developers/browse_thread/thread/c9100ac
e242d9be7/4c09d2e9abd9574d
and edited /usr/share/ibus-sunpinyin/setup/main.py and enabled punct mapping.

Then when I tried to enable sunpinyin by pressing ctrl+space, the window hangs.

Error messages:
(ibus-daemon:15247): IBUS-DEBUG: From ::1.1 to :1.4, Error:
org.freedesktop.DBus.Error.Failed : Can not get value [panel->position]
(ibus-daemon:15247): IBUS-DEBUG: From ::1.1 to :1.4, Error:
org.freedesktop.DBus.Error.Failed : Can not get value [panel->x]
(ibus-daemon:15247): IBUS-DEBUG: From ::1.1 to :1.4, Error:
org.freedesktop.DBus.Error.Failed : Can not get value [panel->y]
(ibus-daemon:15247): IBUS-DEBUG: From ::1.1 to :1.4, Error:
org.freedesktop.DBus.Error.Failed : Can not get value [panel->use_custom_font]
(ibus-daemon:15247): IBUS-DEBUG: From ::1.1 to :1.4, Error:
org.freedesktop.DBus.Error.Failed : Can not get value 
[panel->show_icon_on_systray]
(ibus-daemon:15247): IBUS-DEBUG: From ::1.3 to (null), Error:
org.freedesktop.DBus.Error.NoReply : Did not receive a reply. Possible causes
include: the remote application did not send a reply, the message bus security 
policy
blocked the reply, the reply timeout expired, or the network connection was 
broken.

Original comment by cnye...@gmail.com on 14 Mar 2010 at 3:41

GoogleCodeExporter commented 9 years ago
将/usr/share/ibus-sunpinyin/setup/main.py还原之后问题解决…

我应该再提一个issue…

Original comment by cnye...@gmail.com on 14 Mar 2010 at 3:49

GoogleCodeExporter commented 9 years ago
yegle, 你能试试看最新的 git 版本么? 
git://github.com/sunpinyin/sunpinyin.git 。但是
省略号的那个问题,我这里不能重现啊。我用的是 ibus master 
的 HEAD 和 sunpinyin master
的 HEAD 。或者你启动完 ibus-daemon 以后,单独启动 
ibus-engine-sunpinyin 看看有什么现象?

Original comment by tchai...@gmail.com on 14 Mar 2010 at 8:10

GoogleCodeExporter commented 9 years ago
@tchaikov
省略号的问题,我仔细观察了一下,并不是彻底hang在那里,�
��等待几分钟之后就正常了

我先修改ebuild再试试git版:-)

Original comment by cnye...@gmail.com on 14 Mar 2010 at 8:19

GoogleCodeExporter commented 9 years ago
@yegle, 多谢多谢!

Original comment by tchai...@gmail.com on 14 Mar 2010 at 9:23

GoogleCodeExporter commented 9 years ago
@tchaikov
从git里下载到的源码提示有个ibus_common.h找不到,这个文件在i
bus和ibus-sunpinyin的源码
里都没找到…

Original comment by cnye...@gmail.com on 14 Mar 2010 at 9:56

GoogleCodeExporter commented 9 years ago
yegle, 对不起,忘记加 ibus_common.h 了。这个是 ibus-sunpinyin 
的代码。

Original comment by tchai...@gmail.com on 14 Mar 2010 at 10:15

GoogleCodeExporter commented 9 years ago
@tchaikov
经验证ibus-sunpinyin git里的版本能与ibus-1.2.0正常工作:-)

附件是修改好的ebuild文件,gentoo用户可能会需要,项目download
页面的ebuild可以替换掉了:-)

Original comment by cnye...@gmail.com on 14 Mar 2010 at 10:21

Attachments:

GoogleCodeExporter commented 9 years ago
@yegle
 你是说 ibus-1.2.99 还是说 ibus-1.2.0 ? ibus-1.2.0 是一直可以的啊。
 赞!我这就放上去。

Original comment by tchai...@gmail.com on 14 Mar 2010 at 10:30

GoogleCodeExporter commented 9 years ago
@tchaikov

哦…是我刚才搞糊涂了=。=
省略号问题无法重现…不算Bug…

Original comment by cnye...@gmail.com on 14 Mar 2010 at 10:32

GoogleCodeExporter commented 9 years ago
so it was verified. =)

Original comment by tchai...@gmail.com on 14 Mar 2010 at 10:46