Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 367131

Summary: Infinite loop in MarkupLanguage#processContent
Product: z_Archived Reporter: John Arthorne <john.arthorne>
Component: MylynAssignee: David Green <greensopinion>
Status: RESOLVED WORKSFORME QA Contact: David Green <greensopinion>
Severity: critical    
Priority: P2    
Version: unspecified   
Target Milestone: 1.6.0   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
First stack trace of task
none
Stack of same process 6 minutes later
none
raw wiki markup of the page
none
Ant script used to build doc none

Description John Arthorne CLA 2011-12-19 15:41:29 EST
Juno M4

I have hit a case using the mediawiki-to-eclipse-help ant task that hits an infinite loop. I left it for ten minutes and it never completed. CPU usage was constant for that process the entire time. Stacks coming...
Comment 1 John Arthorne CLA 2011-12-19 15:43:07 EST
Created attachment 208583 [details]
First stack trace of task
Comment 2 John Arthorne CLA 2011-12-19 15:43:28 EST
Created attachment 208584 [details]
Stack of same process 6 minutes later
Comment 3 John Arthorne CLA 2011-12-19 15:46:11 EST
Here is one wiki document that seems to cause it:

http://wiki.eclipse.org/Orion/Documentation/Developer_Guide/Simple_plugin_example
Comment 4 John Arthorne CLA 2011-12-19 16:06:33 EST
I reverted to the Indigo SR1 version of Mylyn WikiText and the problem went away, so this looks like a recent regression in Juno.
Comment 5 David Green CLA 2012-01-04 18:35:24 EST
Created attachment 209040 [details]
raw wiki markup of the page
Comment 6 David Green CLA 2012-01-04 18:36:42 EST
Thanks for the bug and stack traces.
Comment 7 David Green CLA 2012-01-09 23:54:39 EST
I'm unable to reproduce this problem with my simple test case.  Can you please attach the Ant script that you're using to drive the conversion?
Comment 8 John Arthorne CLA 2012-01-10 11:46:21 EST
Created attachment 209271 [details]
Ant script used to build doc
Comment 9 David Green CLA 2012-01-11 17:48:35 EST
Thanks John.  I've run your Ant script locally and it completed just fine with the latest Mylyn WikiText (I'm using the "latest standalone distro":http://www.eclipse.org/downloads/download.php?file=/mylyn/snapshots/nightly/docs/wikitext-standalone-latest.zip ).  Can you try again (using the latest WikiText) and verify that it works for you?
Comment 10 John Arthorne CLA 2012-01-13 16:31:29 EST
Yes, it appears to be working with the latest nightly snapshot! I guess this must be already fixed or a duplicate.. thanks for looking at it.
Comment 11 David Green CLA 2012-01-13 16:42:24 EST
No problem, glad it's working now.