GNOME Bugzilla – Bug 531662
Budget report: Crash on #f in budget->guid
Last modified: 2018-06-29 22:04:14 UTC
Steps to reproduce: 1. Open a file with a budget report opened 2. When prompted "Can't get lock file...", click "Open anyway" Results The application is killed during the file loading Workaround Check conversation attached in the bug Stack trace: [Top] BookGuid=0327b836b2d785580ae9dc565d64e897 WindowCount=1 [Window 1] PageCount=6 FirstPage=1 PageOrder=6;1;5;4;2;3; WindowPosition=-4;-4; WindowGeometry=1026;698; WindowMaximized=false ToolbarVisible=true SummarybarVisible=true StatusbarVisible=true [Page 1] PageType=GncPluginPageAccountTree PageName=Contas AccountTypes=-1 ShowHidden=false ShowZeroTotal=true SelectedAccount=Passivo OpenAccount1=Passivo NumberOfOpenAccounts=1 [Page 2] PageType=GncPluginPageRegister PageName=Conta Corrente RegisterType=Account AccountName=Ativo:Conta Corrente RegisterStyle=Ledger DoubleLineMode=false [Page 3] PageType=GncPluginPageRegister PageName=Salario RegisterType=Account AccountName=Receita:Salario RegisterStyle=Ledger DoubleLineMode=false [Page 4] PageType=GncPluginPageRegister PageName=Despesa RegisterType=Account AccountName=Despesa RegisterStyle=Ledger DoubleLineMode=false [Page 5] PageType=GncPluginPageRegister PageName=Empréstimos a pagar RegisterType=Account AccountName=Passivo:Empréstimos a pagar RegisterStyle=Ledger DoubleLineMode=false [Page 6] PageType=GncPluginPageRegister PageName=Passivo RegisterType=Account AccountName=Passivo RegisterStyle=Ledger DoubleLineMode=false Other information: <dezinho> Gnucash shudown when I try to open my file. Before that it tells me "Can't get lock file, open anyway?" (it's in portuguese). So during the loading it shutdown <dezinho> how to solve it? <warlord> What do you mean by "shutdown"? <dezinho> the application is killed <warlord> What OS/Distro? <dezinho> Windows XP Pro <warlord> What version of gnucash? <dezinho> I've just upgrade it to 2.2.5, but the problem persists <warlord> Does it ask you about the lock file every time? <dezinho> yes, it's happening since today <warlord> Okay.... what changed today vs. before today? <dezinho> yesterday it was ok <dezinho> nothing <dezinho> yesterday I closed the file as usually, but today when I open it "crash"! <warlord> So no Windows Updates? No changes in configuration? No computer shutdown? <dezinho> no. <dezinho> is there a way to workaround it creating a lock file? <dezinho> manually <warlord> Is your data file on local disk or off on a network server? <dezinho> local disk <warlord> Did you have open reports? <dezinho> yes <dezinho> expenses and budget <warlord> Interesting... okay.. <warlord> do you have any gnucash.trace files in c:\Documents and Settings\myname\Local Settings\Temp\ <dezinho> let me check <dezinho> wow, there is a lot of them <warlord> If so, please upload to pastebin.ca <warlord> Find the most recent one, please. <dezinho> ok <dezinho> found <dezinho> I didn't understand: "...please upload to pastebin.ca" <warlord> which word didn't you understand? <dezinho> I don't know what pastebin.ca is <warlord> a website <dezinho> :P (sorry) <dezinho> http://pastebin.ca/1009000 <warlord> Huh. That's not very interesting.. <warlord> Well, here's one thing to try.. Look for a folder called .gnucash in your homedir. <dezinho> check <warlord> (I think there's a problem in the budget report, but there's no way for me to tell this because there is no "console" on windows) <warlord> Okay, in there should be... "books" <dezinho> check <warlord> In THERE you should have a file that's the same name as your data file.. <dezinho> check <warlord> Rename that file to something else.. Call it.... <filename>-bak <dezinho> right <warlord> Now start gnucash. <dezinho> ok, just a sec <dezinho> a dialogue box is about lock file is displayed. Should i open it anyway? <warlord> Yes <warlord> (assuming you don't have another gnucash running) <dezinho> uhuhu! You've safe my life! <warlord> I bet it was one of your open reports. <warlord> Can you file a bug report and attach that -bak file to it? It wont have any private data in it. <dezinho> no problem, i can do it. <warlord> Thank you! <dezinho> thank you! <warlord> I suspect the problem is the budget report.. hopefully your metadata has enough information about what was "open" <dezinho> ok, is there another file you want I upload in the bug report? <dezinho> no problem for me upload anyone else <warlord> Ummm... If you can find a gnucash.trace file that has something that looks like a "backtrace" in it, that would be useful, too..
Created attachment 110433 [details] gnucash.trace
Created attachment 110434 [details] controle_financeiro-bak
There is no open report in that file, so I still wonder which of those tabs made the app crash for you. May you please retest this backup file? Just change PageCount=1, PageOrder=1 and make 6 tests, each one with exactly one of the tabs open, i.e. remove 5 of 6 sections and rename the remaining one to [Page 1]. Which succeed, which fail? Thanks!
(In reply to comment #3) > There is no open report in that file, so I still wonder which of those tabs > made the app crash for you. > May you please retest this backup file? Just change PageCount=1, PageOrder=1 > and make 6 tests, each one with exactly one of the tabs open, i.e. remove 5 of > 6 sections and rename the remaining one to [Page 1]. > Which succeed, which fail? > Thanks! It has happened again with my latest account file. I tried to reproduce following the instructions above, but I just could reproduce while I didn't modify the file "[HOME_DIR]\.gnucash\controle_financeiro.bug". Just in case, I'm attaching those files.
Created attachment 113825 [details] Latest account files controle_financeiro.bug Home_dir\.gnucash\controle_financeiro.bug
Oh cool, that makes my gnucash crash! r17256 (http://svn.gnucash.org/trac/changeset/17256?format=diff&new=17256) should fix this. Confirmation would be great, of course. Marked for backport to branches/2.2 for inclusion in GnuCash 2.2.6. Thanks a lot!
Backported to branches/2.2 in r17280 by cstim for GnuCash 2.2.6.
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=531662. Please update any external references or bookmarks.