GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Check if child view != null before dropping by chrusart · Pull Request #20465 · react/react-native

Conversation

@chrusart

@chrusart chrusart commented Jul 31, 2018

Copy link
Copy Markdown
Contributor

Fixes our top crash when framework try drop a view from parent, but it's a null (already removed etc.).

Fixes #20288

Test Plan:

No test plan, crashes happen rarely and very hard to reproduce.

Release Notes:

[ANDROID] [BUGFIX] [NativeViewHierarchyManager.java] - Fixes crash when trying to drop null child view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Artur Chrusciel
Check if child view != null before dropping
7a92262
@facebook-github-bot

facebook-github-bot commented Jul 31, 2018

Copy link
Copy Markdown
Contributor

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chrusart

chrusart commented Jul 31, 2018

Copy link
Copy Markdown
Contributor Author

CLA signed

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 31, 2018
@facebook-github-bot

facebook-github-bot commented Jul 31, 2018

Copy link
Copy Markdown
Contributor

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@react-native-bot react-native-bot added ✅Release Notes labels Jul 31, 2018
@xkrsz

xkrsz commented Aug 1, 2018

Copy link
Copy Markdown

This may resolve the crashes, but I think there's an underlying issue in Android 8.0 resulting in potentially broken UI.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chrusart

chrusart commented Aug 3, 2018 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

You think it's an underlying issue in Android 8.0 because it happen only on this version? There is also a possibility that in 8 were some changes and RN didn't make adjustments for it.
But this check will not harm, right? Maybe in some future versions something else will break that this child will be null again. I'm not a fan of hiding/patching things, but to find the source of a problem as well. This check will resolve crashes, but will not make harder to find the real reason as it should make crashes or errors in more obvious place, this crash is probably just a side effect of a real problem.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@xkrsz

xkrsz commented Aug 3, 2018

Copy link
Copy Markdown

You’re right, that’s a more probable scenario.

I would suggest logging a warning if child == null, this should improve visibility of the root cause.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Artur Chrusciel
Log error when trying drop null child
dbb2725
@chrusart

chrusart commented Aug 3, 2018

Copy link
Copy Markdown
Contributor Author

Log added.

xkrsz reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@facebook-github-bot

facebook-github-bot commented Sep 2, 2018

Copy link
Copy Markdown
Contributor

@chrusart I tried to find reviewers for this pull request and wanted to ping them to take another look. However, based on the blame information for the files in this pull request I couldn't find any reviewers. This sometimes happens when the files in the pull request are new or don't exist on master anymore. Is this pull request still relevant? If yes could you please rebase? In case you know who has context on this code feel free to mention them in a comment (one person is fine). Thanks for reading and hope you will continue contributing to the project.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chrusart

chrusart commented Sep 3, 2018 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

@mkonicek hi, just mention you to get reviewer for this PR as bot says :)
Can you review code? Not sure you work still for RN.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chrusart

chrusart commented Sep 3, 2018

Copy link
Copy Markdown
Contributor Author

@hramos hi, is @mkonicek still working for facebook, who can do review now?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chrusart

chrusart commented Sep 28, 2018

Copy link
Copy Markdown
Contributor Author

@hramos ?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@facebook-github-bot facebook-github-bot added the Import Started This pull request has been imported. This does not imply the PR has been approved. label Sep 28, 2018
facebook-github-bot
facebook-github-bot approved these changes Sep 28, 2018
View reviewed changes

@facebook-github-bot facebook-github-bot left a comment

Copy link
Copy Markdown
Contributor

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.

hramos is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@facebook-github-bot facebook-github-bot closed this in af181fb Sep 28, 2018
@react-native-bot

react-native-bot commented Sep 28, 2018

Copy link
Copy Markdown
Collaborator

@chrusart merged commit af181fb into facebook:master.


Once this commit is added to a release, you will see the corresponding version tag below the description at af181fb. If the commit has a single master tag, it is not yet part of a release.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@react react locked as resolved and limited conversation to collaborators Sep 28, 2018
@react-native-bot react-native-bot added the Merged This PR has been merged. label Sep 28, 2018
grabbou pushed a commit that referenced this pull request Oct 2, 2018
Artur Chrusciel @grabbou
Check if child view != null before dropping (#20465)
8744e00
Summary:
Fixes our top crash when framework try drop a view from parent, but it's a null (already removed etc.).

Fixes #20288
Pull Request resolved: #20465

Differential Revision: D10113976

Pulled By: hramos

fbshipit-source-id: 34f5654f3bdbc63eb7f7d0b5c94885576fc3cdcd
jstheoriginal pushed a commit to jstheoriginal/react-native that referenced this pull request Dec 14, 2018
Artur Chrusciel @jstheoriginal
Check if child view != null before dropping (react#20465)
0a48e0a
Summary:
Fixes our top crash when framework try drop a view from parent, but it's a null (already removed etc.).

Fixes react#20288
Pull Request resolved: react#20465

Differential Revision: D10113976

Pulled By: hramos

fbshipit-source-id: 34f5654f3bdbc63eb7f7d0b5c94885576fc3cdcd
@hramos hramos removed Import Started This pull request has been imported. This does not imply the PR has been approved. labels Feb 6, 2019
t-nanava pushed a commit to microsoft/react-native-macos that referenced this pull request Jun 17, 2019
Artur Chrusciel @facebook-github-bot
Check if child view != null before dropping (react#20465)
82d92ef
Summary:
Fixes our top crash when framework try drop a view from parent, but it's a null (already removed etc.).

Fixes react#20288
Pull Request resolved: react#20465

Differential Revision: D10113976

Pulled By: hramos

fbshipit-source-id: 34f5654f3bdbc63eb7f7d0b5c94885576fc3cdcd
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

1 more reviewer
@facebook-github-bot facebook-github-bot facebook-github-bot approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@chrusart @facebook-github-bot @xkrsz @react-native-bot @hramos
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.