Xcode 9 Log: "Month 13 is out of bounds"

I see this weird log when running my app from Xcode 9. I searched my project for for this text, it is not my log. Anyone know what it means?

Replies

I see older discussion about it in context with plug-ins, where there are permission issues.

Just found a single reference in addition to your own post in Google (XCode "Month 13 is out of bounds") about this, dating XCode 7 most likely.


h ttps://stackoverflow.com/questions/31049702/debugging-a-quick-look-plugin

I'm seeing this message (repeated 3 times) from an EKEvent* from [EKEvent eventWithEventStore] when code sets event.allDay=YES. Not sure why it's happening as the date is completely valid. It only shows up for dates in December.

This structure (december start date) shows the message:

EKEvent <0x60000010dec0>
{
  EKEvent <0x60000010dec0>
{ title = Harvest Rockmelon;
  location = ;
  calendar = EKCalendar <0x60c000872900> {title = Calendar; type = Local; allowsModify = YES; color = #1BADF8;};
  alarms = (null);
  URL = (null);
  lastModified = (null);
  startTimeZone = Australia/Sydney (GMT+11) offset 39600 (Daylight);
  startTimeZone = Australia/Sydney (GMT+11) offset 39600 (Daylight)
};
  location = ;
  structuredLocation = (null);
  startDate = 2017-12-18 05:08:12 +0000;
  endDate = 2017-12-18 05:08:12 +0000;
  allDay = 0;
  floating = 0;
  recurrence = (null);
  attendees = (null);
  travelTime = (null);
  startLocation = (null);
};


And this structure (november start date) doesn't:

EKEvent <0x608000108af0>
{
  EKEvent <0x608000108af0>
{ title = Harvest Basil;
  location = ;
  calendar = EKCalendar <0x60400087b140> {title = Calendar; type = Local; allowsModify = YES; color = #1BADF8;};
  alarms = (null);
  URL = (null);
  lastModified = (null);
  startTimeZone = Australia/Sydney (GMT+11) offset 39600 (Daylight);
  startTimeZone = Australia/Sydney (GMT+11) offset 39600 (Daylight)
};
  location = ;
  structuredLocation = (null);
  startDate = 2017-11-15 05:09:08 +0000;
  endDate = 2017-11-15 05:09:08 +0000;
  allDay = 0;
  floating = 0;
  recurrence = (null);
  attendees = (null);
  travelTime = (null);
  startLocation = (null);
};

I've seen this happen when editing/removing a reccuring event that spans over a timezone change. To prevent that from happening, don't forget to set the timeZone property on your event object.

Same thing here, and it happens defininetely during

NSPropertyListSerialization:dataWithPropertyList:format:options:error:


with format = NSPropertyListXMLFormat_v1_0 and option == 0.

I see this message when writing an NSDictionary to file, that contains a certain NSDate. Im my case this is the date that is responsible for the message been logged when [NSDictionary writeToFile: atomically:] is called:


Printing description of aDate:

2008-12-30 12:27:36 +0000


when I remove this date, writeToFile logs no message.


I don't know what is so special about this date, but it is the only NSDate causing trouble in a Dictionary containing nearly 500 dates all together.


BTW: When you use the deprecated function [NSDate descriptionWithCalendarFormat:], it also logs this strange message.

Did it happen also for a long property list or a small one ?

Its happening to me when I execute [eventStore eventsMatchingPredicate:predicate];

This looks like an internal framework error. It was a pain to debug, since a symbolic breakpoint to NSLog didnt work!

me too post: eventStore.enumerateEvents(matching:) logs this message a bunch when scanning a range that extends into December


This is definitely a new bug that did not exist until recently (Xcode 9.1 on 10.13.1) but I don't know exactly when it started.


I have not yet tested whether it actually correctly finds events in December ⚠

Nothing wrong with you code. the mdworker process is encountering an error.


fehler
11:04:18.125428 +0100
mdworker
Month 13 is out of bounds

Good point, similar here with Keyboard Maestro:

Greetings from Switzerland, Ronald

---


fehler 05:54:40.305586 +0100 Keyboard Maestro Engine Month 13 is out of bounds
fehler 05:54:40.305706 +0100 Keyboard Maestro Engine Month 13 is out of bounds
fehler 05:54:40.305758 +0100 Keyboard Maestro Engine Month 13 is out of bounds
fehler 05:54:40.305814 +0100 Keyboard Maestro Engine Month 13 is out of bounds
fehler 05:54:40.305860 +0100 Keyboard Maestro Engine Month 13 is out of bounds
fehler 05:54:40.305893 +0100 Keyboard Maestro Engine Month 13 is out of bounds
fehler 05:54:40.305922 +0100 Keyboard Maestro Engine Month 13 is out of bounds
fehler 05:54:40.305962 +0100 Keyboard Maestro Engine Month 13 is out of bounds
fehler 05:54:40.306015 +0100 Keyboard Maestro Engine Month 13 is out of bounds
fehler 05:54:40.306195 +0100 Keyboard Maestro Engine Month 13 is out of bounds
fehler 05:54:40.306372 +0100 Keyboard Maestro Engine Month 13 is out of bounds
fehler 05:54:40.306414 +0100 Keyboard Maestro Engine Month 13 is out of bounds
fehler 05:54:40.306515 +0100 Keyboard Maestro Engine Month 13 is out of bounds
fehler 05:54:40.306557 +0100 Keyboard Maestro Engine Month 13 is out of bounds
fehler 05:54:40.306600 +0100 Keyboard Maestro Engine Month 13 is out of bounds
fehler 05:54:40.306639 +0100 Keyboard Maestro Engine Month 13 is out of bounds
fehler 05:54:40.306683 +0100 Keyboard Maestro Engine Month 13 is out of bounds
fehler 05:54:40.306726 +0100 Keyboard Maestro Engine Month 13 is out of bounds
fehler 05:54:40.306768 +0100 Keyboard Maestro Engine Month 13 is out of bounds
fehler 05:54:40.306811 +0100 Keyboard Maestro Engine Month 13 is out of bounds
fehler 05:54:40.306850 +0100 Keyboard Maestro Engine Month 13 is out of bounds
fehler 05:54:40.306892 +0100 Keyboard Maestro Engine Month 13 is out of bounds
fehler 05:54:40.306929 +0100 Keyboard Maestro Engine Month 13 is out of bounds
fehler 05:54:40.306962 +0100 Keyboard Maestro Engine Month 13 is out of bounds
fehler 05:54:40.307015 +0100 Keyboard Maestro Engine Month 13 is out of bounds
fehler 05:56:10.429852 +0100 Keyboard Maestro Month 13 is out of bounds
standard 05:56:10.444985 +0100 launchservicesd CHECKIN:0x0-0x9b09b 4763 com.stairways.keyboardmaestro.editor
fehler 05:56:10.458059 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:10.458107 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:10.458992 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:10.459045 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:10.560180 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:10.560243 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:10.560668 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:10.560705 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:10.561067 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:10.561103 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:10.624541 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:10.624586 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:10.625077 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:10.625119 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:10.625488 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:10.625528 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:10.784580 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:10.784634 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:10.793324 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:10.793364 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:10.794367 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:10.794423 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:10.815187 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:10.815245 +0100 Keyboard Maestro Month 13 is out of bounds
standard 05:56:10.856094 +0100 Keyboard Maestro 0x11d59f000 - DocumentLoader::startLoadingMainResource: Returning empty document (frame = 0x11d5b3000, main = 1)
standard 05:56:10.856158 +0100 Keyboard Maestro Memory usage info dump at MainFrameLoadCompleted:
standard 05:56:10.856196 +0100 Keyboard Maestro   resident_size: 36843520
standard 05:56:10.856214 +0100 Keyboard Maestro   document_count: 1
standard 05:56:10.856231 +0100 Keyboard Maestro   compressed: 0
standard 05:56:10.856248 +0100 Keyboard Maestro   javascript_gc_heap_capacity: 32768
standard 05:56:10.856264 +0100 Keyboard Maestro   pagecache_page_count: 0
standard 05:56:10.856281 +0100 Keyboard Maestro   internal: 15024128
standard 05:56:10.856297 +0100 Keyboard Maestro   javascript_gc_heap_extra_memory_size: 0
standard 05:56:10.856314 +0100 Keyboard Maestro   phys_footprint: 15040512
standard 05:56:10.856330 +0100 Keyboard Maestro   virtual_size: 5742837760
standard 05:56:10.856475 +0100 Keyboard Maestro 0x7ff02a711390 - PerformanceMonitor::measureCPUUsageInActivityState: Process is using 74.6% CPU in state: VisibleNonActive
standard 05:56:10.886690 +0100 Keyboard Maestro *** WARNING: Textured window <IntegratedWindow: 0x6000001fe100> is getting an implicitly transparent titlebar. This will break when linking against newer SDKs. Use NSWindow's -titlebarAppearsTransparent=YES instead.
standard 05:56:12.014220 +0100 Keyboard Maestro 0x7ff02a711390 - PerformanceMonitor::measureCPUUsageInActivityState: Process is using 74.9% CPU in state: NonVisible
standard 05:56:12.016420 +0100 Keyboard Maestro 0x7ff02a711390 - PerformanceMonitor::measureCPUUsageInActivityState: Process is using 100.9% CPU in state: VisibleAndActive
fehler 05:56:12.038204 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:12.038316 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:12.039006 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:12.039060 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:12.040609 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:12.040655 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:12.265741 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:12.265813 +0100 Keyboard Maestro Month 13 is out of bounds
standard 05:56:12.345559 +0100 Keyboard Maestro Engine is already running
fehler 05:56:13.056491 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:13.056562 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:18.167225 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:18.167299 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:18.168188 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:18.168231 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:18.169721 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:18.169762 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:18.170891 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:18.170930 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:18.171937 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:18.171984 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:18.175580 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:18.175620 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:18.176595 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:18.176636 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:18.177493 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:18.177534 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:18.239507 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:18.239563 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:18.240358 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:18.240400 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:18.241184 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:18.241227 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:18.541528 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:18.541573 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:18.570239 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:18.570289 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:18.572771 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:18.572822 +0100 Keyboard Maestro Month 13 is out of bounds
standard 05:56:20.232696 +0100 Keyboard Maestro Engine LSExceptions shared instance invalidated for timeout.
fehler 05:56:20.626556 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:20.626605 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:20.645352 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:20.645405 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:21.189434 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:21.189480 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:21.207917 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:21.207968 +0100 Keyboard Maestro Month 13 is out of bounds
standard 05:56:22.016184 +0100 Keyboard Maestro 0x7ff02a711390 - PerformanceMonitor::measurePostBackgroundingMemoryUsage: Process was using 53272576 bytes of memory after becoming non visible.
standard 05:56:28.159778 +0100 Keyboard Maestro LSExceptions shared instance invalidated for timeout.
fehler 05:56:46.005031 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:46.005086 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:46.044106 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:56:46.044158 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:58:23.420042 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:58:23.420096 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:58:23.493396 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:58:23.493455 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:58:23.493843 +0100 Keyboard Maestro Month 13 is out of bounds
fehler 05:58:23.493887 +0100 Keyboard Maestro Month 13 is out of bounds
standard 06:01:17.006593 +0100 Keyboard Maestro 0x7ff02a711390 - PerformanceMonitor::measurePostBackgroundingCPUUsage: Process was using 0.4% CPU after becoming non visible.

This morning, the first of December, I suddenly got a "Month 13 is out of bounds" message too. It didn't appear yesterday November 30. The message appears already 3 times before the applicationWillFinishLaunching method is called. There's no 'earlier' code in my application.

Same here, that's very weird. I hope no engineers at Apple broke anything important 😐

I have caught that error today while my application starts.

2017-12-01 15:21:45.863250+0700 Osiris[22189:1423930] [MC] Lazy loading NSBundle MobileCoreServices.framework

2017-12-01 15:21:45.864291+0700 Osiris[22189:1423930] [MC] Loaded MobileCoreServices.framework

2017-12-01 15:21:45.954908+0700 Osiris[22189:1424219] Month 13 is out of bounds

I began to get this seemingly immediately following a security update. I was modifying the code when this happened, so perhaps it's just me, but as it seems this is an issue others are reporting, perhaps it's the update?


EDIT: I just tried to compile and run the Apple AudioUnit v3 example. It has never shown that message before, and now it does. I'm pretty sure this isn't our fault.


Addendum: Since it started appearing on the 1st of December perhaps they have an off-by-one mistake in this update that triggered it.


Temporary fix:

Set the clock on your Mac to some other month than December.