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

Crash NSRangeException #1076

Closed
mvyrko opened this issue Sep 17, 2018 · 0 comments
Closed

Crash NSRangeException #1076

mvyrko opened this issue Sep 17, 2018 · 0 comments
Labels
bug A defect in the library
Projects
Milestone

Comments

@mvyrko
Copy link
Contributor

mvyrko commented Sep 17, 2018

Bug Report

sdl_abortOperationWithRequest called when an operation is isCancelled but not is isFinished, and try to call progressHandler in a for-each cycle then try to get a request for the array by index is equal requests.count (out of the range).

self.progressHandler(self.requests[i], nil, [NSError sdl_lifecycle_multipleRequestsCancelled], self.percentComplete);

Reproduction Steps
  1. Create SDLAsynchronousRPCRequestOperation with few requests
  2. Run operation
  3. Call cancel for operation before it is finished
Expected Behavior

No crash and progressHandler for all requests

Observed Behavior

Crash

OS & Version Information
  • iOS Version: Any
  • SDL iOS Version: 5.2.0 to the 6.0.2
  • Testing Against: Crash
Test Case, Sample Code, and / or Example App
@joeljfischer joeljfischer added this to the 6.1.0 milestone Sep 17, 2018
@joeljfischer joeljfischer added the bug A defect in the library label Sep 17, 2018
@joeljfischer joeljfischer added this to Done in v6.1.0 via automation Sep 19, 2018
@joeljfischer joeljfischer mentioned this issue Sep 19, 2018
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A defect in the library
Projects
No open projects
v6.1.0
  
Done
Development

Successfully merging a pull request may close this issue.

2 participants