Skip to content

PFThreadsafetySafeDispatchSync Crash on PFThreadsafety.m:28 #234

@maxbryan

Description

@maxbryan

Getting a crash while trying to get an image file's data. Calling getDataInBackgroundWithBlock on the main thread. The crashing code is called from PFFile downloadAsyncWithProgressBlock.

    image.getDataInBackgroundWithBlock {
        (data, error) -> Void in

        if let data = data {

            if let image = UIImage(data: data) {

                self.imageView.image = image
            }
        }
    }

screen shot 2015-09-10 at 9 04 02 pm

screen shot 2015-09-10 at 9 03 49 pm

crash source: 0 dispatch_queue_get_specific

screen shot 2015-09-10 at 9 22 34 pm

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:featureNew feature or improvement of existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions