Skip to content
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

priority hight bug ! #11

Open
chuckwu0 opened this issue Jan 27, 2015 · 4 comments
Open

priority hight bug ! #11

chuckwu0 opened this issue Jan 27, 2015 · 4 comments

Comments

@chuckwu0
Copy link

priority hight bug !

the work thread is blocked by
mDecodeQueue.take();
and no chance to interrupt

@chuckwu0 chuckwu0 changed the title oom error priority hight bug ! Jan 27, 2015
@diegocarloslima
Copy link
Owner

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?

@chuckwu0
Copy link
Author

�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
:)

@diegocarloslima
Copy link
Owner

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.

@chuckwu0
Copy link
Author

chuckwu0 commented Feb 9, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants