question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exception: java.io.IOException: Cannot reset

See original GitHub issue

Hi Square team!

We are having an issue in an app, when in a listview, images on some rows load but some of them are blank. I tried to trace it and collect as much information as I can.

Exception

Picasso:Error:ImageLoadFailed:Uri http://store.indemand.com/shared/ovs/prodimages/movies/t/troublewiththecurve_ID0360906/troublewiththecurveBM_ID0360906.jpg

Picasso:Error:ImageLoadFailed:Exception java.io.IOException: Cannot reset

Picasso:Error:ImageLoadFailed:StackTrace 
[
    com.squareup.picasso.MarkableInputStream.reset(MarkableInputStream.java:94), 
    com.squareup.picasso.NetworkBitmapHunter.decodeStream(NetworkBitmapHunter.java:91), 
    com.squareup.picasso.NetworkBitmapHunter.decode(NetworkBitmapHunter.java:60), 
    com.squareup.picasso.BitmapHunter.hunt(BitmapHunter.java:111), 
    com.squareup.picasso.BitmapHunter.run(BitmapHunter.java:82), 
    java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:390),
    java.util.concurrent.FutureTask.run(FutureTask.java:234), 
    java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080), 
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573), 
    java.lang.Thread.run(Thread.java:856), 
    com.squareup.picasso.Utils$PicassoThread.run(Utils.java:218)
]

Responsible code (under getView())

pBuilder.build().load(URL).fit().into(ImageView);

By the way, I don’t know if it matters but airplane mode is on, but wifi is connected. I added this because with every row loading, I am seeing this in logs:

W/Settings(4289): Setting airplane_mode_on has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value.

Also the app crashed with this, after scrolling through the list up and down many times;

A/Looper(4289): Could not create wake pipe.  errno=24
A/libc(4289): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 5091 (Picasso-Dispatc)
A/libc(4289): Unable to open connection to debuggerd: Too many open files

The app doesn’t seem to crash and I also didn’t see the W/Settings airplane message if I switch to

Picasso.with(_context).load(URL).fit().into(imageView);

style instead of Picasso.Builder.

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:72 (12 by maintainers)

github_iconTop GitHub Comments

19reactions
JakeWhartoncommented, Jan 9, 2017

3.0.0 is next

On Mon, Jan 9, 2017 at 2:15 PM Etienne Lawlor notifications@github.com wrote:

If there is already a snapshot for 2.5.3 then does that mean v2.5.3 is coming in a few months from now?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/square/picasso/issues/364#issuecomment-271425110, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEEEfXGVWR76o8qMHA0BJ7rDxXdAFdwks5rQrGcgaJpZM4BbK7L .

9reactions
JakeWhartoncommented, Apr 25, 2016

It’ll happen eventually.

On Mon, Apr 25, 2016 at 6:00 PM dimsuz notifications@github.com wrote:

Yeah, it’s kinda sad to see this library stagnating a bit. I use it almost in all of my projects… It’s almost perfect, if not for these several bugs like this which are standing out - would be great to have at least one release with them fixed

  • and I’d say it can stagnate a bit more then 😉

— You are receiving this because you were mentioned.

Reply to this email directly or view it on GitHub https://github.com/square/picasso/issues/364#issuecomment-214541067

Read more comments on GitHub >

github_iconTop Results From Across the Web

java.io.IOException: Cannot reset . What's wrong?
I'm using com.nostra13.universalimageloader to load remote image into my app but in some images it shows this error:
Read more >
Log error- java.io.IOException: Connection reset by peer
Connection Reset By Peer it usually means that connection is being closed from client side when performing some action. It may be closed...
Read more >
java.io.IOException: Resetting to invalid mark in ...
Upon invoking detectBom I get an exception like: java.io.IOException: Resetting to invalid mark. at java.io.BufferedInputStream.reset(Unknown Source).
Read more >
Minecraft - Fix Internal Exception: Java.iO.IOException: An ...
For more information, follow this guide:https://techy.how/tutorials/minecraft-fix-internal- exception - java - io -errorA short tutorial on how to ...
Read more >
Cannot Connect to Server, Internal Exception: java.io ...
[18:36:47] [Server thread/INFO]: ztnjj lost connection: Internal Exception: java.io.IOException: Error while read(...): Connection reset by ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found