activityhistory / selfspy

Modified version of Selfspy computer activity tracker for academic study
GNU General Public License v3.0
12 stars 1 forks source link

Audio recording periodically does not save file #12

Closed acrule closed 10 years ago

acrule commented 10 years ago

May have something to do with:

7/21/14 3:09:48.894 PM gkbisd[168]: Unable to collect cdhash for /Applications/QuickTime Player.app (error code 100024) 7/21/14 3:09:49.283 PM QuickTime Player[35491]: .sdef warning for argument 'FileType' of command 'save' in suite 'Standard Suite': 'saveable file format' is not a valid type name.

or with:

7/21/14 3:09:56.094 PM gkbisd[168]: Unable to collect cdhash for /System/Library/Frameworks/AppKit.framework/Versions/C/XPCServices/com.apple.appkit.xpc.openAndSavePanelService.xpc (error code 100024) 7/21/14 3:09:56.107 PM gkbisd[168]: Unable to collect cdhash for /System/Library/Frameworks/AppKit.framework/Versions/C/XPCServices/com.apple.appkit.xpc.openAndSavePanelService.xpc (error code 100024) 7/21/14 3:09:56.250 PM com.apple.appkit.xpc.openAndSavePanelService[35499]: Bogus event received by listener connection: <error: 0x7fff7babdb50> { count = 1, contents = "XPCErrorDescription" => <string: 0x7fff7babde60> { length = 18, contents = "Connection invalid" } } 7/21/14 3:09:58.276 PM com.apple.appkit.xpc.openAndSavePanelService[35499]: CGSGetWindowTransformAtPlacement 7/21/14 3:09:58.276 PM com.apple.appkit.xpc.openAndSavePanelService[35499]: CGSTranslatePointForWindow 7/21/14 3:09:58.276 PM com.apple.appkit.xpc.openAndSavePanelService[35499]: CGSGetWindowBounds

acrule commented 10 years ago

Error seems to come from not being able to get the name of the debrief image used to name the audio file. I checked and the name is being added to the file, but in certain cases, the name is not being read correctly.

I added code to catch when name=None or Name = "" and give a placeholder name to the file. This does not get to the root of the issue, but fixes the bug for now