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

Fix crash on resize #1028

Merged
merged 1 commit into from
Sep 15, 2021
Merged

Fix crash on resize #1028

merged 1 commit into from
Sep 15, 2021

Conversation

iche033
Copy link
Contributor

@iche033 iche033 commented Sep 15, 2021

Signed-off-by: Ian Chen [email protected]

🦟 Bug fix

Fixes gazebosim/gz-rendering#408

Summary

Fix crash when resizing ign-gazebo gui window

ign-rendering6 enforces a strict order of render calls (prerender -> render -> postrender) in order to achieve efficient use of resources. If we run into more issues / crashes like this in the future, we should probably just print a warning (and auto recover from a bad state) instead of exiting on an assert.

Checklist

  • Signed all commits for DCO
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge

Signed-off-by: Ian Chen <[email protected]>
@iche033 iche033 requested a review from chapulina as a code owner September 15, 2021 05:30
@github-actions github-actions bot added the 🏯 fortress Ignition Fortress label Sep 15, 2021
@iche033 iche033 changed the title update on resize Fix crash on resize Sep 15, 2021
@codecov
Copy link

codecov bot commented Sep 15, 2021

Codecov Report

Merging #1028 (d6b5cdf) into main (05b7bf0) will increase coverage by 0.08%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1028      +/-   ##
==========================================
+ Coverage   63.26%   63.34%   +0.08%     
==========================================
  Files         239      239              
  Lines       19465    19464       -1     
==========================================
+ Hits        12314    12329      +15     
+ Misses       7151     7135      -16     
Impacted Files Coverage Δ
src/gui/plugins/scene3d/Scene3D.cc 10.86% <0.00%> (+<0.01%) ⬆️
src/ServerPrivate.cc 88.06% <0.00%> (+0.56%) ⬆️
src/SimulationRunner.cc 93.92% <0.00%> (+1.18%) ⬆️
src/gui/plugins/plot_3d/Plot3D.cc 47.82% <0.00%> (+4.34%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 05b7bf0...d6b5cdf. Read the comment docs.

@ahcorde
Copy link
Contributor

ahcorde commented Sep 15, 2021

@osrf-jenkins retest this please

@chapulina chapulina added beta Targeting beta release of upcoming collection bug Something isn't working labels Sep 15, 2021
Copy link
Contributor

@chapulina chapulina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hooray! 🙌

@chapulina chapulina merged commit 1e1d0ba into main Sep 15, 2021
@chapulina chapulina deleted the resize_render branch September 15, 2021 17:23
WilliamLewww pushed a commit to WilliamLewww/ign-gazebo that referenced this pull request Dec 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beta Targeting beta release of upcoming collection bug Something isn't working 🏯 fortress Ignition Fortress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants