Skip to content
This repository has been archived by the owner on Aug 29, 2022. It is now read-only.

[3.0.0beta1] Crash on allSucceded #130

Closed
piercifani opened this issue Oct 9, 2016 · 3 comments
Closed

[3.0.0beta1] Crash on allSucceded #130

piercifani opened this issue Oct 9, 2016 · 3 comments

Comments

@piercifani
Copy link
Contributor

piercifani commented Oct 9, 2016

Hey guys!

I'm experiencing a crash on allSucceded where it's crashing on calling adoptChild(_:orphaned:pendingCount:) on NSProgress. The exception states that the reason is: NSProgress 0x60000032fbe0 was already the child of another progress 0x60800032abe0'

I can reproduce it 100% of the time on my code but I couldn't make it crash using a simpler project.

@zwaldowski
Copy link
Contributor

Investigating, thanks! allSucceeded was intended to avoid this precise scenario, but might have a minor syntax screw-up somewhere. Could you describe how you're what the Tasks involved are doing prior to allSucceeded? (i.e., an andThen or something.)

@piercifani
Copy link
Contributor Author

piercifani commented Oct 10, 2016

I was able to create a gist with this issue, let me know if that helps!

EDIT: on my real code, I create the tasks with a cancellation handler, but this seems to generate the same crash.

@zwaldowski
Copy link
Contributor

It helped a lot, thanks! See the swift-3_0 branch. I hope to cut a tag soon.

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

No branches or pull requests

2 participants