I'm sometimes getting this message in logcat:
11-09 14:24:04.680: D/skia(2111): --- gOptions_mCancelID
and I don't know what it means. Googling it found a C++ file which, presumably, represents an instantiation of the bitmap factory:
Reading through the C++ file would be fun and all, but is there some documentation on what these messages might mean? There have been several times when I've had to track down weird bugs and the Skia messages later proved relevant, or at least looked like they might have been relevant.
The log line of D/skia(2111): --- gOptions_mCancelID
means that a cancel of an image decode has occurred. This happens when you calling BitmapFactory.Options.html#requestCancelDecode()
in your code.
Just some notes on using this method,
- On Android N and higher this method is deprecated and does not do anything other than set the mCancel
field of your BitmapFactory.Options
object to true
- On M and below, it will cancel the decode. If you do this you should create a new BitmapFactory.Options
object.
More info :