Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

RewardsScript does not run in Desktop mode on iPhone #7512

Closed
Brandon-T opened this issue May 25, 2023 · 1 comment · Fixed by #7513
Closed

RewardsScript does not run in Desktop mode on iPhone #7512

Brandon-T opened this issue May 25, 2023 · 1 comment · Fixed by #7513

Comments

@Brandon-T
Copy link
Collaborator

Description:

  • The rewards reporting script has an error in Desktop Mode, but not regular mobile mode.
  • A variable function is used before it is declared.

Steps to Reproduce

  • Run the iPhone app with "Request Desktop Site" on Youtube or any site.

Actual result:

  • RewardsReportingScript fails to run with an error.

Expected result:

  • Script should work.

Reproduces how often: [Easily reproduced, Intermittent Issue]

  • Easily reproduced

Brave Version:

  • Any
@Uni-verse
Copy link
Contributor

Verified on iPhone X running iOS 16.3.1 using version 1.52 (23.6.22.18)

Based on Test Plan in #7513 (comment)

  • Enabled verbose logging (level 5) on dev channel build
  • Opened a website and requested desktop mode
  • Enabled rewards and monitored console logs below
  • Ensured brave app does not crash
  • Ensured Brave Rewards profile is created
Example Example
IMG_3276 2 IMG_3277

Console Log

debug	12:49:09.415720-0400	Client	found no value for key rewards.flag.is-debug in CFPrefsSearchListSource<0x281c67c00> (Domain: group.com.brave.ios.BrowserBeta.unique, Container: (null))
debug	12:49:09.415838-0400	Client	found no value for key rewards.flag.retry-interval in CFPrefsSearchListSource<0x281c67c00> (Domain: group.com.brave.ios.BrowserBeta.unique, Container: (null))
debug	12:49:09.416970-0400	Client	found no value for key rewards.flag.reconcile-interval in CFPrefsSearchListSource<0x281c67c00> (Domain: group.com.brave.ios.BrowserBeta.unique, Container: (null))
debug	12:49:09.417031-0400	Client	found no value for key rewards.environment-override in CFPrefsSearchListSource<0x281c67c00> (Domain: group.com.brave.ios.BrowserBeta.unique, Container: (null))
debug	12:49:09.568600-0400	Client	looked up value <private> for key rewards.is-using-bap in CFPrefsPlistSource<0x281c67d00> (Domain: group.com.brave.ios.BrowserBeta.unique, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No) via CFPrefsSearchListSource<0x281c67c00> (Domain: group.com.brave.ios.BrowserBeta.unique, Container: (null))
debug	12:49:09.637058-0400	Client	found no value for key rewards.ads.last-time-enabled in CFPrefsSearchListSource<0x281c67c00> (Domain: group.com.brave.ios.BrowserBeta.unique, Container: (null))
debug	12:49:09.644231-0400	Client	Resource lookup at <private>
	Request       : RewardsReportingScript type: js
	Result        : file:///var/containers/Bundle/Application/40E468CE-498F-4625-AE9A-256C92E1FAE8/Client.app/Brave_Brave.bundle/RewardsReportingScript.js
debug	12:49:09.676028-0400	Client	found no value for key rewards.new-hide-rewards-icon in CFPrefsSearchListSource<0x281c67c00> (Domain: group.com.brave.ios.BrowserBeta.unique, Container: (null))
debug	12:49:09.676084-0400	Client	found no value for key rewards.rewards-toggled-once in CFPrefsSearchListSource<0x281c67c00> (Domain: group.com.brave.ios.BrowserBeta.unique, Container: (null))
debug	12:49:09.829791-0400	Client	Bundle: <private>, key: RewardsPanel, value: Rewards Panel, table: BraveShared, localizationName: (null), result: Rewards Panel
debug	12:49:10.280560-0400	Client	P3AService::OnHistogramChanged: histogram_name = Brave.Rewards.AdsEnabledDuration Sample = 0 bucket = 0
debug	12:49:11.177836-0400	Client	found no value for key fullScreenCallout.full-screen-rewards-callout-completed in CFPrefsSearchListSource<0x281c67c00> (Domain: group.com.brave.ios.BrowserBeta.unique, Container: (null))
debug	12:49:29.458113-0400	cfprefsd	Process 4053 (Client) wrote the key(s) fullScreenCallout.full-screen-rewards-callout-completed in { group.com.brave.ios.BrowserBeta.unique, mobile, kCFPreferencesAnyHost, /var/mobile/Containers/Shared/AppGroup/9F56FF25-A654-4146-8792-18ED99834107/Library/Preferences/group.com.brave.ios.BrowserBeta.unique.plist, managed: 0 }
debug	12:49:29.462507-0400	Client	Resource lookup at <private>
	Request       : onboarding-rewards type: json
	Result        : file:///var/containers/Bundle/Application/40E468CE-498F-4625-AE9A-256C92E1FAE8/Client.app/Brave_Onboarding.bundle/onboarding-rewards.json
