Abdelrazak Younes wrote:
Georg Baum wrote:
This backtrace does not match Edwins report: "atm lyx hangs when closing the app". That implies that he could run it before, and that means that parse_init() has been executed already. I would be very surprised if this problem has nothing to do with the qApp change.

I know that. Lyx starts OK but hang on exit. But within gdb lyx crash on startup with the above backtrace. The fact that it crashes within parse_init is a strong hint that someting is wrong there for _windows_. Replacing QLAppicaltion by a QApplication does not solve the hang on exit but makes Qt repeat infinitely a message at the console:

QObject::killTimer: timers cannot be stopped from another thread
...

I recompiling in debug mode to see where it crash precisely in parse_init.

Here is the full backtrace:

#0  0x77c478c0 in strlen () from /cygdrive/c/WINDOWS/system32/msvcrt.dll
#1  0x1004a5ab in ZN7QString17fromLatin1_helperEPKci ()
   from /cygdrive/d/program/lyx-svn/bin/QtCore4.dll
#2  0x1004d0fc in ZN7QString10fromLatin1EPKci ()
   from /cygdrive/d/program/lyx-svn/bin/QtCore4.dll
#3  0x1004d185 in ZN7QString9fromAsciiEPKci ()
   from /cygdrive/d/program/lyx-svn/bin/QtCore4.dll
#4  0x00af4439 in operator+ ([EMAIL PROTECTED],
s2=0x932cf40 "î_î_î_î_î_î_î_î_î_î_î_î_î_î_î_î_î_î_î_î_î_î_î_î_î_î_î_î_î_î_î_
î_î_î_î_î_î_î_î_î_î_î_î_î_î_î_î_î_î_î_î_î_î_î_î_î_î_î_î_î_î_î_î_î_î_î_î_î_î_î_î_
î_î_î_î_î_î_î_î_î_î_î_î_î_î_î_î_î_î_î_î_î_î_î_î_î_" <Address 0x932d000 out of bo
unds>)
at D:/program/Qt/4.1.3/include/QtCore/../../src/corelib/tools/qstring.h:783
#5  0x0063ba4e in lyx_gui::parse_init ([EMAIL PROTECTED], argv=0x3d4500)
    at D:/devel/lyx/trunk/src/frontends/qt4/lyx_gui.C:176
#6  0x004031f1 in LyX::priv_exec (this=0x9316898, [EMAIL PROTECTED],
    argv=0x3d4500) at D:/devel/lyx/trunk/src/lyx_main.C:212
#7  0x00402c93 in LyX::exec ([EMAIL PROTECTED], argv=0x3d4500)
    at D:/devel/lyx/trunk/src/lyx_main.C:142
#8  0x00401465 in main (argc=1, argv=0x3d4500)
    at D:/devel/lyx/trunk/src/main.C:47


The line of interest is this one:

176:    if (qt_trans.load(QString("qt_") + QTextCodec::locale(),
177:                      qInstallPathTranslations())) {
178:            qApp->installTranslator(&qt_trans);

So I think Georg was right in that this crash is not related to the hang on exit. I have commented out this locale code just to see where the second problem is but we have to solve this problem also. Having done that and run within gdb, there is no crash on exit but the same infinite message on console:

QObject::killTimer: timers cannot be stopped from another thread

Any idea someone?

Abdel.


Reply via email to