Skip to content

CloseGuard issues #565

Closed
Closed
@natario1

Description

@natario1

I always had these warnings but never posted about them.

When using ParseFile.getData(), 9 times out of 10 I get this error printed out:

E/StrictMode: A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.
                                                                       java.lang.Throwable: Explicit termination method 'close' not called
                                                                           at dalvik.system.CloseGuard.open(CloseGuard.java:184)
                                                                           at java.io.FileOutputStream.<init>(FileOutputStream.java:90)
                                                                           at java.io.FileOutputStream.<init>(FileOutputStream.java:73)
                                                                           at com.parse.ParseFileUtils.openOutputStream(ParseFileUtils.java:162)
                                                                           at com.parse.ParseAWSRequest$1.call(ParseAWSRequest.java:59)
                                                                           at com.parse.ParseAWSRequest$1.call(ParseAWSRequest.java:51)
                                                                           at bolts.Task$4.run(Task.java:357)
                                                                           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
                                                                           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
                                                                           at java.lang.Thread.run(Thread.java:856)

Should be referred to this, which is never closed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions