Re: LyX/Q.../Free crash
Christian Ehrlicher <[email protected]> Sun, 09 Oct 2005 16:07:06 +0200
| Newsgroups | gmane.editors.lyx.devel,gmane.comp.kde.devel.cygwin |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Michael Gerz schrieb: > Dear Christian, > > when using LyX 1.4 on Windows with MinGW and Q.../Free, I get a > segmentation fault. > > src/kernel/qfontdatabase.cpp, line 913, reads > > fe = loadEngine(script, fp, request, 0, 0, 0 ); > > loadEngine() is defined in file src/kernel/qfontdatabase_win.cpp which > expects a QFontFamily as fourth parameter. Within loadEngine() (line > 337), family->rawName.lower() is evaluated. However, we get a > segmentation fault since we explicitly pass 0 as parameter. > > Do you have any idea what the right way is to fix this bug? This is a > real showstopper for LyX/Win at the moment. Angus already told me about this crash but had no time to go deeper. Afais it's your fault because qfontdatabase_x11.cpp and qfontdatabase_win.cpp (qt4) also don't like NULL there... but it should be no problem to check for != NULL. > > Thanks in advance! > > Michael > > PS: I also encountered a problem with resizable dialogs. Qt responds > very sluggish and sometimes it forgets to redraw the dialog. A couple of > months ago (before the big Qt mergers?) Q.../Free worked much better in > this case. I hit this problem too, but currently had no time to see what's going wrong. I already have a small testcase and hope to fix it asap. Thx Christian -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFDSSQKnNKwkgf+zVMRAovXAKCnkq/sUeaVTlK0/WnYObffqt2GdgCfdggZ Ic6bicU1tw6bfaQfRD0g8qs= =+qNS -----END PGP SIGNATURE-----