Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Brave Search Daily Usage P3A crashes on iOS 16 #42464

Closed
3 of 5 tasks
kylehickinson opened this issue Nov 22, 2024 · 0 comments · Fixed by brave/brave-core#26706
Closed
3 of 5 tasks

Brave Search Daily Usage P3A crashes on iOS 16 #42464

kylehickinson opened this issue Nov 22, 2024 · 0 comments · Fixed by brave/brave-core#26706
Assignees
Labels

Comments

@kylehickinson
Copy link
Collaborator

kylehickinson commented Nov 22, 2024

Description

There's a crash it seems when reporting a Brave Search query to P3A

Crash Log:

Hardware Model:      iPhone14,5
Process:             Client [31000]
Path:                /private/var/containers/Bundle/Application/4BB7C719-1F55-494B-A95F-548DCAAA0D4C/Client.app/Client
Identifier:          com.brave.ios.browser
Version:             1.71 (125)
AppStoreTools:       16B39
AppVariant:          1:iPhone14,5:16
Code Type:           ARM-64 (Native)
Role:                Foreground
Parent Process:      launchd [1]
Coalition:           com.brave.ios.browser [9597]

Date/Time:           2024-11-15 22:20:38.4845 +0900
Launch Time:         2024-11-15 22:20:29.9207 +0900
OS Version:          iPhone OS 16.3.1 (20D67)
Release Type:        User
Baseband Version:    2.40.01
Report Version:      104

Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x000000018d0a0730
Termination Reason: SIGNAL 5 Trace/BPT trap: 5
Terminating Process: exc handler [31000]

Triggered by Thread:  0


Kernel Triage:
VM - pmap_enter retried due to resource shortage



Thread 0 Crashed:
0   Foundation                    	0x000000018d0a0730 URL.host(percentEncoded:) + 136
1   Foundation                    	0x000000018d0a06fc URL.host(percentEncoded:) + 84
2   Client                        	0x0000000102697258 specialized BrowserViewController.maybeRecordBraveSearchDailyUsage(url:) + 92 (BVC+P3A.swift:419)
3   Client                        	0x00000001026ed534 BrowserViewController.maybeRecordBraveSearchDailyUsage(url:) + 8 (/<compiler-generated>:0)
4   Client                        	0x00000001026ed534 specialized BrowserViewController.webView(_:didFinish:) + 1848 (BVC+WKNavigationDelegate.swift:1079)
5   Client                        	0x00000001026e0e58 BrowserViewController.webView(_:didFinish:) + 12 (/<compiler-generated>:0)
6   Client                        	0x00000001026e0e58 @objc BrowserViewController.webView(_:didFinish:) + 68
7   Client                        	0x00000001028dd684 TabManagerNavDelegate.webView(_:didReceiveServerRedirectForProvisionalNavigation:) + 180
8   Client                        	0x00000001028dd6f4 @objc TabManagerNavDelegate.webView(_:didFinish:) + 72 (/<compiler-generated>:0)
9   WebKit                        	0x00000001a58f475c WebKit::NavigationState::NavigationClient::didFinishNavigation(WebKit::WebPageProxy&, API::Navigation*, API::Object*) + 108 (NavigationState.mm:878)
10  WebKit                        	0x00000001a5b049d4 WebKit::WebPageProxy::didFinishLoadForFrame(WTF::ObjectIdentifier<WebCore::FrameIdentifierType>, WebKit::FrameInfoData&&, WebCore::ResourceRequest&&, unsigned long long, WebKit::UserData const&) + 1052 (WebPageProxy.cpp:5284)
11  WebKit                        	0x00000001a5eba8f0 WebKit::WebPageProxy::didReceiveMessage(IPC::Connection&, IPC::Decoder&) + 24984 (HandleMessage.h:131)
12  WebKit                        	0x00000001a58e3c28 IPC::MessageReceiverMap::dispatchMessage(IPC::Connection&, IPC::Decoder&) + 192 (MessageReceiverMap.cpp:129)
13  WebKit                        	0x00000001a5b2de00 WebKit::WebProcessProxy::didReceiveMessage(IPC::Connection&, IPC::Decoder&) + 40 (AuxiliaryProcessProxy.cpp:271)
14  WebKit                        	0x00000001a58dc35c IPC::Connection::dispatchMessage(std::__1::unique_ptr<IPC::Decoder, std::__1::default_delete<IPC::Decoder> >) + 260 (Connection.cpp:1105)
15  WebKit                        	0x00000001a58dbc3c IPC::Connection::dispatchIncomingMessages() + 608 (Connection.cpp:1264)
16  JavaScriptCore                	0x00000001a620a0b0 WTF::RunLoop::performWork() + 200 (Function.h:82)
17  JavaScriptCore                	0x00000001a620ade8 WTF::RunLoop::performWork(void*) + 36 (RunLoopCF.cpp:46)
18  CoreFoundation                	0x0000000192bacf24 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28 (CFRunLoop.c:1957)
19  CoreFoundation                	0x0000000192bb92fc __CFRunLoopDoSource0 + 176 (CFRunLoop.c:2001)
20  CoreFoundation                	0x0000000192b3d1c0 __CFRunLoopDoSources0 + 244 (CFRunLoop.c:2038)
21  CoreFoundation                	0x0000000192b52b7c __CFRunLoopRun + 836 (CFRunLoop.c:2953)
22  CoreFoundation                	0x0000000192b57eb0 CFRunLoopRunSpecific + 612 (CFRunLoop.c:3418)
23  GraphicsServices              	0x00000001ccd4d368 GSEventRunModal + 164 (GSEvent.c:2196)
24  UIKitCore                     	0x000000019504d668 -[UIApplication _run] + 888 (UIApplication.m:3758)
25  UIKitCore                     	0x000000019504d2cc UIApplicationMain + 340 (UIApplication.m:5348)
26  libswiftUIKit.dylib           	0x000000019b67a308 UIApplicationMain(_:_:_:_:) + 104 (UIKit.swift:538)
27  Client                        	0x000000010261b048 specialized static UIApplicationDelegate.main() + 28 (/<compiler-generated>:38)
28  Client                        	0x000000010261b048 static AppDelegate.$main() + 28 (AppDelegate.swift:0)
29  Client                        	0x000000010261b048 main + 120
30  dyld                          	0x00000001b1450960 start + 2528 (dyldMain.cpp:1170)

Steps to reproduce

No known steps, need to somehow load an URL with no host or path

Actual result

Crashes

Expected result

Shouldn't crash

Reproduces how often

Intermittent issue

Brave version

1.71+

Device/iOS version

iOS 16.0-16.3 only

Affected browser versions

  • latest AppStore
  • latest TestFlight
  • previous TestFlight

Reproducibility

  • with Brave Shields disabled
  • in the latest version of mobile Safari

Miscellaneous information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants