Hang when invoking Split Editor

View: New views
18 Messages — Rating Filter:   Alert me  

Hang when invoking Split Editor

by tonyb-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Using CVS HEAD as of now:


New transaction, enter payee, select from the previous transactions one with 3 splits (all the same category, different memos and amounts). The transaction details get correctly displayed for editing, but as soon as I click on the split icon, KMM becomes unresponsive.


System activity shows KMM using about 17% CPU and memory usage going up in increments of about 2K. Xorg also shows an increase from about 2% (with just Ssytem Activity window active) to about 10%. The mysql daemon shows no activity, so I guess this isn't a database problem (though it might be!).


I'm just going out; I'll try and re-create it later with an anonymized file if no-one has any ideas before then.


--
Cheers,


TonyB


------------------------------------------------------------------------------

_______________________________________________
KMyMoney2-developer mailing list
KMyMoney2-developer@...
https://lists.sourceforge.net/lists/listinfo/kmymoney2-developer

Re: Hang when invoking Split Editor

by tonyb-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
On Monday 06 Jul 2009 11:15:06 tonyb wrote:
> Using CVS HEAD as of now:
>
> New transaction, enter payee, select from the previous transactions one
> with 3 splits (all the same category, different memos and amounts). The
> transaction details get correctly displayed for editing, but as soon as I
> click on the split icon, KMM becomes unresponsive.
>
> System activity shows KMM using about 17% CPU and memory usage going up in
> increments of about 2K. Xorg also shows an increase from about 2% (with
> just Ssytem Activity window active) to about 10%. The mysql daemon shows no
> activity, so I guess this isn't a database problem (though it might be!).
>
> I'm just going out; I'll try and re-create it later with an anonymized file
> if no-one has any ideas before then.


In the attached file:


Open account Assets:A000129:A000009. Duplicate the last transaction, double-click on it to edit, then single-click on the 'Split transaction' field or the split icon.


On my system KMM then 'hangs'.


--
Cheers,


TonyB



------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/blackberry
_______________________________________________
KMyMoney2-developer mailing list
KMyMoney2-developer@...
https://lists.sourceforge.net/lists/listinfo/kmymoney2-developer

xx.anon.xml.gz (244K) Download Attachment

Re: Hang when invoking Split Editor

by tonyb-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.


Sorry, forgot to mention.


I uninstalled, created a clean sandbox this morning, and rebuilt with debug on.


--
Cheers,


TonyB


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/blackberry
_______________________________________________
KMyMoney2-developer mailing list
KMyMoney2-developer@...
https://lists.sourceforge.net/lists/listinfo/kmymoney2-developer

Re: Hang when invoking Split Editor

by Thomas Baumgart :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tuesday 07 July 2009 11:07:10 tonyb wrote:
> Sorry, forgot to mention.
>
> I uninstalled, created a clean sandbox this morning, and rebuilt with debug
> on.

In a first run, I think I have the same thing here. Though I was able to edit
the split and open the split edit dialog w/o problems using your file. Do you
edit the duplicated or the original transaction?

One tip: Try running KMM under gdb control and when the thing hangs, press
Ctrl+C. This should leave you in the debugger and you can use the backtrace
to get an idea where the thing is looping.

Feel free to post the backtrace also.

--

Regards

Thomas Baumgart

GPG-FP: E55E D592 F45F 116B 8429   4F99 9C59 DB40 B75D D3BA
-------------------------------------------------------------
'Software is like sex: it's better when it's free' (Linus Torvalds)
-------------------------------------------------------------


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/blackberry
_______________________________________________
KMyMoney2-developer mailing list
KMyMoney2-developer@...
https://lists.sourceforge.net/lists/listinfo/kmymoney2-developer

signature.asc (232 bytes) Download Attachment

Re: Hang when invoking Split Editor

by tonyb-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
On Tuesday 07 Jul 2009 12:06:33 Thomas Baumgart wrote:
> In a first run, I think I have the same thing here. Though I was able to
> edit the split and open the split edit dialog w/o problems using your file.
> Do you edit the duplicated or the original transaction?
>


It happens with any transaction - new ones, duplicated ones, existing ones.


> One tip: Try running KMM under gdb control and when the thing hangs, press
> Ctrl+C. This should leave you in the debugger and you can use the backtrace
> to get an idea where the thing is looping.
>
> Feel free to post the backtrace also.


Well what I get in a couple of runs is attached. I'm not sure why I'm getting no debug symbols. I definitely ran configure with --enable-debug=full.


