Hazel and Google Drive

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Hazel and Google Drive Wed Mar 09, 2022 2:42 am • by donwynne
Google Drive changed the way it works on my computer. It does now create links (maybe symbolic?) in the place where I used to have my sync folders and keeps the actual synced files in a predetermined folder. I have noticed certain rules do not work under such environment. I have even noticed folders change name when an internet connection is present

What would be the best practice to keep google drive organized by Hazel? Should I just ignore it?
donwynne
 
Posts: 1
Joined: Wed Mar 09, 2022 2:38 am

Re: Hazel and Google Drive Wed Mar 09, 2022 9:59 am • by Mr_Noodle
Maybe use something else besides Google Drive. A lot of these file cloud services are doing shady things and personally, I'd avoid them. So far Dropbox is the most sane of them as long as you set it to keep files locally.
Mr_Noodle
Site Admin
 
Posts: 11195
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Hazel and Google Drive Fri Mar 25, 2022 8:51 am • by hkuokka
I just noticed the same problem with OneDrive.

Previously OneDrive placed the actual files in the main OneDrive folder which I had set for it. But now the files live in two different places and there's supposedly some kind of a link between them.

OneDrive files seem (to the user) to reside under ~/Library/CloudStorage/ and when interacting with the files in Finder, this is the location we are dealing with. But when installing OneDrive I asked it to place the data in a folder on my external SSD drive which now contains an empty-looking folder called Sharepoint (since I sync both personal OneDrive files and company Sharepoint files to it). When you have Finder show hidden files this folder contains two folders with a name starting with ".ODContainer" and inside those, you will find the actual synced file data.

And this has caused a lot of problems for me with Hazel.

I have some rules running on my computer that will automatically act on files that someone else has added to our company Sharepoint and the OneDrive app has then synced to my computer. But since my Hazel rules are acting on the Sharepoint folders that Finder shows me (the ones under ~/Library/CloudStorage/) a rule might start running on files that have not been yet downloaded to my computer. For simple tasks like renaming files this is not a problem, any rules that actually need the file contents have broken for me.

For example: I have rule that looks for certain PNG images on our Sharepoint drive and when it finds a match it will rename the file (using Hazel) and run a shell script to convert each PNG to JPG. And now the renaming part works, but the shell script fails.

If I copy an image into the watched folder from my own computer the rule works fine, since I placed an actual file with actual content into the folder. But if I upload the same file into Sharepoint (via the browser) and let OneDrive sync the file back to me, the script fails again.

I have tried to fix this by adding a "temp=$(cat FILE)" line into my shell script since that will print all of the file contents into a temp variable. If I run this manually in Terminal the file content is immediately downloaded to my computer and the script will finish without errors. But when running the same script from Hazel the downloading of file content will not happen and the script fails again.

It does not seem that the files under ~/Library/CloudStorage/ are symlinks, since "ls -F" does not show an "@" symbol for the files (which would mean symlink). Instead, it shows an asterisk "*" which would mean that all of the files are executable.

The only easy fix I now got working was to point Hazel to watch the hidden folders on my external SSD and run the rules against them. This works fine for individual folders, but I often use Smart folders (saved searches) to let Hazel handle files anywhere on my computer. And doing a smart folder for hidden data will not work.

Would it be possible to have Hazel automatically find the actual file content and run the rules against them? Or better yet, have Hazel initiate downloading of the actual file content before acting on the files?
hkuokka
 
Posts: 1
Joined: Fri Mar 25, 2022 8:24 am

Re: Hazel and Google Drive Mon Mar 28, 2022 9:44 am • by Mr_Noodle
I don't know how Google Drive works but it seems that you'll need to resort to scripts to trigger things. Most of these file cloud providers seem to be doing wacky stuff with Dropbox being one of the few sane ones.
Mr_Noodle
Site Admin
 
Posts: 11195
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Hazel and Google Drive Fri May 20, 2022 9:22 pm • by RAWdaMedia
This might be a bug in the way the "Kind is PDF" filter works on Google Drive...

If the file is actually a PDF, it happily matches it as being of Kind "PDF".

If the file however is TXT, XLSX, JPG or PNG, it has an exclamation mark with an explanation that "Could not retrieve metadata for file..." and then proceeds to correctly identify the kind of file for what it is:

Screenshot URL: https://drive.google.com/file/d/1yhzg-uW_T_3P-qWDlUTS7XxIXeCUQalO

All files are downloaded to my Mac. This doesn't appear to be a problem with files on the local drive folder.

If the rule correctly identifies the type of file, why does it error out rather than exiting with the normal "Not Matched" status?
RAWdaMedia
 
Posts: 4
Joined: Sun Aug 30, 2020 7:37 am

Re: Hazel and Google Drive Mon May 23, 2022 8:51 am • by Mr_Noodle
Are there other conditions in your rule?
Mr_Noodle
Site Admin
 
Posts: 11195
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Hazel and Google Drive Tue May 24, 2022 7:38 am • by RAWdaMedia
It also had a filename pattern match for a date that was then used for subsorting into appropriate folders.

