Comments (3)
我把持有target的容器换成了软引用,现在我这边测试大量图片没有出现OOM,你试试2.0.9
版本有没有解决问题
from richtext.
我也遇到了这个问题,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.
@yaochangliang159 Fragment是全部都“活着”?
from richtext.
Related Issues (20)
- TextView 自定义背景、内容没有居中
- 请问支持LaTex吗?
- NullPointerException 后台统计发现的一个崩溃问题
- 下面多一行空白 用 <p>bbbbbbb</p>
- 文字的颜色显示不出来
- html代码的图片 img 使用双引号不能加载,改成单引号就可以了
- 无法设置 富文本中的图片大小为原始大小,并且按照wiki中手动调整图片大小方法不生效 HOT 1
- 存储在assets目录的图片名带有下划线则无法成功显示 HOT 2
- BUG是真多啊,这个库我是真服了!!!真不建议用这个!还不如自己手写一个,适合自己项目的! HOT 2
- 设置placeHolder和errorImage时,图加载不出来呢?
- HtmlSpanner好用还是这个好用
- 哪里可以自定义标签的
- 怎么解析带有超链接的图片
- java.lang.ArrayIndexOutOfBoundsException
- RejectedExecutionException
- RichEditor如何通过代码,设置输入框部分文字的样式
- 您好 现在jcenter要停用了,请问是否考虑做Mavencenter迁移工作
- 这个不维护了有没有其他的富文本控件推荐啊
- 兄弟们我改了一个AndroidX的版本
- Image click not working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from richtext.