A/Looper: Could not create wake pipe. errno=24

一世执手 提交于 2019-12-06 21:28:49

问题


We're building an app that does a lot of animations and downloads a lot of images. After a certain amount of transactions (a predictable number), the app is crashing with the error:

A/Looper: Could not create wake pipe. errno=24

We don't use Looper in our code, but a few of the libraries we use do use Looper:

  1. ActionBarSherlock: I don't think this is the culprit
  2. facebook: I don't think this is the culprit
  3. nineoldandroid: This animation library could be the culprit
  4. volley: This is probably not the culprit
  5. Picasso: This could be the culprit

Has any body experienced this Looper error with any of these libs and knows how to fix?


回答1:


The problem was in the Picasso lib. We weren't using it in the intended fashion. We were holding on to a copy of the Picasso builder.

We avoided this problem by always using

Picasso.with(Context).load(Url).into(ImageView)



回答2:


For us, the problem was the fact that we had two different instances of Picasso lying around. If you use the builder to create a custom instance but make sure no other instance is created elsewhere in your app, then this problem shouldn't appear



来源:https://stackoverflow.com/questions/17606111/a-looper-could-not-create-wake-pipe-errno-24

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!