I just tried to create a TEST rule for "Kind is PDF" and action "Ignore" and when I tried to Preview the rule applied to a TXT file, Hazel crashed:
Code: Select all
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               Hazel [16827]
Path:                  /Applications/Hazel.app/Contents/MacOS/Hazel
Identifier:            com.noodlesoft.Hazel
Version:               5.1 (2232)
Code Type:             X86-64 (Native)
Parent Process:        launchd [1]
User ID:               xxxx

Date/Time:             2022-05-24 18:54:14.8377 +1000
OS Version:            macOS 12.4 (21F79)
Report Version:        12
Bridge OS Version:     6.5 (19P5071)
Anonymous UUID:        xxxx

Sleep/Wake UUID:       xxxx

Time Awake Since Boot: 12000 seconds
Time Since Wake:       3495 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

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

Application Specific Information:
abort() called


Application Specific Backtrace 0:
0   CoreFoundation                      0x00007ff81c77d7b3 __exceptionPreprocess + 242
1   libobjc.A.dylib                     0x00007ff81c4ddbc3 objc_exception_throw + 48
2   HazelCore                           0x000000010d2c9d03 hasNSRecords + 17240
3   HazelCore                           0x000000010d2c679a hasNSRecords + 3567
4   HazelCore                           0x000000010d31bf4a _isDateValue + 27417
5   Foundation                          0x00007ff81d60d0a7 -[NSCustomPredicateOperator performPrimitiveOperationUsingObject:andObject:] + 509
6   Foundation                          0x00007ff81d56c2f5 -[NSComparisonPredicate evaluateWithObject:substitutionVariables:] + 418
7   HazelCore                           0x000000010d310f2a hazelKindFromUTI + 2991
8   HazelCore                           0x000000010d315753 _isDateValue + 802
9   HazelCore                           0x000000010d315945 _isDateValue + 1300
10  HazelCore                           0x000000010d313357 hazelKindFromUTI + 12252
11  HazelCore                           0x000000010d3135a0 hazelKindFromUTI + 12837
12  HazelCore                           0x000000010d317836 _isDateValue + 9221
13  HazelCore                           0x000000010d2ec1aa errorFromOSAScriptErrorDict + 89051
14  Hazel                               0x000000010cc17f6d Hazel + 499565
15  Hazel                               0x000000010cc1770b Hazel + 497419
16  Hazel                               0x000000010cc17da4 Hazel + 499108
17  libdispatch.dylib                   0x00007ff81c484317 _dispatch_client_callout + 8
18  libdispatch.dylib                   0x00007ff81c486d7c _dispatch_continuation_pop + 453
19  libdispatch.dylib                   0x00007ff81c498208 _dispatch_source_invoke + 2179
20  libdispatch.dylib                   0x00007ff81c490bb1 _dispatch_main_queue_drain + 744
21  libdispatch.dylib                   0x00007ff81c4908bb _dispatch_main_queue_callback_4CF + 31
22  CoreFoundation                      0x00007ff81c73ff07 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
23  CoreFoundation                      0x00007ff81c700fef __CFRunLoopRun + 2771
24  CoreFoundation                      0x00007ff81c6ffe5c CFRunLoopRunSpecific + 562
25  HIToolbox                           0x00007ff8253a75e6 RunCurrentEventLoopInMode + 292
26  HIToolbox                           0x00007ff8253a734a ReceiveNextEventCommon + 594
27  HIToolbox                           0x00007ff8253a70e5 _BlockUntilNextEventMatchingListInModeWithFilter + 70
28  AppKit                              0x00007ff81f13f1fd _DPSNextEvent + 927
29  AppKit                              0x00007ff81f13d8ba -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1394
30  AppKit                              0x00007ff81f12ff69 -[NSApplication run] + 586
31  AppKit                              0x00007ff81f103ee7 NSApplicationMain + 817
32  dyld                                0x0000000112c7651e start + 462


Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib               0x7ff81c60500e __pthread_kill + 10
1   libsystem_pthread.dylib              0x7ff81c63b1ff pthread_kill + 263
2   libsystem_c.dylib                    0x7ff81c586d24 abort + 123
3   libc++abi.dylib                      0x7ff81c5f7082 abort_message + 241
4   libc++abi.dylib                      0x7ff81c5e81bd demangling_terminate_handler() + 266
5   libobjc.A.dylib                      0x7ff81c4e4e11 _objc_terminate() + 96
6   libc++abi.dylib                      0x7ff81c5f64a7 std::__terminate(void (*)()) + 8
7   libc++abi.dylib                      0x7ff81c5f6458 std::terminate() + 56
8   libdispatch.dylib                    0x7ff81c48432b _dispatch_client_callout + 28
9   libdispatch.dylib                    0x7ff81c486d7c _dispatch_continuation_pop + 453
10  libdispatch.dylib                    0x7ff81c498208 _dispatch_source_invoke + 2179
11  libdispatch.dylib                    0x7ff81c490bb1 _dispatch_main_queue_drain + 744
12  libdispatch.dylib                    0x7ff81c4908bb _dispatch_main_queue_callback_4CF + 31
13  CoreFoundation                       0x7ff81c73ff07 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
14  CoreFoundation                       0x7ff81c700fef __CFRunLoopRun + 2771
15  CoreFoundation                       0x7ff81c6ffe5c CFRunLoopRunSpecific + 562
16  HIToolbox                            0x7ff8253a75e6 RunCurrentEventLoopInMode + 292
17  HIToolbox                            0x7ff8253a734a ReceiveNextEventCommon + 594
18  HIToolbox                            0x7ff8253a70e5 _BlockUntilNextEventMatchingListInModeWithFilter + 70
19  AppKit                               0x7ff81f13f1fd _DPSNextEvent + 927
20  AppKit                               0x7ff81f13d8ba -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1394
21  AppKit                               0x7ff81f12ff69 -[NSApplication run] + 586
22  AppKit                               0x7ff81f103ee7 NSApplicationMain + 817
23  dyld                                    0x112c7651e start + 462