debug	12:49:29.555155-0400	Client	Bundle: <private>, key: OBRewardsAgreementTitle, value: Brave Rewards, table: BraveShared, localizationName: (null), result: Brave Rewards
debug	12:49:29.555469-0400	Client	Bundle: <private>, key: OBRewardsDetail, value: Opting into Brave Private Ads supports publishers and content creators with every ad viewed., table: BraveShared, localizationName: (null), result: Opting into Brave Private Ads supports publishers and content creators with every ad viewed.
debug	12:49:29.566035-0400	Client	Bundle: <private>, key: OBRewardsAgreementDetail, value: By tapping Yes, you agree to the, table: BraveShared, localizationName: (null), result: By tapping Yes, you agree to the
debug	12:49:29.566200-0400	Client	Bundle: <private>, key: OBRewardsAgreementDetailLink, value: Terms of Service, table: BraveShared, localizationName: (null), result: Terms of Service
debug	12:49:29.566242-0400	Client	Bundle: <private>, key: OBRewardsAgreementDetailsAnd, value: and, table: BraveShared, localizationName: (null), result: and
debug	12:49:29.566282-0400	Client	Bundle: <private>, key: OBRewardsPrivacyPolicyDetailLink, value: Privacy Policy, table: BraveShared, localizationName: (null), result: Privacy Policy
debug	12:49:33.222734-0400	cfprefsd	Process 4053 (Client) wrote the key(s) rewards.rewards-toggled-once in { group.com.brave.ios.BrowserBeta.unique, mobile, kCFPreferencesAnyHost, /var/mobile/Containers/Shared/AppGroup/9F56FF25-A654-4146-8792-18ED99834107/Library/Preferences/group.com.brave.ios.BrowserBeta.unique.plist, managed: 0 }
debug	12:49:33.377748-0400	Client	[ REQUEST ]
> URL: https://api.rewards.brave.com/v1/parameters
> Method: GET
debug	12:49:33.383367-0400	Client	[ REQUEST ]
> URL: https://rewards.brave.com/publishers/prefix-list
> Method: GET
debug	12:49:33.387762-0400	Client	[ REQUEST ]
> URL: https://grant.rewards.brave.com/v1/promotions?migrate=true&platform=ios
> Method: GET
debug	12:49:33.391396-0400	Client	Rewards parameters not set - fetching from server
debug	12:49:33.464917-0400	Client	found no value for key rewards.devicecheck.did.enroll in CFPrefsSearchListSource<0x281c67c00> (Domain: group.com.brave.ios.BrowserBeta.unique, Container: (null))
debug	12:49:33.492326-0400	Client	[ REQUEST ]
> URL: https://grant.rewards.brave.com/v3/wallet/brave
> Method: POST
> Content Type: application/json; charset=utf-8
> Header digest: SHA-256=47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=
> Header signature: keyId="b5fc8c1dcbd47128b25b58c9d322f728cde0012bbd36db356d390a91242b84a4",algorithm="ed25519",headers="digest (request-target)",signature="s1sJ7k/rgC30LLNMuxDrFhrkDuGP4acCmw7N9VjhAAjIWyBsTEhM0QbDI7JV2dVYwbUK+/aaoyOVpishUd3xAw=="
> Header accept: application/json
debug	12:49:33.523685-0400	mDNSResponder	NEHelperTrackerGetDisposition: lookup for <api.rewards.brave.com> length 21 (app info ref 9681ADB0 pid 4053 for App)
debug	12:49:33.523904-0400	mDNSResponder	NEHelperTrackerGetDisposition: lookup for <rewards-alb-734651130.us-west-2.elb.amazonaws.com> length 49 (app info ref 9681ADB0 pid 4053 for App)
debug	12:49:33.524095-0400	mDNSResponder	NEHelperTrackerGetDisposition: lookup for <grant.rewards.brave.com> length 23 (app info ref 96B1AA80 pid 4053 for App)
debug	12:49:33.539298-0400	mDNSResponder	NEHelperTrackerGetDisposition: lookup for <grant.rewards.brave.com> length 23 (app info ref 96830310 pid 4053 for App)
debug	12:49:33.540669-0400	mDNSResponder	NEHelperTrackerGetDisposition: lookup for <rewards.brave.com> length 17 (app info ref 96A0FCD0 pid 4053 for App)
debug	12:49:33.553531-0400	mDNSResponder	NEHelperTrackerGetDisposition: lookup for <api.rewards.brave.com> length 21 (app info ref 96A06260 pid 4053 for App)
debug	12:49:33.553680-0400	mDNSResponder	NEHelperTrackerGetDisposition: lookup for <rewards-alb-734651130.us-west-2.elb.amazonaws.com> length 49 (app info ref 96A06260 pid 4053 for App)
debug	12:49:33.568043-0400	mDNSResponder	NEHelperTrackerGetDisposition: lookup for <rewards.brave.com> length 17 (app info ref 96B34CB0 pid 4053 for App)
debug	12:49:33.656785-0400	trustd	replacing non ev reject score: 0 with non ev score: 10011117 <SecCertificatePathVC certs: <cert(0x5ec00c000) s: rewards.brave.com i: Amazon RSA 2048 M01>, <cert(0x5ec00ca00) s: Amazon RSA 2048 M01 i: Amazon Root CA 1>, <cert(0x5ecd3b1a0) s: Amazon Root CA 1 i: Amazon Root CA 1> >
debug	12:49:33.656955-0400	trustd	completed: <SecCertificatePathVC certs: <cert(0x5ec00c000) s: rewards.brave.com i: Amazon RSA 2048 M01>, <cert(0x5ec00ca00) s: Amazon RSA 2048 M01 i: Amazon Root CA 1>, <cert(0x5ecd3b1a0) s: Amazon Root CA 1 i: Amazon Root CA 1> > details: (
        {
    },
        {
    },
        {
    }
) result: 4
debug	12:49:33.661439-0400	trustd	replacing non ev reject score: 0 with non ev score: 10011117 <SecCertificatePathVC certs: <cert(0x5ee01e000) s: grant.rewards.brave.com i: Amazon RSA 2048 M01>, <cert(0x5ee01c200) s: Amazon RSA 2048 M01 i: Amazon Root CA 1>, <cert(0x5eca77c20) s: Amazon Root CA 1 i: Amazon Root CA 1> >
debug	12:49:33.662815-0400	trustd	completed: <SecCertificatePathVC certs: <cert(0x5ee01e000) s: grant.rewards.brave.com i: Amazon RSA 2048 M01>, <cert(0x5ee01c200) s: Amazon RSA 2048 M01 i: Amazon Root CA 1>, <cert(0x5eca77c20) s: Amazon Root CA 1 i: Amazon Root CA 1> > details: (
        {
    },
        {
    },
        {
    }
) result: 4
debug	12:49:33.769932-0400	Client	Rewards parameters not set - fetching from server
debug	12:49:33.836575-0400	trustd	replacing non ev reject score: 0 with non ev score: 10011117 <SecCertificatePathVC certs: <cert(0x5ef010400) s: api.rewards.brave.com i: Amazon RSA 2048 M02>, <cert(0x5ef010e00) s: Amazon RSA 2048 M02 i: Amazon Root CA 1>, <cert(0x5ece274c0) s: Amazon Root CA 1 i: Amazon Root CA 1> >
debug	12:49:33.839035-0400	trustd	completed: <SecCertificatePathVC certs: <cert(0x5ef010400) s: api.rewards.brave.com i: Amazon RSA 2048 M02>, <cert(0x5ef010e00) s: Amazon RSA 2048 M02 i: Amazon Root CA 1>, <cert(0x5ece274c0) s: Amazon Root CA 1 i: Amazon Root CA 1> > details: (
        {
    },
        {
    },
        {
    }
) result: 4
debug	12:49:33.843230-0400	mDNSResponder	NEHelperTrackerGetDisposition: lookup for <grant.rewards.brave.com> length 23 (app info ref 96B51110 pid 4053 for App)
debug	12:49:33.843463-0400	mDNSResponder	NEHelperTrackerGetDisposition: lookup for <grant.rewards.brave.com> length 23 (app info ref 96826DA0 pid 4053 for App)
debug	12:49:33.960652-0400	trustd	replacing non ev reject score: 0 with non ev score: 10011117 <SecCertificatePathVC certs: <cert(0x5ef00fe00) s: grant.rewards.brave.com i: Amazon RSA 2048 M01>, <cert(0x5ef00d600) s: Amazon RSA 2048 M01 i: Amazon Root CA 1>, <cert(0x5eca5cfa0) s: Amazon Root CA 1 i: Amazon Root CA 1> >
debug	12:49:33.961555-0400	trustd	completed: <SecCertificatePathVC certs: <cert(0x5ef00fe00) s: grant.rewards.brave.com i: Amazon RSA 2048 M01>, <cert(0x5ef00d600) s: Amazon RSA 2048 M01 i: Amazon Root CA 1>, <cert(0x5eca5cfa0) s: Amazon Root CA 1 i: Amazon Root CA 1> > details: (
        {
    },
        {
    },
        {
    }
) result: 4
debug	12:49:34.114928-0400	cfprefsd	Process 4053 (Client) wrote the key(s) rewards.ads.last-time-enabled in { group.com.brave.ios.BrowserBeta.unique, mobile, kCFPreferencesAnyHost, /var/mobile/Containers/Shared/AppGroup/9F56FF25-A654-4146-8792-18ED99834107/Library/Preferences/group.com.brave.ios.BrowserBeta.unique.plist, managed: 0 }
debug	12:49:34.127990-0400	Client	P3AService::OnHistogramChanged: histogram_name = Brave.Rewards.AdsEnabledDuration Sample = 1 bucket = 1
error	12:50:21.029464-0400	Client	Failed to parse message from rewards reporting JS: <private>
error	12:50:33.418693-0400	Client	Failed to parse message from rewards reporting JS: <private>
debug	12:51:10.740617-0400	Client	Bundle: <private>, key: BraveRewardsTitle, value: Brave Rewards, table: BraveShared, localizationName: (null), result: Brave Rewards
debug	12:51:10.741472-0400	Client	Bundle: <private>, key: rewards.disabledBody, value: Turn on to help support content creators, table: BraveShared, localizationName: (null), result: Turn on to help support content creators
debug	12:51:10.742234-0400	Client	Bundle: <private>, key: rewards.unverifiedPublisher, value: This creator has not verified and will not be included in creator support, table: BraveShared, localizationName: (null), result: This creator has not verified and will not be included in creator support
debug	12:51:10.743516-0400	Client	Bundle: <private>, key: rewards.totalSupportedCount, value: Number of content creators you are helping support this month., table: BraveShared, localizationName: (null), result: Number of content creators you are helping support this month.
debug	12:51:10.743925-0400	Client	Bundle: <private>, key: rewards.enabledStatusBody, value: Thank you for helping support content creators as you browse!, table: BraveShared, localizationName: (null), result: Thank you for helping support content creators as you browse!
debug	12:51:10.744535-0400	Client	Bundle: <private>, key: rewards.disabledStatusBody, value: Using Brave Rewards helps support content creators as you browse., table: BraveShared, localizationName: (null), result: Using Brave Rewards helps support content creators as you browse.
debug	12:51:10.750144-0400	Client	Bundle: <private>, key: rewards.enabledBody, value: You are helping support content creators, table: BraveShared, localizationName: (null), result: You are helping support content creators
error	12:51:10.775233-0400	Client	Unable to simultaneously satisfy constraints.
	Probably at least one of the constraints in the following list is one you don't want. 
	Try this: 
		(1) look at each constraint and try to figure out which you don't expect; 
		(2) find the code that added the unwanted constraint or constraints and fix it. 
	(Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) 
(
    "<NSAutoresizingMaskLayoutConstraint:0x281106a30 h=-&- v=-&- UIDropShadowView:0x12be2a800.minX == 0   (active, names: '|':UITransitionView:0x12bf3e3b0 )>",
    "<NSAutoresizingMaskLayoutConstraint:0x281106990 h=-&- v=-&- H:[UIDropShadowView:0x12be2a800]-(0)-|   (active, names: '|':UITransitionView:0x12bf3e3b0 )>",
    "<NSAutoresizingMaskLayoutConstraint:0x281106300 h=-&- v=-&- UITransitionView:0x12bf3e3b0.minX == 0   (active, names: '|':UIWindow:0x12d10c590 )>",
    "<NSAutoresizingMaskLayoutConstraint:0x2811062b0 h=-&- v=-&- H:[UITransitionView:0x12bf3e3b0]-(0)-|   (active, names: '|':UIWindow:0x12d10c590 )>",
    "<NSAutoresizingMaskLayoutConstraint:0x281106670 h=--- v=--- UIWindow:0x12d10c590.width == 375   (active)>",
    "<NSAutoresizingMaskLayoutConstraint:0x281180af0 h=-&- v=-&- UIView:0x1312e06d0.minX == 0   (active, names: '|':UITransitionView:0x1312fe110 )>",
    "<NSAutoresizingMaskLayoutConstraint:0x2811802d0 h=-&- v=-&- H:[UIView:0x1312e06d0]-(0)-|   (active, names: '|':UITransitionView:0x1312fe110 )>",
    "<NSAutoresizingMaskLayoutConstraint:0x281180dc0 h=-&- v=-&- UITransitionView:0x1312fe110.minX == 0   (active, names: '|':UIDropShadowView:0x12be2a800 )>",
    "<NSAutoresizingMaskLayoutConstraint:0x281180d70 h=-&- v=-&- H:[UITransitionView:0x1312fe110]-(0)-|   (active, names: '|':UIDropShadowView:0x12be2a800 )>",
    "<SnapKit.LayoutConstraint:[email protected]#122 _TtCC5Brave26BraveRewardsViewController16BraveRewardsView:0x1326f9c70.width == 360.0>",
    "<SnapKit.LayoutConstraint:[email protected]#182 _TtCC5Brave26BraveRewardsViewController16BraveRewardsView:0x1326f9c70.leading == UIView:0x1326b4490.leading>",
    "<SnapKit.LayoutConstraint:[email protected]#182 _TtCC5Brave26BraveRewardsViewController16BraveRewardsView:0x1326f9c70.trailing == UIView:0x1326b4490.trailing>",
    "<SnapKit.LayoutConstraint:[email protected]#91 UIView:0x1326b4490.left == _TtCC7BraveUI17PopoverController13ContainerView:0x1326ed610.left>",
    "<SnapKit.LayoutConstraint:[email protected]#91 UIView:0x1326b4490.right == _TtCC7BraveUI17PopoverController13ContainerView:0x1326ed610.right>",
    "<SnapKit.LayoutConstraint:[email protected]#518 _TtCC7BraveUI17PopoverController13ContainerView:0x1326ed610.left >= UILayoutGuide:0x1312cae00.left + 10.0>",
    "<SnapKit.LayoutConstraint:[email protected]#519 _TtCC7BraveUI17PopoverController13ContainerView:0x1326ed610.right <= UILayoutGuide:0x1312cae00.right - 10.0>",
    "<NSLayoutConstraint:0x281180c30 'UIViewSafeAreaLayoutGuide-left' H:|-(0)-[UILayoutGuide:0x1312cae00'UIViewSafeAreaLayoutGuide'](LTR)   (active, names: '|':UIView:0x1312e06d0 )>",
    "<NSLayoutConstraint:0x281180cd0 'UIViewSafeAreaLayoutGuide-right' H:[UILayoutGuide:0x1312cae00'UIViewSafeAreaLayoutGuide']-(0)-|(LTR)   (active, names: '|':UIView:0x1312e06d0 )>"
)

