What to do on TransactionTooLargeException

前端 未结 30 3917
盖世英雄少女心
盖世英雄少女心 2020-11-22 03:08

I got a TransactionTooLargeException. Not reproducible. In the docs it says

The Binder transaction failed because it was too large.

D

30条回答
  •  忘掉有多难
    2020-11-22 03:29

    I found the root cause of this (we got both "adding window failed" and file descriptor leak as mvds says).

    There is a bug in BitmapFactory.decodeFileDescriptor() of Android 4.4. It only occurs when inPurgeable and inInputShareable of BitmapOptions are set to true. This causes many problem in many places interact with files.

    Note that the method is also called from MediaStore.Images.Thumbnails.getThumbnail().

    Universal Image Loader is affected by this issue. Picasso and Glide seems to be not affected. https://github.com/nostra13/Android-Universal-Image-Loader/issues/1020

提交回复
热议问题