{"issue":{"created_at":"2011-11-03T12:50:04Z","state":"closed","updated_at":"2011-11-26T21:40:27Z","comments":0,"user":{"gravatar_id":"5dd802863a8031eddea905adb7e14652","id":520959,"url":"https://api.github.com/users/bernardomporto","login":"bernardomporto","avatar_url":"https://secure.gravatar.com/avatar/5dd802863a8031eddea905adb7e14652?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"I download the latest Objective-C library (as of a few minutes ago), built it, and linked it into my app.  But now it crashes when I initialize the defaultTracker (even before I track any events).\r\n\r\nMy code looks like this in applicationDidFinishLaunching:\r\n\r\n     #ifdef DESKMETRICS\r\n        // Initialize remote event tracking.\r\n        NSLog(@\"Starting DeskMetrics...\");\r\n     \r\n        NSDate *start = [NSDate date];\r\n        self.tracker = [DMTracker defaultTracker];\r\n        [self.tracker startApp];\r\n        NSTimeInterval elapsedTime = -[start timeIntervalSinceNow];\r\n    \r\n        NSLog(@\"Started DeskMetrics [%.3f sec]\", elapsedTime);\r\n\r\n        // TODO: Remove this once DeskMetrics is working.\r\n        [self.tracker trackLog:@\"Tracker started\"];\r\n      #endif\r\n\r\n\r\n\r\n011-10-28 19:02:11.861 Box[2998:903] Starting DeskMetrics...\r\n2011-10-28 19:02:11.862 Box[2998:903] -[DMRequester init], line 51: URL: https://4ea4801aa14ad70de3000000.api.deskmetrics.com/sendData\r\n2011-10-28 19:02:11.866 Box[2998:903] -[DMRequester send:], line 97: Sending data: [{\"tp\":\"ev\",\"ts\":1319497093,\"fl\":\"19\",\"nm\":\"get_updates\",\"ss\":\"2C164720-56AC-43EB-9CAD-D0474AEFBC73\",\"ca\":\"Box API call\"},{\"tp\":\"ev\",\"ts\":1319497153,\"fl\":\"20\",\"nm\":\"get_updates\",\"ss\":\"2C164720-56AC-43EB-9CAD-D0474AEFBC73\",\"ca\":\"Box API call\"},{\"ss\":\"2C164720-56AC-43EB-9CAD-D0474AEFBC73\",\"ts\":1319497154},{\"ss\":\"2C164720-56AC-43EB-9CAD-D0474AEFBC73\",\"ts\":1319497155}]\r\n(gdb) bt\r\n#0  0x00007fff83477530 in CFSetApplyFunction ()\r\n#1  0x00007fff82f73e1c in RunLoopMultiplexer::sourceForScheduling ()\r\n#2  0x00007fff82f73d98 in RunLoopMultiplexer::schedule ()\r\n#3  0x00007fff82f73d03 in URLConnectionClient::start ()\r\n#4  0x0000000100086cc8 in -[DMRequester send:] (self=0x1001bf7a0, _cmd=0x7fff85ae9548, events=0x1001c4710) at /Users/mself/src/jorgenpt-ObjectiveMetrics-d7c8bb7/ObjectiveMetrics/DMRequester.m:146\r\n#5  0x000000010007e707 in -[DMTrackingQueue sendEvents:] (self=0x1001bf080, _cmd=0x10008aeac, sentEvents=0x1001c4710) at /Users/mself/src/jorgenpt-ObjectiveMetrics-d7c8bb7/ObjectiveMetrics/DMTrackingQueue.m:104\r\n#6  0x000000010007e9d3 in -[DMTrackingQueue flush] (self=0x1001bf080, _cmd=0x7fff84caf082) at /Users/mself/src/jorgenpt-ObjectiveMetrics-d7c8bb7/ObjectiveMetrics/DMTrackingQueue.m:125\r\n#7  0x000000010007bfbf in -[DMTracker init] (self=0x1001becd0, _cmd=0x7fff84c9aac8) at /Users/mself/src/jorgenpt-ObjectiveMetrics-d7c8bb7/ObjectiveMetrics/DMTracker.m:141\r\n#8  0x000000010007bab2 in +[DMTracker defaultTracker] (self=0x100090be8, _cmd=0x7fff83802e8f) at /Users/mself/src/jorgenpt-ObjectiveMetrics-d7c8bb7/ObjectiveMetrics/DMTracker.m:101\r\n#9  0x0000000100001f3b in -[BFSAppDelegate applicationDidFinishLaunching:] (self=0x1005271d0, _cmd=0x7fff88df2f07, notification=0x10056c830) at /Users/mself/src/platform/apple/macos/BoxFS/Sources/BFSAppDelegate.m:230\r\n#10 0x00007fff85ee2bc5 in _nsnote_callback ()\r\n#11 0x00007fff83499000 in __CFXNotificationPost ()\r\n#12 0x00007fff83485578 in _CFXNotificationPostNotification ()\r\n#13 0x00007fff85ed9b26 in -[NSNotificationCenter postNotificationName:object:userInfo:] ()\r\n#14 0x00007fff845d644a in -[NSApplication _postDidFinishNotification] ()\r\n#15 0x00007fff845d637f in -[NSApplication _sendFinishLaunchingNotification] ()\r\n#16 0x00007fff846a135d in -[NSApplication(NSAppleEventHandling) _handleAEOpen:] ()\r\n#17 0x00007fff846a0fd9 in -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] ()\r\n#18 0x00007fff85f111c6 in -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] ()\r\n#19 0x00007fff85f10ff6 in _NSAppleEventManagerGenericHandler ()\r\n#20 0x00007fff83b2c32b in aeDispatchAppleEvent ()\r\n#21 0x00007fff83b2c224 in dispatchEventAndSendReply ()\r\n#22 0x00007fff83b2c12b in aeProcessAppleEvent ()\r\n#23 0x00007fff80037619 in AEProcessAppleEvent ()\r\n#24 0x00007fff845a6095 in _DPSNextEvent ()\r\n#25 0x00007fff845a5801 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] ()\r\n#26 0x00007fff8456b68f in -[NSApplication run] ()\r\n#27 0x00007fff845643b0 in NSApplicationMain ()\r\n#28 0x0000000100005812 in main (argc=1, argv=0x7fff5fbff738) at\r\n(gdb) ","assignee":null,"number":18,"id":2132069,"labels":[],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"Crashes when initialize defaultTracker","closed_at":"2011-11-26T21:40:27Z","html_url":"https://github.com/jorgenpt/ObjectiveMetrics/issues/18","milestone":null,"url":"https://api.github.com/repos/jorgenpt/ObjectiveMetrics/issues/18"},"action":"closed"}