[OS X] WhatPulse crashes after a few hours

It has happened for the past few months, as you can see by the countless gaps in my pulse history.
Using WhatPulse 2.3.1 with no updates available, here is the diagnostic crash report. It’s always the same.

Process: whatpulse [374] Path: /Applications/WhatPulse.app/Contents/MacOS/whatpulse Identifier: com.whatpulse.mac Responsible: whatpulse [374] 14 com.whatpulse.mac 0x000000010000ea51 main + 2865 15 com.whatpulse.mac 0x0000000100006694 start + 52 0x100000000 - 0x1002c0fff +com.whatpulse.mac (2.3.1) <E2E445CE-1CF1-3287-BDCA-28558D8F7120> /Applications/WhatPulse.app/Contents/MacOS/whatpulse 0x100334000 - 0x100352ff7 +org.andymatuschak.Sparkle (1.5 Beta [git] - 1.5) <1D72198B-8C6F-3EF2-9C31-DC02D91DA10D> /Applications/WhatPulse.app/Contents/Frameworks/Sparkle.framework/Versions/A/Sparkle 0x10036a000 - 0x1019bcff7 +QtWebKit (4.9.4) <DD4D51A5-5FDE-F8E0-1654-738C04B397AA> /Applications/WhatPulse.app/Contents/Frameworks/QtWebKit.framework/Versions/4/QtWebKit 0x101d69000 - 0x101fc1ff7 +QtScript (4.8.5) <93CCE7E6-782B-3AD3-1AC4-16DD48065018> /Applications/WhatPulse.app/Contents/Frameworks/QtScript.framework/Versions/4/QtScript 0x10201a000 - 0x1022f4fe7 +QtCore (4.8.5) <4172EABD-46BE-2722-C849-F7FB5632DED2> /Applications/WhatPulse.app/Contents/Frameworks/QtCore.framework/Versions/4/QtCore 0x102360000 - 0x102397ff7 +QtSql (4.8.5) <BEF8F819-ED6C-4CF1-8D73-C71A55DB3ACE> /Applications/WhatPulse.app/Contents/Frameworks/QtSql.framework/Versions/4/QtSql 0x1023aa000 - 0x102dc6ff7 +QtGui (4.8.5) <CD803C71-F94D-524C-1A39-07D1A339A0F0> /Applications/WhatPulse.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui 0x102fa5000 - 0x1030e7fe7 +QtNetwork (4.8.5) <7FC3FD1E-2A18-3B59-022E-0ACA3211C6E8> /Applications/WhatPulse.app/Contents/Frameworks/QtNetwork.framework/Versions/4/QtNetwork 0x107097000 - 0x10709dff7 +libqgif.dylib (0) <A8811843-AF83-F4AB-C0F5-1DECE61AD171> /Applications/WhatPulse.app/Contents/PlugIns/imageformats/libqgif.dylib 0x1070a1000 - 0x1070a7ff7 +libqico.dylib (0) <64666B1C-5499-57FF-7180-7F4B39D136AE> /Applications/WhatPulse.app/Contents/PlugIns/imageformats/libqico.dylib 0x1070ac000 - 0x1070e7ff7 +libqjpeg.dylib (0) <EEF8D311-049A-6E08-A6FA-4C6B02E21292> /Applications/WhatPulse.app/Contents/PlugIns/imageformats/libqjpeg.dylib 0x1070ec000 - 0x107140fe7 +libqmng.dylib (0) <21BB7157-69D9-E507-D9C3-7D9C025B9EC8> /Applications/WhatPulse.app/Contents/PlugIns/imageformats/libqmng.dylib 0x107148000 - 0x10714cfff +libqtga.dylib (0) <96E0BE59-E38B-4FD8-1A0E-18A615EC3A2C> /Applications/WhatPulse.app/Contents/PlugIns/imageformats/libqtga.dylib 0x107150000 - 0x1071a5fe7 +libqtiff.dylib (0) <397A275D-A9A3-B69B-CC79-6A18210EA06E> /Applications/WhatPulse.app/Contents/PlugIns/imageformats/libqtiff.dylib 0x1071ad000 - 0x1071b8fff +libqgenericbearer.dylib (0) <F9287D24-2B9C-0A5D-9707-B4577B3F8677> /Applications/WhatPulse.app/Contents/PlugIns/bearer/libqgenericbearer.dylib 0x107262000 - 0x10727afe7 +libqcorewlanbearer.dylib (0) <CAF690D7-F528-0536-B902-7C79A2696C8A> /Applications/WhatPulse.app/Contents/PlugIns/bearer/libqcorewlanbearer.dylib

Almost looks like your system has a problem with the updater framework…try turning ‘check for updates’ off and see how that goes.

