Skip to content

Image control crashes on Android when image width exceeds height #32869

@VidyalakshmiMani

Description

@VidyalakshmiMani

Description

When using an image that is a lot wider than the height (the example has a dimension of 1600x130, but it also fails on smaller images), the ImageControl throws an exception (Java.Lang.RuntimeException: Canvas: trying to draw too large(322641920bytes) bitmap.) on Android, causing the app to crash.

SfImageEditorBug (2).zip

Steps to Reproduce

  1. Run the attached sample on Android
  2. The logic for loading the image can be found within the ViewModels/MainViewModel.cs file.

Link to public reproduction project repository

No response

Version with bug

9.0.111 SR11.1

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-controls-imageImage controlarea-imageImage loading, sources, cachingi/regressionThis issue described a confirmed regression on a currently supported versionpartner/syncfusionIssues / PR's with Syncfusion collaborationplatform/androidregressed-in-10-rc2s/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions