You are not logged in.

#1 2013-03-04 20:08:43

ackalker
Member
Registered: 2012-11-27
Posts: 201

[SOLVED] application (TeXmacs) freezes on exit, nvidia legacy driver

For those who may be experiencing similar problems: after some updates (including qt -> qt4), TeXmacs has started freezing on exit.

Package versions (`$ pacman -Q texmacs nvidia-304xx qt4`)
texmacs 1.0.7.16-2
nvidia-304xx 304.64-4
qt4 4.8.4-13

After some digging and debugging (see FS#34143), I've found that issuing the following:

$ export __GL_SINGLE_THREADED=1

before starting TeXmacs, works around the problem, i.e. TeXmacs closes normally.

If you normally start TeXmacs from your desktop menu, you will need to either add the code above to your ${HOME}/.profile (don't forget to log out and back in!) or create a wrapper script which will launch TeXmacs with this setting.

Assuming that you have ${HOME}/bin on your ${PATH}, you can add the following file:

${HOME}/bin/texmacs

#!/bin/sh
export __GL_SINGLE_THREADED=1
exec /usr/bin/texmacs "$@"

and then execute:

$ chmod +x ${HOME}/bin/texmacs

This is recommended, as the setting could possibly degrade performance unnecessarily for applications which do not suffer from the freeze problem.

Whether or not this bug got triggered by the recent Mesa, libGL, Qt etc. reorganisation is still a mystery to me.

Last edited by ackalker (2013-03-04 20:32:58)

Offline

Board footer

Powered by FluxBB