microsoft / microsoft/AdaptiveCards
[Rendering] Adaptive Image Renderer Causing Crash
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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