Ping ... Am Donnerstag, 23. Februar 2017 um 13:52:41, schrieb Kornel Benko <kor...@lyx.org> > OS: Linux =~ ubuntu 14.04, 64bit > > I gave a try to QT5.8. But now I am getting crashes any time I try to open a > file with File->Open. > This does not happen with 'open recent' or if lyx is called with a file > parameter. > > The backtrace shows that the crash in call to dmg.exec() > src/frontends/qt4/FileDialog.cpp:161 > > The enclosing routine, FileDialog::open(path, filters suggested) > path = toqstr(".") > filters = filter(qt_("LyX Documents (*.lyx)") > so nothing special. > > If I try to use lyx compiled with QT5.7, so the crash is there too as long as > QT5.8 is selected by ldconfig. > If I try to use lyx compiled with QT5.8 ans select QT5.7 with ldconfig, lyx > does not start because > `Qt_5.8' is not found. > > Someone interested in backtrace? > > I try to compile with automake ... > Compilation went smoothly. > But I have the same effect. So at least it does not depend on build-system. >
Looks like nobody seems to to be interested. For me, the only workaround is to use USE_NATIVE_FILEDIALOG=1. I don't like it because the native dialog is not so nice as that from LyX, but at least the so compiled lyx is usable. Attached patch is for cmake build. The same change is needed here for branch2.2. Kornel
diff --git a/src/frontends/qt4/CMakeLists.txt b/src/frontends/qt4/CMakeLists.txt index 833e92a..4a3331d 100644 --- a/src/frontends/qt4/CMakeLists.txt +++ b/src/frontends/qt4/CMakeLists.txt @@ -7,6 +7,9 @@ project(frontend_qt) file(GLOB frontends_qt_sources ${TOP_SRC_DIR}/src/frontends/qt4/${LYX_CPP_FILES}) +if (QTVERSION VERSION_GREATER_EQUAL "5.8.0") + set_property(SOURCE "${TOP_SRC_DIR}/src/frontends/qt4/FileDialog.cpp" PROPERTY COMPILE_FLAGS -DUSE_NATIVE_FILEDIALOG=1) +endif() file(GLOB moc_files ${TOP_SRC_DIR}/src/frontends/qt4/${LYX_MOC_FILES}) list(REMOVE_ITEM frontends_qt_sources ${moc_files} .)
signature.asc
Description: This is a digitally signed message part.