--
Cheers,


TonyB



------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/blackberry
_______________________________________________
KMyMoney2-developer mailing list
KMyMoney2-developer@...
https://lists.sourceforge.net/lists/listinfo/kmymoney2-developer

bt.txt.gz (1K) Download Attachment

Re: Hang when invoking Split Editor

by tonyb-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Apologies if the following is a duplicate. I send it half an hour ago, but it didn't appear in my sent mail folder, so I don't know what happened to it.


On Tuesday 07 Jul 2009 12:06:33 Thomas Baumgart wrote:
> In a first run, I think I have the same thing here. Though I was able to
> edit the split and open the split edit dialog w/o problems using your file.
> Do you edit the duplicated or the original transaction?
>


It happens on all transactions; new, duplicated or existing.


> One tip: Try running KMM under gdb control and when the thing hangs, press
> Ctrl+C. This should leave you in the debugger and you can use the backtrace
> to get an idea where the thing is looping.
>
> Feel free to post the backtrace also.


This is what I get from a couple of runs. I wonder why there are no debugging symbols; I definitely built with --enable-debug=full.



--
Cheers,


TonyB



------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/blackberry
_______________________________________________
KMyMoney2-developer mailing list
KMyMoney2-developer@...
https://lists.sourceforge.net/lists/listinfo/kmymoney2-developer

bt.txt.gz (1K) Download Attachment

Re: Hang when invoking Split Editor

by Thomas Baumgart :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tuesday 07 July 2009 15:42:24 tonyb wrote:
> Apologies if the following is a duplicate. I send it half an hour ago, but
> it didn't appear in my sent mail folder, so I don't know what happened to
> it.

It did make it twice, though I don't understand why the contents is empty. Did
you install the program? Just asking, because you are running it out
of /opt/kde3.....

> On Tuesday 07 Jul 2009 12:06:33 Thomas Baumgart wrote:
> > In a first run, I think I have the same thing here. Though I was able to
> > edit the split and open the split edit dialog w/o problems using your
> > file. Do you edit the duplicated or the original transaction?
>
> It happens on all transactions; new, duplicated or existing.
>
> > One tip: Try running KMM under gdb control and when the thing hangs,
> > press Ctrl+C. This should leave you in the debugger and you can use the
> > backtrace to get an idea where the thing is looping.
> >
> > Feel free to post the backtrace also.
>
> This is what I get from a couple of runs. I wonder why there are no
> debugging symbols; I definitely built with --enable-debug=full.


--

Regards

Thomas Baumgart

GPG-FP: E55E D592 F45F 116B 8429   4F99 9C59 DB40 B75D D3BA
-------------------------------------------------------------
Windows are like... windows. Shiny, fragile, expensive.
-------------------------------------------------------------


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
KMyMoney2-developer mailing list
KMyMoney2-developer@...
https://lists.sourceforge.net/lists/listinfo/kmymoney2-developer

signature.asc (232 bytes) Download Attachment

Re: Hang when invoking Split Editor

by tonyb-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
On Wednesday 08 Jul 2009 12:20:23 Thomas Baumgart wrote:
> It did make it twice, though I don't understand why the contents is empty.
> Did you install the program? Just asking, because you are running it out of
> /opt/kde3.....


Yes, I did install. Attached is a run from .libs which shows a bit more info. I added some debug statements which show it as performing ksplittransactiondeldecl.exec in ksplittransactiondlg.cpp.


As to why we have no symbols, attached also shows compile and link flags. Are they correct - I'm a bit hazy about these things :-(


The split dialog seems to be the only one affected. I tried a lot of the others and they all drew perfectly. Is there anything unique about his dialog?


--
Cheers,


TonyB



------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
KMyMoney2-developer mailing list
KMyMoney2-developer@...
https://lists.sourceforge.net/lists/listinfo/kmymoney2-developer

bug.gz (2K) Download Attachment

Re: Hang when invoking Split Editor

by Thomas Baumgart :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wednesday 08 July 2009 16:14:20 tonyb wrote:

> On Wednesday 08 Jul 2009 12:20:23 Thomas Baumgart wrote:
> > It did make it twice, though I don't understand why the contents is
> > empty. Did you install the program? Just asking, because you are running
> > it out of /opt/kde3.....
>
> Yes, I did install. Attached is a run from .libs which shows a bit more
> info. I added some debug statements which show it as performing
> ksplittransactiondeldecl.exec in ksplittransactiondlg.cpp.

