Am 2009-04-06 schrieb Kornel Benko: > Hi, > the problem is immediate crash when clicking on the outline-icon. > I wanted to trace it down, but the recompiled version with "-O0 -g3 > -D_NDEBUG" did not crash anymore. > Doublechecking I recompiled again, this time with "-O3 -DNDEBUG", and now the > crash is back. > > (And by the way, it does not depend on language, I checked the german and > english version too) > > To reproduce. > > run lyx > open file > click on outline > > The platform is OpenSuSE 10.3, 64bit.
Interestingly I can reproduce it _only_ on this system _and_ this branch _and_ only with the cmake build. I tried to insert _ONE_ debug message, but the crash immediately disappeared. For me, it looks like a timing problem. Someone please have a look into this. With the attached "patch" no crash. Kornel
Index: TocModel.cpp =================================================================== --- TocModel.cpp (revision 29157) +++ TocModel.cpp (working copy) @@ -252,6 +252,7 @@ int TocModels::depth(QString const & type) { const_iterator it = models_.find(type); + LYXERR0("searching for type: " << type); if (!bv_ || it == models_.end()) return 0; return it.value()->modelDepth();
signature.asc
Description: This is a digitally signed message part.