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

[Impeller] Trivial nullptr de-reference fix#35361

Merged
auto-submit[bot] merged 2 commits intoflutter:mainfrom
iskakaushik:fix-npe-entity-pass
Aug 12, 2022
Merged

[Impeller] Trivial nullptr de-reference fix#35361
auto-submit[bot] merged 2 commits intoflutter:mainfrom
iskakaushik:fix-npe-entity-pass

Conversation

@iskakaushik
Copy link
Contributor

No description provided.

Copy link
Contributor

@bdero bdero left a comment

Choose a reason for hiding this comment

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

LGTM, thanks! Just a suggestion about adding more specific error messages.

auto pass = pass_context.GetRenderPass(pass_depth);

if (!pass) {
FML_DCHECK(false) << "No pass found at depth: " << pass_depth;
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you drop the error here and place more specific errors in the InlinePassContext itself? There are 2 situations where this can happen. The first is if the command buffer creation failed and the second is if the RenderPass itself couldn't be created.

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!

@iskakaushik iskakaushik added the autosubmit Merge PR when tree becomes green via auto submit App label Aug 11, 2022
@iskakaushik iskakaushik self-assigned this Aug 11, 2022
if (!IsActive()) {
command_buffer_ = context_->CreateCommandBuffer();
if (!command_buffer_) {
FML_DLOG(ERROR) << "Could not create command buffer.";
Copy link
Contributor

Choose a reason for hiding this comment

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

We use VALIDATION_LOG for such logging purposes.

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.

3 participants