That would match frame #24 of your bt. What you could do to verify this is
breaking on ksplittransacitondlg::exec and check the bt then.

> As to why we have no symbols, attached also shows compile and link flags.
> Are they correct - I'm a bit hazy about these things :-(
>
> The split dialog seems to be the only one affected. I tried a lot of the
> others and they all drew perfectly. Is there anything unique about his
> dialog?

Which theme do you use? I have theme Keramik and style Keramik here. I know,
that some users had problems (crashes) using different themes/styles.

--

Regards

Thomas Baumgart

GPG-FP: E55E D592 F45F 116B 8429   4F99 9C59 DB40 B75D D3BA
-------------------------------------------------------------
How many programmers does it take to change a
light bulb? None. It's a hardware problem!
-------------------------------------------------------------



------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
KMyMoney2-developer mailing list
KMyMoney2-developer@...
https://lists.sourceforge.net/lists/listinfo/kmymoney2-developer

signature.asc (232 bytes) Download Attachment

Re: Hang when invoking Split Editor

by tonyb-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
On Wednesday 08 Jul 2009 20:43:48 Thomas Baumgart wrote:
> That would match frame #24 of your bt. What you could do to verify this is
> breaking on ksplittransacitondlg::exec and check the bt then.


I'm not sure how to do that in gdb; I did it in kdbg. The BT at the break is attached. Why do I get trace symbols there and not with gdb?


> Which theme do you use? I have theme Keramik and style Keramik here. I
> know, that some users had problems (crashes) using different themes/styles.


I use oxygen theme and style. I haven't changed it in ages.


I just d/l-ed Suse11.2m3. I might install that and try it, in case my qt has been corrupted - though it doesn't seem to affect anything else. Is there a quick way to replace/repair qt3 under yast?


--
Cheers,


TonyB



------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
KMyMoney2-developer mailing list
KMyMoney2-developer@...
https://lists.sourceforge.net/lists/listinfo/kmymoney2-developer

trace.png (105K) Download Attachment

Re: Hang when invoking Split Editor

by Thomas Baumgart :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thursday 09 July 2009 09:01:10 tonyb wrote:
> On Wednesday 08 Jul 2009 20:43:48 Thomas Baumgart wrote:
> > That would match frame #24 of your bt. What you could do to verify this
> > is breaking on ksplittransacitondlg::exec and check the bt then.
>
> I'm not sure how to do that in gdb; I did it in kdbg. The BT at the break
> is attached. Why do I get trace symbols there and not with gdb?

Command would be

  break KSplitTransactionDlg::exec

case sensitive, in case I spelled it wrong.

> > Which theme do you use? I have theme Keramik and style Keramik here. I
> > know, that some users had problems (crashes) using different
> > themes/styles.
>
> I use oxygen theme and style. I haven't changed it in ages.
>
> I just d/l-ed Suse11.2m3. I might install that and try it, in case my qt
> has been corrupted - though it doesn't seem to affect anything else. Is
> there a quick way to replace/repair qt3 under yast?

No, unfortunately not.

--

Regards

Thomas Baumgart

GPG-FP: E55E D592 F45F 116B 8429   4F99 9C59 DB40 B75D D3BA
-------------------------------------------------------------
Laziness led to the invention of the most useful tools.
-------------------------------------------------------------


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
KMyMoney2-developer mailing list
KMyMoney2-developer@...
https://lists.sourceforge.net/lists/listinfo/kmymoney2-developer

signature.asc (232 bytes) Download Attachment

Re: Hang when invoking Split Editor

by tonyb-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
On Thursday 09 Jul 2009 08:18:00 Thomas Baumgart wrote:
> Command would be
>
> break KSplitTransactionDlg::exec
>
> case sensitive, in case I spelled it wrong.
>


It says it can't find it; presumably because gdb is not seeing the debugging symbols. Strange; kdbg seems to find them.


--
Cheers,


TonyB


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
KMyMoney2-developer mailing list
KMyMoney2-developer@...
https://lists.sourceforge.net/lists/listinfo/kmymoney2-developer

Re: Hang when invoking Split Editor

by tonyb-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
On Thursday 09 Jul 2009 08:01:10 tonyb wrote:
> I just d/l-ed Suse11.2m3. I might install that and try it, in case my qt
> has been corrupted - though it doesn't seem to affect anything else. Is
> there a quick way to replace/repair qt3 under yast?


Well, I went back to suse11.0, built CVS HEAD, and it works fine, except that the Split Editor box need a bit of resizing to see the summary at the bottom.


So, given that no-one else seems to have this very basic problem, I guess my installation is screwed in some way. I'll have to try and remember just what I've installed recently. If I find out what caused it, I'll report back.


--
Cheers,


TonyB


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
KMyMoney2-developer mailing list
KMyMoney2-developer@...
https://lists.sourceforge.net/lists/listinfo/kmymoney2-developer

Re: Hang when invoking Split Editor

by Bugzilla from onet.cristian@gmail.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

În data de Joi 09 Iulie 2009 13:15:11 tonyb a scris:
> So, given that no-one else seems to have this very basic problem, I guess
> my installation is screwed in some way. I'll have to try and remember just
> what I've installed recently. If I find out what caused it, I'll report
> back.
I can also reproduce it on my machine and I would not say that my installation
is screwed up :). I'll try to see if I can catch something with the debugger.

--
Regards,

Cristian Oneţ


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
KMyMoney2-developer mailing list
KMyMoney2-developer@...
https://lists.sourceforge.net/lists/listinfo/kmymoney2-developer

signature.asc (205 bytes) Download Attachment

Re: Hang when invoking Split Editor

by tonyb-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

On Sunday 12 July 2009 19:59:36 Cristian Oneţ wrote:

> I can also reproduce it on my machine and I would not say that my

> installation is screwed up :). I'll try to see if I can catch something

> with the debugger.

Yes, I know. I built a whole fresh version of Suse 11.1 and still had the same problem. However, I found that switching to another user worked fine, but under my userid, it doesn't. So I guess it's something to do with KDE settings, since I'm using the same KMM settings for each user. I've sent some traces to Thomas, since I'm about to go away for a few days.

Hope you have better luck tracking down the problem than I had.

--

Cheers,

TonyB


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
KMyMoney2-developer mailing list
KMyMoney2-developer@...
https://lists.sourceforge.net/lists/listinfo/kmymoney2-developer

Re: Hang when invoking Split Editor

by Bugzilla from onet.cristian@gmail.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

În data de Luni 13 Iulie 2009 11:19:52 tonyb a scris:
> Yes, I know. I built a whole fresh version of Suse 11.1 and still had the
> same problem. However, I found that switching to another user worked fine,
> but under my userid, it doesn't. So I guess it's something to do with KDE
> settings, since I'm using the same KMM settings for each user. I've sent
> some traces to Thomas, since I'm about to go away for a few days.
>
> Hope you have better luck tracking down the problem than I had.
Well I could not catch any bug in the code. The execution hags somewhere in qt
code in QDialog::exec(). So your observation that it can't be reproduced with
another user made me suspect that it is a qt style problem. Since I upgraded
to KDE4 I don't remember setting the qt3 style anymore.
I tried running kmymoney with another user that has the default kde3 style and
the split editor dialog works as expected.

So I ran qt 3 version of qtconfig and saw that I had as style 'Unknown'. I
selected another style from the list, still the same problem. Although I did
not see a change in the style that kmymoney was rendered this leaves me to
think that kmymoney uses some style from 'I don't know which config file' under
'.kde' and it could be messed up because kde4 keeps it's settings there
(gentoo devs warned about config conflicts between kde3 and4). Or it could be
the qtcurve style I had used a while a go, who knows? But I am sure It's a
kde3 style problem. Does anybody know in which config file are the style related
settings stored?

--
Regards,

Cristian Oneţ





------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
KMyMoney2-developer mailing list
KMyMoney2-developer@...
https://lists.sourceforge.net/lists/listinfo/kmymoney2-developer

signature.asc (205 bytes) Download Attachment

Re: Hang when invoking Split Editor

by Bugzilla from onet.cristian@gmail.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

În data de Luni 13 Iulie 2009 22:37:41 ați scris:

> Well I could not catch any bug in the code. The execution hags somewhere in
> qt code in QDialog::exec(). So your observation that it can't be reproduced
> with another user made me suspect that it is a qt style problem. Since I
> upgraded to KDE4 I don't remember setting the qt3 style anymore.
> I tried running kmymoney with another user that has the default kde3 style
> and the split editor dialog works as expected.
>
> So I ran qt 3 version of qtconfig and saw that I had as style 'Unknown'. I
> selected another style from the list, still the same problem. Although I
> did not see a change in the style that kmymoney was rendered this leaves me
> to think that kmymoney uses some style from 'I don't know which config
> file' under '.kde' and it could be messed up because kde4 keeps it's
> settings there (gentoo devs warned about config conflicts between kde3
> and4). Or it could be the qtcurve style I had used a while a go, who knows?
> But I am sure It's a kde3 style problem. Does anybody know in which config
> file are the style related settings stored?
So forget everything I've just said above. This is a dialog resize problem or
I don't know how should I call it. It is relatively easy to reproduce, once
you figure it out where is the problem :).

