Skip to content

[iOS] Fixed Observer Issue#6878

Merged
jwoo-msft merged 4 commits into
mainfrom
jwoo/ios-sync-fix
Jan 11, 2022
Merged

[iOS] Fixed Observer Issue#6878
jwoo-msft merged 4 commits into
mainfrom
jwoo/ios-sync-fix

Conversation

@jwoo-msft

@jwoo-msft jwoo-msft commented Jan 10, 2022

Copy link
Copy Markdown
Member

Related Issue

We have an occasional test failure with IconsInSomeActions.json card. I'm pretty certain that this PR fixes the issue. If not, this PR will fix one of the possible failure paths.

The unit tests do not utilize resource resolvers. There is a small chance where image is loaded very fast, and activate the observer removal path. Because actions have been increasing the subscribers counts without checking if resolver interface is used, it will try to remove the observer, and will cause this exception.
This won't impact sdk users since the users use resource resolvers unlike in unit test scenarios.

Removed dead code that's not used.

Microsoft Reviewers: Open in CodeFlow

@jwoo-msft
jwoo-msft enabled auto-merge (squash) January 11, 2022 00:06
Comment thread source/ios/AdaptiveCards/AdaptiveCards/AdaptiveCards/ACRView.mm
@jwoo-msft
jwoo-msft merged commit 5f05d08 into main Jan 11, 2022
@jwoo-msft
jwoo-msft deleted the jwoo/ios-sync-fix branch January 11, 2022 22:50
michaelfarnsworth pushed a commit to michaelfarnsworth/AdaptiveCards that referenced this pull request Nov 10, 2022
* [ios] updated stack trace

* [ios] fixed worngnly incrementing subscriber counts
rankush pushed a commit to rankush/AdaptiveCards that referenced this pull request May 8, 2024
* [ios] updated stack trace

* [ios] fixed worngnly incrementing subscriber counts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants