-
Notifications
You must be signed in to change notification settings - Fork 6.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ANR problem #435
Comments
anybody helps? |
threadPoolSize(10) is too much, prefer 4 or 5 or less. |
But finally I found threadPoolSize() is not the matter. As the traces.txt show. at at com.nostra13.universalimageloader.core.assist.deque.LinkedBlockingDeque.takeFirst(LinkedBlockingDeque.java:461) Maybe something is not synchronized in LinkedBlockingDeque. |
额。您是怎么找到我的,那个图片加载不出来我已经解决了,因为不是imageloader的错误,是因为listview和scrollview 冲突我将listview 全部画出来了,导致线程开的太多。所以图片无法展示,imageloader 下次升级能否控制下线程的数量,按队列运行呢。 ------------------ 原始邮件 ------------------ 主题: Re: [Android-Universal-Image-Loader] ANR problem (#435) But finally I found threadPoolSize() is not the matter. As the traces.txt show. at at com.nostra13.universalimageloader.core.assist.deque.LinkedBlockingDeque.takeFirst(LinkedBlockingDeque.java:461) Maybe something is not synchronized in LinkedBlockingDeque. — |
给imageloader 提个 建议, 线程退出方法 能否增加一个根据android.content.Context 退出加载的方法,当activity快速切换时,如果那个页面中含有listview这样的控件,退出比较麻烦, 如果能够根据 context 退出.就可以解决activity快速进入和快速退出的问题。 ------------------ 原始邮件 ------------------ 主题: Re: [Android-Universal-Image-Loader] ANR problem (#435) But finally I found threadPoolSize() is not the matter. As the traces.txt show. at at com.nostra13.universalimageloader.core.assist.deque.LinkedBlockingDeque.takeFirst(LinkedBlockingDeque.java:461) Maybe something is not synchronized in LinkedBlockingDeque. — |
Which lib version do you use? |
我的app中也出现一模一样的问题了,我不知道是为什么,并没有发现有线程开太多的情况啊 |
我的只有3个线程,一样有问题 |
是啊,为什么呢 why imageLoader still appear ANR when I use it only set 3 threadpool |
ANR问题的本身,不是Image-Loader导致的 根据上下文停止的思路本身就是不可靠的。 |
@sinlov 不是非常明白你说的,能举个例子说明吗?有没有什么方法可以追踪出导致ANR的问题的起因吗? |
@nostra13
Does the .threadPoolSize(10) matter?
The text was updated successfully, but these errors were encountered: