[Mono-bugs] [Bug 641589] New: Exception using a lots of Html.FromHtml call

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Sep 24 05:33:18 EDT 2010


https://bugzilla.novell.com/show_bug.cgi?id=641589

https://bugzilla.novell.com/show_bug.cgi?id=641589#c0


           Summary: Exception using a lots of Html.FromHtml call
    Classification: Mono
           Product: MonoDroid
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Class Libraries
        AssignedTo: mkestner at novell.com
        ReportedBy: tquerci at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.9
(KHTML, like Gecko) Ubuntu/10.04 Chromium/7.0.531.0 Chrome/7.0.531.0
Safari/534.9

If try to call Html.FromHtml method for a lots of time Monodroid crash.

Reproducible: Always

Steps to Reproduce:
for (int i = 0; i < 100; i++)
{
  Android.Util.Log.D("FromHtml", "**** Chk 1 i=" + i + " ****");
  Android.Text.ISpanned span = 
    Android.Text.Html.FromHtml("<em>foo</em> <strong>foo</strong>");
}

Actual Results:  
D/FromHtml(  344): **** Chk 1 i=46 ****
D/FromHtml(  344): **** Chk 1 i=47 ****
D/FromHtml(  344): **** Chk 1 i=48 ****
D/FromHtml(  344): **** Chk 1 i=49 ****
D/FromHtml(  344): **** Chk 1 i=50 ****
D/FromHtml(  344): **** Chk 1 i=51 ****
D/FromHtml(  344): **** Chk 1 i=52 ****
D/FromHtml(  344): **** Chk 1 i=53 ****
D/FromHtml(  344): **** Chk 1 i=54 ****
W/dalvikvm(  344): ReferenceTable overflow (max=512)
W/dalvikvm(  344): Last 10 entries in JNI local reference table:
W/dalvikvm(  344):   502: 0x4019a958 cls=Ljava/lang/Class;
'Landroid/text/Spanna
bleStringBuilder;' (164 bytes)
W/dalvikvm(  344):   503: 0x43e44f98 cls=Ljava/lang/String; (28 bytes)
W/dalvikvm(  344):   504: 0x400094b0 cls=Ljava/lang/Class; 'Ljava/lang/Object;'
(164 bytes)
W/dalvikvm(  344):   505: 0x43e45018 cls=Ljava/lang/String; (36 bytes)
W/dalvikvm(  344):   506: 0x4019a958 cls=Ljava/lang/Class;
'Landroid/text/Spanna
bleStringBuilder;' (164 bytes)
W/dalvikvm(  344):   507: 0x43e53e08 cls=Ljava/lang/String; (28 bytes)
W/dalvikvm(  344):   508: 0x43e53e50 cls=Ljava/lang/String; (28 bytes)
W/dalvikvm(  344):   509: 0x43e53eb0 cls=Ljava/lang/String; (28 bytes)
W/dalvikvm(  344):   510: 0x43e37730 cls=Landroid/text/SpannableStringBuilder;
(
44 bytes)

Expected Results:  
In this way I not able to use TextView for example in e List with formatted
text.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list