You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an older app that I recently opened with XCode 6.3.2. Did a build on a device running iOS 8.3 and it seemed to run fine. XCode pestered me to
Validate Project Settings / Update to recommended settings
After doing so, I see a crash when I run on a device: AQGridViewUpdateInfo line 775 NSUInteger newIndex = _oldToNewIndexMap[oldIndex]; gets Thread 1:EXC_BAD_ACCESS (code=1, address=0xfffffffffffffff8)
Other than updating to the latest version of AQGridView, I've only made 2 changes:
We implemented #211 and #208 and hit this problem.
During debugging, I saw that (in my case) the app hit line 190: _oldToNewIndexMap == NULL.
On line 775 (where the failure occurs), the code is trying to access that variable (even though it's null). Classic.
To fix, I added the following to the condition in to for loop: && _oldToNewIndexMap != NULL. This seems to have solved our problems, but we don’t use the library extensively so tread carefully.
To recap, line 773 should now look like this: for ( NSUInteger oldIndex = [movingSet firstIndex]; oldIndex != NSNotFound && _oldToNewIndexMap != NULL; oldIndex = [movingSet indexGreaterThanIndex: oldIndex] )
I have an older app that I recently opened with XCode 6.3.2. Did a build on a device running iOS 8.3 and it seemed to run fine. XCode pestered me to
The text was updated successfully, but these errors were encountered: