Picasso: PicassoExecutorService.setThreadCount() IllegalArgumentException on API 24

Created on 16 Jun 2016  路  5Comments  路  Source: square/picasso

Downloaded the DP4 emulator (API Level 24) and I get this crash when Picasso is first used.

v2.6.0-SNAPSHOT

FATAL EXCEPTION: Picasso-Dispatcher
    Process: {redacted-package}, PID: 6816
    java.lang.IllegalArgumentException
    at java.util.concurrent.ThreadPoolExecutor.setMaximumPoolSize(ThreadPoolExecutor.java:1659)
    at com.squareup.picasso.PicassoExecutorService.setThreadCount(PicassoExecutorService.java:83)
    at com.squareup.picasso.PicassoExecutorService.adjustThreadCount(PicassoExecutorService.java:66)
    at com.squareup.picasso.Dispatcher.performNetworkStateChange(Dispatcher.java:401)
    at com.squareup.picasso.Dispatcher$DispatcherHandler.handleMessage(Dispatcher.java:521)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:154)
    at android.os.HandlerThread.run(HandlerThread.java:61)

Most helpful comment

This was reported as broken and the behavior changed to support N... but now it's reversed and broken... WHHHYYYY

All 5 comments

This was reported as broken and the behavior changed to support N... but now it's reversed and broken... WHHHYYYY

Does this mean 2.5.2 just works?

Just tested, yep.

Is this commit going to be reverted?

No it's not going to be reverted

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ivanmagdic picture ivanmagdic  路  3Comments

JakeWharton picture JakeWharton  路  7Comments

ghost picture ghost  路  6Comments

nitingrov86 picture nitingrov86  路  4Comments

paatz04 picture paatz04  路  6Comments