Bug 230104 - Application freezes when trying to open the ledger of one of my accounts
Summary: Application freezes when trying to open the ledger of one of my accounts
Status: RESOLVED FIXED
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-09 16:12 UTC by tobias
Modified: 2010-03-11 22:22 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
My kmymoney file that causes the application to freeze (33.80 KB, application/x-bzip)
2010-03-10 11:09 UTC, tobias
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tobias 2010-03-09 16:12:47 UTC
Version:           3.96.1 (using KDE 4.3.5)
OS:                Linux
Installed from:    openSUSE RPMs

Kmymoney works fine, also displaying ledgers works for all but one account. If I try to open that ledger, Kmymoney freezes.

strace shows that the following messages are repeated over and over:

| stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
| gettimeofday({1268146639, 920275}, NULL) = 0

(with different numbers in gettimeofday, each time).

Sometimes a
| brk(0x4d3e000)                          = 0x4d3e000
appears between these messages (with different numbers).

The last lines of the strace output before all this starts are:

----
writev(9, [{"<\3\2\0Zi`\1\231\10\t\0\3\0\0\0Yi`\1\0\0\0\0Ui`\1\0\0\0\0"..., 200}, {"\341\264\216\353\341\264\216\353\341\264\216\353\341\264\216\353\341\264\216\
353\341\264\216\353\341\264\216\353\341\264\216\353"..., 21684}, {"", 0}], 3) = 21884
poll([{fd=9, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=9, revents=POLLOUT}])
writev(9, [{"<\3\2\0]i`\1\231\10\t\0\5\0\0\0\\i`\1\0\0\0\0Ui`\1\0\0\0\0"..., 304}, {"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 25140}
, {"", 0}], 3) = 25444
gettimeofday({1268146618, 346821}, NULL) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
clock_gettime(CLOCK_MONOTONIC, {4565, 624786524}) = 0
poll([{fd=9, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=9, revents=POLLOUT}])
writev(9, [{"<\3\2\0`i`\1\231\10\t\0\3\0\0\0_i`\1\0\0\0\0\20\2`\1\0\0\0\0"..., 4356}, {NULL, 0}, {"", 0}], 3) = 4356
read(9, 0xc84124, 4096)                 = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=4, events=POLLIN}, {fd=10, events=POLLIN}, {fd=11, events=POLLIN}, {fd=9, events=POLLIN}, {fd=13, events=POLLIN}, {fd=16, events=POLLIN}, {fd=17, event
s=POLLIN}, {fd=18, events=POLLIN}, {fd=19, events=POLLIN}], 9, 0) = 0 (Timeout)
clock_gettime(CLOCK_MONOTONIC, {4565, 625360620}) = 0
read(9, 0xc84124, 4096)                 = -1 EAGAIN (Resource temporarily unavailable)

----
Comment 1 Alvaro Soliverez 2010-03-10 10:38:02 UTC
Can you save your file as an anonymous file and attach it to this report? That way we can check why that happens.
Also, please run the Consistency check, from the Tools menu.
Comment 2 tobias 2010-03-10 11:09:56 UTC
Created attachment 41501 [details]
My kmymoney file that causes the application to freeze
Comment 3 tobias 2010-03-10 11:10:36 UTC
The consistency check says everything is ok.
Comment 4 Cristian Oneț 2010-03-10 11:22:29 UTC
Could you also post the account name (as it appears in the attached file) that causes the application to freeze?
Comment 5 tobias 2010-03-11 19:25:30 UTC
It's account A000001 that causes the crash.
Comment 6 Cristian Oneț 2010-03-11 22:22:42 UTC
SVN commit 1102124 by conet:

BUG: 230104
Fixed an infinite loop caused when the nextPayment having the nextDueDate as a base returned an invalid date. Calling setNextDueDate with an invalid date didn't change the schedule's state so the loop exit condition would always remain false. Fix it by breaking the loop if the next payment is an invalid date.

 M  +6 -1      kgloballedgerview.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1102124