GNOME Bugzilla – Bug 626408
Gnucash File Open Error when double-clicking the File (on Windows XP)
Last modified: 2018-06-29 22:42:48 UTC
I use Windows XP 32bit Korean version with all security patch (SP3) Gnucash 2.3.14 r19415 version. Error status gnucash file located "바탕 화면\gnucash" folder name (Korean) english name is "Desktop\gnucash" folder, When I double click the gnucash file in that folder, Gnucash don't open the gnucash file. But 1. I run the gnucash, 2. open gnucash file using File menu, file is opened without error. please check the double click file open.
Created attachment 167401 [details] open error
Can you please translate the message in the error window into english for me? Thanks!
Original Message 파일 file://C:\Documents and Settings\choiks\XXXXXX\gnucash\yyyyy.gnucash를 찾을 수 없습니다. Translate Message file can't open file://C:\Documents and Settings\choiks\XXXXXX\gnucash\xxxxx.gnucash or file can't find file://C:\Documents and Settings\choiks\XXXXXX\gnucash\xxxxx.gnucash xxxxx: 바탕 화면 -- Desktop in english yyyyy: 가계부 -- korean file name
Thanks. Can you have a look into the "trace file" http://wiki.gnucash.org/wiki/Tracefile , then look up the trace file that corresponds to when this error occurred, and post the content of the trace file here?
trace file content is: * WARN <qof.engine> [guid_init()] only got 1952 bytes. The identifiers might not be very random. * WARN <gnc.app-utils> Could not spawn perl: 하위 프로세스 실행 실패 (No such file or directory) * CRIT <GConf> gconf_engine_set_string: assertion `g_utf8_validate (val, -1, NULL)' failed * INFO <gnc.backend.dbi> [gnc_dbi_check_sqlite3_file] doesn't exist (errno=22) -> DBI * DEBUG <gnc.backend.dbi> [enter ../../../../repos/src/backend/dbi/gnc-backend-dbi.c:gnc_dbi_sqlite3_session_begin()] * DEBUG <gnc.backend.dbi> [leave gnc_dbi_sqlite3_session_begin()] * WARN <Pango> Invalid UTF-8 string passed to pango_layout_set_text() * DEBUG <gnc.backend.dbi> [enter ../../../../repos/src/backend/dbi/gnc-backend-dbi.c:gnc_dbi_session_end()] * DEBUG <gnc.backend.dbi> [leave gnc_dbi_session_end()]
Ok, thanks for the information. It seems there is some problem in the process of communicating the double-clicked filename to gnucash, because you said you can open the file just normal via the File -> Open menu item. I'm afraid I don't know exactly how the "Open by double-clicking" process really works, because we would need to find out the entry point in gnucash where the file name is communicated to, and at that point we must accept the file name in the correct character encoding. My guess is that gnucash expects the filename in utf-8 and continues to use it in utf-8, but windows communicates it in CP-1525 or something else other than utf-8.
I have committed a potential fix in r20546. Could you try if you can still reproduce this bug with tomorrow's nightly build or any later version ? You will find the nightly builds in http://code.gnucash.org/builds/win32/trunk/
> Could you try if you can still reproduce this bug with the nightly build > or any later version ? You will find the nightly builds in > http://code.gnucash.org/builds/win32/trunk/
I test the gnucash with "gnucash-2.4.99-svn-r20631-setup". But Gnucash is not work. My Env is Windows 7 korean version 32bit
Can you post the trace file from this failed run ? Thank you.
I test the gnucash with "gnucash-2.4.99-svn-r20652-setup". But Gnucash is not work. This is another bug. I will try another bug report. My Env is Windows 7 korean version 32bit view the attache file.
Created attachment 188007 [details] gnucash trace file gnucash not work I think this is font problem.
I test with gnucash 2.4.6. and gnucash don't open the file. test env is Windows 7 korean 32bit gnucash 2.4.6 tracefile is * 09:35:21 WARN <qof.engine> [guid_init()] only got 1975 bytes. The identifiers might not be very random. * 09:35:32 WARN <gnc.app-utils> Could not spawn perl: 하위 프로세스 실행 실패 (No such file or directory) * 09:35:32 WARN <Pango> Invalid UTF-8 string passed to pango_layout_set_text()
Thanks for all the feedback. Clearly my fix didn't work although it seems something has changed: the error is now different. Unfortunately I have no clue for now how to proceed for now.
I test with gnucash 2.4.7. and gnucash don't open the file. test env is Windows 7 korean 32bit gnucash 2.4.7 tracefile is attached.
Created attachment 194664 [details] gnucash trace file debug mode
Created attachment 199011 [details] 10-14 logfile
test with gnucash-2.4.99-svn-r21416-setup version result: not work log.conf content [levels] gnc=message gnc.bin=debug gnc.gui=debug gnc.backend.file=debug gnc.engine.sx=debug gnc.app-util.sx=debug gnc.backend.file.sx=debug gnc.gui.sx=debug gnc.gui.frequency=debug GLib=error [output] ;to=stderr log file attached.
Some recent commits changed the way files are loaded at startup. Could you try to download and install today's nightly trunk build [1] (or any later one) and see what happens now ? If not working, I would very much be interested in the log file again with the elaborate debugging messages set as you show in comment 19. Thank you. [1] http://code.gnucash.org/builds/win32/trunk/gnucash-2.4.99-2012-09-11-git-f05c901+-setup.exe
test with gnucash-2.4.99-2012-09-12-git-c7c9d05+-setup.exe open with double-click to korean file name ==> works fine thanks!!
Now that is good news! Thank you for testing this. The changes (svn commits 22377-22381 and 22384) required for this to work can't be backported to the stable series. But 2.6 when released will have this fix.
My changes caused another regression in the add-price-quotes option. So Mike Alexander has once more changed the file loading code. I want to make sure this doesn't break the double clicking problem once more. So can I ask you to test once more with the latest nightly build ? You can find it here: http://code.gnucash.org/builds/win32/trunk/gnucash-2.4.99-2012-09-17-git-623af6ca+-setup.exe Thank you.
test with gnucash-2.4.99-2012-09-17-git-623af6ca+-setup.exe open with double-click to korean file name ==> also works fine I will wait the guncash 2.6 thanks!!
Ok thank you for your testing and feedback.
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=626408. Please update any external references or bookmarks.