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

Experimental circular dependency fix #38

Merged
merged 13 commits into from
Jul 30, 2013

Conversation

rhgills
Copy link
Contributor

@rhgills rhgills commented Jul 29, 2013

Fixes #25.

I took the opportunity to clean up the code as I tried to understand it. In particular, handling assembly method calls and, to a lesser extent, constructing the instances. I think we're starting to see an opportunity for a few new abstractions down the line. For example, there are lots of cohesive methods in TyphoonComponentFactory(InstanceBuilder) that handle property injection.

Passes all iOS tests, but the OS X tests crash in -[CampaignQuest description]. After I have a chance to look into and fix that, this should be good to go. You'll find a screenshot of the OS X tests crashing below. The stack trace is not stable across runs, so definitely a memory issue.

Let me know what you think!

a memory issue with os x tests

jasperblues added a commit that referenced this pull request Jul 30, 2013
…ncy-fix

Experimental circular dependency fix
@jasperblues jasperblues merged commit 7159a2a into master Jul 30, 2013
@jasperblues
Copy link
Member

Great work.

@rhgills rhgills deleted the experimental-circular-dependency-fix branch July 30, 2013 20:18
@jasperblues
Copy link
Member

Super contribution. Big thanks Robert.

@rhgills
Copy link
Contributor Author

rhgills commented Aug 2, 2013

Thanks, my pleasure!

@rhgills
Copy link
Contributor Author

rhgills commented Aug 3, 2013

Looks like I can no longer reproduce the OS X test crasher. Did you do anything to fix it?

@jasperblues
Copy link
Member

No, nothing touched there from me. . . . I did notice circular deps still not 100% OK. Created a circular dependency on iOS, and got the app to crash.

@rhgills
Copy link
Contributor Author

rhgills commented Aug 5, 2013

Strange! I can't see anything wrong from looking at the code around where the screenshot shows the crash. Might have been incidentally fixed by switching over to OCLogTemplate. Regarding the circular dependency crash - I haven't noticed anything myself. Looks like we need more test cases there!

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

Successfully merging this pull request may close these issues.

Circular dependencies are broken
2 participants