sunlightlabs / congress-ios

iOS app for tracking and contacting your legislators, and learning about new bills and laws.
http://congress.sunlightfoundation.com
Other
46 stars 22 forks source link

SFImageButton.m line 35 #393

Closed jcarbaugh closed 10 years ago

jcarbaugh commented 10 years ago

in -[SFImageButton intrinsicContentSize]

There's a lot more information about this crash on crashlytics.com: https://crashlytics.com/sunlight-foundation/ios/apps/com.sunlightfoundation.congress/issues/53207791fabb27481b0e6553

dcloud commented 10 years ago

Sounds like the intrinsicContentSize is being queried when there is no image in SFImageButton?

jcarbaugh commented 10 years ago

I guess so? I really really hate these stack traces. They don't really tell you anything. It looks like it's an infinite loop? Too deep to show the source and it's just the intrinsicContentSize call over and over again.

dcloud commented 10 years ago

it was intrinsicContentSize plus sizeThatFits: overrides calling each other, apparently on the menu viewcontroller. And maybe only on 64-bit. Anyway, I was able to reproduce and fix in 64-bit simulator.