googleworkspace / android-samples

Android samples for Google Workspace APIs
Apache License 2.0
635 stars 410 forks source link

Internal data leak within a DataBuffer object detected when using metadatabuffer to query files in drive #99

Closed sachindoddaguni closed 5 years ago

sachindoddaguni commented 5 years ago

"Internal data leak within a DataBuffer object detected! Be sure to explicitly call release() on all DataBuffer extending objects when you are done with them. (internal object: com.google.android.gms.common.data.DataHolder@cfdca45)" Above is the complete error i am getting while executing the statements for quereing files. thank you

erickoledadevrel commented 5 years ago

Did this occur within a specific sample in this repo? Or within your custom application?

sachindoddaguni commented 5 years ago

This happened within my custom application but the code with respect to querying is taken from the demo inside repository.

Thank yoy

On Tue 13 Nov, 2018, 11:14 PM Eric Koleda <notifications@github.com wrote:

Did this occur within a specific sample in this repo? Or within your custom application?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gsuitedevs/android-samples/issues/99#issuecomment-438367714, or mute the thread https://github.com/notifications/unsubscribe-auth/AfM11kEAjHSejj_JVCzOLh2TH7m8EUO7ks5uuwT0gaJpZM4YXQpb .

erickoledadevrel commented 5 years ago

Can you please point to the specific sample code you are referring to?

sachindoddaguni commented 5 years ago

the metadatabuffer used in the code 'android-samples/drive/demos/app/src/main/java/com/google/android/gms/drive/sample/demo/QueryFilesActivity.java' has this problem.On doing some research i got to know that it has to be released.if so in which part of the code should i release the buffer

erickoledadevrel commented 5 years ago

The Drive Android API has recently been deprecated:

https://developers.google.com/drive/android/

We will keep these samples up for now, but not make further improvements or bug fixes.