Davlatkhudzha / sunpinyin

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

[Patch] xsunpinyin crash when starting kile #244

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.run "xsunpinyin -d"
2.start kile with some file automatically reopen
3.xsunpinyin crashed and kile hung 

What version of the product are you using? On what operating system?
xsunpyinyin from sunpinyin-2.0.3 package
kile for qt4/kde4 

Observation:
In xim.c, for this special case, _xim_set_ic_values call __xim_ic_events to set 
the __preedit_x, and __preedit_y, and the __preedit_x value is -1. And the 
crash occured,  when we call __move_preedit.

It could be a bug of kile or qt4 or xorg. 

But the attached patch prevent the crash from happening within xsunpinyin 
itself.

Original issue reported on code.google.com by bblU...@gmail.com on 27 Feb 2011 at 2:37

Attachments:

GoogleCodeExporter commented 8 years ago
seems to be kile specific bug.

should be fixed in today's commit.

Original comment by mikeandm...@gmail.com on 19 Jun 2011 at 2:57