BarcodeGenerator freezes .NET MAUI app on iOS

This control completely freezes the app on iOS. It works fine on Android.

I want to give you some more information about it but it doesn't crash the app and I have no exceptions.

I have this control on the second page of a tabbed page so the app starts fine but the minute I tap the icon to go to the page that is supposed to display a QR code, the app stops responding and I never get to the QR code page. Interestingly, the app just stays frozen for a very long period without crashing.

This is the XAML code:

<barcode:SfBarcodeGenerator
   Grid.Row="2"
   Value="{Binding QrCodeValue}"
   HeightRequest="250"
   WidthRequest="250">
   <barcode:SfBarcodeGenerator.Symbology>
      <barcode:QRCode />
   </barcode:SfBarcodeGenerator.Symbology>
</barcode:SfBarcodeGenerator>

The app uses MVVM approach and I set QrCodeValue in the view model to something very simple to test it and that didn't make any difference.

I have Syncfusion.Maui.Barcode version 20.2.39 installed on my app and the MAUI up is using the latest service release.

Any ideas/suggestions on what's going on here?


6 Replies

RS Ragul Subramani Syncfusion Team July 25, 2022 10:32 AM UTC

We have prepared a sample based on the provided details, and snippet and checked the reported problem “BarcodeGenerator freezes .NET MAUI app on iOS” by navigating back and forth between the tabs. But still, we are unable to reproduce the reported problem from our side. Please get the tested sample and video from the attachment for your reference. Could you please check with the tested sample? If you still face the problem, please revert us by modifying the sample based on your application and the replication procedure and device details, iOS version, MAUI version, etc. This would be helpful for us to provide you with a better solution on this at the earliest.


Attachment: BarcodeDemo_64b939f5.zip


SA Sam July 26, 2022 04:47 AM UTC

Strangely, when I pushed the app to TestFlight and installed it on a physical device, it works fine. However, if I tether the same physical device to my PC and use Visual Studio HotReload to test the app, the Barcode control freezes the app every time!



VR Vignesh Ramesh Syncfusion Team July 28, 2022 04:10 AM UTC

We have tested the previously provided sample by deploying it on the physical device and changing the Value and Symbology dynamically to check the HotReload. But still, we are not able to reproduce the reported problem. Please find the tested device details below.


iPhone 7, iOS version 14.6


Please check the provided sample and revert us by modifying the sample based on your application scenario along with the replication procedure, device details, iOS version, MAUI version, etc. Also, please confirm to us whether the reported problem occurs only on any particular device by testing the sample with multiple devices. This would be helpful for us to provide you with a better solution on this at the earliest.



VR Vignesh Ramesh Syncfusion Team July 28, 2022 06:06 AM UTC

We missed attaching the tested sample in the last update. Please find it in the attachment. Could you please confirm to us one more thing: whether the reported problem occurs only when using the SfBarcodeGenerator in the application? 


Attachment: BarcodeDemo_3cfbe4ba.zip


WI William June 13, 2024 02:02 PM UTC

Was this ever resolved? I am having exactly the same issue. QR code freezes and crashes the app when tested in Simulator or when tested on an iOS device.



VO Vishal Omprasad Syncfusion Team June 14, 2024 11:02 AM UTC

Hi William,

Regarding “BarcodeGenerator freezes .NET MAUI app on iOS”:

As per the shared details we have checked the reported query with our previously shared sample and also with a simple sample. However, we are unable to replicate the reported scenario from our end. We have tested by navigating between the tabs multiple times. We have attached the tested sample along with the tested video below for your reference.

Additional information:

SfBarcodeGenerator version: 26.1.3

MAUI Framework version: net8.0
Tested simulator: iPhone 15 Pro Max iOS 17.2
XCode version: 15.2
Operative System: macOS Sonoma 14.0

Please check with the attached sample and let us know whether you are still experiencing the same issue. If the problem persists, kindly modify our sample, and revert to us with an issue reproducible sample, a video showcasing the issue being replicated, and the issue reproducible device details. This additional information will help us check on it and provide you a better solution as soon as possible.

Regards,
Vishal O.


Attachment: BarcodeDemo_d66254fe.zip

Loader.
Up arrow icon