Code Monkey home page Code Monkey logo

Comments (3)

zzhoujay avatar zzhoujay commented on August 17, 2024

我把持有target的容器换成了软引用,现在我这边测试大量图片没有出现OOM,你试试2.0.9版本有没有解决问题

from richtext.

yaochangliang159 avatar yaochangliang159 commented on August 17, 2024

我也遇到了这个问题,viewpager里面30多个fragment,每个fragment都有富文本
java.lang.RuntimeException: An error occured while executing doInBackground() at android.os.AsyncTask$3.done(AsyncTask.java) at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java) at java.util.concurrent.FutureTask.setException(FutureTask.java) at java.util.concurrent.FutureTask.run(FutureTask.java) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java) at java.lang.Thread.run(Thread.java) Caused by: java.lang.OutOfMemoryError at org.ccil.cowan.tagsoup.HTMLScanner.save(HTMLScanner.java) at org.ccil.cowan.tagsoup.HTMLScanner.scan(HTMLScanner.java) at org.ccil.cowan.tagsoup.Parser.parse(Parser.java) at android.text.HtmlToSpannedConverter.convert(Html.java) at android.text.Html.fromHtml(Html.java) at com.zzhoujay.richtext.parser.Html2SpannedParser.parse(Html2SpannedParser.java:20) at com.zzhoujay.richtext.RichText.parseRichText(RichText.java:232) at com.zzhoujay.richtext.RichText.generateRichText(RichText.java:218) at com.zzhoujay.richtext.RichText.access$100(RichText.java:39) at com.zzhoujay.richtext.RichText$2.doInBackground(RichText.java:168) at com.zzhoujay.richtext.RichText$2.doInBackground(RichText.java:156) at android.os.AsyncTask$2.call(AsyncTask.java) at java.util.concurrent.FutureTask.run(FutureTask.java)  at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java)  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java)  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java)  at java.lang.Thread.run(Thread.java) 

from richtext.

zzhoujay avatar zzhoujay commented on August 17, 2024

@yaochangliang159 Fragment是全部都“活着”?

from richtext.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.