Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@jonahwilliams
Copy link
Contributor

Cleanups that seem to reduce occurance of SIGBUS crash, which It turns out I did not in fact fix.

@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie or stuartmorgan on the #hackers channel in Chat (don't just cc them here, they won't see it! Use Discord!).

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

const auto device_holder = strong_context->GetDeviceHolder();
if (!buffer->SubmitCommands([&, last_query,
device_holder](CommandBuffer::Status status) {
auto strong_context = context_.lock();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We dont need this here, this might be causing shutdown issues since this may keep the context alive longer than it should

"FrameTimeMS", gpu_ms);
}
})) {
if (!buffer->SubmitCommands()) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

oops

Copy link
Member

@zanderso zanderso left a comment

Choose a reason for hiding this comment

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

lgtm w/ nit

if (!buffer->SubmitCommands()) {
VALIDATION_LOG << "GPUTracerVK failed to record frame end time.";
}
VALIDATION_LOG << "GPUTracerVK failed to record frame end time.";
Copy link
Member

Choose a reason for hiding this comment

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

optional minor readability nit: Since the body of the if follows a long closure argument to SubmitCommands it was hard for me to tell whether it was part of the closure, part of the if-body, or after the if-body. Maybe consider assigning the result of SubmitCommands to a bool variable, and then branch on the bool variable.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@jonahwilliams jonahwilliams added the autosubmit Merge PR when tree becomes green via auto submit App label Oct 14, 2023
@auto-submit auto-submit bot merged commit 015e352 into flutter:main Oct 14, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Oct 14, 2023
harryterkelsen pushed a commit that referenced this pull request Oct 23, 2023
Cleanups that seem to reduce occurance of SIGBUS crash, which It turns out I did not in fact fix.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

autosubmit Merge PR when tree becomes green via auto submit App e: impeller

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants