Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search related EXC_BAD_ACCESS #23

Open
raheelsayeed opened this issue Jul 19, 2018 · 2 comments
Open

Search related EXC_BAD_ACCESS #23

raheelsayeed opened this issue Jul 19, 2018 · 2 comments

Comments

@raheelsayeed
Copy link

raheelsayeed commented Jul 19, 2018

Facing an EXC_BAD_ACCESS, something to do when only using .search() query on a QuestionnaireResponse with ValueSetCompose. This is strange, .read() works just fine for the same resource, but .search() is a problem. (STU3)

let server = Server(baseURL: URL(string: "https://r3.smarthealthit.org/")!)

QuestionnaireResponse.read("161921", server: server) { (resource, error) in
 }

QuestionnaireResponse.search(["_id" : "SMART-PROMs-1-QR4"]).perform(server) { (bundle, error) in
}

//ERROR
QuestionnaireResponse.search(["_id" : "161921"]).perform(server) { (bundle, error) in
             
}

note: QR: 161921 might not exist every day: create this resource this to check against

@p2
Copy link
Member

p2 commented Jul 19, 2018

Seems to be some issue surfacing due to recent compiler optimizations. Turn on "Thread Sanitizer" to avoid it.

@raheelsayeed
Copy link
Author

Tried many approaches to no avail. Thread Sanitizer didn't work on search(). My guess is, something to do with Bundle parsing. Hard to note what for now.
Don't see any zombi objects either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants