After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 795253 - Have problems input Chinese
Have problems input Chinese
Status: RESOLVED OBSOLETE
Product: GnuCash
Classification: Other
Component: Windows
3.0
Other Windows
: Normal critical
: future
Assigned To: gnucash-win-maint
gnucash-win-maint
Depends on:
Blocks:
 
 
Reported: 2018-04-14 08:42 UTC by fefe.wyx
Modified: 2018-06-30 00:08 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
trace files (569 bytes, text/plain)
2018-04-21 03:34 UTC, fefe.wyx
Details
trace file (249 bytes, text/plain)
2018-04-21 03:35 UTC, fefe.wyx
Details
trace file (698 bytes, text/plain)
2018-04-21 03:36 UTC, fefe.wyx
Details
trace file (12.67 KB, text/plain)
2018-04-21 03:36 UTC, fefe.wyx
Details
trace file (328 bytes, text/plain)
2018-04-23 12:48 UTC, fefe.wyx
Details

Description fefe.wyx 2018-04-14 08:42:44 UTC
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-15 01:30:27 UTC
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-21 03:34:39 UTC
Created attachment 371195 [details]
trace files
Comment 3 fefe.wyx 2018-04-21 03:35:44 UTC
Created attachment 371196 [details]
trace file
Comment 4 fefe.wyx 2018-04-21 03:36:10 UTC
Created attachment 371197 [details]
trace file
Comment 5 fefe.wyx 2018-04-21 03:36:39 UTC
Created attachment 371198 [details]
trace file
Comment 6 fefe.wyx 2018-04-21 03:37:55 UTC
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 17:56:50 UTC
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 21:29:56 UTC
> 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 23:15:33 UTC
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 12:48:44 UTC
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-19 02:15:03 UTC
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-20 02:19:11 UTC
2.6.21 is working OK for me.
Comment 13 John Ralls 2018-05-27 14:25:41 UTC
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-28 03:00:33 UTC
3.0 can't use Chinese IME input as well
Comment 15 linjie 2018-05-28 03:00:57 UTC
3.1 can't use Chinese IME input as well
Comment 16 John Ralls 2018-06-04 21:47:03 UTC
(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 09:12:42 UTC
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-06-30 00:08:22 UTC
GnuCash bug tracking has moved to a new Bugzilla host. The new URL for this bug is https://bugs.gnucash.org/show_bug.cgi?id=795253. Please continue processing the bug there and please update any external references or bookmarks.