TeslaBuds / AuthAppForTesla

54 stars 13 forks source link

App Store version crashing #25

Open ericfitz opened 2 years ago

ericfitz commented 2 years ago

I just installed the app (version 1.0.6) from the app store onto a new MacBook Pro.

OS is Monterey (MacOS 12.6), fully patched.

Hardware is 2022 MacBook Pro 13" (M2 CPU); A2338

The app starts normally, but when you type an email address the app spins for a few seconds and crashes/exits. MacOS presents the normal "send to Apple" dialog.

Starting the app again, I type the email address again and it prompts for password, but it crashes/exits either before or after you type the password.

Theory: something is going on internally in the app in the background, fails after about 30sec and the app crashes.

Here's the abbreviated crash report:

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               AuthAppForTesla [8343]
Path:                  /Applications/AuthAppForTesla.app/Contents/MacOS/AuthAppForTesla
Identifier:            dk.kimhansen.AuthAppForTesla
Version:               1.0.6 (32)
App Item ID:           1552058613
App External ID:       845149716
Code Type:             ARM-64 (Native)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2022-09-14 14:13:26.5845 -0400
OS Version:            macOS 12.6 (21G115)
Report Version:        12
Anonymous UUID:        7D559699-6A67-3E78-79A1-1DEF796DC05E

Time Awake Since Boot: 83000 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                      0x00000001aecfd148 __exceptionPreprocess + 240
1   libobjc.A.dylib                     0x00000001aea47e04 objc_exception_throw + 60
2   Foundation                          0x00000001afc7be50 -[NSMutableDictionary(NSMutableDictionary) initWithContentsOfFile:] + 0
3   AppKit                              0x00000001b183653c -[NSWindow _reallySetFrame:] + 900
4   AppKit                              0x00000001b1835dfc -[NSWindow _oldPlaceWindow:fromServer:] + 228
5   AppKit                              0x00000001b1834de0 -[NSWindow _setFrameCommon:display:fromServer:] + 2220
6   SafariPlatformSupport               0x00000001d5d13f08 __85-[SPSafariPlatformSupport displayOTPAutoFillRelativeToRect:ofView:completionHandler:]_block_invoke + 300
7   SafariPlatformSupport               0x00000001d5d13d68 -[SPSafariPlatformSupport displayOTPAutoFillRelativeToRect:ofView:completionHandler:] + 260
8   UIKitCore                           0x00000001d780b4d8 -[UIKeyboardImpl generateAutofillCandidateByAddingTask:] + 944
9   UIKitCore                           0x00000001d7815710 -[UIKeyboardImpl setDelegate:force:] + 6380
10  UIKitCore                           0x00000001d74f51bc -[UIKeyboardSceneDelegate _reloadInputViewsForKeyWindowSceneResponder:] + 2024
11  UIKitCore                           0x00000001d74f49a8 -[UIKeyboardSceneDelegate _reloadInputViewsForResponder:] + 164
12  UIKitCore                           0x00000001d6e645e4 -[UIResponder(UIResponderInputViewAdditions) reloadInputViews] + 132
13  WebKit                              0x00000001e8d4ad68 -[WKContentView(WKInteraction) _elementDidFocus:userIsInteracting:blurPreviousNode:activityStateChanges:userObject:] + 2124
14  WebKit                              0x00000001e8962310 _ZN6WebKit12WebPageProxy15elementDidFocusERKNS_25FocusedElementInformationEbbN3WTF9OptionSetIN7WebCore13ActivityState4FlagEEERKNS_8UserDataE + 216
15  WebKit                              0x00000001e8cb5058 _ZN6WebKit12WebPageProxy17didReceiveMessageERN3IPC10ConnectionERNS1_7DecoderE + 81764
16  WebKit                              0x00000001e8896764 _ZN3IPC18MessageReceiverMap15dispatchMessageERNS_10ConnectionERNS_7DecoderE + 264
17  WebKit                              0x00000001e8a4c2e0 _ZN6WebKit15WebProcessProxy17didReceiveMessageERN3IPC10ConnectionERNS1_7DecoderE + 40
18  WebKit                              0x00000001e887e270 _ZN3IPC10Connection15dispatchMessageENSt3__110unique_ptrINS_7DecoderENS1_14default_deleteIS3_EEEE + 788
19  WebKit                              0x00000001e887d92c _ZN3IPC10Connection24dispatchIncomingMessagesEv + 508
20  JavaScriptCore                      0x00000001e69c1e80 _ZN3WTF7RunLoop11performWorkEv + 200
21  JavaScriptCore                      0x00000001e69c2c1c _ZN3WTF7RunLoop11performWorkEPv + 36
22  CoreFoundation                      0x00000001aec7cf94 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
23  CoreFoundation                      0x00000001aec7cee0 __CFRunLoopDoSource0 + 208
24  CoreFoundation                      0x00000001aec7cbe0 __CFRunLoopDoSources0 + 268
25  CoreFoundation                      0x00000001aec7b560 __CFRunLoopRun + 828
26  CoreFoundation                      0x00000001aec7aa84 CFRunLoopRunSpecific + 600
27  HIToolbox                           0x00000001b78ba338 RunCurrentEventLoopInMode + 292
28  HIToolbox                           0x00000001b78ba0b4 ReceiveNextEventCommon + 564
29  HIToolbox                           0x00000001b78b9e68 _BlockUntilNextEventMatchingListInModeWithFilter + 72
30  AppKit                              0x00000001b17e251c _DPSNextEvent + 860
31  AppKit                              0x00000001b17e0e14 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1328
32  AppKit                              0x00000001b17d2fe0 -[NSApplication run] + 596
33  AppKit                              0x00000001b17a46fc NSApplicationMain + 1132
34  AppKit                              0x00000001b1a7a640 +[NSWindow _savedFrameFromString:] + 0
35  UIKitMacHelper                      0x00000001c45403c0 UINSApplicationMain + 1276
36  UIKitCore                           0x00000001d6cddc40 UIApplicationMain + 164
37  SwiftUI                             0x00000001ec748c44 $s7SwiftUI17KitRendererCommon33_ACC2C5639A7D76F611E170E831FCA491LLys5NeverOyXlXpFAESpySpys4Int8VGSgGXEfU_ + 164
38  SwiftUI                             0x00000001ec748b9c $s7SwiftUI6runAppys5NeverOxAA0D0RzlF + 252
39  SwiftUI                             0x00000001ec039f9c $s7SwiftUI3AppPAAE4mainyyFZ + 128
40  AuthAppForTesla                     0x0000000104fc2e1c AuthAppForTesla + 11804
41  dyld                                0x00000001051a908c start + 520

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib                 0x1aeb7ad98 __pthread_kill + 8
1   libsystem_pthread.dylib                0x1aebafee0 pthread_kill + 288
2   libsystem_c.dylib                      0x1aeaea340 abort + 168
3   libc++abi.dylib                        0x1aeb6ab08 abort_message + 132
4   libc++abi.dylib                        0x1aeb5a950 demangling_terminate_handler() + 336
5   libobjc.A.dylib                        0x1aea50320 _objc_terminate() + 144
6   libc++abi.dylib                        0x1aeb69ea4 std::__terminate(void (*)()) + 20
7   libc++abi.dylib                        0x1aeb6cebc __cxa_rethrow + 148
8   libobjc.A.dylib                        0x1aea5ccb0 objc_exception_rethrow + 44
9   AppKit                                 0x1b183546c -[NSWindow _setFrameCommon:display:fromServer:] + 3896
10  SafariPlatformSupport                  0x1d5d13f08 __85-[SPSafariPlatformSupport displayOTPAutoFillRelativeToRect:ofView:completionHandler:]_block_invoke + 300
11  SafariPlatformSupport                  0x1d5d13d68 -[SPSafariPlatformSupport displayOTPAutoFillRelativeToRect:ofView:completionHandler:] + 260
12  UIKitCore                              0x1d780b4d8 -[UIKeyboardImpl generateAutofillCandidateByAddingTask:] + 944
13  UIKitCore                              0x1d7815710 -[UIKeyboardImpl setDelegate:force:] + 6380
14  UIKitCore                              0x1d74f51bc -[UIKeyboardSceneDelegate _reloadInputViewsForKeyWindowSceneResponder:] + 2024
15  UIKitCore                              0x1d74f49a8 -[UIKeyboardSceneDelegate _reloadInputViewsForResponder:] + 164
16  UIKitCore                              0x1d6e645e4 -[UIResponder(UIResponderInputViewAdditions) reloadInputViews] + 132
17  WebKit                                 0x1e8d4ad68 -[WKContentView(WKInteraction) _elementDidFocus:userIsInteracting:blurPreviousNode:activityStateChanges:userObject:] + 2124
18  WebKit                                 0x1e8962310 WebKit::WebPageProxy::elementDidFocus(WebKit::FocusedElementInformation const&, bool, bool, WTF::OptionSet<WebCore::ActivityState::Flag>, WebKit::UserData const&) + 216
19  WebKit                                 0x1e8cb5058 WebKit::WebPageProxy::didReceiveMessage(IPC::Connection&, IPC::Decoder&) + 81764
20  WebKit                                 0x1e8896764 IPC::MessageReceiverMap::dispatchMessage(IPC::Connection&, IPC::Decoder&) + 264
21  WebKit                                 0x1e8a4c2e0 WebKit::WebProcessProxy::didReceiveMessage(IPC::Connection&, IPC::Decoder&) + 40
22  WebKit                                 0x1e887e270 IPC::Connection::dispatchMessage(std::__1::unique_ptr<IPC::Decoder, std::__1::default_delete<IPC::Decoder> >) + 788
23  WebKit                                 0x1e887d92c IPC::Connection::dispatchIncomingMessages() + 508
24  JavaScriptCore                         0x1e69c1e80 WTF::RunLoop::performWork() + 200
25  JavaScriptCore                         0x1e69c2c1c WTF::RunLoop::performWork(void*) + 36
26  CoreFoundation                         0x1aec7cf94 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
27  CoreFoundation                         0x1aec7cee0 __CFRunLoopDoSource0 + 208
28  CoreFoundation                         0x1aec7cbe0 __CFRunLoopDoSources0 + 268
29  CoreFoundation                         0x1aec7b560 __CFRunLoopRun + 828
30  CoreFoundation                         0x1aec7aa84 CFRunLoopRunSpecific + 600
31  HIToolbox                              0x1b78ba338 RunCurrentEventLoopInMode + 292
32  HIToolbox                              0x1b78ba0b4 ReceiveNextEventCommon + 564
33  HIToolbox                              0x1b78b9e68 _BlockUntilNextEventMatchingListInModeWithFilter + 72
34  AppKit                                 0x1b17e251c _DPSNextEvent + 860
35  AppKit                                 0x1b17e0e14 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1328
36  AppKit                                 0x1b17d2fe0 -[NSApplication run] + 596
37  AppKit                                 0x1b17a46fc NSApplicationMain + 1132
38  AppKit                                 0x1b1a7a640 _NSApplicationMainWithInfoDictionary + 24
39  UIKitMacHelper                         0x1c45403c0 UINSApplicationMain + 1276
40  UIKitCore                              0x1d6cddc40 UIApplicationMain + 164
41  SwiftUI                                0x1ec748c44 closure #1 in KitRendererCommon(_:) + 164
42  SwiftUI                                0x1ec748b9c runApp<A>(_:) + 252
43  SwiftUI                                0x1ec039f9c static App.main() + 128
44  AuthAppForTesla                        0x104fc2e1c 0x104fc0000 + 11804
45  dyld                                   0x1051a908c start + 520

Thread 1:
0   libsystem_pthread.dylib                0x1aebab078 start_wqthread + 0

Thread 2:: com.apple.uikit.eventfetch-thread
0   libsystem_kernel.dylib                 0x1aeb728b0 mach_msg_trap + 8
1   libsystem_kernel.dylib                 0x1aeb72d20 mach_msg + 76
2   CoreFoundation                         0x1aec7d210 __CFRunLoopServiceMachPort + 372
3   CoreFoundation                         0x1aec7b6c0 __CFRunLoopRun + 1180
4   CoreFoundation                         0x1aec7aa84 CFRunLoopRunSpecific + 600
5   Foundation                             0x1afb600c0 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 236
6   Foundation                             0x1afbeb0ac -[NSRunLoop(NSRunLoop) runUntilDate:] + 124
7   UIKitCore                              0x1d6cdf3bc -[UIEventFetcher threadMain] + 156
8   Foundation                             0x1afb585cc __NSThread__start__ + 808
9   libsystem_pthread.dylib                0x1aebb026c _pthread_start + 148
10  libsystem_pthread.dylib                0x1aebab08c thread_start + 8

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

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

Thread 5:: com.apple.NSEventThread
0   libsystem_kernel.dylib                 0x1aeb728b0 mach_msg_trap + 8
1   libsystem_kernel.dylib                 0x1aeb72d20 mach_msg + 76
2   CoreFoundation                         0x1aec7d210 __CFRunLoopServiceMachPort + 372
3   CoreFoundation                         0x1aec7b6c0 __CFRunLoopRun + 1180
4   CoreFoundation                         0x1aec7aa84 CFRunLoopRunSpecific + 600
5   AppKit                                 0x1b194f100 _NSEventThread + 196
6   libsystem_pthread.dylib                0x1aebb026c _pthread_start + 148
7   libsystem_pthread.dylib                0x1aebab08c thread_start + 8

