Skip to content

Crash with Preferences open #829

@tbussmann

Description

@tbussmann

Here is a reproducible crash I just encountered (verified on macOS 11 and 12):

  • Open Postgres.app Preferences
  • Change the permission value for a client app, like Terminal
  • Keep the Prefereneces window open
  • Connect with that app, e.g. by double clicking a database in the main window
  • The GUI crashes
Excerpt from crash report
[...]

Crashed Thread:        4  Dispatch queue: com.apple.root.user-initiated-qos.cooperative

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                      0x00000001ab5810b8 __exceptionPreprocess + 240
1   libobjc.A.dylib                     0x00000001ab2cb8dc objc_exception_throw + 60
2   CoreAutoLayout                      0x00000001b29bbd88 -[NSISEngine tryToOptimizeReturningMutuallyExclusiveConstraints] + 0
3   CoreAutoLayout                      0x00000001b29bc068 -[NSISEngine withBehaviors:performModifications:] + 36
4   CoreAutoLayout                      0x00000001b29d7b0c +[NSLayoutConstraint _addOrRemoveConstraints:activate:] + 364
5   CoreFoundation                      0x00000001ab4c3410 __NSDICTIONARY_IS_CALLING_OUT_TO_A_BLOCK__ + 24
6   CoreFoundation                      0x00000001ab502ce8 -[__NSDictionaryM enumerateKeysAndObjectsWithOptions:usingBlock:] + 212
7   AppKit                              0x00000001ae189c80 -[NSTableRowView _dropAllConstraints] + 56
8   AppKit                              0x00000001ae189898 -[NSTableRowData _removeViewAndAddToReuse:forRow:] + 132
9   AppKit                              0x00000001ae192bc8 -[NSTableRowData _removeRowViewForRow:] + 176
10  AppKit                              0x00000001aea2bfec __36-[NSTableRowData _removeVisibleRows]_block_invoke + 48
11  AppKit                              0x00000001ae102c28 -[NSTableRowData _removeVisibleRows] + 148
12  AppKit                              0x00000001ae102898 -[NSTableRowData removeAllKnownSubviews] + 116
13  AppKit                              0x00000001aea2af64 -[NSTableRowData purgeRowViewData] + 104
14  AppKit                              0x00000001ae133160 -[NSTableView reloadData] + 176
15  AppKit                              0x00000001ae2266ec -[NSTableBinder _updateContent] + 324
16  AppKit                              0x00000001ae2264a4 -[NSTableBinder _handleContentChange:] + 92
17  AppKit                              0x00000001ae2262b0 -[NSTableBinder observeValueForKeyPath:ofObject:change:context:] + 72
18  Foundation                          0x00000001ac3b6f0c NSKeyValueNotifyObserver + 292
19  Foundation                          0x00000001ac3b0de4 -[NSObject(NSKeyValueObservingPrivate) _notifyObserversForKeyPath:change:] + 716
20  AppKit                              0x00000001ae0452d4 -[NSController _notifyObserversForKeyPath:change:] + 200
21  AppKit                              0x00000001ae0e80c4 -[NSArrayController didChangeValuesForArrangedKeys:objectKeys:indexKeys:] + 84
22  AppKit                              0x00000001ae0e6c40 -[NSArrayController setContent:] + 696
23  AppKit                              0x00000001ae2ac23c -[NSArrayDetailBinder _refreshDetailContentInBackground:] + 1172
24  Foundation                          0x00000001ac3b6f0c NSKeyValueNotifyObserver + 292
25  Foundation                          0x00000001ac3b0de4 -[NSObject(NSKeyValueObservingPrivate) _notifyObserversForKeyPath:change:] + 716
26  AppKit                              0x00000001ae0452d4 -[NSController _notifyObserversForKeyPath:change:] + 200
27  AppKit                              0x00000001ae075fe8 -[NSController observeValueForKeyPath:ofObject:change:context:] + 856
28  Foundation                          0x00000001ac3b6f0c NSKeyValueNotifyObserver + 292
29  Foundation                          0x00000001ac48417c NSKeyValueDidChange + 376
30  Foundation                          0x00000001ac3a8abc -[NSObject(NSKeyValueObservingPrivate) _changeValueForKeys:count:maybeOldValuesDict:maybeNewValuesDict:usingBlock:] + 656
31  Foundation                          0x00000001ac3b8a7c -[NSObject(NSKeyValueObservingPrivate) _notifyObserversOfChangeFromValuesForKeys:toValuesForKeys:] + 816
32  CoreFoundation                      0x00000001ab4c2764 -[CFPrefsSource forEachObserver:] + 332
33  CoreFoundation                      0x00000001ab502bd4 -[CFPrefsSource _notifyObserversOfChangeFromValuesForKeys:toValuesForKeys:] + 112
34  CoreFoundation                      0x00000001ab502a40 ___CFPrefsDeliverPendingKVONotificationsGuts_block_invoke + 440
35  CoreFoundation                      0x00000001ab50287c __CFDictionaryApplyFunction_block_invoke + 28
36  CoreFoundation                      0x00000001ab4c75b8 CFBasicHashApply + 148
37  CoreFoundation                      0x00000001ab4b911c CFDictionaryApplyFunction + 328
38  CoreFoundation                      0x00000001ab5027f0 _CFPrefsDeliverPendingKVONotificationsGuts + 300
39  CoreFoundation                      0x00000001ab4aa014 -[_CFXPreferences _deliverPendingKVONotifications] + 96
40  CoreFoundation                      0x00000001ab4aa9dc __108-[_CFXPreferences(SearchListAdditions) withSearchListForIdentifier:container:cloudConfigurationURL:perform:]_block_invoke + 412
41  CoreFoundation                      0x00000001ab61f350 -[_CFXPreferences withSearchListForIdentifier:container:cloudConfigurationURL:perform:] + 384
42  CoreFoundation                      0x00000001ab507438 -[_CFXPreferences setValue:forKey:appIdentifier:container:configurationURL:] + 128
43  CoreFoundation                      0x00000001ab507378 _CFPreferencesSetAppValueWithContainerAndConfiguration + 136
44  Foundation                          0x00000001ac3f556c -[NSUserDefaults(NSUserDefaults) setObject:forKey:] + 84
45  Postgres                            0x0000000104ad22f0 Postgres + 205552
46  Postgres                            0x0000000104adf90d Postgres + 260365
47  Postgres                            0x0000000104ae0681 Postgres + 263809
48  Postgres                            0x0000000104ae073d Postgres + 263997
49  Postgres                            0x0000000104acba3d Postgres + 178749
50  libswift_Concurrency.dylib          0x000000022bcaeea1 _ZL23completeTaskWithClosurePN5swift12AsyncContextEPNS_10SwiftErrorE + 1