Steps to reproduce:
1. Delete the [SplitTransactionEditor] entry from the config file or set a
geometry smaller then 600,400 (or something like that - the default values)
2. Try to edit a split
3. Hang

Workaround until it's fixed in the code:
Add an entry like:
[SplitTransactionEditor]
Geometry=700,700
or some larger geometry.

I think the problem comes from this commit:
http://kmymoney2.cvs.sourceforge.net/viewvc/kmymoney2/kmymoney2/kmymoney2/dialogs/ksplittransactiondlgdecl.ui?r1=1.14&r2=1.15 
combined with the "Tricky" code from KSplitTransactionDlg's constructor that
does a delayed resize. But this is just a guess ;).
       
--
Regards,

Cristian Oneţ


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
KMyMoney2-developer mailing list
KMyMoney2-developer@...
https://lists.sourceforge.net/lists/listinfo/kmymoney2-developer

signature.asc (205 bytes) Download Attachment

Re: Hang when invoking Split Editor

by Thomas Baumgart :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thursday 16 July 2009 23:20:45 Cristian Oneţ wrote:

> În data de Luni 13 Iulie 2009 22:37:41 ați scris:
> > Well I could not catch any bug in the code. The execution hags somewhere
> > in qt code in QDialog::exec(). So your observation that it can't be
> > reproduced with another user made me suspect that it is a qt style
> > problem. Since I upgraded to KDE4 I don't remember setting the qt3 style
> > anymore. I tried running kmymoney with another user that has the default
> > kde3 style and the split editor dialog works as expected.
> >
> > So I ran qt 3 version of qtconfig and saw that I had as style 'Unknown'.
> > I selected another style from the list, still the same problem. Although
> > I did not see a change in the style that kmymoney was rendered this
> > leaves me to think that kmymoney uses some style from 'I don't know which
> > config file' under '.kde' and it could be messed up because kde4 keeps
> > it's settings there (gentoo devs warned about config conflicts between
> > kde3 and4). Or it could be the qtcurve style I had used a while a go, who
> > knows? But I am sure It's a kde3 style problem. Does anybody know in
> > which config file are the style related settings stored?
>
> So forget everything I've just said above. This is a dialog resize problem
> or I don't know how should I call it. It is relatively easy to reproduce,
> once you figure it out where is the problem :).
>
> Steps to reproduce:
> 1. Delete the [SplitTransactionEditor] entry from the config file or set a
> geometry smaller then 600,400 (or something like that - the default values)
> 2. Try to edit a split
> 3. Hang
>
> Workaround until it's fixed in the code:
> Add an entry like:
> [SplitTransactionEditor]
> Geometry=700,700
> or some larger geometry.
>
> I think the problem comes from this commit:
> http://kmymoney2.cvs.sourceforge.net/viewvc/kmymoney2/kmymoney2/kmymoney2/d
>ialogs/ksplittransactiondlgdecl.ui?r1=1.14&r2=1.15 combined with the
> "Tricky" code from KSplitTransactionDlg's constructor that does a delayed
> resize. But this is just a guess ;).
The 'tricky' code had nothing to do with it as the problem remained when I
commented it out.

The problem was, that kMyMoneySplitTable::resizeEvent() was called which in
turn jumps into kMyMoneySplitTable::updateTransactionTableSize which
calculates the number of rows needed and sets them up. This in turn generates
a resize event with a new size which causes the number of rows to be updated
again, and so on, and so on.

I had one instance where the number of rows toggled between 18 and 19 back and
forth.

I now add the number of pixels for half a line which should solve the problem.


--

Regards

Thomas Baumgart

GPG-FP: E55E D592 F45F 116B 8429   4F99 9C59 DB40 B75D D3BA
-------------------------------------------------------------
New processes are created by other processes, just like new humans.
New humans are created by other humans, of course, not by processes.
(Unix System Administrator Handbook)
-------------------------------------------------------------


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
KMyMoney2-developer mailing list
KMyMoney2-developer@...
https://lists.sourceforge.net/lists/listinfo/kmymoney2-developer

signature.asc (232 bytes) Download Attachment