DiskMemTileCache leaking threads

4 views
Skip to first unread message

Ákos Maróy

unread,
Feb 14, 2013, 12:46:41 PM2/14/13
to jai-...@googlegroups.com
Hi,

I'm running a code which creates a log of DiskMemImage objects, and I've
found that each new object creates and leaves a daemon thread running,
even after it is disposed. I looked at the code, and it seems
DiskMemImage.createGraphics() will create a new a new cache with
createNewCache(), which creates a new thread in its constructor via
startTilePolling().

but this thread is never stopped and gotten rid of.

it's not stopped in the dispose() call to the Graphics2D object
returned. it is also not stopped & destroyed in the dispose() call of
DiskMemImage itself. actually, it seems the function that is supposed to
destroy this thread, DiskMemTileCache.stopTilePolling(), is only called
by setTilePollingInterval(), where a new thread is created immediately -
but it is never called to actually destory this thread for good.

I wonder if anyone else has encountered this issue.

best regards,


Akos

Ákos Maróy

unread,
Feb 15, 2013, 5:26:33 AM2/15/13
to jai-...@googlegroups.com
anyway, I've submitted a ticket & a suggested patch here: https://github.com/mbedward/jaitools/issues/223
Reply all
Reply to author
Forward
0 new messages