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

Bugfix: Exception on start #219

Merged
merged 2 commits into from Jan 19, 2019
Merged

Bugfix: Exception on start #219

merged 2 commits into from Jan 19, 2019

Conversation

bryphe
Copy link
Member

@bryphe bryphe commented Jan 19, 2019

Issue: Intermittently when starting the example app, get an error like:

Fatal error: exception Revery_UI__Node.NoDataException("getBoundingBox")

Defect: This is a regression from #216 . We calculate certain properties (transform, worldTransform, bbox, etc) during rendering. Prior to the first render - these properties are not available. However, if there is mouse movement, the mouse event can potentially get dispatched prior to the render. The mouse dispatching uses the calculated bbox to figure out if it needs to dispatch an event. In this case - there is a crash occurring because the bounding box hasn't been calculated yet.

Fix: Don't dispatch events until these calculated properties are available.

@bryphe bryphe merged commit e926928 into master Jan 19, 2019
@bryphe bryphe deleted the bryphe/bugfix/exception-on-start branch January 19, 2019 21:53
akinsho pushed a commit to akinsho/revery that referenced this pull request Jan 20, 2019
* Fix regression - crash on start when mouse moves

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

Successfully merging this pull request may close these issues.

None yet

1 participant