Post

Replies

Boosts

Views

Activity

Reply to Safari Web Extension running slow
We are experiencing the exact same reports with our Safari extension ever since migrating to Web Extensions. It appears that Safari is spinning its wheels with each open of the pop-up for about 1.2+ seconds or more with each click, before even making the first request to fetch index.html and render. See for reference (also a link in there for a timeline recording): https://github.com/bitwarden/browser/issues/1732. Has there been any progress on this issue or movement on the feedback issue(s)?
Apr ’21
Reply to Extension frequently crashes for a large number of users
Made some progress on swift code cleanup, however we're still seeing crashing coming in: Process:&#9;&#9;&#9;&#9;&#9;&#9;&#9; safari [38865] Path:&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;/Applications/Bitwarden.app/Contents/PlugIns/safari.appex/Contents/MacOS/safari Identifier:&#9;&#9;&#9;&#9;&#9;&#9;com.bitwarden.desktop.safari Version:&#9;&#9;&#9;&#9;&#9;&#9;&#9; 1.44.0 (1.44.0) Code Type:&#9;&#9;&#9;&#9;&#9;&#9; X86-64 (Native) Parent Process:&#9;&#9;&#9;&#9;??? [1] Responsible:&#9;&#9;&#9;&#9;&#9; safari [38865] User ID:&#9;&#9;&#9;&#9;&#9;&#9;&#9; 501 Date/Time:&#9;&#9;&#9;&#9;&#9;&#9; 2020-06-24 13:58:59.613 -0700 OS Version:&#9;&#9;&#9;&#9;&#9;&#9;Mac OS X 10.15.5 (19F101) Report Version:&#9;&#9;&#9;&#9;12 Bridge OS Version:&#9;&#9; 4.5 (17P5300) Anonymous UUID:&#9;&#9;&#9;&#9;3F80BAA9-6034-78E4-362C-F984D783D804 Sleep/Wake UUID:&#9;&#9;&#9; 4EB9346F-DFA1-4481-BE19-13796836F648 Time Awake Since Boot: 300000 seconds Time Since Wake:&#9;&#9;&#9; 1500 seconds System Integrity Protection: enabled Crashed Thread:&#9;&#9;&#9;&#9;8&#9;Dispatch queue: com.apple.NSXPCConnection.user.endpoint Exception Type:&#9;&#9;&#9;&#9;EXC_BREAKPOINT (SIGTRAP) Exception Codes:&#9;&#9;&#9; 0x0000000000000002, 0x0000000000000000 Exception Note:&#9;&#9;&#9;&#9;EXC_CORPSE_NOTIFY Termination Signal:&#9;&#9;Trace/BPT trap: 5 Termination Reason:&#9;&#9;Namespace SIGNAL, Code 0x5 Terminating Process:&#9; exc handler [38865] Thread 8 Crashed:: Dispatch queue: com.apple.NSXPCConnection.user.endpoint 0&#9; com.apple.WebKit&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x00007fff3f4b2b33 WTFCrashWithInfo(int, char const*, char const*, int) + 19 1&#9; com.apple.WebKit&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x00007fff3f763d2f WebKit::CallbackMap::put(WTF::Ref&lt;WebKit::CallbackBase, WTF::DumbPtrTraits<WebKit::CallbackBase&gt; >&amp;&amp;) + 357 2&#9; com.apple.WebKit&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x00007fff3f755aa9 WebKit::WebPageProxy::runJavaScriptInMainFrameScriptWorld(WebCore::RunJavaScriptParameters&amp;&amp;, WTF::Optional&lt;WTF::String&gt; const&amp;, WTF::Function&lt;void (API::SerializedScriptValue*, WTF::Optional<WebCore::ExceptionDetails&gt;, WebKit::CallbackBase::Error)>&amp;&amp;) + 283 3&#9; com.apple.WebKit&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x00007fff3f755960 WebKit::WebPageProxy::runJavaScriptInMainFrame(WebCore::RunJavaScriptParameters&amp;&amp;, WTF::Function&lt;void (API::SerializedScriptValue*, WTF::Optional<WebCore::ExceptionDetails&gt;, WebKit::CallbackBase::Error)>&amp;&amp;) + 36 4&#9; com.apple.WebKit&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x00007fff3f68ea82 -[WKWebView _evaluateJavaScript:asAsyncFunction:withArguments:forceUserGesture:completionHandler:] + 1248 5&#9; com.apple.WebKit&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x00007fff3f68e59c -[WKWebView evaluateJavaScript:completionHandler:] + 36 6&#9; com.bitwarden.desktop.safari&#9; 0x0000000103e86c3b SafariExtensionViewController.replyMessage(message:) + 347 7&#9; com.bitwarden.desktop.safari&#9; 0x0000000103e84a2f specialized processWindowsForTabs(wins:options:complete:) + 911 8&#9; com.bitwarden.desktop.safari&#9; 0x0000000103e915bb thunk for @escaping @callee_guaranteed (@guaranteed [SFSafariWindow]) -> () + 75 9&#9; com.apple.SafariServices.framework 0x00007fff3a85d597 __58+[SFSafariApplication getAllWindowsWithCompletionHandler:]_block_invoke + 285 10&#9;com.apple.CoreFoundation&#9;&#9;&#9; 0x00007fff2e59093c invoking_ + 140 11&#9;com.apple.CoreFoundation&#9;&#9;&#9; 0x00007fff2e5907e1 -[NSInvocation invoke] + 303 12&#9;com.apple.Foundation&#9;&#9;&#9;&#9;&#9; 0x00007fff30c06765 NSXPCCONNECTION_IS_CALLING_OUT_TO_REPLY_BLOCK + 17 13&#9;com.apple.Foundation&#9;&#9;&#9;&#9;&#9; 0x00007fff30c04378 -[NSXPCConnection _decodeAndInvokeReplyBlockWithEvent:sequence:replyInfo:] + 684 14&#9;com.apple.Foundation&#9;&#9;&#9;&#9;&#9; 0x00007fff30c03d73 __88-[NSXPCConnection _sendInvocation:orArguments:count:methodSignature:selector:withProxy:]_block_invoke_3 + 216 15&#9;libxpc.dylib&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x00007fff687ef28f _xpc_connection_reply_callout + 36 16&#9;libxpc.dylib&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x00007fff687ef217 _xpc_connection_call_reply_async + 69 17&#9;libdispatch.dylib&#9;&#9;&#9;&#9;&#9;&#9; 0x00007fff685506c2 _dispatch_client_callout3 + 8 18&#9;libdispatch.dylib&#9;&#9;&#9;&#9;&#9;&#9; 0x00007fff6856715d _dispatch_mach_msg_async_reply_invoke + 369 19&#9;libdispatch.dylib&#9;&#9;&#9;&#9;&#9;&#9; 0x00007fff68555af6 _dispatch_lane_serial_drain + 263 20&#9;libdispatch.dylib&#9;&#9;&#9;&#9;&#9;&#9; 0x00007fff68556609 _dispatch_lane_invoke + 414 21&#9;libdispatch.dylib&#9;&#9;&#9;&#9;&#9;&#9; 0x00007fff6855fc09 _dispatch_workloop_worker_thread + 596 22&#9;libsystem_pthread.dylib&#9;&#9;&#9; 0x00007fff687aaa3d _pthread_wqthread + 290 23&#9;libsystem_pthread.dylib&#9;&#9;&#9; 0x00007fff687a9b77 start_wqthread + 15 Thread 8 crashed with X86 Thread State (64-bit): &#9;rax: 0x0000000106d15000&#9;rbx: 0x0000000106d15000&#9;rcx: 0x000000000000001d&#9;rdx: 0x00007fff3fa59c99 &#9;rdi: 0x00000000000000ae&#9;rsi: 0x00007fff3fa59be8&#9;rbp: 0x000070000c872ff0&#9;rsp: 0x000070000c872ff0 &#9; r8: 0x00000000000130a8&#9; r9: 0x0000000000000000&#9;r10: 0x00006000014ef830&#9;r11: 0x00006000014ef828 &#9;r12: 0x000070000c873088&#9;r13: 0x000070000c873070&#9;r14: 0x000070000c8730b8&#9;r15: 0x00007faf898303f0 &#9;rip: 0x00007fff3f4b2b33&#9;rfl: 0x0000000000000246&#9;cr2: 0x0000000106d0f000 &#9; Logical CPU:&#9;&#9; 0 Error Code:&#9;&#9;&#9;0x00000000 Trap Number:&#9;&#9; 3
Jul ’20
Reply to Extension frequently crashes for a large number of users
If revevant, I'm seeing these issues while debugging in Xcode, however they may be basic/expected type errors as I am not able to reproduce the issue on my machine anyway.objc[99539]: Class AMSupportURLConnectionDelegate is implemented in both /System/Library/PrivateFrameworks/OSPersonalization.framework/Versions/A/OSPersonalization (0x7fff8b54cb68) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103cfb228). One of the two will be used. Which one is undefined. objc[99539]: Class AMSupportURLSession is implemented in both /System/Library/PrivateFrameworks/OSPersonalization.framework/Versions/A/OSPersonalization (0x7fff8b54cbb8) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103cfb278). One of the two will be used. Which one is undefined. 2020-05-21 11:09:44.426694-0400 Safari[99539:37398753] Metal API Validation Enabled 2020-05-21 11:09:46.158099-0400 Safari[99539:37398994] Bogus event on event stream listener. 2020-05-21 11:09:46.159252-0400 Safari[99539:37399514] Bogus event on event stream listener. 2020-05-21 11:09:46.343217-0400 Safari[99539:37398956] [RemotePlistController] The downloaded plist could not be loaded: Error Domain=NSCocoaErrorDomain Code=260 2020-05-21 11:09:46.359454-0400 Safari[99539:37398988] [RemotePlistController] The downloaded plist could not be loaded: Error Domain=NSCocoaErrorDomain Code=260 2020-05-21 11:09:46.362195-0400 Safari[99539:37398929] [RemotePlistController] The downloaded plist could not be loaded: Error Domain=NSCocoaErrorDomain Code=260 2020-05-21 11:09:46.401237-0400 Safari[99539:37398753] [PerSitePreferences] Failed to set up all website policies before timeout 2020-05-21 11:09:46.761884-0400 Safari[99539:37398988] Failed to get contents of content providers directory Error Domain=NSCocoaErrorDomain Code=260 "The folder “ContentProviding” doesn’t exist." UserInfo={NSFilePath=/System/Library/PrivateFrameworks/CoreDuet.framework/PlugIns/ContentProviding, NSUserStringVariant=( Folder ), NSUnderlyingError=0x7fcfb4edeb60 {Error Domain=NSOSStatusErrorDomain Code=-43 "fnfErr: File not found"}} 2020-05-21 11:09:46.860301-0400 Safari[99539:37398993] [Warning] Bad response from daemon for setup info 2020-05-21 11:09:47.333422-0400 Safari[99539:37398753] [Safari] extractOptions:140: *** unknown hint identifier 'kCGImageSourceTypeIdentifierHint:dyn.age8u' -- ignoring... 2020-05-21 11:09:47.372950-0400 Safari[99539:37398934] Calling IOPPFGetProperty simulator_utility_clamp! 2020-05-21 11:09:48.579175-0400 Safari[99539:37398753] [Client,LAContext] invalidate LAContext[99539:2 uiDelegate:&lt;AutoFillLocalAuthenticationOperation: 0x7fcfb49d2db0&gt;] cid:5 internally returned Error Domain=com.apple.LocalAuthentication Code=-9 "invalidate called" UserInfo={NSLocalizedDescription=invalidate called} 2020-05-21 11:09:49.952381-0400 Safari[99539:37398988] Creating client/daemon connection: E3DA243B-8E50-456D-8A6D-6356A1F52848 2020-05-21 11:09:50.002397-0400 Safari[99539:37398988] Got the query meta data reply for: com.apple.MobileAsset.CoreSuggestions, response: 0 2020-05-21 11:09:50.006443-0400 Safari[99539:37398988] Consumed extension 2020-05-21 11:09:50.014767-0400 Safari[99539:37398988] Got the query meta data reply for: com.apple.MobileAsset.CoreSuggestions, response: 0 2020-05-21 11:09:55.075734-0400 Safari[99539:37398753] [Extensions] View service did terminate with error: Error Domain=com.apple.ViewBridge Code=18 2020-05-21 11:10:00.159266-0400 Safari[99539:37398753] [Extensions] View service did terminate with error: Error Domain=com.apple.ViewBridge Code=18 2020-05-21 11:11:13.159718-0400 Safari[99539:37398753] [Extensions] View service did terminate with error: Error Domain=com.apple.ViewBridge Code=17 2020-05-21 11:13:14.555241-0400 Safari[99539:37398753] [default] RWIServiceDeviceConnection: No connection to start 2020-05-21 11:14:18.507050-0400 Safari[99539:37398753] [default] RWIServiceDeviceConnection: No connection to start 2020-05-21 11:14:33.907487-0400 Safari[99539:37398753] [default] RWIServiceDeviceConnection: No connection to start 2020-05-21 11:14:56.572791-0400 Safari[99539:37398753] [default] RWIServiceDeviceConnection: No connection to start 2020-05-21 11:15:27.809003-0400 Safari[99539:37398753] [default] RWIServiceDeviceConnection: No connection to start 2020-05-21 11:15:41.581441-0400 Safari[99539:37398753] [Extensions] View service did terminate with error: Error Domain=com.apple.ViewBridge Code=18 2020-05-21 11:15:47.580716-0400 Safari[99539:37398753] [Extensions] View service did terminate with error: Error Domain=com.apple.ViewBridge Code=18 2020-05-21 11:16:05.726504-0400 Safari[99539:37398753] [default] RWIServiceDeviceConnection: No connection to start 2020-05-21 11:16:51.811762-0400 Safari[99539:37398753] [default] RWIServiceDeviceConnection: No connection to start 2020-05-21 11:16:57.448582-0400 Safari[99539:37398753] [Extensions] View service did terminate with error: Error Domain=com.apple.ViewBridge Code=18 2020-05-21 11:18:00.329309-0400 Safari[99539:37398753] [default] RWIServiceDeviceConnection: No connection to start 2020-05-21 11:18:43.714911-0400 Safari[99539:37398753] [default] RWIServiceDeviceConnection: No connection to start 2020-05-21 11:19:07.065657-0400 Safari[99539:37398753] [default] RWIServiceDeviceConnection: No connection to start 2020-05-21 11:21:28.369957-0400 Safari[99539:37398753] [default] RWIServiceDeviceConnection: No connection to start 2020-05-21 11:22:40.472223-0400 Safari[99539:37398753] [default] RWIServiceDeviceConnection: No connection to start 2020-05-21 11:27:49.479089-0400 Safari[99539:37398753] [default] RWIServiceDeviceConnection: No connection to start 2020-05-21 11:31:04.371900-0400 Safari[99539:37398753] [default] RWIServiceDeviceConnection: No connection to start 2020-05-21 11:33:20.739358-0400 Safari[99539:37398753] [default] RWIServiceDeviceConnection: No connection to start 2020-05-21 11:36:06.796918-0400 Safari[99539:37398753] [default] RWIServiceDeviceConnection: No connection to start 2020-05-21 11:37:52.084117-0400 Safari[99539:37398753] [default] RWIServiceDeviceConnection: No connection to start 2020-05-21 11:38:37.735424-0400 Safari[99539:37398753] [default] RWIServiceDeviceConnection: No connection to start 2020-05-21 11:39:38.392962-0400 Safari[99539:37398753] [Extensions] View service did terminate with error: Error Domain=com.apple.ViewBridge Code=18 2020-05-21 11:40:06.588605-0400 Safari[99539:37398753] [default] RWIServiceDeviceConnection: No connection to start 2020-05-21 11:41:23.340604-0400 Safari[99539:37398753] [default] RWIServiceDeviceConnection: No connection to start 2020-05-21 11:44:06.711357-0400 Safari[99539:37398753] [default] RWIServiceDeviceConnection: No connection to start 2020-05-21 11:45:13.748526-0400 Safari[99539:37398753] [default] RWIServiceDeviceConnection: No connection to start 2020-05-21 11:45:33.084352-0400 Safari[99539:37398753] [default] RWIServiceDeviceConnection: No connection to start 2020-05-21 11:48:02.652315-0400 Safari[99539:37398753] [default] RWIServiceDeviceConnection: No connection to start 2020-05-21 11:49:05.647360-0400 Safari[99539:37398753] [default] RWIServiceDeviceConnection: No connection to start 2020-05-21 11:51:17.908681-0400 Safari[99539:37398753] [Extensions] View service did terminate with error: Error Domain=com.apple.ViewBridge Code=18 2020-05-21 11:51:57.423800-0400 Safari[99539:37398753] [default] RWIServiceDeviceConnection: No connection to start 2020-05-21 11:53:05.647485-0400 Safari[99539:37398753] [default] RWIServiceDeviceConnection: No connection to start
May ’20