[Mono-bugs] [Bug 77217][Nor] New - Document.RecalculateDocument has infinite loop

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Jan 11 19:12:32 EST 2006


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by t7 at pobox.com.

http://bugzilla.ximian.com/show_bug.cgi?id=77217

--- shadow/77217	2006-01-11 19:12:32.000000000 -0500
+++ shadow/77217.tmp.20858	2006-01-11 19:12:32.000000000 -0500
@@ -0,0 +1,210 @@
+Bug#: 77217
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: peter at novonyx.com                            
+ReportedBy: t7 at pobox.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Document.RecalculateDocument has infinite loop
+
+When setting the text content of a TextBox via the Text property, an
+infinite loop can be triggered.
+Looking at trace output we see that SWF.Document.RecalculateDocument is
+calling SWF.Line.RecalculateLine for ever (even assigning text with only a
+few lines).
+(here is trace output - how sure how pasting it in will go...)
+
+. . . . . . . . . . . . . . . . . ENTER:
+System.Windows.Forms.Document:RecalculateDocument
+(System.Drawing.Graphics)(this:0x21600[System.Windows.Forms.Document
+SNSDevControlPanel.exe], [System.Drawing.Graphics:0xb69e9b40], )
+. . . . . . . . . . . . . . . . . . ENTER:
+System.Windows.Forms.Document:RecalculateDocument
+(System.Drawing.Graphics,int,int,bool)(this:0x21600[System.Windows.Forms.Document
+SNSDevControlPanel.exe], [System.Drawing.Graphics:0xb69e9b40], 1, 9, 0, )
+. . . . . . . . . . . . . . . . . . . ENTER:
+System.Windows.Forms.Document:GetLine
+(int)(this:0x21600[System.Windows.Forms.Document SNSDevControlPanel.exe], 1, )
+. . . . . . . . . . . . . . . . . . . LEAVE:
+System.Windows.Forms.Document:GetLine (int)[System.Windows.Forms.Line:0x68d80]
+. . . . . . . . . . . . . . . . . . . ENTER:
+System.Windows.Forms.Document:GetLine
+(int)(this:0x21600[System.Windows.Forms.Document SNSDevControlPanel.exe], 1, )
+. . . . . . . . . . . . . . . . . . . LEAVE:
+System.Windows.Forms.Document:GetLine (int)[System.Windows.Forms.Line:0x68d80]
+. . . . . . . . . . . . . . . . . . . ENTER:
+System.Windows.Forms.Line:RecalculateLine
+(System.Drawing.Graphics,System.Windows.Forms.Document)(this:0x68d80[System.Windows.Forms.Line
+SNSDevControlPanel.exe], [System.Drawing.Graphics:0xb69e9b40],
+[System.Windows.Forms.Document:0x21600], )
+. . . . . . . . . . . . . . . . . . . . ENTER:
+System.Windows.Forms.Document:GetLine
+(int)(this:0x21600[System.Windows.Forms.Document SNSDevControlPanel.exe], 2, )
+. . . . . . . . . . . . . . . . . . . . LEAVE:
+System.Windows.Forms.Document:GetLine (int)[System.Windows.Forms.Line:0x68cc0]
+. . . . . . . . . . . . . . . . . . . . ENTER:
+System.Windows.Forms.XplatUI:GetFontMetrics
+(System.Drawing.Graphics,System.Drawing.Font,int&,int&)([System.Drawing.Graphics:0xb69e9b40],
+[System.Drawing.Font:0x42818], [BYREF:0xb6a98474], [BYREF:0xbfa760d0], )
+. . . . . . . . . . . . . . . . . . . . . ENTER:
+System.Windows.Forms.XplatUIX11:GetFontMetrics
+(System.Drawing.Graphics,System.Drawing.Font,int&,int&)(this:0x664b0[System.Windows.Forms.XplatUIX11
+SNSDevControlPanel.exe], [System.Drawing.Graphics:0xb69e9b40],
+[System.Drawing.Font:0x42818], [BYREF:0xb6a98474], [BYREF:0xbfa760d0], )
+. . . . . . . . . . . . . . . . . . . . . . ENTER: (wrapper
+managed-to-native) System.Windows.Forms.XplatUIX11:GetFontMetrics
+(intptr,intptr,int&,int&)(0xa4dde30, 0xa221a10, [BYREF:0xb6a98474],
+[BYREF:0xbfa760d0], )
+. . . . . . . . . . . . . . . . . . . . . . LEAVE: (wrapper
+managed-to-native) System.Windows.Forms.XplatUIX11:GetFontMetrics
+(intptr,intptr,int&,int&)TRUE:1
+. . . . . . . . . . . . . . . . . . . . . LEAVE:
+System.Windows.Forms.XplatUIX11:GetFontMetrics
+(System.Drawing.Graphics,System.Drawing.Font,int&,int&)TRUE:1
+. . . . . . . . . . . . . . . . . . . . LEAVE:
+System.Windows.Forms.XplatUI:GetFontMetrics
+(System.Drawing.Graphics,System.Drawing.Font,int&,int&)TRUE:1
+. . . . . . . . . . . . . . . . . . . LEAVE:
+System.Windows.Forms.Line:RecalculateLine
+(System.Drawing.Graphics,System.Windows.Forms.Document)TRUE:1
+. . . . . . . . . . . . . . . . . . . ENTER:
+System.Windows.Forms.Document:GetLine
+(int)(this:0x21600[System.Windows.Forms.Document SNSDevControlPanel.exe], 2, )
+. . . . . . . . . . . . . . . . . . . LEAVE:
+System.Windows.Forms.Document:GetLine (int)[System.Windows.Forms.Line:0x68cc0]
+. . . . . . . . . . . . . . . . . . . ENTER:
+System.Windows.Forms.Line:RecalculateLine
+(System.Drawing.Graphics,System.Windows.Forms.Document)(this:0x68cc0[System.Windows.Forms.Line
+SNSDevControlPanel.exe], [System.Drawing.Graphics:0xb69e9b40],
+[System.Windows.Forms.Document:0x21600], )
+. . . . . . . . . . . . . . . . . . . . ENTER:
+System.Windows.Forms.Document:Split
+(System.Windows.Forms.Line,System.Windows.Forms.LineTag,int,bool)(this:0x21600[System.Windows.Forms.Document
+SNSDevControlPanel.exe], [System.Windows.Forms.Line:0x68cc0],
+[System.Windows.Forms.LineTag:0xb6a98400], 17, 1, )
+. . . . . . . . . . . . . . . . . . . . . ENTER:
+System.Windows.Forms.Document:Add
+(int,string,System.Windows.Forms.HorizontalAlignment,System.Drawing.Font,System.Drawing.Brush)(this:0x21600[System.Windows.Forms.Document
+SNSDevControlPanel.exe], 3,
+[STRING:0x47d20:xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">], 0,
+[System.Drawing.Font:0x42818], [System.Drawing.SolidBrush:0x4e7a8], )
+. . . . . . . . . . . . . . . . . . . . . . ENTER:
+System.Windows.Forms.Line:.ctor
+(int,string,System.Windows.Forms.HorizontalAlignment,System.Drawing.Font,System.Drawing.Brush)(this:0x68840[System.Windows.Forms.Line
+SNSDevControlPanel.exe], 3,
+[STRING:0x47d20:xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">], 0,
+[System.Drawing.Font:0x42818], [System.Drawing.SolidBrush:0x4e7a8], )
+. . . . . . . . . . . . . . . . . . . . . . . ENTER:
+System.Windows.Forms.Line:.ctor ()(this:0x68840[System.Windows.Forms.Line
+SNSDevControlPanel.exe], )
+. . . . . . . . . . . . . . . . . . . . . . . LEAVE:
+System.Windows.Forms.Line:.ctor ()
+. . . . . . . . . . . . . . . . . . . . . . . ENTER:
+System.Windows.Forms.LineTag:.ctor
+(System.Windows.Forms.Line,int,int)(this:0xb69f1fc0[System.Windows.Forms.LineTag
+SNSDevControlPanel.exe], [System.Windows.Forms.Line:0x68840], 1, 99, )
+. . . . . . . . . . . . . . . . . . . . . . . LEAVE:
+System.Windows.Forms.LineTag:.ctor (System.Windows.Forms.Line,int,int)
+. . . . . . . . . . . . . . . . . . . . . . LEAVE:
+System.Windows.Forms.Line:.ctor
+(int,string,System.Windows.Forms.HorizontalAlignment,System.Drawing.Font,System.Drawing.Brush)
+. . . . . . . . . . . . . . . . . . . . . . ENTER:
+System.Windows.Forms.Document:IncrementLines
+(int)(this:0x21600[System.Windows.Forms.Document SNSDevControlPanel.exe], 3, )
+. . . . . . . . . . . . . . . . . . . . . . . ENTER:
+System.Windows.Forms.Document:GetLine
+(int)(this:0x21600[System.Windows.Forms.Document SNSDevControlPanel.exe], 9, )
+. . . . . . . . . . . . . . . . . . . . . . . LEAVE:
+System.Windows.Forms.Document:GetLine (int)[System.Windows.Forms.Line:0x68de0]
+. . . . . . . . . . . . . . . . . . . . . . . ENTER:
+System.Windows.Forms.Document:GetLine
+(int)(this:0x21600[System.Windows.Forms.Document SNSDevControlPanel.exe], 8, )
+. . . . . . . . . . . . . . . . . . . . . . . LEAVE:
+System.Windows.Forms.Document:GetLine (int)[System.Windows.Forms.Line:0x688a0]
+. . . . . . . . . . . . . . . . . . . . . . . ENTER:
+System.Windows.Forms.Document:GetLine
+(int)(this:0x21600[System.Windows.Forms.Document SNSDevControlPanel.exe], 7, )
+. . . . . . . . . . . . . . . . . . . . . . . LEAVE:
+System.Windows.Forms.Document:GetLine (int)[System.Windows.Forms.Line:0x68900]
+. . . . . . . . . . . . . . . . . . . . . . . ENTER:
+System.Windows.Forms.Document:GetLine
+(int)(this:0x21600[System.Windows.Forms.Document SNSDevControlPanel.exe], 6, )
+. . . . . . . . . . . . . . . . . . . . . . . LEAVE:
+System.Windows.Forms.Document:GetLine (int)[System.Windows.Forms.Line:0x68960]
+. . . . . . . . . . . . . . . . . . . . . . . ENTER:
+System.Windows.Forms.Document:GetLine
+(int)(this:0x21600[System.Windows.Forms.Document SNSDevControlPanel.exe], 5, )
+. . . . . . . . . . . . . . . . . . . . . . . LEAVE:
+System.Windows.Forms.Document:GetLine (int)[System.Windows.Forms.Line:0x689c0]
+. . . . . . . . . . . . . . . . . . . . . . . ENTER:
+System.Windows.Forms.Document:GetLine
+(int)(this:0x21600[System.Windows.Forms.Document SNSDevControlPanel.exe], 4, )
+. . . . . . . . . . . . . . . . . . . . . . . LEAVE:
+System.Windows.Forms.Document:GetLine (int)[System.Windows.Forms.Line:0x68a20]
+. . . . . . . . . . . . . . . . . . . . . . . ENTER:
+System.Windows.Forms.Document:GetLine
+(int)(this:0x21600[System.Windows.Forms.Document SNSDevControlPanel.exe], 3, )
+. . . . . . . . . . . . . . . . . . . . . . . LEAVE:
+System.Windows.Forms.Document:GetLine (int)[System.Windows.Forms.Line:0x68b40]
+. . . . . . . . . . . . . . . . . . . . . . LEAVE:
+System.Windows.Forms.Document:IncrementLines (int)
+. . . . . . . . . . . . . . . . . . . . . . ENTER:
+System.Windows.Forms.Document:RebalanceAfterAdd
+(System.Windows.Forms.Line)(this:0x21600[System.Windows.Forms.Document
+SNSDevControlPanel.exe], [System.Windows.Forms.Line:0x68840], )
+. . . . . . . . . . . . . . . . . . . . . . LEAVE:
+System.Windows.Forms.Document:RebalanceAfterAdd (System.Windows.Forms.Line)
+. . . . . . . . . . . . . . . . . . . . . LEAVE:
+System.Windows.Forms.Document:Add
+(int,string,System.Windows.Forms.HorizontalAlignment,System.Drawing.Font,System.Drawing.Brush)
+. . . . . . . . . . . . . . . . . . . . . ENTER:
+System.Windows.Forms.Document:GetLine
+(int)(this:0x21600[System.Windows.Forms.Document SNSDevControlPanel.exe], 3, )
+. . . . . . . . . . . . . . . . . . . . . LEAVE:
+System.Windows.Forms.Document:GetLine (int)[System.Windows.Forms.Line:0x68840]
+. . . . . . . . . . . . . . . . . . . . . ENTER:
+System.Windows.Forms.LineTag:.ctor
+(System.Windows.Forms.Line,int,int)(this:0xb69f1f80[System.Windows.Forms.LineTag
+SNSDevControlPanel.exe], [System.Windows.Forms.Line:0x68840], 1, 99, )
+. . . . . . . . . . . . . . . . . . . . . LEAVE:
+System.Windows.Forms.LineTag:.ctor (System.Windows.Forms.Line,int,int)
+. . . . . . . . . . . . . . . . . . . . LEAVE:
+System.Windows.Forms.Document:Split
+(System.Windows.Forms.Line,System.Windows.Forms.LineTag,int,bool)
+. . . . . . . . . . . . . . . . . . . . ENTER:
+System.Windows.Forms.XplatUI:GetFontMetrics
+(System.Drawing.Graphics,System.Drawing.Font,int&,int&)([System.Drawing.Graphics:0xb69e9b40],
+[System.Drawing.Font:0x42818], [BYREF:0xb6a98434], [BYREF:0xbfa760d0], )
+. . . . . . . . . . . . . . . . . . . . . ENTER:
+System.Windows.Forms.XplatUIX11:GetFontMetrics
+(System.Drawing.Graphics,System.Drawing.Font,int&,int&)(this:0x664b0[System.Windows.Forms.XplatUIX11
+SNSDevControlPanel.exe], [System.Drawing.Graphics:0xb69e9b40],
+[System.Drawing.Font:0x42818], [BYREF:0xb6a98434], [BYREF:0xbfa760d0], )
+. . . . . . . . . . . . . . . . . . . . . . ENTER: (wrapper
+managed-to-native) System.Windows.Forms.XplatUIX11:GetFontMetrics
+(intptr,intptr,int&,int&)(0xa4dde30, 0xa221a10, [BYREF:0xb6a98434],
+[BYREF:0xbfa760d0], )
+. . . . . . . . . . . . . . . . . . . . . . LEAVE: (wrapper
+managed-to-native) System.Windows.Forms.XplatUIX11:GetFontMetrics
+(intptr,intptr,int&,int&)TRUE:1
+. . . . . . . . . . . . . . . . . . . . . LEAVE:
+System.Windows.Forms.XplatUIX11:GetFontMetrics
+(System.Drawing.Graphics,System.Drawing.Font,int&,int&)TRUE:1
+. . . . . . . . . . . . . . . . . . . . LEAVE:
+System.Windows.Forms.XplatUI:GetFontMetrics
+(System.Drawing.Graphics,System.Drawing.Font,int&,int&)TRUE:1
+. . . . . . . . . . . . . . . . . . . LEAVE:
+System.Windows.Forms.Line:RecalculateLine
+(System.Drawing.Graphics,System.Windows.Forms.Document)TRUE:1
+etc. repeatedly


More information about the mono-bugs mailing list