After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 676570 - crash on opening of gedit latex plugin preferences
crash on opening of gedit latex plugin preferences
Status: RESOLVED FIXED
Product: gedit-latex
Classification: Core
Component: General
3.2.x
Other Linux
: High critical
: ---
Assigned To: José Aliste
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2012-05-22 15:18 UTC by Andrei
Modified: 2019-02-22 03:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
trace created by abrt (21.14 KB, application/x-gzip)
2012-05-23 09:23 UTC, Andrei
Details
broken XML file (84 bytes, text/xml)
2012-05-23 09:24 UTC, Andrei
Details
terminal output (2.44 KB, application/octet-stream)
2012-05-23 09:24 UTC, Andrei
Details

Description Andrei 2012-05-22 15:18:44 UTC
Problem is caused by Gedit Latex plugin 3.2.1-1.fc16 32bit
To 
1. open plugin preferences.
2. modify any of "tools" (e.g. add or remove a command). (Modification usually works, it does what it should do.)
3. close gedit. (in ~/.config/gedit/latex/ appears an incomplete XML file "tools.xml")
4. run gedit
5. If a latex document is being opened, the tools, menus and tool-buttons  of the plugin will not appear.
6. On opening of Latex plugin preferences program crushes.
7. After deleting of "tools.xml" the plugin works normally, however modifications made in step 2 will be lost.

Additionally, in the preferences dialogue the buttons (Up, Down) which change order of tools in the list do not work.
Comment 1 André Klapper 2012-05-22 20:32:51 UTC
Thanks for taking the time to report this bug.
Without a stack trace from the crash it's very hard to determine what caused it.
Can you get us a stack trace? Please see http://live.gnome.org/GettingTraces for more information on how to do so. Thanks in advance!
Comment 2 Andrei 2012-05-23 09:23:07 UTC
Created attachment 214736 [details]
trace created by abrt
Comment 3 Andrei 2012-05-23 09:24:02 UTC
Created attachment 214737 [details]
broken XML file
Comment 4 Andrei 2012-05-23 09:24:56 UTC
Created attachment 214738 [details]
terminal output
Comment 5 Andrei 2012-05-23 09:28:05 UTC
To create this backtrace I did:
1. open latex preferences
2. edit first tool: (LaTeX → PDF)
3. remove command: gnome-open "$shortname.pdf"
4. restart gedit
5. open latex preferences
Comment 6 Filipe Roque 2012-05-23 14:26:00 UTC
I confirm this bug. After some research it seems a conflict in python in encoding/decoding ascii to utf-8. 

As a workaround I removed the arrow characters in  /usr/share/gedit/plugins/latex/tools.xml and it doesn't crash anymore
Comment 7 Andrei 2012-05-23 15:06:16 UTC
Yes, after removing the arrows the program does not crash any more.
Comment 9 Ignacio Casal Quinteiro (nacho) 2012-07-15 09:19:05 UTC
Thanks for checking. Marking as fixed.