Closed grahamegrieve closed 2 years ago
Can you please make a screenshot of that error dialog and post it here?
running this script: https://github.com/HealthIntersections/fhirserver/blob/master/build/unix-libraries.sh (e.g. line 19)
@grahamegrieve, there's no such script, I suppose you refer to linux-libraries.sh
or osx-libraries.sh
… Nevertheless, I can't reproduce this error, but I see where it originates from in code. I've got a couple of questions:
1. In the (local) .git
folder of that repository, do you see a hidden folder named ag.zigz.GitFinder
?
2. In order to track down the root of the problem, I'd make a special build (or a few of them) for you to try. Those builds would be completely safe to use, they would only print some additional debugging info in the console (or even in the UI), which should make it easier for me to figure out what's happening. Would you be willing to try special build(s)? If so, let me know and I'll upload them and give you a direct download link.
yes sorry I had to split that script after I commented on this task. osx-libraries.sh now.
@grahamegrieve, you can download the special version here. It reports itself as version 1.7.4s1 (build 118). Just let it run normally as the official version, but when the error happens, it will say either Failed to initialize repository info (1) or Failed to initialize repository info (2) or Failed to initialize repository info (3), depending on where in the code (if-else clauses) the error happens. Let the error happen a couple of times, I'd like to know whether it always happens at the same place, or not.
Please let me know and thanks for your patience and help.
@grahamegrieve, any luck yet?
well I finally got to it, and rebooted and installed it, and... no dialogs at all this time. I don't think I did anything different?
@grahamegrieve, hm… This seems like one of those weird cases, when just "reinstalling" (actually replacing an application bundle with another version of it) fixes the problem. That error message sounded strange anyway, since you've said yourself the mentioned folder is present.
What happens if you go back to the official version? Does the error dialog reappear?
In any case, let it run (the special version, or even the official one if it doesn't report the error anymore) for a few more days and let's see if the error happens again. If it does, please let me know.
it started happening again: Failed to initialize repository info (2) - same message each time
@grahamegrieve, it's very strange… It seems that trying to retrieve some properties of the folder reports error that folder doesn't exist, but you said yourself you can see it there.
Anyway, I prepared yet another special version, which you can download here. It reports itself as version 1.7.4s2 (build 120). Just let it run normally like before, but when the error happens don't dismiss the error dialog, open Console.app instead and look for some console messages of interest. To make it easier, filter messages with: PROCESS: ag.zigz.GitFinder.GitService
and MESSAGE: __GF:
, like in the picture below:
You should see some messages in there, please let me know (copy/paste or screenshot) which messages you see, you should see something similar to the picture above, but with different outcome/results.
Another question: I didn't look into those scripts you run, but is it possible they "mess" with the contents of the REPO_PATH/.git
directory, temporarily moving/renaming files in it?
ok downloaded the app. I'll let you know how it goes. The scripts only do git clone and git pull with fast-forward.
@grahamegrieve, how does this new special build work?
Process: ag.zigz.GitFinder.GitService [84654] Path: /Applications/GitFinder.app/Contents/XPCServices/ag.zigz.GitFinder.GitService.xpc/Contents/MacOS/ag.zigz.GitFinder.GitService Identifier: ag.zigz.GitFinder.GitService Version: 1.7.4s2 (120) Code Type: ARM-64 (Native) Parent Process: ??? [1] Responsible: GitFinder [52435] User ID: 501
Date/Time: 2021-11-28 21:04:28.081 +1100 OS Version: macOS 11.6 (20G165) Report Version: 12 Anonymous UUID: 4367F980-F0FB-9BE0-4150-75D09548585E
Sleep/Wake UUID: D6837B98-2C87-448A-81DD-BD7D0A951EED
Time Awake Since Boot: 350000 seconds Time Since Wake: 800 seconds
System Integrity Protection: enabled
Crashed Thread: 2 Dispatch queue: NSManagedObjectContext 0x1524319d0
Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information: Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: ' -[NSXPCEncoder _checkObject:]: This coder only encodes objects that adopt NSSecureCoding (object is of class 'NSSQLCore').' abort() called terminating with uncaught exception of type NSException
Application Specific Backtrace 1: 0 CoreFoundation 0x000000019a4ab838 exceptionPreprocess + 240 1 libobjc.A.dylib 0x000000019a1d50a8 objc_exception_throw + 60 2 Foundation 0x000000019b191010 -[NSXPCEncoder _checkObject:] + 332 3 Foundation 0x000000019b190c9c -[NSXPCEncoder _encodeUnkeyedObject:] + 56 4 Foundation 0x000000019b1a479c -[NSXPCEncoder _encodeArrayOfObjects:forKey:] + 212 5 Foundation 0x000000019b1b0914 -[NSArray(NSArray) encodeWithCoder:] + 164 6 Foundation 0x000000019b19136c -[NSXPCEncoder _encodeObject:] + 520 7 Foundation 0x000000019b1a479c -[NSXPCEncoder _encodeArrayOfObjects:forKey:] + 212 8 Foundation 0x000000019b1c1e48 -[NSDictionary(NSDictionary) encodeWithCoder:] + 700 9 Foundation 0x000000019b19136c -[NSXPCEncoder _encodeObject:] + 520 10 Foundation 0x000000019b262c60 -[NSError encodeWithCoder:] + 228 11 Foundation 0x000000019b19136c -[NSXPCEncoder _encodeObject:] + 520 12 Foundation 0x000000019b196ef0 _NSXPCSerializationAddInvocationWithOnlyObjectArgumentsArray + 120 13 Foundation 0x000000019b196d9c -[NSXPCEncoder _encodeInvocationObjectArgumentsOnly:count:typeString:selector:isReply:into:] + 212 14 Foundation 0x000000019b1e0a60 _sendReplyArgumentsOnly + 216 15 Foundation 0x000000019b45b68c 58-[NSXPCConnection _decodeAndInvokeMessageWithEvent:flags:]_block_invoke_2.82 + 96 16 Foundation 0x000000019b1e08f8 -[_NSXPCConnectionRequestedReplies endTransactionForSequence:completionHandler:] + 208 17 Foundation 0x000000019b45b604 __58-[NSXPCConnection _decodeAndInvokeMessageWithEvent:flags:]_block_invoke.81 + 168 18 ag.zigz.GitFinder.GitService 0x00000001008ec9a0 checkoutProgressCallback + 10704 19 CoreData 0x000000019fa4efe8 developerSubmittedBlockToNSManagedObjectContextPerform + 164 20 libdispatch.dylib 0x000000019a17fec0 _dispatch_client_callout + 20 21 libdispatch.dylib 0x000000019a1876a8 _dispatch_lane_serial_drain + 620 22 libdispatch.dylib 0x000000019a1882a4 _dispatch_lane_invoke + 404 23 libdispatch.dylib 0x000000019a192b74 _dispatch_workloop_worker_thread + 764 24 libsystem_pthread.dylib 0x000000019a32b89c _pthread_wqthread + 276 25 libsystem_pthread.dylib 0x000000019a32a5d4 start_wqthread + 8
Thread 0: 0 libsystem_kernel.dylib 0x000000019a2fbeac __sigsuspend_nocancel + 8 1 libdispatch.dylib 0x000000019a193518 _dispatch_sigsuspend + 48 2 libdispatch.dylib 0x000000019a1934e8 _dispatch_sig_thread + 60
Thread 1: 0 libsystem_pthread.dylib 0x000000019a32a5cc start_wqthread + 0
Thread 2 Crashed:: Dispatch queue: NSManagedObjectContext 0x1524319d0 0 libsystem_kernel.dylib 0x000000019a2fce68 __pthread_kill + 8 1 libsystem_pthread.dylib 0x000000019a32f43c pthread_kill + 292 2 libsystem_c.dylib 0x000000019a277454 abort + 124 3 libc++abi.dylib 0x000000019a2edb44 abort_message + 132 4 libc++abi.dylib 0x000000019a2dee54 demangling_terminate_handler() + 308 5 libobjc.A.dylib 0x000000019a1d7c94 _objc_terminate() + 144 6 libc++abi.dylib 0x000000019a2ecf2c std::__terminate(void (*)()) + 20 7 libc++abi.dylib 0x000000019a2eceb8 std::terminate() + 48 8 libdispatch.dylib 0x000000019a17fed4 _dispatch_client_callout + 40 9 libdispatch.dylib 0x000000019a1876a8 _dispatch_lane_serial_drain + 620 10 libdispatch.dylib 0x000000019a1882a4 _dispatch_lane_invoke + 404 11 libdispatch.dylib 0x000000019a192b74 _dispatch_workloop_worker_thread + 764 12 libsystem_pthread.dylib 0x000000019a32b89c _pthread_wqthread + 276 13 libsystem_pthread.dylib 0x000000019a32a5d4 start_wqthread + 8
Thread 2 crashed with ARM Thread State (64-bit): x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000000000000 x4: 0x000000016f6cde90 x5: 0x000000016f6ce440 x6: 0x000000000000006e x7: 0xffffffff00000500 x8: 0xee13dc8606008f0f x9: 0xee13dc87696c7f0f x10: 0x0000000000000002 x11: 0x0000000000000003 x12: 0x0000000000000000 x13: 0x0000000000000000 x14: 0x0000000000000010 x15: 0x0000000000000000 x16: 0x0000000000000148 x17: 0x0000000208db6e90 x18: 0x0000000000000000 x19: 0x0000000000000006 x20: 0x000000016f6cf000 x21: 0x000000000000261b x22: 0x000000016f6cf0e0 x23: 0x0000000000000000 x24: 0x0000000000000000 x25: 0x000000016f6cf0e0 x26: 0x0000000103804180 x27: 0x0000000000000000 x28: 0x0000000000000104 fp: 0x000000016f6ce3b0 lr: 0x000000019a32f43c sp: 0x000000016f6ce390 pc: 0x000000019a2fce68 cpsr: 0x40001000 far: 0x00000001f93707a0 esr: 0x56000080
Binary Images:
0x1008d0000 - 0x100b27fff +ag.zigz.GitFinder.GitService (1.7.4s2 - 120)
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: 5 thread_create: 0 thread_set_state: 192
VM Region Summary: ReadOnly portion of Libraries: Total=653.8M resident=0K(0%) swapped_out_or_unallocated=653.8M(100%) Writable regions: Total=1.4G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=1.4G(100%)
VIRTUAL REGION
REGION TYPE SIZE COUNT (non-coalesced) =========== ======= ======= Activity Tracing 256K 1 CoreData Object IDs 4112K 2 Dispatch continuations 64.0M 1 Foundation 16K 1 Kernel Alloc Once 32K 1 MALLOC 473.2M 276 MALLOC guard page 96K 5 MALLOC_MEDIUM (reserved) 936.0M 8 reserved VM address space (unallocated) SQLite page cache 64K 1 STACK GUARD 48K 3 Stack 1664K 4 Stack Guard 64.0M 2 VM_ALLOCATE 1.0G 2 AUTH 510K 111 AUTH_CONST 7701K 240 DATA 4609K 231 DATA_CONST 8488K 239 DATA_DIRTY 569K 90 __FONT_DATA 4K 1 LINKEDIT 490.5M 7 OBJC_CONST 1028K 90 __OBJC_RO 75.1M 1 OBJC_RW 2576K 1 TEXT 163.3M 254 UNICODE 588K 1 mapped file 30.9M 4 shared memory 624K 7 =========== ======= ======= TOTAL 3.3G 1584 TOTAL, minus reserved VM space 2.4G 1584
That's all I found in Console - I'm not familiar with it, but it didn't seem to have much. And that report might be from something else - GitFinder doesn't like it if I move local clones to trash, for instance
@grahamegrieve, do you still experience this particular problem?
no, I cannot reproduce it
I have this exact same issue.
Failed to initialize repository info: The file “ag.zigz.GitFinder” couldn’t be opened because there is no such file.
I get a dialog saying this every time git runs in my terminal windows e.g. doing a build