soffes / SSPullToRefresh

Simple and highly customizable pull to refresh view
MIT License
885 stars 139 forks source link

Rare SIGSEGV #1

Closed soffes closed 12 years ago

soffes commented 12 years ago

Getting the following error very rarely with no other information:

Exception Type: SIGSEGV Code: SEGV_ACCERR

Stack:

SSPullToRefreshView.m line 207
+[UIView(UIViewAnimationWithBlocks) _setupAnimationWithDuration:delay:view:options:animations:start:completion:] + 508
+[UIView(UIViewAnimationWithBlocks) animateWithDuration:delay:options:animations:completion:] + 60
SSPullToRefreshView.m line 206
colinhumber commented 12 years ago

Just a thought, but the animation options you're specifying are UIViewAnimationCurveEaseInOut and UIViewAnimationOptionAllowUserInteraction. UIViewAnimationCurveEaseInOut is for the old view animation API (enum is UIViewAnimationCurve). The new block-based API uses the UIViewAnimationOptions enum, and the curve option in that enum would be UIViewAnimationOptinCurveEaseInOut, which is also the default.

Not sure if that would actually cause any issues though...

soffes commented 12 years ago

@colinhumber oh good call. I doubt that's the it, but nonetheless a good fix. Thanks!

openaphid commented 12 years ago

Does the typo cause the SIGSEGV crash?

soffes commented 12 years ago

I don't think so. I've only seen this crash once. I'll reopen it if I see it again.