China-Spiner / ibus-sogoupycc

Automatically exported from code.google.com/p/ibus-sogoupycc
1 stars 1 forks source link

用户扩展造成死锁 #20

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.添加用户扩展:
function send_requests()
    request_cache = {}
    for _, v in pairs
    {'chun mian bu jue xiao', 'chu chu wen ti niao',
     'ye lai feng yu sheng', 'hua luo zhi duo shao',
     'li li yuan shang cao', 'yi sui yi ku rong',
     'ye huo shao bu jin', 'chun feng chui you sheng'} do
        ime.request(v)
        ime.commit('\n')
    end
    ime.commit('\n')
end
ime.register_command(('n'):byte(), key.CONTROL_MASK + key.MOD1_MASK, "春眠
不觉晓", "send_requests()")
2.短时间内多次通过热键执行该扩展
3.程序死锁,被 ibus 认为无响应而不能工作

What is the expected output? What do you see instead?
不该出现死锁

Please use labels and text to provide additional information.
0.2.3版本

Original issue reported on code.google.com by arcpp.zju@gmail.com on 1 Apr 2010 at 6:14

GoogleCodeExporter commented 9 years ago
Fixed in r225

Original comment by arcpp.zju@gmail.com on 1 Apr 2010 at 6:15