Open chuckwu0 opened 9 years ago
Hey @chuckwu0, thanks for your feedback. Under what circumstances the worker thread get blocked? Is that after some exception? Was this happening before the lasts commits? What version of Android are you using?
This situation can be easy appear when exit the image browser activity . The thread can't stop.
I think use
mDecodeQueue.poll(time, unit)
may solve the problem :)
Hey @chuckwu0 I don't see where this can be a problem. The worker thread is supposed to wait until a tile is available to decode, so that blocking is an expected behavior. Once the TileBitmapDrawable gets garbage collected, the thread is interrupted and destroyed. If I'm missing something, please let me know.
Once the TileBitmapDrawable gets garbage collected. -------- this is what i expected.
but every time i start the activity which contain a viewpager show TileBitmapDrawable images . system add a thead and don't be interrupted and destroyed.
OOM happened if i start the activity a few times @diegocarloslima
priority hight bug !
the work thread is blocked by mDecodeQueue.take();
and no chance to interrupt