Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird crash #574

Closed
Shakarang opened this issue Feb 1, 2017 · 1 comment
Closed

Weird crash #574

Shakarang opened this issue Feb 1, 2017 · 1 comment

Comments

@Shakarang
Copy link

Shakarang commented Feb 1, 2017

The following informations are requested in a bug report

  • A brief bug description.
    Hey ! I have a weird crash on my app since today. I haven't change anything and it was working perfectly yesterday.

When I am on the "week view" and I go to the next/previous week, date numbers become all "0" and it crashes.

Here is the stack trace :

2017-02-01 23:56:44.300 Epintra[52857:1438425] *** -[__NSCFCalendar components:fromDate:toDate:options:]: fromDate cannot be nil
Future exception.
A few of these errors are going to be reported with this complaint, then further violations will simply be ignored.
Here is the backtrace where this occurred this time (some frames may be missing due to compiler optimizations):
(
	0   CoreFoundation                      0x000000010ec687b5 -[__NSCFCalendar components:fromDate:toDate:options:] + 133
	1   CoreFoundation                      0x000000010ec686ac -[_NSCopyOnWriteCalendarWrapper components:fromDate:toDate:options:] + 92
	2   FSCalendar                          0x000000010cbfdcdd -[FSCalendarHeaderView collectionView:numberOfItemsInSection:] + 1885
	3   UIKit                               0x000000011015e580 -[UICollectionViewData _updateItemCounts] + 486
	4   UIKit                               0x0000000110161520 -[UICollectionViewData numberOfSections] + 22
	5   UIKit                               0x000000011014384d -[UICollectionViewFlowLayout _getSizingInfosWithExistingSizingDictionary:] + 563
	6   UIKit                               0x000000011014597b -[UICollectionViewFlowLayout _fetchItemsInfoForRect:] + 127
	7   UIKit                               0x000000011013e504 -[UICollectionViewFlowLayout prepareLayout] + 273
	8   FSCalendar                          0x000000010cc00d49 -[FSCalendarHeaderLayout prepareLayout] + 57
	9   UIKit                               0x000000011015ed6c -[UICollectionViewData _prepareToLoadData] + 159
	10  UIKit                               0x000000011015f618 -[UICollectionViewData validateLayoutInRect:] + 57
	11  UIKit                               0x00000001101066d4 -[UICollectionView layoutSubviews] + 232
	12  UIKit                               0x000000010f882ab8 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1237
	13  QuartzCore                          0x000000010e046bf8 -[CALayer layoutSublayers] + 146
	14  QuartzCore                          0x000000010e03a440 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 366
	15  QuartzCore                          0x000000010e03a2be _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 24
	16  QuartzCore                          0x000000010dfc8318 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 280
	17  QuartzCore                          0x000000010dff53ff _ZN2CA11Transaction6commitEv + 475
	18  QuartzCore                          0x000000010dff5d6f _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 113
	19  CoreFoundation                      0x000000010ec2b267 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
	20  CoreFoundation                      0x000000010ec2b1d7 __CFRunLoopDoObservers + 391
	21  CoreFoundation                      0x000000010ec0ff8e __CFRunLoopRun + 1198
	22  CoreFoundation                      0x000000010ec0f884 CFRunLoopRunSpecific + 420
	23  GraphicsServices                    0x00000001168e5a6f GSEventRunModal + 161
	24  UIKit                               0x000000010f7bdc68 UIApplicationMain + 159
	25  Epintra                             0x000000010c67e0cf main + 111
	26  libdyld.dylib                       0x0000000112a5268d start + 1
)
  • Integration method.(manually/cocoapods/carthage)
    Cocoapods

  • Device modal and iOS version : All devices

  • Xcode version. Xcode 8.2

  • FSCalendar version 2.7.0

@alexandremorgado
Copy link

alexandremorgado commented Feb 5, 2017

@Shakarang I had the same bug here. Updating FSCalendar to 2.7.1 solved the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants