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 626408 - Gnucash File Open Error when double-clicking the File (on Windows XP)
Gnucash File Open Error when double-clicking the File (on Windows XP)
Status: RESOLVED FIXED
Product: GnuCash
Classification: Other
Component: Windows
git-master
Other Windows
: Normal normal
: ---
Assigned To: Andreas Köhler
Christian Stimming
Depends on:
Blocks:
 
 
Reported: 2010-08-09 07:48 UTC by choiks
Modified: 2018-06-29 22:42 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
open error (9.24 KB, image/png)
2010-08-09 07:49 UTC, choiks
Details
gnucash trace file (522 bytes, text/plain)
2011-05-18 00:38 UTC, choiks
Details
gnucash trace file debug mode (784.74 KB, text/plain)
2011-08-25 01:41 UTC, choiks
Details
10-14 logfile (325.55 KB, text/plain)
2011-10-14 13:56 UTC, choiks
Details

Description choiks 2010-08-09 07:48:18 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.
Comment 1 choiks 2010-08-09 07:49:24 UTC
Created attachment 167401 [details]
open error
Comment 2 Christian Stimming 2010-08-09 08:09:45 UTC
Can you please translate the message in the error window into english for me? Thanks!
Comment 3 choiks 2010-08-09 08:17:50 UTC
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
Comment 4 Christian Stimming 2010-08-09 08:58:48 UTC
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?
Comment 5 choiks 2010-08-09 09:03:25 UTC
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()]
Comment 6 Christian Stimming 2010-08-09 19:17:35 UTC
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.
Comment 7 Geert Janssens 2011-04-09 13:30:19 UTC
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/
Comment 8 Christian Stimming 2011-05-02 15:52:19 UTC
> 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/
Comment 9 choiks 2011-05-12 08:55:25 UTC
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
Comment 10 choiks 2011-05-12 08:55:46 UTC
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
Comment 11 Geert Janssens 2011-05-12 09:58:45 UTC
Can you post the trace file from this failed run ? Thank you.
Comment 12 choiks 2011-05-18 00:37:23 UTC
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.
Comment 13 choiks 2011-05-18 00:38:33 UTC
Created attachment 188007 [details]
gnucash trace file

gnucash not work

I think this is font problem.
Comment 14 choiks 2011-06-07 00:41:55 UTC
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()
Comment 15 Geert Janssens 2011-06-09 16:48:47 UTC
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.
Comment 16 choiks 2011-08-25 01:40:27 UTC
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.
Comment 17 choiks 2011-08-25 01:41:32 UTC
Created attachment 194664 [details]
gnucash trace file debug mode
Comment 18 choiks 2011-10-14 13:56:09 UTC
Created attachment 199011 [details]
10-14 logfile
Comment 19 choiks 2011-10-14 13:58:33 UTC
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.
Comment 20 Geert Janssens 2012-09-11 14:37:12 UTC
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
Comment 21 choiks 2012-09-12 10:12:24 UTC
test with gnucash-2.4.99-2012-09-12-git-c7c9d05+-setup.exe

open with double-click to korean file name ==> works fine

thanks!!
Comment 22 Geert Janssens 2012-09-12 11:41:39 UTC
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.
Comment 23 Geert Janssens 2012-09-18 08:25:13 UTC
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.
Comment 24 choiks 2012-09-19 03:19:32 UTC
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!!
Comment 25 Geert Janssens 2012-09-19 13:45:34 UTC
Ok thank you for your testing and feedback.
Comment 26 John Ralls 2018-06-29 22:42:48 UTC
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.