Thread 1:: com.apple.NSEventThread
0   libsystem_kernel.dylib               0x7ff81c5fe97a mach_msg_trap + 10
1   libsystem_kernel.dylib               0x7ff81c5fece8 mach_msg + 56
2   CoreFoundation                       0x7ff81c70238d __CFRunLoopServiceMachPort + 319
3   CoreFoundation                       0x7ff81c700a18 __CFRunLoopRun + 1276
4   CoreFoundation                       0x7ff81c6ffe5c CFRunLoopRunSpecific + 562
5   AppKit                               0x7ff81f2acc1e _NSEventThread + 132
6   libsystem_pthread.dylib              0x7ff81c63b4e1 _pthread_start + 125
7   libsystem_pthread.dylib              0x7ff81c636f6b thread_start + 15

Thread 2:
0   libsystem_pthread.dylib              0x7ff81c636f48 start_wqthread + 0

Thread 3:
0   libsystem_pthread.dylib              0x7ff81c636f48 start_wqthread + 0

Thread 4:
0   libsystem_pthread.dylib              0x7ff81c636f48 start_wqthread + 0

Thread 5:
0   libsystem_pthread.dylib              0x7ff81c636f48 start_wqthread + 0

Thread 6:
0   libsystem_pthread.dylib              0x7ff81c636f48 start_wqthread + 0

Thread 7:
0   libsystem_pthread.dylib              0x7ff81c636f48 start_wqthread + 0

Thread 8:
0   libsystem_pthread.dylib              0x7ff81c636f48 start_wqthread + 0

Thread 9:
0   libsystem_pthread.dylib              0x7ff81c636f48 start_wqthread + 0


Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000  rbx: 0x0000000112cf1600  rcx: 0x00007ff7b335fc48  rdx: 0x0000000000000000
  rdi: 0x0000000000000103  rsi: 0x0000000000000006  rbp: 0x00007ff7b335fc70  rsp: 0x00007ff7b335fc48
   r8: 0x00007ff7b335fb10   r9: 0x00007ff81c5f9fa1  r10: 0x0000000000000000  r11: 0x0000000000000246
  r12: 0x0000000000000103  r13: 0x0000003000000008  r14: 0x0000000000000006  r15: 0x0000000000000016
  rip: 0x00007ff81c60500e  rfl: 0x0000000000000246  cr2: 0x00007ff81f4bbd73
 
Logical CPU:     0
Error Code:      0x02000148
Trap Number:     133


Binary Images:
    0x7ff81c5fd000 -     0x7ff81c634fff libsystem_kernel.dylib (*) <61711d11-e776-3bc3-b9a2-6f9f37cb8499> /usr/lib/system/libsystem_kernel.dylib
    0x7ff81c635000 -     0x7ff81c640fff libsystem_pthread.dylib (*) <bc574849-1aae-31e7-b350-916dda999d97> /usr/lib/system/libsystem_pthread.dylib
    0x7ff81c505000 -     0x7ff81c58dfff libsystem_c.dylib (*) <d9ba0660-744d-3f84-9f80-afb51d450512> /usr/lib/system/libsystem_c.dylib
    0x7ff81c5e7000 -     0x7ff81c5fcfff libc++abi.dylib (*) <b038dc07-0d9a-3049-83b3-62a962d19afb> /usr/lib/libc++abi.dylib
    0x7ff81c4c8000 -     0x7ff81c501fff libobjc.A.dylib (*) <a02a893a-79ff-39f2-a3f2-796b4d877b68> /usr/lib/libobjc.A.dylib
    0x7ff81c481000 -     0x7ff81c4c7fff libdispatch.dylib (*) <534511b9-b3b0-33a7-b1ea-402595d28bda> /usr/lib/system/libdispatch.dylib
    0x7ff81c682000 -     0x7ff81cb84fff com.apple.CoreFoundation (6.9) <f8e45ef9-9fd2-3331-bb1b-703d5dacdaf1> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x7ff825379000 -     0x7ff82566cfff com.apple.HIToolbox (2.1.1) <04544f53-a387-3ac3-a85d-f8adfc0bc69e> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
    0x7ff81f100000 -     0x7ff81ff8efff com.apple.AppKit (6.9) <832ad371-d3b8-3061-b4e2-1c4e0cffce0b> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
       0x112c71000 -        0x112cdcfff dyld (*) <b70ce1ec-b902-3852-8268-05de00bfa8d5> /usr/lib/dyld
       0x10d2b7000 -        0x10d34efff com.noodlesoft.HazelCore (1.0) <a07bff51-93b5-3ee8-b269-2190af9cd47c> /Applications/Hazel.app/Contents/Frameworks/HazelCore.framework/Versions/A/HazelCore
    0x7ff81d504000 -     0x7ff81d8c0fff com.apple.Foundation (6.9) <ceb9e591-a1ad-3ebc-ab8d-410f4ff96307> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
       0x10cb9e000 -        0x10cc75fff com.noodlesoft.Hazel (5.1) <dee654dc-487b-3811-a9cd-2cdfbc11bd58> /Applications/Hazel.app/Contents/MacOS/Hazel

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=1.1G resident=0K(0%) swapped_out_or_unallocated=1.1G(100%)
Writable regions: Total=2.1G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=2.1G(100%)

                                VIRTUAL   REGION
REGION TYPE                        SIZE    COUNT (non-coalesced)
===========                     =======  =======
Accelerate framework              1920K       15
Activity Tracing                   256K        1
CG backing stores                 2528K        4
CG image                           744K       70
ColorSync                          236K       28
CoreAnimation                     39.4M      286
CoreGraphics                        12K        2
CoreUI image data                 5452K       41
Foundation                          60K        2
Image IO                           156K       24
Kernel Alloc Once                    8K        1
MALLOC                           384.8M       80
MALLOC guard page                   48K        9
MALLOC_MEDIUM (reserved)           1.3G       11         reserved VM address space (unallocated)
MALLOC_NANO (reserved)           384.0M        1         reserved VM address space (unallocated)
ObjC additional data                15K        1
STACK GUARD                       56.0M       10
Stack                             12.6M       10
VM_ALLOCATE                        320K       20
__CTF                               756        1
__DATA                            30.5M      526
__DATA_CONST                      30.4M      336
__DATA_DIRTY                      1611K      209
__FONT_DATA                          4K        1
__LINKEDIT                       649.5M       22
__TEXT                           506.8M      542
__UNICODE                          592K        1
dyld private memory               1024K        1
mapped file                      222.4M       69
shared memory                     1292K       17
===========                     =======  =======
TOTAL                              3.6G     2341
TOTAL, minus reserved VM space     1.9G     2341



-----------
Full Report
-----------

