Version 2 crashes on openSUSE KDE

I have installed TeXmacs 2.1.2 using the 64bit generic Linux tar.gz release (I’ve tried the openSUSE package, but it rendered embedded PDFs wrong). It opens correctly my past documents, but it crashes when I select some text or try to open the welcome page. Here is the terminal output:

$ ./bin/texmacs
Fontconfig warning: line 5: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 4: unknown element "description"
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 72: non-double matrix element
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 72: non-double matrix element
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 80: saw unknown, expected number
Fontconfig warning: "/etc/fonts/conf.d/10-sub-pixel-none.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/10-yes-antialias.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 66: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 74: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 82: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 90: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 98: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 106: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 114: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 122: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 130: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 138: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 146: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 154: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 162: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 170: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 178: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 186: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 194: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 202: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 210: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 218: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 226: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 234: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 242: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 250: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 258: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 266: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 274: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 282: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 290: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 298: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 306: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 314: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 322: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 330: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 338: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 346: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 354: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 363: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 371: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 379: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 387: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 395: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 403: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 411: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 419: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 427: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 435: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 443: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 451: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 459: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 467: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 475: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 483: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 491: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 502: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 510: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 518: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 526: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 535: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 543: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 551: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 559: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 570: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 578: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 586: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 594: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 602: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 610: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 619: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 627: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 636: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 645: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 657: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 665: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 676: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 687: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 695: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 703: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 711: bad alias
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 719: bad alias
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/45-generic.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/48-spacing.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/49-sansserif.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/56-user.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/60-generic.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/61-latin.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/65-nonlatin.conf", line 4: unknown element "description"
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
Major opcode: 62 (X_CopyArea)
Resource id:  0x0
TeXmacs] With linked TrueType support
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
Major opcode: 62 (X_CopyArea)
Resource id:  0x0
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
Major opcode: 62 (X_CopyArea)
Resource id:  0x0
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
Major opcode: 62 (X_CopyArea)
Resource id:  0x0
Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.

terminate called after throwing an instance of 'std::runtime_error'
what():  locale::facet::_S_create_c_locale name not valid
[1]    28414 IOT instruction (core dumped)  ./bin/texmacs

I am running openSUSE Tumbleweed with KDE Plasma on Wayland. For the moment I’m using the 1.99.9 version which is working fine (installed from the C.tar.gz).
Someone knows this problem or how to investigate it further?

I am not able to help on the crash (hopefully someone else can), this said you could try 2.1.1, the current official version.

The openSUSE rpm I first tried was of version 2.1.1, it also crashed on trying to open welcome or when selecting text (in addition to the wrong rendering of embedded PDFs).

Instead of the static build, I would suggest you try using this AppImage (just download it and make the file executable). It generally works nicely, however, I’m afraid your pdf rendering issue might remain since in principle this rendering is done using ghostscript.
It’s possible to compile TeXmacs for Tumbleweed too, but packaging the rpm has become very picky and needs a significant amount of work to fix it.

Thank you for the suggestion. How did you find this AppImage? I found no mention on the website, even if it would make a lot of sense in substitution of the static builds.
Anyhow, same story, crash when trying to hopen Welcome or selecting text. Here is the terminal output:

$ ./texmacs-latest-x86_64.AppImage
TeXmacs] With linked TrueType support
terminate called after throwing an instance of 'std::runtime_error'
what():  locale::facet::_S_create_c_locale name not valid
[1]    21974 IOT instruction (core dumped)  ./texmacs-latest-x86_64.AppImage

Instead the PDF rendering issue stopped generating TeXmacs errors and most embedded PDF in my old files look right.

https://build.opensuse.org/package/show/home%3ADenisRx%3ATeXmacs/TeXmacs

This build works on my openSUSE_Tumbleweed. You may have a try.

2 Likes

How did you find this AppImage?

I made it :slightly_smiling_face:

same story, crash when trying to hopen Welcome or selecting text

I can’t reproduce that in a tumbleweed/KDE virtual machine with the latest AppImage. Maybe your ~/.TeXmacs folder got corrupted; try renaming it.

@WhiteCrow yes, that where the official version was built, so it’s the same as the v2.1.1 on texmacs.org. More recent builds are all failing at the packaging stage, as I was mentioning.

1 Like

I found the culprit: my locale configuration. By setting LC_ALL TeXmacs works.

I don’t want to set it because, form what I’m told “This variable will override all LC-variables!!” (it is a string from YaST).

Anyhow, I will use the AppImage version (even if it seems of dev version), because the rpm suggested by @WhiteCrow has more problems with my previously embedded pdfs and a strange problem with all the Plasma file pickers. Here is a screenshot:


The picker in the background is fully functional, but it is quite unpractical…

Where may I suggest to the developers that with an unset LC_ALL no useful error message is provided?

Try to assign the value to LC_CTYPE or LANG.

Or set LC_ALL only for TeXmacs, either:

  • If you start TeXmacs using some app runner. Go to /usr/share/applications and find the .desktop file for TeXmacs. Copy it to your $HOME/.local/share/applications/ and Change the line like Exec=texmacs %f to Exec=env LC_ALL=$VALUE_YOU_WANT texmacs %f

or:

  • If you start texmacs from terminal. Create an alias in your shell rc file .bashrc, .zshrc or something: alias texmacs="LC_ALL=$VALUE_YOU_WANT" texmacs

Some of the developers read this forum. Joris van der Hoeven (@vdhoeven) does not, but I think that he does read the bug reports at https://savannah.gnu.org/bugs/?group=texmacs

LC_CTYPE or LANG is not it, they have been always set (to en_GB.UTF-8 and to en_US.UTF-8) the whole time.

Luckily KDE Plasma has a context menu item to set application properties through a nice GUI, I already did that.

@LoETR9 please file a bug (with exact steps to reproduce the crash) on Savannah
https://savannah.gnu.org/bugs/?group=texmacs

I believe the bug with file selection is known and should have been fixed. Is that in v2.1.1?

Both in my debian machine and in the tumbleweed-KDE virtual machine I already mentioned, LC_ALL is unset and I see no obvious problem when running TeXmacs AppImage (in particular opening Welcome and selecting text both work fine), so locale settings are quite likely not the root cause of the issue you experience. What do you mean by “no useful error message is provided” when LC_ALL is unset?

Yet it is quite likely that we are quite close to the cause of the crash. It is only necessary to reproduce it consistently :wink:

Yes. Precisely, I have bee spending some time trying to reproduce the issue, but with no success so far. Meanwhile, I observed that having LC_ALL unset does not by itself trigger the bug, which implies it has other factors yet to be identified: We need more information.

Here maybe some more help from @LoETR9 could be decisive. Sometimes being pedantic and listing all of the characteristics of the environment might make the error come to the surface. I do not know how to list all of the characteristics of the environment; maybe printenv or some variation thereof? Or use env to run the program in a controlled environment? I just read about these commands on the Internet :wink:

Yes 2.1.1, @WhiteCrow can confirm.

I promise you a detailed report (probably with a screencast included) by the end of the moth. I’m a bit busy at the moment…

You means @pjoyez :slight_smile:, who maybe knows what to ask for.

I can reproduce this crash in the latest svn by issuing LANG=it texmacs (or any other two-letter code it seems).

LANG=it_IT texmacs seems to work.

1 Like