FS#56947 - [texmacs] TeXmacs crashes when inserting symbols in math mode

Attached to Project: Arch Linux
Opened by Kyle Andrews (kandrews) - Thursday, 04 January 2018, 07:28 GMT
Last edited by Antonio Rojas (arojas) - Saturday, 23 June 2018, 06:55 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Antonio Rojas (arojas)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

The current TeXmacs 1.99.6 PKGBUILD currently produces a TeXmacs executable using Qt5. However, the TeXmacs developers don't support the use of Qt5 yet. The result is that some of the menus cause hard crashes of the program.

Can the package be rebuilt

Additional info:

The TeXmacs developers currently provide 2 build systems, one of which (using cmake) experimentally enables building with Qt5. That's the one the package uses.

Here is the quote from the developers on the texmacs-users mailing list:

"""
Max is right: TeXmacs is presently meant to be built with Qt4. As you figured,
building with Qt5 is possible but for the moment it is highly unstable and
thus only for development purpose. I can confirm that with Qt5, when opening
palettes I experience the same crashes you do. Any help for fixing this would
be welcome, though.
"""

I have confirmed this on an up-to-date installation of Archlinux.

Steps to reproduce:

Try to clicking on the color menu in "Format > Color".

Try inserting a symbol using the icon menu in math mode.
This task depends upon

Closed by  Antonio Rojas (arojas)
Saturday, 23 June 2018, 06:55 GMT
Reason for closing:  Fixed
Additional comments about closing:  texmacs 1.99.6-2
Comment by Kyle Andrews (kandrews) - Thursday, 04 January 2018, 07:30 GMT Comment by Antonio Rojas (arojas) - Thursday, 04 January 2018, 09:22 GMT
I can't reproduce any of these crashes in Plasma. Which DE are you using?
Comment by Kyle Andrews (kandrews) - Thursday, 04 January 2018, 23:48 GMT
I have observed these crashes on both herbstluftwm and deepin (DDE) on up-to-date installations.
Comment by Antonio Rojas (arojas) - Thursday, 04 January 2018, 23:52 GMT
Can you try with 'QT_STYLE_OVERRIDE=windows'?
Comment by Kyle Andrews (kandrews) - Friday, 05 January 2018, 00:46 GMT
That worked! I can now set another color and insert a symbol into an equation without a crash. I noticed before that since I have a HiDPI display, that I also had to add QT_SCALE_FACTOR=1 to my profile since the last update to avoid having severely degraded text rendering.
Comment by Antonio Rojas (arojas) - Friday, 05 January 2018, 08:59 GMT
Alright so the issue is in Qt's fusion style. Reported upstream https://bugreports.qt.io/browse/QTBUG-65578
Comment by Antonio Rojas (arojas) - Saturday, 06 January 2018, 10:35 GMT
It seems that this is a texmacs issue after all. Please forward the Qt dev's response in the upstream report to the texmacs mailing list, I can't figure out how to post without subscribing.
Comment by Kyle Andrews (kandrews) - Saturday, 06 January 2018, 18:40 GMT
I've posted a link to the Qt bug on the texmacs-users mailing list. Thanks for all your efforts!
Comment by Kyle Andrews (kandrews) - Sunday, 07 January 2018, 14:57 GMT
I've noticed that TeXmacs also crashes when I create an itemized list, clicking on the Focus > Preferences submenu causes TeXmacs to crash in all the styles I tried but QT_STYLE_OVERRIDE=GTK2.
Comment by Yuejian Mo (H.F.) - Saturday, 23 June 2018, 06:13 GMT
Hi,sadhen has fixed the issue in this commit: https://github.com/texmacs/texmacs/commit/9e95c89118cb0404eac575b40f97d8439f704bc7
Can you @arojas cherry pick this commit?
(Here is origin discussion in Chinese if you wonder https://www.douban.com/group/topic/118786679/?start=0)

Loading...