Thread 6:: JavaScriptCore libpas scavenger
0   libsystem_kernel.dylib                 0x1aeb76270 __psynch_cvwait + 8
1   libsystem_pthread.dylib                0x1aebb083c _pthread_cond_wait + 1236
2   JavaScriptCore                         0x1e6a56dcc scavenger_thread_main + 1220
3   libsystem_pthread.dylib                0x1aebb026c _pthread_start + 148
4   libsystem_pthread.dylib                0x1aebab08c thread_start + 8

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

Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000000   x1: 0x0000000000000000   x2: 0x0000000000000000   x3: 0x0000000000000000
    x4: 0x00000001aeb6e0f5   x5: 0x000000016ae3ba00   x6: 0x000000000000006e   x7: 0x0000000000000001
    x8: 0x00b978141564f001   x9: 0x00b9781510453581  x10: 0x0000000000000200  x11: 0x000000000000000b
   x12: 0x000000000000000b  x13: 0x00000001af0be2ed  x14: 0x00000001aeb6e11b  x15: 0x00000000000065ec
   x16: 0x0000000000000148  x17: 0x0000000208cd3680  x18: 0x0000000000000000  x19: 0x0000000000000006
   x20: 0x000000010521c580  x21: 0x0000000000000103  x22: 0x000000010521c660  x23: 0x0000000000000000
   x24: 0x00000001f8fb3000  x25: 0x0000000000000000  x26: 0x0000000000000001  x27: 0x8000000000060080
   x28: 0x0000000000000438   fp: 0x000000016ae3b970   lr: 0x00000001aebafee0
    sp: 0x000000016ae3b950   pc: 0x00000001aeb7ad98 cpsr: 0x40001000
   far: 0x000000016f0d8000  esr: 0x56000080  Address size fault

