#20 Removing "text filter" with a large DB freezes OCM

open
nobody
Database (3)
5
2012-10-15
2011-02-25
floppgc
No

I have a OCM database of about 6000 caches, which is loaded quite fast at startup. Filtering by text (upper right text box with magnifying glass icon) also works nice and shows the matching caches. But when removing the text filter (by clicking on the "x" button next to the text box or by manually removing the text from the text box), OCM endlessly displays "Refiltering, please wait..." in the status bar and seems to freeze.
With a much smaller DB (some hundered caches) it works well.

Is my DB just to big?

Discussion

<< < 1 2 3 > >> (Page 2 of 3)
  • kmcamp_ott
    kmcamp_ott
    2011-03-07

    For 10.10, are you using Unity or just the regular Gnome desktop?

     
  • floppgc
    floppgc
    2011-03-07

    I'm using the regular gnome desktop.

    If OCM was written in C++ and Qt, I would be able to debug it on my own ;)

     
  • floppgc
    floppgc
    2011-03-08

    Just played around with the source code of 0.23.9 a little bit.

    The critical part seems to be the call of "m_QuickFilter.Refilter ();" in the method "public void RefilterList ()" in "Widgets/CachesList.cs". I added a few lines around this call to compute the time needed for refiltering the list.

    Then I created a new cache db with only 500 caches and started the usual procedure:

    Entering a quick text filter such that only a few caches are shown in the list, and then removing then filter again triggers the "RefilterList" method. In this case, the critical "m_QuickFilter.Refilter()" takes some milliseconds to finish. Everything fine.

    When doing almost the same but selecting a cache before removing the filter, "m_QuickFilter.Refilter()" takes 6 seconds to finish!

    So my original thought that OCM freezes on the original DB containing 6000 caches is wrong. Actually it "refilters" veeeeeeeeeeeery slowly.

    Strange.

     
  • kmcamp_ott
    kmcamp_ott
    2011-03-08

    Could you email me your DB? I'm installing a 10.10 VM and will see if I can reproduce using your data. On 10.04 and Suse there's no real difference in the refilter speed whether or not a cache is selected.

     
  • floppgc
    floppgc
    2011-03-09

    Hm. Not reproducible on a 10.04 machine :(
    I will try on a different 10.10 installation...

    Maybe it is an issue of mono/gtk on 10.10?

     
  • kmcamp_ott
    kmcamp_ott
    2011-03-09

    I'll setup a 10.10 machine today. I've just been really busy lately and hadn't gotten a chance to build a new VM (my old 10.10 VM stopped working)

    Now I know that at least I wasn't missing a step, since you can't reproduce it either in 10.04. Fortunately, your investigation I think tells me how to fix this. I can clear the selection in the list before the refiltering happens.

     
  • kmcamp_ott
    kmcamp_ott
    2011-03-10

    in my 10.10 VM I couldn't get it to fail either with my PQ (1000) or your test.ocm. I'll switch my VM from English to German to be sure though.

    However, I did notice a bug I didn't on my real machine, that basic filters are disabled unless an advanced filter is applied, I'll definitely fix that. I can also try a "stab in the dark" fix of clearing the selection, refiltering, and then selecting the cache again. It won't break anything, and it should fix this problem your hitting.

     
  • kmcamp_ott
    kmcamp_ott
    2011-03-13

    Didn't get the trial fix into 23.10, will try for 23.11

     
  • kmcamp_ott
    kmcamp_ott
    2011-03-28

    This happened to me today...though I couldn't get it to happen again. My "shot in the dark" obviously wasn't the problem.

     
<< < 1 2 3 > >> (Page 2 of 3)


Anonymous


Cancel   Add attachments