Crash in [ELCAssetCell layoutSubviews] #15

Closed
AzeemKhan123 opened this Issue Nov 2, 2011 · 3 comments

Comments

Projects
None yet
4 participants

Hello All,

Overall picker works great.But just occasionally it crashes with the following error.I would really appreciate if some one can help me resolve this issue.

Azeem

Error:
2011-11-02 16:39:18.261 distribution[606:701f] -[**NSCFType setFrame:]: unrecognized selector sent to instance 0x1e0940
2011-11-02 16:39:18.306 distribution[606:701f] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFType setFrame:]: unrecognized selector sent to instance 0x1e0940'
* Call stack at first throw:
(
0 CoreFoundation 0x3759dc7b __exceptionPreprocess + 114
1 libobjc.A.dylib 0x32d9bee8 objc_exception_throw + 40
2 CoreFoundation 0x3759f3e3 -[NSObject(NSObject) doesNotRecognizeSelector:] + 98
3 CoreFoundation 0x37544467 __forwarding
+ 506
4 CoreFoundation 0x37544220 _CF_forwarding_prep_0 + 48
5 distribution 0x0000dd0b -[ELCAssetCell layoutSubviews] + 250

Rogaven commented Jun 20, 2012

I have same trouble (

Related to the same line I get SIGSEGV because elcAsset is already deallocated.

    CGRect frame = CGRectMake(4, 2, 75, 75);

    for(ELCAsset *elcAsset in self.rowAssets) {

        [elcAsset setFrame:frame];
        [elcAsset addGestureRecognizer:[[[UITapGestureRecognizer alloc] initWithTarget:elcAsset action:@selector(toggleSelection)] autorelease]];
        [self addSubview:elcAsset];

        frame.origin.x = frame.origin.x + frame.size.width + 4;
    }
Contributor

jvanmetre commented Apr 2, 2013

These crashes should be fixed in versions greater than 2ac497e (0.0.4)

jvanmetre closed this Apr 2, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment