48 Replies
      Latest reply: Dec 31, 2017 4:14 PM by mvo RSS
      Macho Man Randy Savage Level 3 Level 3 (355 points)

        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?

        • Re: Xcode 9 Log: "Month 13 is out of bounds"
          KMT Level 9 Level 9 (10,425 points)

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

          • Re: Xcode 9 Log: "Month 13 is out of bounds"
            Claude31 Level 6 Level 6 (2,390 points)

            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

            • Re: Xcode 9 Log: "Month 13 is out of bounds"
              cdhutch Level 1 Level 1 (0 points)

              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);
              };
              
              • Re: Xcode 9 Log: "Month 13 is out of bounds"
                deesa Level 1 Level 1 (0 points)

                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.

                • Re: Xcode 9 Log: "Month 13 is out of bounds"
                  Uedich Level 1 Level 1 (0 points)

                  Same thing here, and it happens defininetely during


                  NSPropertyListSerialization:dataWithPropertyList:format:options:error:

                   

                  with format = NSPropertyListXMLFormat_v1_0 and option == 0.

                  • Re: Xcode 9 Log: "Month 13 is out of bounds"
                    Ninakadin Level 1 Level 1 (0 points)

                    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.

                    • Re: Xcode 9 Log: "Month 13 is out of bounds"
                      Piso13 Level 1 Level 1 (0 points)

                      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!

                        • Re: Xcode 9 Log: "Month 13 is out of bounds"
                          ammo Level 1 Level 1 (0 points)

                          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

                        • Re: Xcode 9 Log: "Month 13 is out of bounds"
                          Helge Level 1 Level 1 (15 points)

                          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
                          
                            • Re: Xcode 9 Log: "Month 13 is out of bounds"
                              Gargantua Level 1 Level 1 (0 points)

                              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.
                              
                              
                            • Re: Xcode 9 Log: "Month 13 is out of bounds"
                              Loeribas Level 1 Level 1 (0 points)

                              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.

                                • Re: Xcode 9 Log: "Month 13 is out of bounds"
                                  ctietze Level 1 Level 1 (0 points)

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

                                  • Re: Xcode 9 Log: "Month 13 is out of bounds"
                                    Pavel Tardis Level 1 Level 1 (0 points)

                                    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

                                    • Re: Xcode 9 Log: "Month 13 is out of bounds"
                                      Casper B. Hansen Level 1 Level 1 (0 points)

                                      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.

                                    • Re: Xcode 9 Log: "Month 13 is out of bounds"
                                      macsourcerer Level 1 Level 1 (0 points)

                                      Same problem here. I'm not sure if it has to do with the security update or just with the month.

                                      I'm pretty sure its not a Xcode 9 issue, I still use Xcode 8.1 and got this log

                                      • Re: Xcode 9 Log: "Month 13 is out of bounds"
                                        musanim Level 1 Level 1 (0 points)

                                        Me too.

                                        • Re: Xcode 9 Log: "Month 13 is out of bounds"
                                          spencergra Level 1 Level 1 (0 points)

                                          Same problem here.

                                           

                                          Repeated 7 times for me.

                                           

                                          Quick fix:

                                          Set Date & Time to yesterday :/

                                          • Re: Xcode 9 Log: "Month 13 is out of bounds"
                                            Gargantua Level 1 Level 1 (0 points)

                                            Still the same here.

                                            Taking a closer look at console shows that there are at least 37 apps throwing this error

                                             

                                            Greetings from Switzerland, Ronald

                                            ---

                                             

                                            error 04:49:58.023050 +0100 AirPlayUIAgent Month 13 is out of bounds

                                            error 04:49:58.040260 +0100 amfid Month 13 is out of bounds

                                            error 04:49:58.299699 +0100 bird Month 13 is out of bounds

                                            error 04:49:58.462257 +0100 bluetoothd Month 13 is out of bounds

                                            error 04:50:00.240257 +0100 CalendarAgent Month 13 is out of bounds

                                            error 04:50:00.798840 +0100 com.apple.WebKit.Databases Month 13 is out of bounds

                                            error 04:50:00.847246 +0100 com.apple.WebKit.Plugin.32 Month 13 is out of bounds

                                            error 04:50:00.882614 +0100 com.apple.WebKit.Plugin.64 Month 13 is out of bounds

                                            error 04:50:01.088995 +0100 Console Month 13 is out of bounds

                                            error 04:50:01.110521 +0100 CoreServicesUIAgent Month 13 is out of bounds

                                            error 04:50:01.245818 +0100 DeeTee-Saver Month 13 is out of bounds

                                            error 04:50:01.268254 +0100 deleted Month 13 is out of bounds

                                            error 04:50:01.269257 +0100 Dock Month 13 is out of bounds

                                            error 04:50:01.344761 +0100 FeilTeiperX Month 13 is out of bounds

                                            error 04:50:01.404056 +0100 FolderActionsDispatcher Month 13 is out of bounds

                                            error 04:50:01.424367 +0100 GoogleSoftwareUpdateAgent Month 13 is out of bounds

                                            error 04:50:01.702894 +0100 iTunes Month 13 is out of bounds

                                            error 04:50:01.788291 +0100 iTunesHelper Month 13 is out of bounds

                                            error 04:50:06.139197 +0100 Keyboard Maestro Engine Month 13 is out of bounds

                                            error 04:50:06.223922 +0100 LaterAgent Month 13 is out of bounds

                                            error 04:50:06.254390 +0100 launchservicesd Month 13 is out of bounds

                                            error 04:50:08.437549 +0100 loginwindow Month 13 is out of bounds

                                            error 04:50:08.438418 +0100 nbagent Month 13 is out of bounds

                                            error 04:50:08.559519 +0100 NeoFinder Global QuickFind Month 13 is out of bounds

                                            error 04:50:08.560158 +0100 OneDrive Month 13 is out of bounds

                                            error 04:50:09.536177 +0100 OneDriveLauncher Month 13 is out of bounds

                                            error 04:50:09.538335 +0100 Photos Month 13 is out of bounds

                                            error 04:50:09.558506 +0100 softwareupdated Month 13 is out of bounds

                                            error 04:50:09.558506 +0100 storeassetd Month 13 is out of bounds

                                            error 04:50:09.560374 +0100 storeuid Month 13 is out of bounds

                                            error 04:50:09.941054 +0100 Swiftify Month 13 is out of bounds

                                            error 04:50:09.941096 +0100 TextWrangler Month 13 is out of bounds

                                            error 04:50:09.953221 +0100 TMHelperAgent Month 13 is out of bounds

                                            error 04:50:09.953263 +0100 trustd Month 13 is out of bounds

                                            error 04:50:09.982013 +0100 TypeIt4Me Month 13 is out of bounds

                                            error 04:50:09.982052 +0100 UserEventAgent Month 13 is out of bounds

                                            error 04:50:10.013993 +0100 Xcode Month 13 is out of bounds

                                              • Re: Xcode 9 Log: "Month 13 is out of bounds"
                                                spencergra Level 1 Level 1 (0 points)

                                                I believe the error is caused when any application tries to access data files such as plists.

                                                 

                                                After a restart, my RAM usage was over 100% and same with the CPU. UserEventAgent was causing issues, because it was trying to load

                                                System/Library/LaunchAgents/com.apple.UserEventAgent-Aqua.plist
                                                
                                                

                                                and

                                                System/Library/LaunchAgents/com.apple.UserEventAgent-LoginWindow.plist
                                                
                                                

                                                unsucessfully.

                                                 

                                                The process "***" was also having some issues which resulted in extremely high RAM and CPU usage, and printed the following to the console, along with about 100 other applications on the computer.

                                                Month 13 is out of bounds
                                                
                                                

                                                 

                                                To fix the issue

                                                 

                                                1. If you're not having troubles using the computer, then set your date to anytime before December 2017
                                                2. If you are having issues then kill UserEventAgent in Activity Monitor and complete step #1 before it comes back to use up more memory.
                                                  • Re: Xcode 9 Log: "Month 13 is out of bounds"
                                                    tgray1 Level 1 Level 1 (0 points)

                                                    This bug is killing my computer. UserEventAgent CPU pegs at 100% and ram usage goes up (past 30 GB if I wait long enough). Resetting the date earlier and then killing the process fixes it. The out of control process didn’t kick in right away; I think I had to reboot first.  Someone on Stack Exchange thinks it has to do with plist files that are read. When I sampled the process from Activity Monitor and there were a ton of mentions of various date methods. I wonder if this is related to the iOS date bug that was just patched? Whatever it is, it has made my laptop useless. I hope some reports this properly to Apple.

                                                    • Re: Xcode 9 Log: "Month 13 is out of bounds"
                                                      Solublepeter Level 1 Level 1 (10 points)

                                                      Seems linked to plists, yes.

                                                       

                                                      I get the same error just from doing writeToFile on a .plist

                                                  • Re: Xcode 9 Log: "Month 13 is out of bounds"
                                                    Tlaloc Level 1 Level 1 (0 points)

                                                    I have the same problem with XCode 9.1. This text is definitely not in my project.

                                                    • Re: Xcode 9 Log: "Month 13 is out of bounds"
                                                      Tlaloc Level 1 Level 1 (0 points)

                                                      I restarted my Computer and opened the Console. Launching the Console logs this message six times. I didn't have this message before installing the recent security update. All kinds of processes log this message, even if XCode is not running. This is an OS X bug, not XCode or your project.

                                                      • Re: Xcode 9 Log: "Month 13 is out of bounds"
                                                        Tlaloc Level 1 Level 1 (0 points)

                                                        I googled this. It's a Mac OS X 10.13. x bug. For some users it's breaking their machine. Earth to Apple, Earth to Apple, come in Apple.

                                                          • Re: Xcode 9 Log: "Month 13 is out of bounds"
                                                            dwarfland Level 1 Level 1 (0 points)

                                                            > Earth to Apple, Earth to Apple, come in Apple.

                                                             

                                                            this is not the channel to report bugs to Apple, really...

                                                            • Re: Xcode 9 Log: "Month 13 is out of bounds"
                                                              Hejong Level 1 Level 1 (0 points)

                                                              The update to 10.13.2 did not resolve the issue.

                                                                • Re: Xcode 9 Log: "Month 13 is out of bounds"
                                                                  Macho Man Randy Savage Level 3 Level 3 (355 points)

                                                                  Didn't install it yet myself. Just took a look at the Release Note. At least they improved Voiceover navigation in Preview. So it is not a total loss.

                                                                   

                                                                  Nothing in the release notes about App preferences (NSUserDefaults) being fixed either, though I got my fingers crossed that that fix is included as part of improved "stability, and compatibility" of your Mac. I'm holding my breath. Won't be able to update until later tonight though.

                                                                   

                                                                  Apparently here is the source:

                                                                   

                                                                  h t t p s : / / github.com/apple/swift-corelibs-foundation/blob/master/CoreFoundation/NumberDate.subproj/CFDate.c

                                                                   

                                                                  #define ASSERT_VALID_MONTH(month) do { if (!((month) >= 1 && (month) <= 12)) { os_log_error(OS_LOG_DEFAULT, "Month %d is out of bounds", (int)month); / HALT */ } } while(0)
                                                                  
                                                              • Re: Xcode 9 Log: "Month 13 is out of bounds"
                                                                Tora Level 1 Level 1 (0 points)

                                                                Same to me. In my case the questioned log message appears when File > New is selected and later, every several secondes.


                                                                When the CoreFoundation saves some information on a Document-based application to ~/Library/Autosave Information/xxxxx.plist, something goes wrong.

                                                                NSApplicationMain internally calls CFAbsoluteTimeGetGregorianDate(), which calls __CFYMDFromAbsolute(), which compares (actually subtracts 0xd i.e. 13 from a register r15d), then ..., logs the error message.


                                                                /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
                                                                CoreFoundation`__CFYMDFromAbsolute:
                                                                    0x7fff417f7050 <+0>:    pushq  %rbp
                                                                    0x7fff417f7051 <+1>:    movq   %rsp, %rbp
                                                                    ...
                                                                    0x7fff417f73d8 <+904>:  cmpl   $0xd, %r15d
                                                                    0x7fff417f73dc <+908>:  movb   %r14b, %r13b
                                                                    0x7fff417f73df <+911>:  jl     0x7fff417f7398            ; <+840>
                                                                    0x7fff417f73e1 <+913>:  movl   $0x10, %esi
                                                                    0x7fff417f73e6 <+918>:  movq   %rbx, %rdi
                                                                    0x7fff417f73e9 <+921>:  callq  0x7fff4190a194            ; symbol stub for: os_log_type_enabled
                                                                    0x7fff417f73ee <+926>:  testb  %al, %al
                                                                    0x7fff417f73f0 <+928>:  movb   %r14b, %r13b
                                                                    0x7fff417f73f3 <+931>:  je     0x7fff417f7398            ; <+840>
                                                                    0x7fff417f73f5 <+933>:  jmp    0x7fff417f7350            ; <+768>
                                                                    ...
                                                                    0x7fff417f7350 <+768>:  movq   %rsp, %r13
                                                                    0x7fff417f7353 <+771>:  movq   %rsp, %rax
                                                                    0x7fff417f7356 <+774>:  leaq   -0x10(%rax), %r8
                                                                    0x7fff417f735a <+778>:  movq   %r8, %rsp
                                                                    0x7fff417f735d <+781>:  movb   $0x0, -0x10(%rax)
                                                                    0x7fff417f7361 <+785>:  movb   $0x1, -0xf(%rax)
                                                                    0x7fff417f7365 <+789>:  movb   $0x0, -0xe(%rax)
                                                                    0x7fff417f7369 <+793>:  movb   $0x4, -0xd(%rax)
                                                                    0x7fff417f736d <+797>:  movl   %r15d, -0xc(%rax)
                                                                    0x7fff417f7371 <+801>:  movl   $0x10, %edx
                                                                    0x7fff417f7376 <+806>:  movl   $0x8, %r9d
                                                                    0x7fff417f737c <+812>:  leaq   -0xda383(%rip), %rdi
                                                                    0x7fff417f7383 <+819>:  movq   %rbx, %rsi
                                                                    0x7fff417f7386 <+822>:  leaq   0x3afb13(%rip), %rcx      ; "Month %d is out of bounds"
                                                                    0x7fff417f738d <+829>:  callq  0x7fff41909b4c            ; symbol stub for: _os_log_error_impl
                                                                
                                                                (lldb) bt
                                                                * thread #1, queue = 'com.apple.main-thread', stop reason = watchpoint 1
                                                                    frame #0: 0x00007fff68e4b664 libsystem_c.dylib`strcspn + 25
                                                                    frame #1: 0x00007fff6904bb26 libsystem_trace.dylib`os_log_fmt_compose + 1271
                                                                    frame #2: 0x00007fff69051c8b libsystem_trace.dylib`_os_log_impl_compose + 132
                                                                    frame #3: 0x00007fff690516bd libsystem_trace.dylib`_os_log_impl_mirror_to_stderr + 385
                                                                    frame #4: 0x00007fff690511a2 libsystem_trace.dylib`_os_log_impl_flatten_and_send + 5512
                                                                    frame #5: 0x00007fff6904fbfb libsystem_trace.dylib`_os_log_error_impl + 87
                                                                  * frame #6: 0x00007fff417f7392 CoreFoundation`__CFYMDFromAbsolute + 834
                                                                    frame #7: 0x00007fff417f6f3b CoreFoundation`CFAbsoluteTimeGetGregorianDate + 91
                                                                    frame #8: 0x00007fff417d3660 CoreFoundation`_CFAppendXML0 + 2240
                                                                    frame #9: 0x00007fff417d38fe CoreFoundation`_CFAppendXML0 + 2910
                                                                    frame #10: 0x00007fff417d30ac CoreFoundation`_CFAppendXML0 + 780
                                                                    frame #11: 0x00007fff417d2b8a CoreFoundation`_CFPropertyListCreateXMLData + 202
                                                                    frame #12: 0x00007fff4179ce77 CoreFoundation`CFPropertyListCreateData + 135
                                                                    frame #13: 0x00007fff438b0090 Foundation`+[NSPropertyListSerialization dataWithPropertyList:format:options:error:] + 37
                                                                    frame #14: 0x00007fff4392babd Foundation`-[NSArray(NSArray) writeToFile:atomically:] + 164
                                                                    frame #15: 0x00007fff3f12ad24 AppKit`-[NSDocumentController(NSInternal) _writeAutoreopenRecords:] + 625
                                                                    frame #16: 0x00007fff3f12aa22 AppKit`-[NSDocumentController(NSInternal) _writeAutoreopenRecordsForOpenDocuments] + 250
                                                                    frame #17: 0x00007fff3f954603 AppKit`-[NSDocument(NSDocumentSaving) _finishSavingToURL:ofType:forSaveOperation:changeCount:] + 938
                                                                    frame #18: 0x00007fff3f956beb AppKit`__85-[NSDocument(NSDocumentSaving) _saveToURL:ofType:forSaveOperation:completionHandler:]_block_invoke_2.1047 + 229
                                                                    frame #19: 0x00007fff3f9568c6 AppKit`__85-[NSDocument(NSDocumentSaving) _saveToURL:ofType:forSaveOperation:completionHandler:]_block_invoke.1046 + 204
                                                                    frame #20: 0x00007fff3f9583c7 AppKit`__85-[NSDocument(NSDocumentSaving) _saveToURL:ofType:forSaveOperation:completionHandler:]_block_invoke_2.1146 + 589
                                                                    frame #21: 0x00007fff3f95816b AppKit`__85-[NSDocument(NSDocumentSaving) _saveToURL:ofType:forSaveOperation:completionHandler:]_block_invoke.1143 + 454
                                                                    frame #22: 0x00007fff3f9563d3 AppKit`__85-[NSDocument(NSDocumentSaving) _saveToURL:ofType:forSaveOperation:completionHandler:]_block_invoke_3.999 + 1962
                                                                    frame #23: 0x00007fff3f395214 AppKit`-[NSDocument(NSDocumentSerializationAPIs) continueFileAccessUsingBlock:] + 238
                                                                    frame #24: 0x00007fff3f95348d AppKit`__119-[NSDocument(NSDocumentSaving) _fileCoordinator:asynchronouslyCoordinateReadingContentsAndWritingItemAtURL:byAccessor:]_block_invoke_2 + 94
                                                                    frame #25: 0x00007fff3f313cac AppKit`__62-[NSDocumentController(NSInternal) _onMainThreadInvokeWorker:]_block_invoke.2153 + 157
                                                                    frame #26: 0x00007fff417bc79c CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
                                                                    frame #27: 0x00007fff4179f713 CoreFoundation`__CFRunLoopDoBlocks + 275
                                                                    frame #28: 0x00007fff4179f4d8 CoreFoundation`__CFRunLoopRun + 3128
                                                                    frame #29: 0x00007fff4179e607 CoreFoundation`CFRunLoopRunSpecific + 487
                                                                    frame #30: 0x00007fff40ab3866 HIToolbox`RunCurrentEventLoopInMode + 286
                                                                    frame #31: 0x00007fff40ab35d6 HIToolbox`ReceiveNextEventCommon + 613
                                                                    frame #32: 0x00007fff40ab3354 HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter + 64
                                                                    frame #33: 0x00007fff3edb144f AppKit`_DPSNextEvent + 2085
                                                                    frame #34: 0x00007fff3f546508 AppKit`-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 3044
                                                                    frame #35: 0x00007fff3eda625d AppKit`-[NSApplication run] + 764
                                                                    frame #36: 0x00007fff3ed753fe AppKit`NSApplicationMain + 804
                                                                    frame #37: 0x0000000100061b6d xxxxx`main at AppDelegate.swift:13
                                                                    frame #38: 0x00007fff68da2145 libdyld.dylib`start + 1
                                                                    frame #39: 0x00007fff68da2145 libdyld.dylib`start + 1
                                                                
                                                                Simulate what CoreFoundation does:
                                                                (lldb) platform shell TZ=GMT date
                                                                Sun Dec  3 02:17:12 GMT 2017
                                                                (lldb) p (double)CFAbsoluteTimeGetCurrent()
                                                                (double) $8 = 533960243.91267997
                                                                (lldb) p/x (long)CFAbsoluteTimeGetGregorianDate(533960243.91267997, NULL)
                                                                2017-12-03 11:17:49.458467+0900 xxxxx[93243:38316408] Month 13 is out of bounds
                                                                (long) $9 = 0x1102030c000007e1
                                                                
                                                                Bingo! The error message appears.
                                                                
                                                                What about a returned value?
                                                                (lldb) p 0x00007e1
                                                                (int) $10 = 2017
                                                                (lldb) p 0x0c
                                                                (int) $11 = 12
                                                                (lldb) p 0x03
                                                                (int) $12 = 3
                                                                (lldb) p 0x02
                                                                (int) $13 = 2
                                                                (lldb) p 0x11
                                                                (int) $14 = 17
                                                                
                                                                Looks good with 2017-12-03 02:17.
                                                                
                                                                What about the contents of the file xxxxx.plist?
                                                                
                                                                <?xml version="1.0" encoding="UTF-8"?>
                                                                ...
                                                                <plist version="1.0">
                                                                <array>
                                                                  <dict>
                                                                  ...
                                                                  <date>2017-12-02T16:13:24Z</date>
                                                                
                                                                The element <date> has a date converted by the above function, which looks fine, too.
                                                                

                                                                 

                                                                MacOS 10.13, Xcode Version 9.0 (9A235).


                                                                I hope somebody skillful find a primary cause.

                                                                  • Re: Xcode 9 Log: "Month 13 is out of bounds"
                                                                    Macho Man Randy Savage Level 3 Level 3 (355 points)

                                                                    Didn't Apple use to Open Source part of CoreFoundation (CFLite)?

                                                                     

                                                                    I think they stopped releasing it a few macOS versions ago though.

                                                                      • Re: Xcode 9 Log: "Month 13 is out of bounds"
                                                                        Jean-Daniel From Paris Level 1 Level 1 (0 points)

                                                                        Up-to-date and far more complete CoreFoundation is now part of the Swift Core Libraries:

                                                                         

                                                                        https://github.com/apple/swift-corelibs-foundation/tree/master/CoreFoundation

                                                                        • Re: Xcode 9 Log: "Month 13 is out of bounds"
                                                                          Tora Level 1 Level 1 (0 points)

                                                                          I have just looked through assembler code of the questioned function __CFYMDFromAbsolute of MacOS X 10.13 with Xcode.

                                                                           

                                                                          Macho Man Randy Savage, as you mentioned, it resembles that of open source version found in opensource.apple.com/source/CF/CF-744/CFDate.c.

                                                                          Differences are that some validation codes confirming the value of month have been added in a three different locations within the function.

                                                                           

                                                                          static void __CFYMDFromAbsolute(int64_t absolute, int64_t *year, int8_t *month, int8_t *day) {
                                                                              ....
                                                                          
                                                                              if (month || day) {
                                                                                  int8_t m = absolute / 33 + 1; / search from the approximation */
                                                                                  bool leap = isleap(y);
                                                                                  while (__CFDaysBeforeMonth(m + 1, y, leap) <= absolute) m++;
                                                                          
                                                                                  // Caution: Inaccurate! i am not a hacker 
                                                                                  // it seems that one of the validation codes has been incorporated around here, like this:
                                                                          
                                                                                  int8_t tmp = m + 1;
                                                                                  if (m < 0 || 13 <= tmp) {
                                                                                      // /usr/include/os/log.h  /usr/lib/system/libsystem_trace.dylib
                                                                                      if (os_log_type_enabled(oslog, OS_LOG_TYPE_ERROR)) {
                                                                                          uint8_t buf[16];
                                                                                          buf[0] = 0;
                                                                                          buf[1] = 1;
                                                                                          buf[2] = 0;
                                                                                          buf[3] = 4;
                                                                                          *((int32_t *) &buf[4]) = tmp;
                                                                                          _os_log_error_impl(dso, oslog, OS_LOG_TYPE_ERROR, "Month %d is out of bounds", buf, 8);
                                                                                      }
                                                                                  }
                                                                          
                                                                                  if (month) *month = m;
                                                                                  if (day) *day = absolute - __CFDaysBeforeMonth(m, y, leap) + 1;
                                                                              }
                                                                          }
                                                                          
                                                                          
                                                                          
                                                                          
                                                                          
                                                                          
                                                                          

                                                                           

                                                                          I guess they have already addressed this issue and the fix stands by for the future release.

                                                                      • Re: Xcode 9 Log: "Month 13 is out of bounds"
                                                                        alanhutchison Level 1 Level 1 (0 points)

                                                                        Same issue on a mid-2011 iMac that was upgraded to High Sierra on Dec 2.  CPU goes crazy and run out of memory within a minute of rebooting.  Setting the date back to November fixes the issue and we will stay there until hopefully we get an Apple fix.  BTW - no issues in safe mode.

                                                                        • Re: Xcode 9 Log: "Month 13 is out of bounds"
                                                                          JoshGuGu Level 1 Level 1 (0 points)

                                                                          You may try this for fix the issue temporary,

                                                                          Just disable ReportCrash process,

                                                                          When Apple fixed the issue, you can re-enable it or not.

                                                                          After try those command will still get "Month 13 is out of bounds", But cpu will calm down.

                                                                           

                                                                          Disable ReportCrash

                                                                          launchctl unload -w /System/Library/LaunchAgents/com.apple.ReportCrash.plist

                                                                          sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.ReportCrash.Root.plist

                                                                           

                                                                          Enable ReportCrash

                                                                          launchctl load -w /System/Library/LaunchAgents/com.apple.ReportCrash.plist

                                                                          sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.ReportCrash.Root.plist

                                                                          • Re: Xcode 9 Log: "Month 13 is out of bounds"
                                                                            Tlaloc Level 1 Level 1 (0 points)

                                                                            Today Apple released the OSX 10.13.2 update. It doesn't fix the Month 13 bug. The "Earth to nn" expression is derived from Flash Gordon movies. It's a sort of (three letter acronym censored by Apple).

                                                                            • Re: Xcode 9 Log: "Month 13 is out of bounds"
                                                                              absinth Level 1 Level 1 (0 points)

                                                                              indeed 10.3.2 did not fix this. omg, this so poor Apple. now we gotta wait another 6 weeks for the next chance for a fix.

                                                                               

                                                                              the certainity that this would be fixed in 10.3.2 was the only reason i upgraded. what a disappointment.

                                                                              • Re: Xcode 9 Log: "Month 13 is out of bounds"
                                                                                poles Level 1 Level 1 (0 points)

                                                                                Same problem. In my case while accesing systemgroup.com.apple.configurationprofiles plist I'm getting Month 13 is out of bounds message.

                                                                                 

                                                                                Day by day Apple is producing more buggy softwares. Even newly released PDFKit Framework for iOS 11 is full of bugs

                                                                                • Re: Xcode 9 Log: "Month 13 is out of bounds"
                                                                                  MaddinQ Level 1 Level 1 (0 points)

                                                                                  16.200 entries of " Month 13 is out of bounds " in less than 4hours ... are you kidding me

                                                                                  • Re: Xcode 9 Log: "Month 13 is out of bounds"
                                                                                    andreasfromvancouver Level 1 Level 1 (0 points)

                                                                                    Hey Guys,

                                                                                     

                                                                                    I get the same error messag too,  and I am not doing anything with date and time... except I have one timer thread triggering itself every 1/50 of a second, but the "month 13" message comes on every minute or so, AND it tries to crash the app I am working on with the swirling rainbow circle of death. Yeesh!

                                                                                     

                                                                                    This message is definitely a system based thing that has absolutely nothing to do with the code we are writing. There are so many executive functions going on in the background of osx that it is anyones guess what is really going on.

                                                                                     

                                                                                    There is so much bulk in these OS's I wonder if Apple or anyone else would consider having some of it trimmed down in new or alternate nerd versions of their operating system? I would be their first customer!

                                                                                     

                                                                                    Greetings Andreas :>)