I disabled the check for updates, now it crashed with a different error. Please note it crashed immediately after waking up from sleep.

Process:         whatpulse [44048]
Path:            /Applications/WhatPulse.app/Contents/MacOS/whatpulse
Identifier:      com.whatpulse.mac
Version:         2.3.1
Code Type:       X86-64 (Native)
Parent Process:  launchd [275]
Responsible:     whatpulse [44048]
User ID:         501

Date/Time:       2014-02-09 09:25:45.459 +0100
OS Version:      Mac OS X 10.9.1 (13B42)
Report Version:  11
Anonymous UUID:  C459A0D1-12EE-9040-725B-D10AF9F7AF0B

Sleep/Wake UUID: 467B38D9-7B53-46DC-BA34-A6398893A735

Crashed Thread:  11  Dispatch queue: com.apple.root.default-priority

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000

Application Specific Information:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[QNSListener notificationHandler:]: unrecognized selector sent to instance 0x608000444710'
abort() called
terminating with uncaught exception of type NSException

Application Specific Backtrace 1:
0   CoreFoundation                      0x00007fff9115241c __exceptionPreprocess + 172
1   libobjc.A.dylib                     0x00007fff8a310e75 objc_exception_throw + 43
2   CoreFoundation                      0x00007fff911552ed -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
3   CoreFoundation                      0x00007fff910b05b2 ___forwarding___ + 1010
4   CoreFoundation                      0x00007fff910b0138 _CF_forwarding_prep_0 + 120
5   CoreFoundation                      0x00007fff91120fcc __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
6   CoreFoundation                      0x00007fff91014c5d _CFXNotificationPost + 2893
7   libdispatch.dylib                   0x00007fff91ef31d7 _dispatch_call_block_and_release + 12
8   libdispatch.dylib                   0x00007fff91ef02ad _dispatch_client_callout + 8
9   libdispatch.dylib                   0x00007fff91ef209e _dispatch_root_queue_drain + 326
10  libdispatch.dylib                   0x00007fff91ef3193 _dispatch_worker_thread2 + 40
11  libsystem_pthread.dylib             0x00007fff8cda8ef8 _pthread_wqthread + 314
12  libsystem_pthread.dylib             0x00007fff8cdabfb9 start_wqthread + 13

You can find the full crash dump here: http://pastebin.com/m9VipCh8

Mine also seems to crash sometimes when waking from sleep… Crash log: http://pastebin.com/Szn4MKSg

Any update? It keeps crashing on a regular basis. Here is another crash report:

