> Building LyX SVN with scons everything is OK, while using 
> CMake, following the steps in INSTALL.Win32, I receive an 
> assertion about "Package" not being initialized.
> Any idea about the reason?
> Maybe it's this FIXME (LyX.cpp:289):
> 
> int LyX::exec(int & argc, char * argv[])
> {
>       // Minimal setting of locale before parsing command line
>       try {
>               init_package(os::utf8_argv(0), string(), string(),
>                       top_build_dir_is_one_level_up);
>       } catch (ExceptionMessage const & message) {
>               LYXERR(Debug::LOCALE, message.title_ + ", " + 
> message.details_);
>       }
>       // FIXME: This breaks out of source build under Windows.
>       locale_init();

It couldn't find the lib/ (aka Resources/) directory, I've fixed this moving 
the folder in the right place, however the -sysdir parameter seems to be 
ignored. The assertion it's in locale_init() but the command line it's parsed 
in the next line (easyParse function).
 
But now I've another assertion:
File -> New -> Select "Part" paragraph type, write something, assertion.

­------
Debug Assertion Failed!

Program: D:\Micosoft\OS\lyx\trunk_build\bin\Debug\LyX.exe
File: f:\dd\vctools\crt_bld\self_x86\crt\src\dbgheap.c
Line: 1322

Expression: _CrtIsValidHeapPointer(pUserData)

For information on how your program can cause an assertion [...]
------

In this case too, no problem when building with scons. Everything else seems to 
work.
Am I missing something?

venom00

The new stack trace:
msvcr100d.dll!_CrtIsValidHeapPointer(const void * pUserData=0x049e7178)  Line 
2036      C++
msvcr100d.dll!_free_dbg_nolock(void * pUserData=0x049e7178, int nBlockUse=1)  
Line 1322 + 0x9 bytes     C++
msvcr100d.dll!_free_dbg(void * pUserData=0x049e7178, int nBlockUse=1)  Line 
1265 + 0xd bytes    C++
msvcr100d.dll!operator delete(void * pUserData=0x049e7178)  Line 54 + 0x10 
bytes        C++
LyX.exe!QModelIndex::`scalar deleting destructor'()  + 0x32 bytes       C++
LyX.exe!QList<QModelIndex>::node_destruct(QList<QModelIndex>::Node * 
from=0x03e5df7c, QList<QModelIndex>::Node * to=0x03e5df7c)  Line 418 + 0x2f 
bytes  C++
LyX.exe!QList<QModelIndex>::free(QListData::Data * data=0x03e5df68)  Line 744   
C++
LyX.exe!QList<QModelIndex>::~QList<QModelIndex>()  Line 718     C++
LyX.exe!lyx::frontend::TocModel::modelIndex(const lyx::DocIterator & dit={...}) 
 Line 136 + 0x32 bytes  C++
LyX.exe!lyx::frontend::TocModel::updateItem(const lyx::DocIterator & dit={...}) 
 Line 148 + 0x10 bytes  C++
LyX.exe!lyx::frontend::TocModels::updateItem(const QString & type={...}, const 
lyx::DocIterator & dit={...})  Line 343  C++
LyX.exe!lyx::frontend::GuiView::updateTocItem(const 
std::basic_string<char,std::char_traits<char>,std::allocator<char> > & 
type="tableofcontents", const lyx::DocIterator & dit={...})  Line 1477 + 0x39 
bytes  C++
LyX.exe!lyx::Buffer::updateTocItem(const 
std::basic_string<char,std::char_traits<char>,std::allocator<char> > & 
type="tableofcontents", const lyx::DocIterator & dit={...})  Line 3154 + 0x29 
bytes     C++
LyX.exe!lyx::TocBackend::updateItem(const lyx::DocIterator & dit={...})  Line 
164 + 0x2a bytes  C++
LyX.exe!lyx::Cursor::checkBufferStructure()  Line 2463  C++
LyX.exe!lyx::Text::insertChar(lyx::Cursor & cur={...}, unsigned int c=106)  
Line 959    C++
LyX.exe!lyx::TransManager::insert(const std::basic_string<unsigned 
int,std::char_traits<unsigned int>,std::allocator<unsigned int> > & str={...}, 
lyx::Text * text=0x03bf028c, lyx::Cursor & cur={...})  Line 646 + 0x1b bytes  
C++
LyX.exe!lyx::TransManager::translateAndInsert(unsigned int c=106, lyx::Text * 
text=0x03bf028c, lyx::Cursor & cur={...})  Line 639       C++
LyX.exe!lyx::BufferView::translateAndInsert(unsigned int c=106, lyx::Text * 
t=0x03bf028c, lyx::Cursor & cur={...})  Line 809    C++
LyX.exe!lyx::Text::dispatch(lyx::Cursor & cur={...}, lyx::FuncRequest & 
cmd={...})  Line 1551 + 0x1e bytes      C++
LyX.exe!lyx::InsetText::doDispatch(lyx::Cursor & cur={...}, lyx::FuncRequest & 
cmd={...})  Line 293     C++
LyX.exe!lyx::Inset::dispatch(lyx::Cursor & cur={...}, lyx::FuncRequest & 
cmd={...})  Line 314 + 0x1a bytes      C++
LyX.exe!lyx::Cursor::dispatch(const lyx::FuncRequest & cmd0={...})  Line 369    
C++
LyX.exe!lyx::frontend::GuiView::dispatchToBufferView(const lyx::FuncRequest & 
cmd={...}, lyx::DispatchResult & dr={...})  Line 3078     C++
LyX.exe!lyx::frontend::GuiView::dispatch(const lyx::FuncRequest & cmd={...}, 
lyx::DispatchResult & dr={...})  Line 3563 C++
LyX.exe!lyx::frontend::GuiApplication::dispatch(const lyx::FuncRequest & 
cmd={...}, lyx::DispatchResult & dr={...})  Line 1641  C++
LyX.exe!lyx::frontend::GuiApplication::dispatch(const lyx::FuncRequest & 
cmd={...})  Line 1099 + 0x17 bytes     C++
LyX.exe!lyx::dispatch(const lyx::FuncRequest & action={...})  Line 1280 + 0x1b 
bytes    C++
LyX.exe!lyx::frontend::GuiApplication::processFuncRequest(const 
lyx::FuncRequest & func={...})  Line 1773 + 0x9 bytes   C++
LyX.exe!lyx::frontend::GuiApplication::processKeySym(const lyx::KeySymbol & 
keysym={...}, lyx::KeyModifier state=NoModifier)  Line 1763 + 0x3b bytes    C++
LyX.exe!lyx::frontend::GuiWorkArea::processKeySym(const lyx::KeySymbol & 
key={...}, lyx::KeyModifier mod=NoModifier)  Line 493  C++
LyX.exe!lyx::frontend::GuiWorkArea::keyPressEvent(QKeyEvent * ev=0x00a6ce88)  
Line 1044 C++
QtGuid4.dll!650f28ed()  
kernel32.dll!76fcbbe4()         
msvcr90d.dll!_unlock(int locknum=4)  Line 376   C
msvcr90d.dll!_free_dbg(void * pUserData=0x00a6c550, int nBlockUse=1700258619)  
Line 1263 + 0x7 bytes    C++
msvcr90d.dll!_free_dbg(void * pUserData=0x00a6c550, int nBlockUse=1700258619)  
Line 1260 + 0xc bytes    C++
03c7475c()      
QtGuid4.dll!6590b821()  
QtGuid4.dll!65692023()  
QtGuid4.dll!6506f5c2()  
LyX.exe!lyx::frontend::GuiApplication::notify(QObject * receiver=0x03c742c8, 
QEvent * event=0x00a6ce88)  Line 2158 + 0x13 bytes C++
QtCored4.dll!671ceba1()         
QtCored4.dll!6726fdb8()         
QtGuid4.dll!6515b851()  
QtGuid4.dll!6515aa72()  
QtGuid4.dll!6515a32d()  
QtGuid4.dll!65158fce()  
msvcr90d.dll!_unlock(int locknum=10934276)  Line 376    C
QtCored4.dll!671ec5ea()         
QtGuid4.dll!6512d724()  
LyX.exe!lyx::frontend::GuiApplication::notify(QObject * receiver=0x01010000, 
QEvent * event=0x00a6d774)  Line 2206 + 0xf bytes  C++

Reply via email to