Red Hat Bugzilla – Bug 184508
lyx: crashes with "graphics preview"
Last modified: 2007-11-30 17:11:26 EST
Description of problem:
crashes when scrolling
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. help/user guide
Created attachment 125873 [details]
What version-release of lyx are you using?
rpm -q lyx
Unfortunately, I don't have a fc5 box, so I cannot reproduce. lyx-1.4.0-3 works
fine for me on my rhel4 boxes.
I assume you're using the qt frontend? If so, try installing lyx-xforms. Does
the problem occur there too?
Yes, using qt frontend.
Turns out the existing builds (lyx <= 1.4.0-3) were still using -fexceptions in
the compiler flags, so we'll rebuild with that fixed to see if it helps.
Hmm, can't duplicate this here on my Rawhide box with lyx-1.4.0-3.fc5. I tried
scrolling with keys (PageUp, PageDown) and with the mouse after opening the User
Guide, but I get no crash. I have rawhide-20060308.
OK, now I can duplicate it after upgrading to rawhide-20060309. However it
requires a very quick up and down scroll for it to happen and even then, not
every time. The backtrace looks similar.
Depends on content. Crashes every time for me, both when viewing 'help user's
guide' and, unfortunately, the _paper I'm trying to write_. Really not
Please try to reproduce with lyx-1.4.0-4 (should be released yesterday or today).
Still waiting for lyx-1.4.0-4.
In the meantime, note 1.4.0-3 crashes in same manner for lyx-xforms.
Nope, same crash with lyx-1.4.0-4
Rex, I can provide you with my paper to test with, but I don't want to
post it publically.
May have to wait for fc5 final... I have no fc5 boxes (and won't until it's
Feel free to send test-cases to me privately to firstname.lastname@example.org.
I also see this on my box w. lyx 1.4.0-4
For me it does not depend on the speed, but it crashes in the userguide in
section 4, where the figure is.
(Ps. dvi export of the userguide fails as well).
See also "lyx crash following fc4->fc5" upstream report:
For me, a suitable workaround is to use the Lyx FC4 packages in FC5
# yum remove lyx
# wget ftp://fr.rpmfind.net/linux/fedora/extras/4/i386/lyx-1.4.0-4.fc4.i386.rpm
# wget ftp://fr.rpmfind.net/linux/fedora/extras/4/i386/lyx-qt-1.4.0-4.fc4.i386.rpm
# rpm -iv lyx-qt-1.4.0-4.fc4.i386.rpm lyx-1.4.0-4.fc4.i386.rpm
Interesting... that smacks of a compiler bug (or at least an incompatibility).
I'm out of my depth here.
Reading around i see someone with more experiance used a diff of object dumps on
two binaries to diagnose. Perhaps I can try that. see
I believe something similar was used after the release of FC4 with an xorg
problem switching virtual terminals on matrox cards (maybe?). problem with
ambiguity in the original code. Might be a way forward for the two lyx-qt binaries?
I know FC4 was build on 4.0.x and the FC5 release notes:
The GCC 4.1 compiler is included, and the entire set of Fedora packages is built
with this technology. This provides security and performance enhancements
throughout the system.
Does the build system for FC5 Extras also use 4.1?
Yes, FC5 uses gcc-4.1 throughout, including for Extras
*** Bug 186551 has been marked as a duplicate of this bug. ***
See also upstream report:
"Crash in 1.4.0 on graphics preview"
It appears that one workaround is to disable/turn-off graphics preview.
If any of you are willing, try out this test build:
Let me know if it helps.
Nevermind about the test binary... already got a couple reports that it crashes too.
*** Bug 188201 has been marked as a duplicate of this bug. ***
I've been having the same problem. Lyx will crash even if the image does not
exist. Disabling graphics works for me.
I managed to rebuild it with the 3.2 compiler and that works with graphics on.
How did you build with the 3.2 compiler? I already tried that, but it fails to
link against qt (because qt was built with gcc-4.1).
I built from souce using the following cmd to run configure. I'm not sure if you
actually need all the extra bits except the CXX= and CC= parts, but I haven't
tried compiling without them.
CXX=gcc32 CC=gcc32 CFLAGS="-ggdb -O0" CPPFLAGS="-ggdb -O0" CXXFLAGS="-ggdb -O0"
./configure --with-frontend=qt QTDIR=/usr/lib/qt-3.3/ --enable-debug
This fails to link due to missing stdc++, so I cut 'n' paste the linker command
and added -lstdc++ and it built.
I got a warning about linking to qt, but it still seems to run.
(btw I made sure all gcc3 based rpms were installed, so the compat rpm and the
compiler rpm at least)
I just built lyx-1.5.0svn with boost-1.34 and it does NOT crash.
lyx-1.4.1 has been pushed to Fedora Extras. Please upgrade, and confirm/deny
the continued existence of crash(es).
I've received several confirmations (as well as testing it myself) that
lyx-1.4.1 no longer crashes. Please report back if you find otherwise.
The old crash (preview) seems to be fixed, but I still got a crash that
appears to be different.
1.5.0svn + boost-1.34 seems a lot more stable.
Neal, please file a separate report for your other issue(s), if you haven't
already. 1.5.0 release is still awhile off... (-: (and boost-1.34 isn't