Process:         whatpulse [746]
Path:            /Applications/WhatPulse.app/Contents/MacOS/whatpulse
Identifier:      com.whatpulse.mac
Responsible:     whatpulse [746]
1   com.whatpulse.mac             	0x000000010005ab9c Stat::update() + 28
2   com.whatpulse.mac             	0x0000000100059f63 Collector::update() + 467
24  com.whatpulse.mac             	0x000000010000ea51 main + 2865
25  com.whatpulse.mac             	0x0000000100006694 start + 52
       0x100000000 -        0x1002c0fff +com.whatpulse.mac (2.3.1) <E2E445CE-1CF1-3287-BDCA-28558D8F7120> /Applications/WhatPulse.app/Contents/MacOS/whatpulse
       0x100334000 -        0x100352ff7 +org.andymatuschak.Sparkle (1.5 Beta [git] - 1.5) <1D72198B-8C6F-3EF2-9C31-DC02D91DA10D> /Applications/WhatPulse.app/Contents/Frameworks/Sparkle.framework/Versions/A/Sparkle
       0x10036a000 -        0x1019bcff7 +QtWebKit (4.9.4) <DD4D51A5-5FDE-F8E0-1654-738C04B397AA> /Applications/WhatPulse.app/Contents/Frameworks/QtWebKit.framework/Versions/4/QtWebKit
       0x101d69000 -        0x101fc1ff7 +QtScript (4.8.5) <93CCE7E6-782B-3AD3-1AC4-16DD48065018> /Applications/WhatPulse.app/Contents/Frameworks/QtScript.framework/Versions/4/QtScript
       0x10201a000 -        0x1022f4fe7 +QtCore (4.8.5) <4172EABD-46BE-2722-C849-F7FB5632DED2> /Applications/WhatPulse.app/Contents/Frameworks/QtCore.framework/Versions/4/QtCore
       0x102360000 -        0x102397ff7 +QtSql (4.8.5) <BEF8F819-ED6C-4CF1-8D73-C71A55DB3ACE> /Applications/WhatPulse.app/Contents/Frameworks/QtSql.framework/Versions/4/QtSql
       0x1023aa000 -        0x102dc6ff7 +QtGui (4.8.5) <CD803C71-F94D-524C-1A39-07D1A339A0F0> /Applications/WhatPulse.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui
       0x102fa5000 -        0x1030e7fe7 +QtNetwork (4.8.5) <7FC3FD1E-2A18-3B59-022E-0ACA3211C6E8> /Applications/WhatPulse.app/Contents/Frameworks/QtNetwork.framework/Versions/4/QtNetwork
       0x107111000 -        0x107117ff7 +libqgif.dylib (0) <A8811843-AF83-F4AB-C0F5-1DECE61AD171> /Applications/WhatPulse.app/Contents/PlugIns/imageformats/libqgif.dylib
       0x10711b000 -        0x107121ff7 +libqico.dylib (0) <64666B1C-5499-57FF-7180-7F4B39D136AE> /Applications/WhatPulse.app/Contents/PlugIns/imageformats/libqico.dylib
       0x107126000 -        0x107161ff7 +libqjpeg.dylib (0) <EEF8D311-049A-6E08-A6FA-4C6B02E21292> /Applications/WhatPulse.app/Contents/PlugIns/imageformats/libqjpeg.dylib
       0x107166000 -        0x1071bafe7 +libqmng.dylib (0) <21BB7157-69D9-E507-D9C3-7D9C025B9EC8> /Applications/WhatPulse.app/Contents/PlugIns/imageformats/libqmng.dylib
       0x1071c2000 -        0x1071c6fff +libqtga.dylib (0) <96E0BE59-E38B-4FD8-1A0E-18A615EC3A2C> /Applications/WhatPulse.app/Contents/PlugIns/imageformats/libqtga.dylib
       0x1071ca000 -        0x10721ffe7 +libqtiff.dylib (0) <397A275D-A9A3-B69B-CC79-6A18210EA06E> /Applications/WhatPulse.app/Contents/PlugIns/imageformats/libqtiff.dylib
       0x107227000 -        0x107232fff +libqgenericbearer.dylib (0) <F9287D24-2B9C-0A5D-9707-B4577B3F8677> /Applications/WhatPulse.app/Contents/PlugIns/bearer/libqgenericbearer.dylib
       0x1072dc000 -        0x1072f4fe7 +libqcorewlanbearer.dylib (0) <CAF690D7-F528-0536-B902-7C79A2696C8A> /Applications/WhatPulse.app/Contents/PlugIns/bearer/libqcorewlanbearer.dylib
 

I also see the QNSListener crash. It seems to primarily happen overnight when the system automatically wakes for Time Machine.

Application Specific Information: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[QNSListener notificationHandler:]: unrecognized selector sent to instance 0x60800005fef0' abort() called terminating with uncaught exception of type NSException

Full trace: http://pastebin.com/niDnQ5w4

Why is this thread being ignored?

It’s not being ignored, as there is a fix for this in 2.4: http://whatpulse.org/releasenotes/2.4/

This one is relevant here: “Don’t restart networking on OSX on sleep/wake up and have the network monitor fix network counting. May be related to some OS X crashes when waking the system up.”

Alright, I’ll let you know if this fixes it.

I can report that crashing still happens on OS X Mavericks on wake up with version 2.4. Except looking at the system log, the crash seems to have happened while my computer was asleep (I have Power Nap enabled). Here is the crash log:

4/19/14 1:54:12.476 AM whatpulse[48389]: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[QNSListener notificationHandler:]: unrecognized selector sent to instance 0x600000246360' *** First throw call stack: ( 0 CoreFoundation 0x00007fff8601f25c __exceptionPreprocess + 172 1 libobjc.A.dylib 0x00007fff8c5f9e75 objc_exception_throw + 43 2 CoreFoundation 0x00007fff8602212d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205 3 CoreFoundation 0x00007fff85f7d3f2 ___forwarding___ + 1010 4 CoreFoundation 0x00007fff85f7cf78 _CF_forwarding_prep_0 + 120 5 CoreFoundation 0x00007fff85fede0c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12 6 CoreFoundation 0x00007fff85ee1a6d _CFXNotificationPost + 2893 7 libdispatch.dylib 0x00007fff8316c1d7 _dispatch_call_block_and_release + 12 8 libdispatch.dylib 0x00007fff831692ad _dispatch_client_callout + 8 9 libdispatch.dylib 0x00007fff8316b09e _dispatch_root_queue_drain + 326 10 libdispatch.dylib 0x00007fff8316c193 _dispatch_worker_thread2 + 40 11 libsystem_pthread.dylib 0x00007fff8eaf6ef8 _pthread_wqthread + 314 12 libsystem_pthread.dylib 0x00007fff8eaf9fb9 start_wqthread + 13 )

I’m also attaching the full crash report.