Question

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:

BitmapFactory.cpp

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.

Was it helpful?

Solution

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 :

OTHER TIPS

With an Android device connected via USB, sending adb logcat skia:D *:S via command line will set any messages with 'skia' in them to show if they carry priority 'D' or above. Finding what keywords other than 'skia' to be relevant would be your bag; the documentation for Logcat leaves the command not well-explained. I am working on a visual alternative, which I'll post on my site (wikipeeria).

Yes,there is little doc about SKIA. You can get some information from Skia's main page from http://code.google.com/p/skia/ . And, you can search the bug's about skia in https://code.google.com/p/android/issues/list with the key word. The most work i think is reading the code and debugging the code.

You can find documentation and more info here: https://skia.org/

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top