Will attempt to recover by breaking constraint 
<SnapKit.LayoutConstraint:[email protected]#122 _TtCC5Brave26BraveRewardsViewController16BraveRewardsView:0x1326f9c70.width == 360.0>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful.
error	12:51:14.673882-0400	Client	Unable to simultaneously satisfy constraints.
	Probably at least one of the constraints in the following list is one you don't want. 
	Try this: 
		(1) look at each constraint and try to figure out which you don't expect; 
		(2) find the code that added the unwanted constraint or constraints and fix it. 
	(Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) 
(
    "<NSAutoresizingMaskLayoutConstraint:0x281106a30 h=-&- v=-&- UIDropShadowView:0x12be2a800.minX == 0   (active, names: '|':UITransitionView:0x12bf3e3b0 )>",
    "<NSAutoresizingMaskLayoutConstraint:0x281106990 h=-&- v=-&- H:[UIDropShadowView:0x12be2a800]-(0)-|   (active, names: '|':UITransitionView:0x12bf3e3b0 )>",
    "<NSAutoresizingMaskLayoutConstraint:0x281106300 h=-&- v=-&- UITransitionView:0x12bf3e3b0.minX == 0   (active, names: '|':UIWindow:0x12d10c590 )>",
    "<NSAutoresizingMaskLayoutConstraint:0x2811062b0 h=-&- v=-&- H:[UITransitionView:0x12bf3e3b0]-(0)-|   (active, names: '|':UIWindow:0x12d10c590 )>",
    "<NSAutoresizingMaskLayoutConstraint:0x281106670 h=--- v=--- UIWindow:0x12d10c590.width == 375   (active)>",
    "<NSAutoresizingMaskLayoutConstraint:0x28126c230 h=-&- v=-&- UIView:0x1326df4c0.minX == 0   (active, names: '|':UITransitionView:0x1312ce6b0 )>",
    "<NSAutoresizingMaskLayoutConstraint:0x28126d630 h=-&- v=-&- H:[UIView:0x1326df4c0]-(0)-|   (active, names: '|':UITransitionView:0x1312ce6b0 )>",
    "<NSAutoresizingMaskLayoutConstraint:0x28126c910 h=-&- v=-&- UITransitionView:0x1312ce6b0.minX == 0   (active, names: '|':UIDropShadowView:0x12be2a800 )>",
    "<NSAutoresizingMaskLayoutConstraint:0x28126ca00 h=-&- v=-&- H:[UITransitionView:0x1312ce6b0]-(0)-|   (active, names: '|':UIDropShadowView:0x12be2a800 )>",
    "<SnapKit.LayoutConstraint:[email protected]#122 _TtCC5Brave26BraveRewardsViewController16BraveRewardsView:0x12be29d70.width == 360.0>",
    "<SnapKit.LayoutConstraint:[email protected]#182 _TtCC5Brave26BraveRewardsViewController16BraveRewardsView:0x12be29d70.leading == UIView:0x12bf690d0.leading>",
    "<SnapKit.LayoutConstraint:[email protected]#182 _TtCC5Brave26BraveRewardsViewController16BraveRewardsView:0x12be29d70.trailing == UIView:0x12bf690d0.trailing>",
    "<SnapKit.LayoutConstraint:[email protected]#91 UIView:0x12bf690d0.left == _TtCC7BraveUI17PopoverController13ContainerView:0x1327af510.left>",
    "<SnapKit.LayoutConstraint:[email protected]#91 UIView:0x12bf690d0.right == _TtCC7BraveUI17PopoverController13ContainerView:0x1327af510.right>",
    "<SnapKit.LayoutConstraint:[email protected]#518 _TtCC7BraveUI17PopoverController13ContainerView:0x1327af510.left >= UILayoutGuide:0x12bfa44e0.left + 10.0>",
    "<SnapKit.LayoutConstraint:[email protected]#519 _TtCC7BraveUI17PopoverController13ContainerView:0x1327af510.right <= UILayoutGuide:0x12bfa44e0.right - 10.0>",
    "<NSLayoutConstraint:0x28126c050 'UIViewSafeAreaLayoutGuide-left' H:|-(0)-[UILayoutGuide:0x12bfa44e0'UIViewSafeAreaLayoutGuide'](LTR)   (active, names: '|':UIView:0x1326df4c0 )>",
    "<NSLayoutConstraint:0x28126c730 'UIViewSafeAreaLayoutGuide-right' H:[UILayoutGuide:0x12bfa44e0'UIViewSafeAreaLayoutGuide']-(0)-|(LTR)   (active, names: '|':UIView:0x1326df4c0 )>"
)

