GnuCash
Contact   Instructions
Bug 796976 - saving file with scheduled transaction hangs: copy of scheduled transactions missing in tmp file?
Summary: saving file with scheduled transaction hangs: copy of scheduled transactions ...
Status: RESOLVED FIXED
Alias: None
Product: GnuCash
Classification: Unclassified
Component: Windows (show other bugs)
Version: 3.5
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: windows
QA Contact: windows
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-11 04:26 EST by Jannick
Modified: 2019-04-07 08:29 EDT (History)
4 users (show)

See Also:


Attachments

Description Jannick 2018-12-11 04:26:32 EST
Saving a changed GC file with scheduled transactions hangs. Maybe because a copy of the scheduled transactions is missing in the temp file(?).


How to reproduce (plus some analysis):
======================================

0 - Open a GC file with scheduled transactions, apply a change and hit the save button. Usually the save progress bar is completed twice now.

1 - The first save progress bar is completed without any problem.

2 - A temp file (named '<GC file name>.tmp-axxxxx') next to the GC file is created. It does contain an xml element

   <gnc:count-data cd:type="schedxaction">3</gnc:count-data>

(here: 3 as an example) indicating the number of scheduled transactions in the GC file to be saved, BUT it does **not** contain any xml element

   <gnc:schedxaction version="2.0.0"> ... </gnc:schedxaction>

3 - The save progress bar is restarted, but hangs until eternity after, say, the first third of the progress bar.

4 - GC cannot be properly exited. I need to kill the process. Thus I cannot change and save a GC file with scheduled transactions any more. This is the reason I cannot provide any simple sample. 


Way-out (not a workaround)
==========================

Manually removing all <gnc:schedxaction> elments and the counter element <gnc:count-data cd:type="schedxaction"> from the GC file helps: then it **can** be saved without any problem.


Currently installed
===================

nightly build gnucash-3.3-2018-12-10-git-3.3-170-g9921ab22a+.setup.exe on Windows 10.


Since I am not sure if this a typical Windows issue, I assigned this bug to the component 'Windows'.


Thanks!
Comment 1 John Ralls 2018-12-11 16:49:25 EST
I can't replicate this. Please attach a sample file that demonstrates the problem.
Comment 2 John Ralls 2018-12-11 16:55:52 EST
Is this at all related to your bug 796962?
Comment 3 Jannick 2018-12-11 17:56:34 EST
(In reply to John Ralls from comment #1)
> I can't replicate this. Please attach a sample file that demonstrates the
> problem.
I tried to explain that I cannot save any file showing the problem so that I am unable to create a minimal culprit example, unfortunately. 

Would it be OK for you if I sent you a real life file via private email?

(In reply to John Ralls from comment #2)
> Is this at all related to your bug 796962?
Yes.
Comment 4 John Ralls 2018-12-11 19:05:49 EST
> Would it be OK for you if I sent you a real life file via private email?

Sure.

Is it related enough that we don't need both?
Comment 5 John Ralls 2018-12-16 16:19:45 EST
I loaded your file with GnuCash 3.3 and created a duplicate of "für Monat 07; Gewinnsparrate 0112578115" in Mama-Aktiva:Finanzkonten:Sparda-Bank SW:Girokonto, then saved the file. No problems.

On the off chance that there was a localization problem I repeated the experiment after setting my Windows locale to Deutsch-Deutschland. Still worked fine.

Try creating a new user and running GnuCash when logged in as that user.
Comment 6 Jannick 2018-12-19 06:53:04 EST
(In reply to John Ralls from comment #5)
Thank you for looking into that, John!
> On the off chance that there was a localization problem I repeated the
> experiment after setting my Windows locale to Deutsch-Deutschland. Still
> worked fine.
Hmm. I 'set LC_ALL=C' before calling GC, but no success either.

Now the issue becomes a bit more bizarre: I tried to save the file from which I removed the scheduled transaction related XML elements after some changes. Now this does not work.

Thus there must be another reason for that I guess.
Comment 7 John Ralls 2018-12-21 18:23:53 EST
Did you try with a new user?
Comment 8 John Ralls 2018-12-21 18:25:13 EST
Try running GnuCash from the command line with --log gnc.backend.xml=debug. Unfortunately there aren't a lot of debug messages, but it still might provide a clue about where it's hanging.
Comment 9 Jannick 2019-04-07 08:29:21 EDT
Appears to be solved in GC 3.5 (or earlier).

Many thanks to all the devels taking care of this!

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