Binary Images:
       0x1aeb71000 -        0x1aeba8fff libsystem_kernel.dylib (*) <a9d87740-9c1d-3468-bf60-720a8d713cba> /usr/lib/system/libsystem_kernel.dylib
       0x1aeba9000 -        0x1aebb5fff libsystem_pthread.dylib (*) <63c4eef9-69a5-38b1-996e-8d31b66a051d> /usr/lib/system/libsystem_pthread.dylib
       0x1aea70000 -        0x1aeaf1fff libsystem_c.dylib (*) <b25d2080-bb9e-38d6-8236-9cef4b2f11a3> /usr/lib/system/libsystem_c.dylib
       0x1aeb59000 -        0x1aeb70fff libc++abi.dylib (*) <4e8d8a11-4217-3d56-9d41-5426f7cf307c> /usr/lib/libc++abi.dylib
       0x1aea2f000 -        0x1aea6cfff libobjc.A.dylib (*) <ec96f0fa-6341-3e1d-be54-49b544e17f7d> /usr/lib/libobjc.A.dylib
       0x1b17a1000 -        0x1b2659fff com.apple.AppKit (6.9) <5e432f87-5b58-391a-a542-fa2d909dd210> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
       0x1d5d10000 -        0x1d5d18fff com.apple.SafariPlatformSupport.framework (17613) <c5160821-406e-3a79-930f-d52ca7305b12> /System/Library/PrivateFrameworks/SafariPlatformSupport.framework/Versions/A/SafariPlatformSupport
       0x1d6cda000 -        0x1d83e7fff com.apple.UIKitCore (1.0) <bfeae47b-fbf1-3afe-ad86-95f9b74ed34f> /System/iOSSupport/System/Library/PrivateFrameworks/UIKitCore.framework/Versions/A/UIKitCore
       0x1e8564000 -        0x1e8e6efff com.apple.WebKit (17613) <6c6791b5-c490-3a99-8a0b-5d829a43ae25> /System/iOSSupport/System/Library/Frameworks/WebKit.framework/Versions/A/WebKit
       0x1e681b000 -        0x1e7cb5fff com.apple.JavaScriptCore (17613) <ce8b795f-1ad8-3eab-9092-d4ba853f771d> /System/iOSSupport/System/Library/Frameworks/JavaScriptCore.framework/Versions/A/JavaScriptCore
       0x1aebf8000 -        0x1af13efff com.apple.CoreFoundation (6.9) <fc3c193d-0cdb-3569-9f0e-bd2507ca1dbb> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
       0x1b7888000 -        0x1b7bbbfff com.apple.HIToolbox (2.1.1) <aaf900bd-bfb6-3af0-a8d3-e24bbe1d57f5> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
       0x1c453b000 -        0x1c4641fff com.apple.UIKitMacHelper (1.0) <262cc0ce-2d4d-36cb-add9-bc9b26d56de4> /System/Library/PrivateFrameworks/UIKitMacHelper.framework/Versions/A/UIKitMacHelper
       0x1ebb58000 -        0x1ecc0ffff com.apple.SwiftUI (3.5.2) <5dae1396-7e98-375b-88d5-e04e2a18af43> /System/iOSSupport/System/Library/Frameworks/SwiftUI.framework/Versions/A/SwiftUI
       0x104fc0000 -        0x104ffffff dk.kimhansen.AuthAppForTesla (1.0.6) <ea9e1da8-aaa9-3ab1-92ae-122b24abb5e4> /Applications/AuthAppForTesla.app/Contents/MacOS/AuthAppForTesla
       0x1051a4000 -        0x105203fff dyld (*) <38ee9fe9-b66d-3066-8c5c-6ddf0d6944c6> /usr/lib/dyld
       0x1afafc000 -        0x1afeedfff com.apple.Foundation (6.9) <8bbf8f9b-0034-34f0-a2c5-13c31941632d> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation

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=497.2M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=497.2M(100%)

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Accelerate framework               256K        2 
Activity Tracing                   256K        1 
CG backing stores                 3072K        4 
CG image                           176K        8 
CG raster data                    9168K        1 
ColorSync                          640K       28 
CoreAnimation                      688K       28 
CoreGraphics                        32K        2 
CoreUI image data                 1456K       10 
Dispatch continuations            64.0M        1 
Foundation                          48K        2 
Kernel Alloc Once                   32K        1 
MALLOC                           120.3M       49 
MALLOC guard page                  192K        9 
MALLOC_MEDIUM (reserved)         104.0M        1         reserved VM address space (unallocated)
STACK GUARD                       56.1M        8 
Stack                             11.7M        8 
VM_ALLOCATE                       1264K       16 
WebKit Malloc                    192.0M        4 
__AUTH                            3476K      413 
__AUTH_CONST                      23.3M      627 
__CTF                               756        1 
__DATA                            18.0M      621 
__DATA_CONST                      23.8M      638 
__DATA_DIRTY                      2570K      283 
__FONT_DATA                          4K        1 
__LINKEDIT                       579.1M        7 
__OBJC_CONST                      5012K      378 
__OBJC_RO                         83.0M        1 
__OBJC_RW                         3168K        1 
__TEXT                           576.7M      655 
__UNICODE                          592K        1 
dyld private memory               1024K        1 
mapped file                      216.6M       40 
shared memory                      864K       14 
===========                     =======  ======= 
TOTAL                              2.1G     3865 
TOTAL, minus reserved VM space     2.0G     3865