[...]

Thread 4 Crashed::  Dispatch queue: com.apple.root.user-initiated-qos.cooperative
0   libsystem_kernel.dylib        	       0x1ab3fed38 __pthread_kill + 8
1   libsystem_pthread.dylib       	       0x1ab433ee0 pthread_kill + 288
2   libsystem_c.dylib             	       0x1ab36e330 abort + 168
3   libc++abi.dylib               	       0x1ab3eeb18 abort_message + 132
4   libc++abi.dylib               	       0x1ab3dea54 demangling_terminate_handler() + 336
5   libobjc.A.dylib               	       0x1ab2d41b8 _objc_terminate() + 144
6   libc++abi.dylib               	       0x1ab3edeb4 std::__terminate(void (*)()) + 20
7   libc++abi.dylib               	       0x1ab3f0ecc __cxa_rethrow + 148
8   libobjc.A.dylib               	       0x1ab2e0c88 objc_exception_rethrow + 44
9   CoreFoundation                	       0x1ab50281c _CFPrefsDeliverPendingKVONotificationsGuts + 344
10  CoreFoundation                	       0x1ab4aa014 -[_CFXPreferences _deliverPendingKVONotifications] + 96
11  CoreFoundation                	       0x1ab4aa9dc __108-[_CFXPreferences(SearchListAdditions) withSearchListForIdentifier:container:cloudConfigurationURL:perform:]_block_invoke + 412
12  CoreFoundation                	       0x1ab61f350 -[_CFXPreferences withSearchListForIdentifier:container:cloudConfigurationURL:perform:] + 384
13  CoreFoundation                	       0x1ab507438 -[_CFXPreferences setValue:forKey:appIdentifier:container:configurationURL:] + 128
14  CoreFoundation                	       0x1ab507378 _CFPreferencesSetAppValueWithContainerAndConfiguration + 136
15  Foundation                    	       0x1ac3f556c -[NSUserDefaults(NSUserDefaults) setObject:forKey:] + 84
16  Postgres                      	       0x104ad22f0 0x104aa0000 + 205552
17  Postgres                      	       0x104adf90d 0x104aa0000 + 260365
18  Postgres                      	       0x104ae0681 0x104aa0000 + 263809
19  Postgres                      	       0x104ae073d 0x104aa0000 + 263997
20  Postgres                      	       0x104acba3d 0x104aa0000 + 178749
21  libswift_Concurrency.dylib    	       0x22bcaeea1 completeTaskWithClosure(swift::AsyncContext*, swift::SwiftError*) + 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions