microsoft / microsoft/AdaptiveCards

[Rendering] Adaptive Image Renderer Causing Crash

Open
#9,197 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Renderers Bug
Dominant language
C#
Stars
2k
Forks
595
Avg merge
1d 19h
Merged PRs (30d)
1

Description

Target Platforms

UWP

SDK Version

?

Application Name

?

Problem Description

In AdaptiveImageRenderer.cpp there's an if statement initialization for strongThis, but the condition only checks isAutoSize and not also strongThis. This causes a crash later on when trying to access member variables.

Screenshots

No response

Card JSON
?
Sample Code Language

No response

Sample Code

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in AdaptiveImageRenderer.cpp and inspect the if statement that initializes strongThis, including the later member-variable access described in the report. Validate the behavior on UWP with an adaptive image configured for auto-sizing, and confirm the crash no longer occurs.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.