Bug 150483 - "$" symbol repeated 5+ times causes odd rendering on jabber protocol
Summary: "$" symbol repeated 5+ times causes odd rendering on jabber protocol
Status: RESOLVED FIXED
Alias: None
Product: kopete
Classification: Applications
Component: Latex Plugin (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-04 21:29 UTC by Andy Baugh
Modified: 2008-07-06 03:48 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
add -halt-on-error for latex and check for existing out.dvi (515 bytes, patch)
2008-07-06 03:17 UTC, Florian Reinhard
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andy Baugh 2007-10-04 21:29:13 UTC
Version:           0.12.6 (using KDE 3.5.7 "release 74.2" , openSUSE )
Compiler:          Target: i586-suse-linux
OS:                Linux (i686) release 2.6.18.8-0.5-default

Steps to reproduce:
 Have someone message you (on gmail protocol) this message:
 5 dollar signs or more ("$$$$$").

Expected Result:
 "$$$$$" displayed (or how ever many more dollar signs were entered).

Actual Result:
 Multiple blank lines produced, UI irregularity. The more dollar signs transmitted,
 the more CPU is eaten up with the processes "gs" and "convert". 
 If a ridiculous amount of dollar signs are transmitted, crashes kopete after 
 freezing system for a time.

Loaded plugins:
 *Now Listening
 *KopeTex
 *History

Protocols logged on with:
 *Jabber (gmail)
 *MSN
 *Yahoo
 *AIM
Comment 1 Andy Baugh 2007-10-04 21:31:42 UTC
kopete version 0.12.6
Comment 2 Matt Rogers 2007-10-04 21:50:14 UTC
if you turn off the kopetex plugin, the problem should go away. Please confirm that disabling the Kopetex plugin makes the problem go away. (This is not a real solution, but it helps us figure out where the bug is)
Comment 3 Andy Baugh 2007-10-25 23:44:12 UTC
The KopeTeX plugin seems to be the culprit. This is probably more to do with
creating an endless error loop in TeX, and thus unfixable. I'll just use
that plugin when I need it. That will solve the problem.
The KopeTeX plugin seems to be the culprit. This is probably more to do with creating an endless error loop in TeX, and thus unfixable. I&#39;ll just use that plugin when I need it. That will solve the problem.<br>
Comment 4 Florian Reinhard 2008-07-06 03:17:45 UTC
Created attachment 25868 [details]
add -halt-on-error for latex and check for existing out.dvi
Comment 5 Florian Reinhard 2008-07-06 03:19:42 UTC
could reproduce on trunk, attached a patch to fix that specific $$$$$ issue and any other invalid tex.
Comment 6 Matt Rogers 2008-07-06 03:48:08 UTC
SVN commit 828499 by mattr:

Fix bug 150483

Use -halt-on-error and check for the existance of out.dvi
and exit appropriately so that we don't hog CPU, crash kopete,
cause bad rendering errors, etc.

Patch by green_man@gmx.net - Thanks!
Should be seen in Kopete 0.60, which will be out with KDE 4.1
BUG: 150483


 M  +2 -1      kopete_latexconvert.sh  


WebSVN link: http://websvn.kde.org/?view=rev&revision=828499