Will attempt to recover by breaking constraint 
<SnapKit.LayoutConstraint:[email protected]#122 _TtCC5Brave26BraveRewardsViewController16BraveRewardsView:0x12be29d70.width == 360.0>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful.
error	12:51:50.643181-0400	Client	Failed to parse message from rewards reporting JS: <private>
debug	12:51:52.535162-0400	Client	Bundle: <private>, key: HideRewardsIcon, value: Hide Brave Rewards Icon, table: BraveShared, localizationName: (null), result: Hide Brave Rewards Icon
debug	12:51:52.791290-0400	mDNSResponder	NEHelperTrackerGetDisposition: lookup for <ratios.rewards.brave.com> length 24 (app info ref 96910CF0 pid 4053 for App)
debug	12:51:52.793381-0400	mDNSResponder	NEHelperTrackerAddIPForAllFlows: completed for <ratios.rewards.brave.com.> owner <(null)> app <4053 : ad7ee887-3897-3f81-986e-5fa91ea165fc> <65.8.178.81> <app approved 0> <is_tracker 0>
debug	12:51:52.794954-0400	mDNSResponder	NEHelperTrackerAddIPForAllFlows: completed for <ratios.rewards.brave.com.> owner <(null)> app <4053 : ad7ee887-3897-3f81-986e-5fa91ea165fc> <65.8.178.16> <app approved 0> <is_tracker 0>
debug	12:51:52.796225-0400	mDNSResponder	NEHelperTrackerAddIPForAllFlows: completed for <ratios.rewards.brave.com.> owner <(null)> app <4053 : ad7ee887-3897-3f81-986e-5fa91ea165fc> <65.8.178.3> <app approved 0> <is_tracker 0>
debug	12:51:52.797173-0400	mDNSResponder	NEHelperTrackerAddIPForAllFlows: completed for <ratios.rewards.brave.com.> owner <(null)> app <4053 : ad7ee887-3897-3f81-986e-5fa91ea165fc> <65.8.178.10> <app approved 0> <is_tracker 0>
debug	12:51:52.804205-0400	mDNSResponder	NEHelperTrackerGetDisposition: lookup for <ratios.rewards.brave.com> length 24 (app info ref 96924A30 pid 4053 for App)
debug	12:51:52.804578-0400	mDNSResponder	NEHelperTrackerAddIPForAllFlows: completed for <ratios.rewards.brave.com.> owner <(null)> app <4053 : ad7ee887-3897-3f81-986e-5fa91ea165fc> <2600:9000:2119:6e00:e:379a:a2c0:93a1> <app approved 0> <is_tracker 0>
debug	12:51:52.804923-0400	mDNSResponder	NEHelperTrackerAddIPForAllFlows: completed for <ratios.rewards.brave.com.> owner <(null)> app <4053 : ad7ee887-3897-3f81-986e-5fa91ea165fc> <2600:9000:2119:2e00:e:379a:a2c0:93a1> <app approved 0> <is_tracker 0>
debug	12:51:52.805354-0400	mDNSResponder	NEHelperTrackerAddIPForAllFlows: completed for <ratios.rewards.brave.com.> owner <(null)> app <4053 : ad7ee887-3897-3f81-986e-5fa91ea165fc> <2600:9000:2119:3600:e:379a:a2c0:93a1> <app approved 0> <is_tracker 0>
debug	12:51:52.805651-0400	mDNSResponder	NEHelperTrackerAddIPForAllFlows: completed for <ratios.rewards.brave.com.> owner <(null)> app <4053 : ad7ee887-3897-3f81-986e-5fa91ea165fc> <2600:9000:2119:5a00:e:379a:a2c0:93a1> <app approved 0> <is_tracker 0>
debug	12:51:52.805968-0400	mDNSResponder	NEHelperTrackerAddIPForAllFlows: completed for <ratios.rewards.brave.com.> owner <(null)> app <4053 : ad7ee887-3897-3f81-986e-5fa91ea165fc> <2600:9000:2119:3a00:e:379a:a2c0:93a1> <app approved 0> <is_tracker 0>
debug	12:51:52.806320-0400	mDNSResponder	NEHelperTrackerAddIPForAllFlows: completed for <ratios.rewards.brave.com.> owner <(null)> app <4053 : ad7ee887-3897-3f81-986e-5fa91ea165fc> <2600:9000:2119:6000:e:379a:a2c0:93a1> <app approved 0> <is_tracker 0>
debug	12:51:52.806802-0400	mDNSResponder	NEHelperTrackerAddIPForAllFlows: completed for <ratios.rewards.brave.com.> owner <(null)> app <4053 : ad7ee887-3897-3f81-986e-5fa91ea165fc> <2600:9000:2119:7e00:e:379a:a2c0:93a1> <app approved 0> <is_tracker 0>
debug	12:51:52.807356-0400	mDNSResponder	NEHelperTrackerAddIPForAllFlows: completed for <ratios.rewards.brave.com.> owner <(null)> app <4053 : ad7ee887-3897-3f81-986e-5fa91ea165fc> <2600:9000:2119:ac00:e:379a:a2c0:93a1> <app approved 0> <is_tracker 0>
debug	12:51:52.873914-0400	trustd	replacing non ev reject score: 0 with non ev score: 10011117 <SecCertificatePathVC certs: <cert(0x5ef012200) s: ratios.rewards.brave.com i: Amazon RSA 2048 M02>, <cert(0x5ef012c00) s: Amazon RSA 2048 M02 i: Amazon Root CA 1>, <cert(0x5ece3fcc0) s: Amazon Root CA 1 i: Amazon Root CA 1> >
debug	12:51:52.874404-0400	trustd	completed: <SecCertificatePathVC certs: <cert(0x5ef012200) s: ratios.rewards.brave.com i: Amazon RSA 2048 M02>, <cert(0x5ef012c00) s: Amazon RSA 2048 M02 i: Amazon Root CA 1>, <cert(0x5ece3fcc0) s: Amazon Root CA 1 i: Amazon Root CA 1> > details: (
        {
    },
        {
    },
        {
    }
) result: 4
debug	12:51:54.068608-0400	Client	Bundle: <private>, key: rewards.settingsToggleTitle, value: Enable Brave Rewards, table: BraveShared, localizationName: (null), result: Enable Brave Rewards
debug	12:51:54.068742-0400	Client	Bundle: <private>, key: rewards.settingsToggleMessage, value: Support content creators and publishers automatically by enabling Brave Private Ads. Brave Private Ads are privacy-respecting ads that give back to content creators., table: BraveShared, localizationName: (null), result: Support content creators and publishers automatically by enabling Brave Private Ads. Brave Private Ads are privacy-respecting ads that give back to content creators.
debug	12:51:54.123369-0400	Client	Bundle: <private>, key: RewardsInternalsTitle, value: Rewards Internals, table: BraveShared, localizationName: (null), result: Rewards Internals
debug	12:52:07.720912-0400	Client	MetricLogStore::StageNextLog: staged Brave.Rewards.AdsEnabledDuration
debug	12:52:09.898871-0400	Client	Bundle: <private>, key: RewardsInternalsShareInternalsTitle, value: Share Rewards Internals, table: BraveShared, localizationName: (null), result: Share Rewards Internals
debug	12:52:09.931623-0400	Client	Bundle: <private>, key: RewardsInternalsSharingWarningTitle, value: Warning, table: BraveShared, localizationName: (null), result: Warning
debug	12:52:09.931695-0400	Client	Bundle: <private>, key: RewardsInternalsSharingWarningMessage, value: Data on these pages may be sensitive. Be careful who you share them with., table: BraveShared, localizationName: (null), result: Data on these pages may be sensitive. Be careful who you share them with.
debug	12:52:09.931755-0400	Client	Bundle: <private>, key: RewardsInternalsWalletInfoHeader, value: Rewards Profile Info, table: BraveShared, localizationName: (null), result: Rewards Profile Info
debug	12:52:09.931822-0400	Client	Bundle: <private>, key: RewardsInternalsKeyInfoSeed, value: Key Info Seed, table: BraveShared, localizationName: (null), result: Key Info Seed
debug	12:52:09.931974-0400	Client	Bundle: <private>, key: RewardsInternalsValid, value: Valid, table: BraveShared, localizationName: (null), result: Valid
debug	12:52:09.932028-0400	Client	Bundle: <private>, key: RewardsInternalsWalletPaymentID, value: Rewards Payment ID, table: BraveShared, localizationName: (null), result: Rewards Payment ID
debug	12:52:09.932188-0400	Client	Bundle: <private>, key: RewardsInternalsWalletCreationDate, value: Rewards Profile Creation Date, table: BraveShared, localizationName: (null), result: Rewards Profile Creation Date
debug	12:52:09.932235-0400	Client	Bundle: <private>, key: RewardsInternalsDeviceInfoHeader, value: Device Info, table: BraveShared, localizationName: (null), result: Device Info
debug	12:52:09.932384-0400	Client	Bundle: <private>, key: RewardsInternalsStatus, value: Status, table: BraveShared, localizationName: (null), result: Status
debug	12:52:09.933224-0400	Client	Bundle: <private>, key: RewardsInternalsSupported, value: Supported, table: BraveShared, localizationName: (null), result: Supported
debug	12:52:09.933307-0400	Client	Bundle: <private>, key: RewardsInternalsEnrollmentState, value: Enrollment State, table: BraveShared, localizationName: (null), result: Enrollment State
debug	12:52:09.938957-0400	Client	Bundle: <private>, key: RewardsInternalsNotEnrolled, value: Not enrolled, table: BraveShared, localizationName: (null), result: Not enrolled
error	12:52:41.807435-0400	Client	Failed to parse message from rewards reporting JS: <private>
error	12:52:41.829117-0400	Client	Failed to parse message from rewards reporting JS: <private>

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

Successfully merging a pull request may close this issue.

3 participants