arturgrigor / AGImagePickerController

MIT License
418 stars 160 forks source link

EXC_BAD_ACCESS on AGIPCGridCell.m\layoutSubviews #21

Open enriquevald opened 11 years ago

enriquevald commented 11 years ago

Hi arturgrigor,

I installed the AGImagesPicker... but I'm getting an error (EXC_BAD_ACCESS) in AGIPCGridCell.m\layoutSubviews in the line:

... for (AGIPCGridItem *gridItem in self.items) ...

Could you help me please?

Thansk

arturgrigor commented 11 years ago

Please attach the crash report or paste it here.

enriquevald commented 11 years ago

Hi,

I'm using the simulator and I can´t get more information of EXC_BAD_ACCESS (code=1...). I have 16 photos in the camera roll (4 by row). I debbug the code and I noted that the layoutSubviews method is called again after I reach to the last row and in this point the error is fired.

I hope to be clear

Best reards

arturgrigor commented 11 years ago

Please type 'bt' in the debug console to show you the backtrace and paste it here along with every other info that you can grab, iOS version, which simulator are you using (iPhone/iPad), etc.

enriquevald commented 11 years ago

Here you are:

(lldb) bt

enriquevald commented 11 years ago

... and target for Iphone (simulator) IOS 6.1

enriquevald commented 11 years ago

Another warning that may help: '__bridge' casts have no effect when not using ARC