Hi,
I'm using the ImageEditor to add some lines to an image and when tap Save on Release mode the app crashes, on Debug the controls works fine and the image is saved. I tried disabling Trimming for android and same beahaviour.
This is the error
Is there any extra setup required for the control to run on Release?
Hi Camilo,
Based on the shared information, we have checked the reported query “Save on Release mode crash the app” with a simple sample, but we are unable to reproduce the issue from our end. We had deployed the sample in both debug and release mode in Android platform and checked. We have shared the tested sample and tested output video below for your reference.
Please refer the following link to know about saving the image in Android and make sure you have enabled all the necessary permissions: [link]
Additional Information:
SfImageEditor version: 22.2.7
Tested devices: Android simulator, Redmi Note 9, OnePlus Nord CE3
Please check our sample and let us know if you still facing the same issue? if not, please modify our sample and revert us back with the following details which would be helpful for us to check on it and provide you the solution as soon as possible,
Share the issue replicated video.
Share the issue reproduced device details.
Share the issue reproducible code snippets.
Share the issue reproducible sample.
Regards,
Vishal O.
Attachment: GettingStarted_f9f24df1.zip
Hi,
Thanks for the reply. I forgot to mention i'm overriding the default save location. Can you try with the following OnSaving handler.
private async void SfImageEditor_ImageSaving(object sender, Syncfusion.Maui.ImageEditor.ImageSavingEventArgs e)
{
e.Cancel = true;
using FileStream localFileStream = File.OpenWrite("imageeditordesktop.png");
await e.ImageStream.CopyToAsync(localFileStream);
}
I think the issue could be more related to how image caching is being handled in Android. Is i use the same device to run debug and then run release i got the error. Which at its root is a SQLite constraint violation.
Hi Camilo,
Currently we are analysing your query. We will validate and update you with further details shortly. We appreciate your patience until then.
Hi Camilo,
We could not replicate the reported scenario from our end. We have checked the sample by saving the image in the local storage with the release mode from our side. Please refer to the tested sample in the attachment.
Please check our sample and let us know if you still facing the same issue? If not, please modify our sample based on your scenario and share the issue replication sample video which could help us to check on it and provide you the solution at the earliest.
Regards,
SaiGanesh Sakthivel