GnuCash
Contact   Instructions
Bug 795253 - Have problems input Chinese
Summary: Have problems input Chinese
Status: RESOLVED FIXED
Alias: None
Product: GnuCash
Classification: Unclassified
Component: Windows (show other bugs)
Version: 3.0
Hardware: Other Windows
: Normal normal
Target Milestone: future
Assignee: windows
QA Contact: windows
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-14 04:42 EDT by fefe.wyx
Modified: 2018-10-14 22:38 EDT (History)
7 users (show)

See Also:


Attachments
trace files (569 bytes, text/plain)
2018-04-20 23:34 EDT, fefe.wyx
no flags Details
trace file (249 bytes, text/plain)
2018-04-20 23:35 EDT, fefe.wyx
no flags Details
trace file (698 bytes, text/plain)
2018-04-20 23:36 EDT, fefe.wyx
no flags Details
trace file (12.67 KB, text/plain)
2018-04-20 23:36 EDT, fefe.wyx
no flags Details
trace file (328 bytes, text/plain)
2018-04-23 08:48 EDT, fefe.wyx
no flags Details

Description fefe.wyx 2018-04-14 04:42:48 EDT
I don't know how to consistently reproduce the problem, but it is happening too often.

I cannot input anything with a Chinese IME (the default Chinese Pinyin IME on Windows 10) after using the software for a while. Restarting the GnuCash can resolve this, but after inputting one or two transactions, it stops working again.

This only happens when I am editing the transactions. If I try to edit account, then the IME works OK.

When the problem appears, I can use nothing appears in the texts box after I confirm the IME's candidate. I cannot input anything in Chinese.

I changed my locale to en_US as soon as I installed GnuCash. Never tried if this also happens in the zh_CN locale.
Comment 1 Frank H. Ellenberger 2018-04-14 21:30:31 EDT
With which https://wiki.gnucash.org/wiki/Locale_Settings are you running
a) your system
b) GnuCash?

You might find a hint in your https://wiki.gnucash.org/wiki/Tracefile

I suspect it might be related to a wrong code page.
Comment 2 fefe.wyx 2018-04-20 23:34:43 EDT
Created attachment 371195 [details]
trace files
Comment 3 fefe.wyx 2018-04-20 23:35:48 EDT
Created attachment 371196 [details]
trace file
Comment 4 fefe.wyx 2018-04-20 23:36:14 EDT
Created attachment 371197 [details]
trace file
Comment 5 fefe.wyx 2018-04-20 23:36:43 EDT
Created attachment 371198 [details]
trace file
Comment 6 fefe.wyx 2018-04-20 23:37:59 EDT
I found several trace file on that day, as I have closed and opened the program for several times.
Comment 7 Frank H. Ellenberger 2018-04-22 13:56:54 EDT
OK, there are CJK letters in the path of the data file:
* WARN <gnc.gui> Unable to read mtime for file D:\Trans\D_Drive\Documents\百度云同步盘\Sync\misc\finance\pxml.gnucash

we have several occurences of
* CRIT <GLib> g_variant_new_string: assertion 'g_utf8_validate (string, -1, NULL)' failed
often followed by
* CRIT <GLib> g_key_file_free: assertion 'key_file != NULL' failed

or
* WARN <Pango> Invalid UTF-8 string passed to pango_layout_set_text()
Comment 8 John Ralls 2018-04-22 17:30:00 EDT
> OK, there are CJK letters in the path of the data file

Ah, this might be connected to bug 795134.
Comment 9 John Ralls 2018-04-22 19:15:37 EDT
I've just pushed a fix for bug 795134. Please try tommorrow's nightly build (if nothing goes wrong it should appear at https://code.gnucash.org/builds/win32/maint).
Comment 10 fefe.wyx 2018-04-23 08:48:48 EDT
Created attachment 371272 [details]
trace file

I tried https://code.gnucash.org/builds/win32/maint/gnucash-3.0-2018-04-23-git-3.0-87-g14c30344c+.setup.exe .

The problem remains.

I'm uploading new trace file, but I am wondering whether the information in it is really related to this problem. (I've also met other problems, with there is at least there is a workaround for that.)

Now I think I somehow found to pattern to how this problem appears: if I open a file and directly go to the textbox to edit the description, then the IME works. I can input Chinese Characters. But when I changed the date, or anything else, I cannot input anything into the description with IME anymore. The IME seems to be working normally, but the characters will not appear in the textbox. But I can still input without the IME, but without IME I can input only letter and numbers, not Chinese characters.
Comment 11 Wang Zhaosong 2018-05-18 22:15:07 EDT
I ran into this problem too.

My environment is:
GnuCash 2.7.4 or GnuCash 3.0
Windows 10 1803
Comment 12 fefe.wyx 2018-05-19 22:19:15 EDT
2.6.21 is working OK for me.
Comment 13 John Ralls 2018-05-27 10:25:45 EDT
A similar input method problem has manifested on MacOS as well, see https://lists.gnucash.org/pipermail/gnucash-user/2018-May/077206.html and following. This is now covered in bug 796423.
Comment 14 linjie 2018-05-27 23:00:37 EDT
3.0 can't use Chinese IME input as well
Comment 15 linjie 2018-05-27 23:01:01 EDT
3.1 can't use Chinese IME input as well
Comment 16 John Ralls 2018-06-04 17:47:07 EDT
(In reply to fefe.wyx from comment #10)

> Now I think I somehow found to pattern to how this problem appears: if I
> open a file and directly go to the textbox to edit the description, then the
> IME works. I can input Chinese Characters. But when I changed the date, or
> anything else, I cannot input anything into the description with IME
> anymore. The IME seems to be working normally, but the characters will not
> appear in the textbox. But I can still input without the IME, but without
> IME I can input only letter and numbers, not Chinese characters.

That did the trick, I was able to reproduce it that way.

I think that this is fixed in maint. Please test with tomorrow's (i.e. 2018-06-05) nightly at https://wiki.gnucash.org/builds/win32/maint/.
Comment 17 Geert Janssens 2018-06-05 05:12:46 EDT
Note the "latest" is the one dated most recently, not with the highest version number! (There's currently a bad build with number 3.900, but you'll want to test the most recent 3.1 build).
Comment 18 John Ralls 2018-09-17 17:00:42 EDT
I'm still unable to reproduce this with https://code.gnucash.org/builds/win32/maint/gnucash-3.2-2018-09-17-git-3.2-276-g83b1b8adf+.setup.exe. Please do test!
Comment 19 fefe.wyx 2018-10-14 22:26:24 EDT
I tried the versions 3.2 and 3.3 downloaded from the official website. The problem does not exist in these versions.
Comment 20 John Ralls 2018-10-14 22:38:12 EDT
Excellent. Thanks for following up.

Note You need to log in before you can comment on or make changes to this bug.