{"app_name":"Hazel","timestamp":"2022-05-24 18:54:26.00 +1000","app_version":"5.1","slice_uuid":"dee654dc-487b-3811-a9cd-2cdfbc11bd58","build_version":"2232","platform":1,"bundleID":"com.noodlesoft.Hazel","share_with_app_devs":1,"is_first_party":0,"bug_type":"309","os_version":"macOS 12.4 (21F79)","incident_id":"81A8FE1B-A741-4632-AB4B-4BF12B3D72B9","name":"Hazel"}
{
  "uptime" : 12000,
  "procLaunch" : "2022-05-24 18:51:00.9105 +1000",
  "procRole" : "Foreground",
  "version" : 2,
  "userID" : 502,
  "deployVersion" : 210,
  "modelCode" : "MacBookPro15,1",
  "procStartAbsTime" : 12614314210911,
  "coalitionID" : 4218,
  "osVersion" : {
    "train" : "macOS 12.4",
    "build" : "21F79",
    "releaseType" : "User"
  },
  "captureTime" : "2022-05-24 18:54:14.8377 +1000",
  "incident" : "81A8FE1B-A741-4632-AB4B-4BF12B3D72B9",
  "bug_type" : "309",
  "pid" : 16827,
  "procExitAbsTime" : 12808234419930,
  "cpuType" : "X86-64",
  "procName" : "Hazel",
  "procPath" : "\/Applications\/Hazel.app\/Contents\/MacOS\/Hazel",
  "bundleInfo" : {"CFBundleShortVersionString":"5.1","CFBundleVersion":"2232","CFBundleIdentifier":"com.noodlesoft.Hazel"},
  "storeInfo" : {"deviceIdentifierForVendor":"35814FDA-E885-5720-9142-D212719CBDFC","thirdParty":true},
  "parentProc" : "launchd",
  "parentPid" : 1,
  "coalitionName" : "com.noodlesoft.Hazel",
  "crashReporterKey" : "93684EC3-FD96-4DD1-9F90-3EB8387985EA",
  "wakeTime" : 3495,
  "bridgeVersion" : {"build":"19P5071","train":"6.5"},
  "sleepWakeUUID" : "C44578E8-0BE6-481E-85CB-15969C97BCDF",
  "sip" : "enabled",
  "isCorpse" : 1,
  "exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGABRT"},
  "asi" : {"libsystem_c.dylib":["abort() called"]},
  "asiBacktraces" : ["0   CoreFoundation                      0x00007ff81c77d7b3 __exceptionPreprocess + 242\n1   libobjc.A.dylib                     0x00007ff81c4ddbc3 objc_exception_throw + 48\n2   HazelCore                           0x000000010d2c9d03 hasNSRecords + 17240\n3   HazelCore                           0x000000010d2c679a hasNSRecords + 3567\n4   HazelCore                           0x000000010d31bf4a _isDateValue + 27417\n5   Foundation                          0x00007ff81d60d0a7 -[NSCustomPredicateOperator performPrimitiveOperationUsingObject:andObject:] + 509\n6   Foundation                          0x00007ff81d56c2f5 -[NSComparisonPredicate evaluateWithObject:substitutionVariables:] + 418\n7   HazelCore                           0x000000010d310f2a hazelKindFromUTI + 2991\n8   HazelCore                           0x000000010d315753 _isDateValue + 802\n9   HazelCore                           0x000000010d315945 _isDateValue + 1300\n10  HazelCore                           0x000000010d313357 hazelKindFromUTI + 12252\n11  HazelCore                           0x000000010d3135a0 hazelKindFromUTI + 12837\n12  HazelCore                           0x000000010d317836 _isDateValue + 9221\n13  HazelCore                           0x000000010d2ec1aa errorFromOSAScriptErrorDict + 89051\n14  Hazel                               0x000000010cc17f6d Hazel + 499565\n15  Hazel                               0x000000010cc1770b Hazel + 497419\n16  Hazel                               0x000000010cc17da4 Hazel + 499108\n17  libdispatch.dylib                   0x00007ff81c484317 _dispatch_client_callout + 8\n18  libdispatch.dylib                   0x00007ff81c486d7c _dispatch_continuation_pop + 453\n19  libdispatch.dylib                   0x00007ff81c498208 _dispatch_source_invoke + 2179\n20  libdispatch.dylib                   0x00007ff81c490bb1 _dispatch_main_queue_drain + 744\n21  libdispatch.dylib                   0x00007ff81c4908bb _dispatch_main_queue_callback_4CF + 31\n22  CoreFoundation                      0x00007ff81c73ff07 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9\n23  CoreFoundation                      0x00007ff81c700fef __CFRunLoopRun + 2771\n24  CoreFoundation                      0x00007ff81c6ffe5c CFRunLoopRunSpecific + 562\n25  HIToolbox                           0x00007ff8253a75e6 RunCurrentEventLoopInMode + 292\n26  HIToolbox                           0x00007ff8253a734a ReceiveNextEventCommon + 594\n27  HIToolbox                           0x00007ff8253a70e5 _BlockUntilNextEventMatchingListInModeWithFilter + 70\n28  AppKit                              0x00007ff81f13f1fd _DPSNextEvent + 927\n29  AppKit                              0x00007ff81f13d8ba -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1394\n30  AppKit                              0x00007ff81f12ff69 -[NSApplication run] + 586\n31  AppKit                              0x00007ff81f103ee7 NSApplicationMain + 817\n32  dyld                                0x0000000112c7651e start + 462"],
  "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
  "lastExceptionBacktrace" : [{"imageOffset":1030051,"symbol":"__exceptionPreprocess","symbolLocation":226,"imageIndex":6},{"imageOffset":89027,"symbol":"objc_exception_throw","symbolLocation":48,"imageIndex":4},{"imageOffset":77059,"imageIndex":10},{"imageOffset":63386,"imageIndex":10},{"imageOffset":413514,"imageIndex":10},{"imageOffset":1085607,"symbol":"-[NSCustomPredicateOperator performPrimitiveOperationUsingObject:andObject:]","symbolLocation":509,"imageIndex":11},{"imageOffset":426741,"symbol":"-[NSComparisonPredicate evaluateWithObject:substitutionVariables:]","symbolLocation":418,"imageIndex":11},{"imageOffset":368426,"imageIndex":10},{"imageOffset":386899,"imageIndex":10},{"imageOffset":387397,"imageIndex":10},{"imageOffset":377687,"imageIndex":10},{"imageOffset":378272,"imageIndex":10},{"imageOffset":395318,"imageIndex":10},{"imageOffset":217514,"imageIndex":10},{"imageOffset":499565,"imageIndex":12},{"imageOffset":497419,"imageIndex":12},{"imageOffset":499108,"imageIndex":12},{"imageOffset":13079,"symbol":"_dispatch_client_callout","symbolLocation":8,"imageIndex":5},{"imageOffset":23932,"symbol":"_dispatch_continuation_pop","symbolLocation":453,"imageIndex":5},{"imageOffset":94728,"symbol":"_dispatch_source_invoke","symbolLocation":2179,"imageIndex":5},{"imageOffset":64433,"symbol":"_dispatch_main_queue_drain","symbolLocation":744,"imageIndex":5},{"imageOffset":63675,"symbol":"_dispatch_main_queue_callback_4CF","symbolLocation":31,"imageIndex":5},{"imageOffset":777991,"symbol":"__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__","symbolLocation":9,"imageIndex":6},{"imageOffset":520175,"symbol":"__CFRunLoopRun","symbolLocation":2771,"imageIndex":6},{"imageOffset":515676,"symbol":"CFRunLoopRunSpecific","symbolLocation":562,"imageIndex":6},{"imageOffset":189926,"symbol":"RunCurrentEventLoopInMode","symbolLocation":292,"imageIndex":7},{"imageOffset":189258,"symbol":"ReceiveNextEventCommon","symbolLocation":594,"imageIndex":7},{"imageOffset":188645,"symbol":"_BlockUntilNextEventMatchingListInModeWithFilter","symbolLocation":70,"imageIndex":7},{"imageOffset":258557,"symbol":"_DPSNextEvent","symbolLocation":927,"imageIndex":8},{"imageOffset":252090,"symbol":"-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]","symbolLocation":1394,"imageIndex":8},{"imageOffset":196457,"symbol":"-[NSApplication run]","symbolLocation":586,"imageIndex":8},{"imageOffset":16103,"symbol":"NSApplicationMain","symbolLocation":817,"imageIndex":8},{"imageOffset":21790,"symbol":"start","symbolLocation":462,"imageIndex":9}],
  "faultingThread" : 0,
  "threads" : [{"triggered":true,"id":170403,"threadState":{"r13":{"value":206158430216},"rax":{"value":0},"rflags":{"value":582},"cpu":{"value":0},"r14":{"value":6},"rsi":{"value":6},"r8":{"value":140701840309008},"cr2":{"value":140703653674355},"rdx":{"value":0},"r10":{"value":0},"r9":{"value":140703604645793},"r15":{"value":22},"rbx":{"value":4610528768,"symbolLocation":0,"symbol":"_main_thread"},"trap":{"value":133},"err":{"value":33554760},"r11":{"value":582},"rip":{"value":140703604690958,"matchesCrashFrame":1},"rbp":{"value":140701840309360},"rsp":{"value":140701840309320},"r12":{"value":259},"rcx":{"value":140701840309320},"flavor":"x86_THREAD_STATE","rdi":{"value":259}},"queue":"com.apple.main-thread","frames":[{"imageOffset":32782,"symbol":"__pthread_kill","symbolLocation":10,"imageIndex":0},{"imageOffset":25087,"symbol":"pthread_kill","symbolLocation":263,"imageIndex":1},{"imageOffset":531748,"symbol":"abort","symbolLocation":123,"imageIndex":2},{"imageOffset":65666,"symbol":"abort_message","symbolLocation":241,"imageIndex":3},{"imageOffset":4541,"symbol":"demangling_terminate_handler()","symbolLocation":266,"imageIndex":3},{"imageOffset":118289,"symbol":"_objc_terminate()","symbolLocation":96,"imageIndex":4},{"imageOffset":62631,"symbol":"std::__terminate(void (*)())","symbolLocation":8,"imageIndex":3},{"imageOffset":62552,"symbol":"std::terminate()","symbolLocation":56,"imageIndex":3},{"imageOffset":13099,"symbol":"_dispatch_client_callout","symbolLocation":28,"imageIndex":5},{"imageOffset":23932,"symbol":"_dispatch_continuation_pop","symbolLocation":453,"imageIndex":5},{"imageOffset":94728,"symbol":"_dispatch_source_invoke","symbolLocation":2179,"imageIndex":5},{"imageOffset":64433,"symbol":"_dispatch_main_queue_drain","symbolLocation":744,"imageIndex":5},{"imageOffset":63675,"symbol":"_dispatch_main_queue_callback_4CF","symbolLocation":31,"imageIndex":5},{"imageOffset":777991,"symbol":"__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__","symbolLocation":9,"imageIndex":6},{"imageOffset":520175,"symbol":"__CFRunLoopRun","symbolLocation":2771,"imageIndex":6},{"imageOffset":515676,"symbol":"CFRunLoopRunSpecific","symbolLocation":562,"imageIndex":6},{"imageOffset":189926,"symbol":"RunCurrentEventLoopInMode","symbolLocation":292,"imageIndex":7},{"imageOffset":189258,"symbol":"ReceiveNextEventCommon","symbolLocation":594,"imageIndex":7},{"imageOffset":188645,"symbol":"_BlockUntilNextEventMatchingListInModeWithFilter","symbolLocation":70,"imageIndex":7},{"imageOffset":258557,"symbol":"_DPSNextEvent","symbolLocation":927,"imageIndex":8},{"imageOffset":252090,"symbol":"-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]","symbolLocation":1394,"imageIndex":8},{"imageOffset":196457,"symbol":"-[NSApplication run]","symbolLocation":586,"imageIndex":8},{"imageOffset":16103,"symbol":"NSApplicationMain","symbolLocation":817,"imageIndex":8},{"imageOffset":21790,"symbol":"start","symbolLocation":462,"imageIndex":9}]},{"id":170617,"name":"com.apple.NSEventThread","frames":[{"imageOffset":6522,"symbol":"mach_msg_trap","symbolLocation":10,"imageIndex":0},{"imageOffset":7400,"symbol":"mach_msg","symbolLocation":56,"imageIndex":0},{"imageOffset":525197,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":319,"imageIndex":6},{"imageOffset":518680,"symbol":"__CFRunLoopRun","symbolLocation":1276,"imageIndex":6},{"imageOffset":515676,"symbol":"CFRunLoopRunSpecific","symbolLocation":562,"imageIndex":6},{"imageOffset":1756190,"symbol":"_NSEventThread","symbolLocation":132,"imageIndex":8},{"imageOffset":25825,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":1},{"imageOffset":8043,"symbol":"thread_start","symbolLocation":15,"imageIndex":1}]},{"id":173145,"frames":[{"imageOffset":8008,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":173455,"frames":[{"imageOffset":8008,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":173513,"frames":[{"imageOffset":8008,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":173514,"frames":[{"imageOffset":8008,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":173515,"frames":[{"imageOffset":8008,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":173789,"frames":[{"imageOffset":8008,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":173790,"frames":[{"imageOffset":8008,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":173791,"frames":[{"imageOffset":8008,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703604658176,
    "size" : 229376,
    "uuid" : "61711d11-e776-3bc3-b9a2-6f9f37cb8499",
    "path" : "\/usr\/lib\/system\/libsystem_kernel.dylib",
    "name" : "libsystem_kernel.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703604887552,
    "size" : 49152,
    "uuid" : "bc574849-1aae-31e7-b350-916dda999d97",
    "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
    "name" : "libsystem_pthread.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703603642368,
    "size" : 561152,
    "uuid" : "d9ba0660-744d-3f84-9f80-afb51d450512",
    "path" : "\/usr\/lib\/system\/libsystem_c.dylib",
    "name" : "libsystem_c.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703604568064,
    "size" : 90112,
    "uuid" : "b038dc07-0d9a-3049-83b3-62a962d19afb",
    "path" : "\/usr\/lib\/libc++abi.dylib",
    "name" : "libc++abi.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64h",
    "base" : 140703603392512,
    "size" : 237568,
    "uuid" : "a02a893a-79ff-39f2-a3f2-796b4d877b68",
    "path" : "\/usr\/lib\/libobjc.A.dylib",
    "name" : "libobjc.A.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703603101696,
    "size" : 290816,
    "uuid" : "534511b9-b3b0-33a7-b1ea-402595d28bda",
    "path" : "\/usr\/lib\/system\/libdispatch.dylib",
    "name" : "libdispatch.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64h",
    "base" : 140703605202944,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.CoreFoundation",
    "size" : 5255168,
    "uuid" : "f8e45ef9-9fd2-3331-bb1b-703d5dacdaf1",
    "path" : "\/System\/Library\/Frameworks\/CoreFoundation.framework\/Versions\/A\/CoreFoundation",
    "name" : "CoreFoundation",
    "CFBundleVersion" : "1863"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703753015296,
    "CFBundleShortVersionString" : "2.1.1",
    "CFBundleIdentifier" : "com.apple.HIToolbox",
    "size" : 3096576,
    "uuid" : "04544f53-a387-3ac3-a85d-f8adfc0bc69e",
    "path" : "\/System\/Library\/Frameworks\/Carbon.framework\/Versions\/A\/Frameworks\/HIToolbox.framework\/Versions\/A\/HIToolbox",
    "name" : "HIToolbox"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703649759232,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.AppKit",
    "size" : 15265792,
    "uuid" : "832ad371-d3b8-3061-b4e2-1c4e0cffce0b",
    "path" : "\/System\/Library\/Frameworks\/AppKit.framework\/Versions\/C\/AppKit",
    "name" : "AppKit",
    "CFBundleVersion" : "2113.50.132"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4610002944,
    "size" : 442368,
    "uuid" : "b70ce1ec-b902-3852-8268-05de00bfa8d5",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4515917824,
    "CFBundleShortVersionString" : "1.0",
    "CFBundleIdentifier" : "com.noodlesoft.HazelCore",
    "size" : 622592,
    "uuid" : "a07bff51-93b5-3ee8-b269-2190af9cd47c",
    "path" : "\/Applications\/Hazel.app\/Contents\/Frameworks\/HazelCore.framework\/Versions\/A\/HazelCore",
    "name" : "HazelCore",
    "CFBundleVersion" : "2052"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703620415488,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.Foundation",
    "size" : 3919872,
    "uuid" : "ceb9e591-a1ad-3ebc-ab8d-410f4ff96307",
    "path" : "\/System\/Library\/Frameworks\/Foundation.framework\/Versions\/C\/Foundation",
    "name" : "Foundation",
    "CFBundleVersion" : "1863"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4508475392,
    "CFBundleShortVersionString" : "5.1",
    "CFBundleIdentifier" : "com.noodlesoft.Hazel",
    "size" : 884736,
    "uuid" : "dee654dc-487b-3811-a9cd-2cdfbc11bd58",
    "path" : "\/Applications\/Hazel.app\/Contents\/MacOS\/Hazel",
    "name" : "Hazel",
    "CFBundleVersion" : "2232"
  }
],
  "sharedCache" : {
  "base" : 140703601631232,
  "size" : 15220686848,
  "uuid" : "398acfb4-57f6-31e0-bc82-e9959e5c92ce"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=1.1G resident=0K(0%) swapped_out_or_unallocated=1.1G(100%)\nWritable regions: Total=2.1G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=2.1G(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nAccelerate framework              1920K       15 \nActivity Tracing                   256K        1 \nCG backing stores                 2528K        4 \nCG image                           744K       70 \nColorSync                          236K       28 \nCoreAnimation                     39.4M      286 \nCoreGraphics                        12K        2 \nCoreUI image data                 5452K       41 \nFoundation                          60K        2 \nImage IO                           156K       24 \nKernel Alloc Once                    8K        1 \nMALLOC                           384.8M       80 \nMALLOC guard page                   48K        9 \nMALLOC_MEDIUM (reserved)           1.3G       11         reserved VM address space (unallocated)\nMALLOC_NANO (reserved)           384.0M        1         reserved VM address space (unallocated)\nObjC additional data                15K        1 \nSTACK GUARD                       56.0M       10 \nStack                             12.6M       10 \nVM_ALLOCATE                        320K       20 \n__CTF                               756        1 \n__DATA                            30.5M      526 \n__DATA_CONST                      30.4M      336 \n__DATA_DIRTY                      1611K      209 \n__FONT_DATA                          4K        1 \n__LINKEDIT                       649.5M       22 \n__TEXT                           506.8M      542 \n__UNICODE                          592K        1 \ndyld private memory               1024K        1 \nmapped file                      222.4M       69 \nshared memory                     1292K       17 \n===========                     =======  ======= \nTOTAL                              3.6G     2341 \nTOTAL, minus reserved VM space     1.9G     2341 \n",
  "legacyInfo" : {
  "threadTriggered" : {
    "queue" : "com.apple.main-thread"
  }
},
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "6112e14f37f5d11121dcd519",
      "factorPackIds" : {
        "SIRI_TEXT_TO_SPEECH" : "62670db041fbd3022330bf19"
      },
      "deploymentId" : 240000116
    },
    {
      "rolloutId" : "5fb4245a1bbfe8005e33a1e1",
      "factorPackIds" : {

      },
      "deploymentId" : 240000015
    }
  ],
  "experiments" : [

  ]
}
}

Model: MacBookPro15,1, BootROM 1731.120.10.0.0 (iBridge: 19.16.15071.0.0,0), 6 processors, 6-Core Intel Core i9, 2.9 GHz, 32 GB, SMC
Graphics: Intel UHD Graphics 630, Intel UHD Graphics 630, Built-In
Display: Color LCD, 2880 x 1800 Retina, Main, MirrorOff, Online
Graphics: Radeon Pro 560X, Radeon Pro 560X, PCIe, 4 GB
Memory Module: BANK 0/ChannelA-DIMM0, 16 GB, DDR4, 2400 MHz, Micron, 16ATS2G64HZ-2G6B1
Memory Module: BANK 2/ChannelB-DIMM0, 16 GB, DDR4, 2400 MHz, Micron, 16ATS2G64HZ-2G6B1
AirPort: spairport_wireless_card_type_wifi (0x14E4, 0x7BF), wl0: Jul 12 2021 19:26:30 version 9.30.464.0.32.5.76 FWID 01-45ccefcd
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
USB Device: USB31Bus
USB Device: T2Bus
USB Device: Touch Bar Backlight
USB Device: Touch Bar Display
USB Device: Apple Internal Keyboard / Trackpad
USB Device: Headset
USB Device: Ambient Light Sensor
USB Device: FaceTime HD Camera (Built-in)
USB Device: Apple T2 Controller
Thunderbolt Bus: MacBook Pro, Apple Inc., 47.5
Thunderbolt Bus: MacBook Pro, Apple Inc., 47.5



Now I have a whole heap of "Error during rule evaluation" notifications when this TEST rule was applied to non PDF files in the watched Google Drive folder.
RAWdaMedia
 
Posts: 4
Joined: Sun Aug 30, 2020 7:37 am

Re: Hazel and Google Drive Tue May 24, 2022 8:25 am • by Mr_Noodle
It looks like you are on 5.1. Not sure if this affects anything but try updating to 5.1.2. Note that the in-app updater may be broken in which case I suggest downloading and installing the update manually.
Mr_Noodle
Site Admin
 
Posts: 11195
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Hazel and Google Drive Tue May 31, 2022 7:53 am • by RAWdaMedia
Still the same behaviour after upgrading to 5.1.2 ... Still occasionally crashes when trying to Preview whether a file will match the rule.
RAWdaMedia
 
Posts: 4
Joined: Sun Aug 30, 2020 7:37 am

Re: Hazel and Google Drive Tue May 31, 2022 8:04 am • by Mr_Noodle
Can you send me an updated crash dump? Thanks.
Mr_Noodle
Site Admin
 
Posts: 11195
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support