I found this bug "upstream" in gnome's bugzilla
(https://bugzilla.gnome.org/show_bug.cgi?id=676570), and here is a
solution.
The crash is connected to the file ~/.config/gedit/latex/tools.xml. If
you remove this file, Latex plugin loads correctly and doesn't crash
when you enter preferences. However, that file is where you store custom
compilation commands!
1. Copy the default tools.xml over the local one:
cp /usr/share/gedit/plugins/latex/tools.xml ~/.config/gedit/latex/tools.xml
2. Edit ~/.config/gedit/latex/tools.xml and remove the arrow characters.
(I replaced all "->" characters with the word "to" so that "TEX -> PDF" now
reads "TEX to PDF" . The bug comments at gnome's tracker seem to suggest this
is a problem.)
3. Edit the same file (~/.config/gedit/latex/tools.xml) and change the
compilation command to what you want.
Please note that if you have an error in that file, the crash will still
occur. (For example, choosing ASFASF as the postProcessor for something
will still crash the application.)
Here's my file which works (synctex, pdflatex and errors are nice):
$ cat ~/.config/gedit/latex/tools.xml
<tools>
<tool description="Create a PDF from LaTeX source" extensions=".tex" id="1"
label="LaTeX to PDF">
<job mustSucceed="True" postProcessor="GenericPostProcessor">pdflatex
-synctex=1 "$filename"</job>
<job mustSucceed="True" postProcessor="GenericPostProcessor">gvfs-open
"$shortname.pdf"</job>
</tool>
<tool description="Create a PostScript from LaTeX source" extensions=".tex"
id="3" label="LaTeX to PS">
<job mustSucceed="true" postProcessor="RubberPostProcessor">rubber
--inplace --maxerr -1 --short --force --warn all --ps "$filename"</job>
<job mustSucceed="true" postProcessor="GenericPostProcessor">gvfs-open
"$shortname.ps"</job>
</tool>
<tool description="Create a DVI from LaTeX source" extensions=".tex" id="4"
label="LaTeX to DVI">
<job mustSucceed="true" postProcessor="RubberPostProcessor">rubber
--inplace --maxerr -1 --short --force --warn all "$filename"</job>
<job mustSucceed="true" postProcessor="GenericPostProcessor">gvfs-open
"$shortname.dvi"</job>
</tool>
<tool description="Create a DVI with source specials from LaTeX source"
extensions=".tex" id="5" label="LaTeX to DVI (Source Specials)">
<job mustSucceed="true" postProcessor="LaTeXPostProcessor">latex
-interaction batchmode -src "$filename"</job>
<job mustSucceed="true" postProcessor="LaTeXPostProcessor">latex
-interaction batchmode -src "$filename"</job>
<job mustSucceed="true" postProcessor="GenericPostProcessor">xdvi -unique
-s 6 -bg white -editor gedit "$shortname.dvi"</job>
</tool>
<tool description="Process R Sweave file and create a PDF from the resulting
LaTeX source" extensions=".Rnw" id="6" label="R Sweave to PDF">
<job mustSucceed="true" postProcessor="GenericPostProcessor">R CMD Sweave
"$shortname.Rnw"</job>
<job mustSucceed="true" postProcessor="RubberPostProcessor">rubber
--inplace --maxerr -1 --short --force --warn all --pdf "$shortname.tex"</job>
<job mustSucceed="true" postProcessor="GenericPostProcessor">gvfs-open
"$shortname.pdf"</job>
</tool>
<tool description="Remove LaTeX build files" extensions=".tex" id="7"
label="Cleanup LaTeX Build Files">
<job mustSucceed="False" postProcessor="GenericPostProcessor">rm -f
"$directory"/*.aux "$directory"/*.log "$directory"/*.toc "$directory"/*.bbl
"$directory"/*.blg</job>
</tool>
<tool description="Convert BibTeX to XML" extensions=".bib" id="8"
label="BibTeX to XML">
<job mustSucceed="true" postProcessor="GenericPostProcessor">bibtex2xml
"$filename"</job>
</tool>
</tools>
** Bug watch added: GNOME Bug Tracker #676570
https://bugzilla.gnome.org/show_bug.cgi?id=676570
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gedit-plugins in Ubuntu.
https://bugs.launchpad.net/bugs/957924
Title:
gedit crashes when opening latex-plugin preferences
Status in “gedit-plugins” package in Ubuntu:
Confirmed
Bug description:
Gedit latex-plugin does not work,. The latex tools do not load when
oppening a .tex file. The plugin appears in the plugin-menu. When I
try to open the latex-plugin preferences gedit crashes.
ProblemType: Crash
DistroRelease: Ubuntu 12.04
Package: gedit 3.3.7-0ubuntu2
ProcVersionSignature: Ubuntu 3.2.0-18.29-generic 3.2.9
Uname: Linux 3.2.0-18-generic x86_64
ApportVersion: 1.94.1-0ubuntu2
Architecture: amd64
CrashCounter: 1
Date: Sat Mar 17 11:07:56 2012
ExecutablePath: /usr/bin/gedit
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
ProcCmdline: gedit
SegvAnalysis:
Segfault happened at: 0x7f31d111a54b: mov (%r14),%rax
PC (0x7f31d111a54b) ok
source "(%r14)" (0x00000008) not located in a known VMA region (needed
readable region)!
destination "%rax" ok
SegvReason: reading NULL VMA
Signal: 11
SourcePackage: gedit
StacktraceTop:
?? () from /usr/lib/libpeas-gtk-1.0.so.0
g_closure_invoke () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
g_signal_emit_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
g_signal_emit () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
Title: gedit crashed with SIGSEGV in g_closure_invoke()
UpgradeStatus: Upgraded to precise on 2012-03-17 (0 days ago)
UserGroups: adm admin cdrom dialout fuse lpadmin plugdev sambashare
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gedit-plugins/+bug/957924/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp