-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Bugfix: ExceptionsManagerModule android crashes #968
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, QA passed 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
selectedAddress, | ||
identities | ||
} = this.props; | ||
const host = getHost(url); | ||
const title = typeof currentPageInformation.title === 'string' ? currentPageInformation.title : getHost(url); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I literally made this change last night and it didn't go to production yet.
See https://github.com/MetaMask/metamask-mobile/pull/963/files#diff-6b966e9916d92d54ae676b69d898840cR244
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, title
was the problem not host
. I was able to get to some cases where title
was {}
making everything crash
const { url } = this.props; | ||
const apiLogoUrl = { uri: this.getIconUrl(url) }; | ||
const title = typeof this.props.title === 'string' ? this.props.title : getHost(url); | ||
this.setState({ title: title.substring(0, 1).toUpperCase(), apiLogoUrl }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I oppose to this change because it's gonna cause an extra re-render in every website icon, no matter if it was problematic or not.
My suggestion is to can keep those in the render method and use the this prop to capitalize: https://facebook.github.io/react-native/docs/text-style-props#texttransform
* issue 1 * more like issue 1 * fix website icon * animations * rm code * comment * rm state
Description
These are the top 3 crashes on android, for
ExceptionsManagerModule
category, fixed on this prfirst (by far)
https://www.fabric.io/metamask/android/apps/io.metamask/issues/5c3f843bf8b88c29637fb4f9/sessions/5D405282008500011CF1A9854DAEE5E9_DNE_0_v2?build=109182544
SignatureRequest, AccountApproval and UrlAutocomplete were affected by this. I was able to reproduce
Second
https://www.fabric.io/metamask/android/apps/io.metamask/issues/5c3f843bf8b88c29637fb4f9/sessions/5D4036180382000157165E3FD372E7A3_DNE_3_v2?build=109182544
https://www.fabric.io/metamask/android/apps/io.metamask/issues/5c3f843bf8b88c29637fb4f9/sessions/5D3F22C7032800016AD24492C2822C5C_DNE_2_v2?build=109182544
For this one i just checked if animation refs were defined, if not just skip the animation and go continue the flow. I wasn't able to reproduce
third https://www.fabric.io/metamask/android/apps/io.metamask/issues/5c3f843bf8b88c29637fb4f9/sessions/5D3FD42200EB00016EDBA9854DAEE5E9_DNE_0_v2?build=109182544
Website icon bug where url wasn't defined.
Checklist
Issue
Resolves #???