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 463733 - WinXP GnuCash locks on saving when datafile is unaccessible
WinXP GnuCash locks on saving when datafile is unaccessible
Status: VERIFIED DUPLICATE of bug 395327
Product: GnuCash
Classification: Other
Component: Windows
2.2.x
Other Windows
: Normal minor
: ---
Assigned To: Andreas Köhler
Christian Stimming
Depends on:
Blocks:
 
 
Reported: 2007-08-05 19:14 UTC by Chad Burrus
Modified: 2018-06-29 21:44 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Chad Burrus 2007-08-05 19:14:04 UTC
Steps to reproduce:
The instructions below specify TrueCrypt (http://www.truecrypt.org/), but you should be able to replicate this using any form of volume you can mount/dismount, or even by moving the data file while GnuCash is running.

1. Create a TrueCrypt volume and mount it.
2. Start GnuCash and save the data file to the mounted TrueCrypt volume.
3. Dismount the TrueCrypt volume.
4. Begin working in GnuCash, so the data file needs to be saved.
5. Try to save the GnuCash data file.


Stack trace:


Other information:
I noticed this problem because I store my GnuCash data on a TrueCrypt-encrypted drive.  TrueCrypt will dismount a drive after it has not been used in some time, thus making any files on that drive unaccessible.  When GnuCash next tries to save it's data file, the program locks and I have to kill it to resume working in GnuCash.  I don't know how to get a stack trace since I'm on WinXP and all the stacktrace documentation is for Linux.
Comment 1 Chad Burrus 2007-08-05 19:17:11 UTC
I'm changing the severity of this bug because it won't occur except in very exceptional circumstances.  I'm also switching the OS to Windows, since that's the only one I've tested this one.
Comment 2 Josh Sled 2007-08-05 20:30:51 UTC
(In reply to comment #0)
> working in GnuCash.  I don't know how to get a stack trace since I'm on WinXP
> and all the stacktrace documentation is for Linux.

If you have the time... <http://wiki.gnucash.org/wiki/Windows#gdb>.
Comment 3 Andreas Köhler 2007-08-06 17:46:01 UTC
Huh?  I did exactly what you described with a timeout of 1 minute to dismount.
GnuCash tells me
"""GnuCash could not write to G:\def. That database may be on a read-only file system, or you may not have write permission for the directory."""
and then offers me to enter a different location.

Do you see bug 395327?
Comment 4 Chad Burrus 2007-08-08 02:17:45 UTC
(In reply to comment #3)
> Do you see bug 395327?
> 

No, I did not find that one, and yes, it looks like it may very well be a duplicate.  My apologies for the duplication.

I just did the steps above again and got the same behavior I described (an apparently locked window).  I tried minimizing all windows and returning to the GnuCash window, as described in the other thread, but it still appeared locked.  I didn't see any GnuCash windows at all in my window list (which I'm assuming you mean the list that comes up when you hit Alt+Tab).  However, I'm using an Alt+Tab replacement, so that may skew the results there.  Activating the window from the Taskbar did nothing except bring up the locked window.

FWIW, I went ahead and tried to run GnuCash though GDB as suggested by Josh Sled in comment #2 without much success.  I modified the "c:\Program Files\gnucash\bin\gnucash.bat" file, changing the last line of the file from "start gnucash-bin" to "start c:\mingw\bin\gdb gnucash-bin".  GnuCash itself never even started, and I got a "Segmentation fault" as the only output.  Raw output below.  Without gdb, it starts correctly.

  GNU gdb 5.2.1
  Copyright 2002 Free Software Foundation, Inc.
  GDB is free software, covered by the GNU General Public License, and you are
  welcome to change it and/or distribute copies of it under certain conditions.
  Type "show copying" to see the conditions.
  There is absolutely no warranty for GDB.  Type "show warranty" for details.
  This GDB was configured as "i686-pc-mingw32"...
  (gdb) run
  Starting program: C:\Program Files\gnucash\bin/gnucash-bin.exe

  Program received signal SIGSEGV, Segmentation fault.
  0x77ea3c00 in _libmsvcrt_a_iname ()
  (gdb)
Comment 5 Andreas Köhler 2007-08-08 08:52:17 UTC
Here is what I typically do to so hidden windows:
* Windows-D
* click _some_ window in the window list (i mean the buttons right to the Start button)
* maybe click it again to minimize it

Does that help?
Comment 6 Chad Burrus 2007-08-08 17:13:05 UTC
(In reply to comment #5)
> Here is what I typically do to so hidden windows:
> * Windows-D
> * click _some_ window in the window list (i mean the buttons right to the Start
> button)
> * maybe click it again to minimize it
> 
> Does that help?
> 

No luck.  The window is still hidden.
Comment 7 Christian Stimming 2007-08-13 09:59:58 UTC
This particular bug is obviously just a duplicate of the other one. Sorry for that.

*** This bug has been marked as a duplicate of 395327 ***
Comment 8 John Ralls 2018-06-29 21:44:58 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=463733. Please update any external references or bookmarks.