Am Dienstag, 12. März 2013 um 15:08:54, schrieb Richard Heck <[email protected]>
> JMarc's post showed some heavy memory consumption in the BibTeX parser. 
> I wasn't able to get any kind of hit when I put a breakpoint into 
> InsetBibtex::parseBibTeX(). But maybe your file is different from any I 
> tried. Can you see if that's getting called during the search?
>
It is called 6 times before starting the search.
After the start, the first one is:
#0  lyx::InsetBibtex::plaintext (this=0x2ad7990, os=..., op=..., 
max_length=2147483647)
    at /usr/src/lyx/lyx-git/src/insets/InsetBibtex.cpp:934
#1  0x0000000000b435a6 in lyx::Paragraph::stringify (this=0x2ad4b00, beg=0, 
end=1, options=2, 
    runparams=...) at /usr/src/lyx/lyx-git/src/Paragraph.cpp:3154
#2  0x0000000000aff0b3 in lyx::(anonymous namespace)::stringifyFromCursor 
(cur=..., len=-1)
    at /usr/src/lyx/lyx-git/src/lyxfind.cpp:1027
#3  0x0000000000b010a0 in lyx::stringifyFromForSearch (opt=..., cur=..., len=-1)
    at /usr/src/lyx/lyx-git/src/lyxfind.cpp:1282
#4  0x0000000000afd63b in lyx::(anonymous namespace)::MatchStringAdv::findAux (
    this=0x7fffffff9bd0, cur=..., len=-1, at_begin=true)
    at /usr/src/lyx/lyx-git/src/lyxfind.cpp:899
#5  0x0000000000afdef0 in lyx::(anonymous 
namespace)::MatchStringAdv::operator() (
    this=0x7fffffff9bd0, cur=..., len=-1, at_begin=true)
    at /usr/src/lyx/lyx-git/src/lyxfind.cpp:947
#6  0x0000000000b0063b in lyx::(anonymous namespace)::findForwardAdv (cur=..., 
match=...)
    at /usr/src/lyx/lyx-git/src/lyxfind.cpp:1171
#7  0x0000000000b027d8 in lyx::findAdv (bv=0x346b7e0, opt=...)
    at /usr/src/lyx/lyx-git/src/lyxfind.cpp:1442
#8  0x0000000000a02342 in lyx::BufferView::dispatch (this=0x346b7e0, cmd=..., 
dr=...)
    at /usr/src/lyx/lyx-git/src/BufferView.cpp:1578
#9  0x0000000000de6e7c in lyx::frontend::GuiView::dispatchToBufferView 
(this=0x16ac830, cmd=..., 
    dr=...) at /usr/src/lyx/lyx-git/src/frontends/qt4/GuiView.cpp:3220
#10 0x0000000000dea439 in lyx::frontend::GuiView::dispatch (this=0x16ac830, 
cmd=..., dr=...)
    at /usr/src/lyx/lyx-git/src/frontends/qt4/GuiView.cpp:3766
#11 0x0000000000d9184f in lyx::frontend::GuiApplication::dispatch 
(this=0x16a0d10, cmd=..., 

9 times called, with no delay,
delay ~10 secs
4 times without delay

and so on. But the backtrace is different. Here it was:
#0  lyx::InsetBibtex::plaintext (this=0x2ac9920, os=..., op=..., max_length=180)
    at /usr/src/lyx/lyx-git/src/insets/InsetBibtex.cpp:934
#1  0x00000000009e680d in lyx::writePlaintextParagraph (buf=..., par=..., 
ods=..., runparams=..., 
    ref_printed=@0x7fffffff9eff: false, max_length=180)
    at /usr/src/lyx/lyx-git/src/output_plaintext.cpp:209
#2  0x0000000000d54045 in lyx::InsetText::toolTipText (this=0x2ac69b0, 
prefix=..., numlines=3, 
    len=60) at /usr/src/lyx/lyx-git/src/insets/InsetText.cpp:983
#3  0x0000000000d4cb23 in lyx::InsetBranch::addToToc (this=0x2ac69b0, cpit=..., 
    output_active=false) at /usr/src/lyx/lyx-git/src/insets/InsetBranch.cpp:359
#4  0x0000000000d53710 in lyx::InsetText::addToToc (this=0x2ad3110, cdit=..., 
output_active=false)
    at /usr/src/lyx/lyx-git/src/insets/InsetText.cpp:841
#5  0x0000000000a34119 in lyx::TocBackend::update (this=0x2a99f08, 
output_active=false)
    at /usr/src/lyx/lyx-git/src/TocBackend.cpp:175
#6  0x0000000000ccb43d in lyx::InsetInclude::addToToc (this=0x2ac5520, 
cpit=..., 
    output_active=false) at 
/usr/src/lyx/lyx-git/src/insets/InsetInclude.cpp:1128
#7  0x0000000000d53710 in lyx::InsetText::addToToc (this=0x2a4cb30, cdit=..., 
output_active=false)
    at /usr/src/lyx/lyx-git/src/insets/InsetText.cpp:841
#8  0x0000000000d4cbe0 in lyx::InsetBranch::addToToc (this=0x2a4cb30, cpit=..., 
    output_active=true) at /usr/src/lyx/lyx-git/src/insets/InsetBranch.cpp:362
#9  0x0000000000d53710 in lyx::InsetText::addToToc (this=0x2348950, cdit=..., 
output_active=true)
    at /usr/src/lyx/lyx-git/src/insets/InsetText.cpp:841
#10 0x0000000000a34119 in lyx::TocBackend::update (this=0x22f3a08, 
output_active=true)
    at /usr/src/lyx/lyx-git/src/TocBackend.cpp:175
#11 0x000000000095807f in lyx::Buffer::updateBuffer (this=0x2153130, 
    scope=lyx::Buffer::UpdateMaster, utype=lyx::InternalUpdate)
    at /usr/src/lyx/lyx-git/src/Buffer.cpp:4280
#12 0x000000000095ab0a in lyx::Buffer::updateBuffer (this=0x2153130)


        Kornel

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to