LyXLyx crashes on opening "shut down" dialog in gnome 3

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
jossojjos
Posts: 27
Joined: Tue Feb 07, 2012 4:52 pm

Lyx crashes on opening "shut down" dialog in gnome 3

Post by jossojjos »

An interesting reply, which looks well-founded :

http://qt-project.org/forums/viewthread/47632/#195137

Apparently, LyX is not implementing the session management as the Qt team suggest. I've downloaded LyX's source code, and in src/frontends/qt4/GuiApplication.cpp I found the following lines (2588-2608) :

Code: Select all

void GuiApplication::commitData(QSessionManager & sm)
{
	/// The implementation is required to avoid an application exit
	/// when session state save is triggered by session manager.
	/// The default implementation sends a close event to all
	/// visible top level widgets when session managment allows
	/// interaction.
	/// We are changing that to close all wiew one by one.
	/// FIXME: verify if the default implementation is enough now.
	#ifdef QT_NO_SESSIONMANAGER
		#ifndef _MSC_VER
			#warning Qt is compiled without session manager
		#else
			#pragma message("warning: Qt is compiled without session manager")
		#endif
		(void) sm;
	#else
		if (sm.allowsInteraction() && !closeAllViews())
			sm.cancel();
	#endif
}
This seems not to be the way suggested by the Qt developers (http://qt-project.org/doc/qt-5/qsession ... nteraction).

If this reasoning sounds correct, then I'll try to draw the attention of the LyX developers to this problem. If someone else feels like doing this, or if a LyX developers reads this, please feel free to do whatever you think is right :)

To be continued (work is waiting ...)

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

scottkosty
Site Moderator
Posts: 542
Joined: Sat Sep 01, 2012 6:38 am

Re: Lyx crashes on opening "shut down" dialog in gnome 3

Post by scottkosty »

Good job tracking down the source of the problem. The best thing to do would be to post a bug report on http://www.lyx.org/trac
Please put all of the relevant information you can think of, as well relevant links.
jossojjos
Posts: 27
Joined: Tue Feb 07, 2012 4:52 pm

Re: Lyx crashes on opening "shut down" dialog in gnome 3

Post by jossojjos »

OK thanks !

Here it is : http://www.lyx.org/trac/ticket/9277
scottkosty
Site Moderator
Posts: 542
Joined: Sat Sep 01, 2012 6:38 am

Re: Lyx crashes on opening "shut down" dialog in gnome 3

Post by scottkosty »

Great, thanks a lot jos! I hope we get this figured out.
Post Reply