We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

SfExpander crashes on Android

Thread ID:

Created:

Updated:

Platform:

Replies:

147942 Sep 28,2019 03:40 PM UTC Dec 25,2019 04:24 AM UTC Xamarin.Forms 5
loading
Tags: SfExpander
George
Asked On September 28, 2019 04:10 PM UTC

It works on UWP  but crashes on Android with this exception after opening and closing it then trying to open it (or any other expander) again:

09-28 18:32:41.633 E/AndroidRuntime(16267): java.lang.IllegalStateException: Unable to create layer for ExpanderContent, size 1088x0 max size 16384 color type 4 has context 1
09-28 18:32:41.633 E/AndroidRuntime(16267): at android.os.MessageQueue.nativePollOnce(Native Method)
09-28 18:32:41.633 E/AndroidRuntime(16267): at android.os.MessageQueue.next(MessageQueue.java:326)
09-28 18:32:41.633 E/AndroidRuntime(16267): at android.os.Looper.loop(Looper.java:160)
09-28 18:32:41.633 E/AndroidRuntime(16267): at android.app.ActivityThread.main(ActivityThread.java:6898)
09-28 18:32:41.633 E/AndroidRuntime(16267): at java.lang.reflect.Method.invoke(Native Method)
09-28 18:32:41.633 E/AndroidRuntime(16267): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:537)
09-28 18:32:41.633 E/AndroidRuntime(16267): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
**Java.Lang.IllegalStateException:** 'Unable to create layer for ExpanderContent, size 1088x0 max size 16384 color type 4 has context 1'

There are multiple expanders on the page but all of them seem to cause the crash. The layout is something like this:
 
EDIT: the forum ate my XAML, dunno how to format it properly. Here is a pastebin instead: https://pastebin.com/1tvN1fW9
       
                   
       


Sangeetha Raju [Syncfusion]
Replied On September 30, 2019 12:41 PM UTC

Hi George, 
 
Thank you for contacting Syncfusion support. 
  
We can able to reproduce the reported issue “Application gets crashed in Android” and logged issue report for the same. We will fix the issue and include the issue fix in our next Weekly Nuget release update which is planned to roll out on October 15, 2019. We will appreciate your patience until then. 
  
You can track the status of this report through the following feedback link, 
 
  
Note: The provided feedback link is private, you need to login to view this feedback. 
  
Regards, 
Sangeetha Raju. 


Sangeetha Raju [Syncfusion]
Replied On October 8, 2019 09:14 AM UTC

Hi George, 
  
We have checked the reported issue in our source, the issue occurs in Xamarin Forms Native control. It had been reported to the concern team already. But they have informed that the provided information is insufficient. So, we have reported with the issue replicating sample in the comment section. So, you can track the status of this report through the following link. MeanWhile, you can overcome the reported issue by using Grid instead of StackLayout in Expander Content. 
 
 
Once, Xamarin team updated with workable solution, we will update you the further status of this issue fix if included in our future releases.  
  
Kindly let us know in case of any queries related to this. 
 
Regards, 
Sangeetha Raju. 


Shreyans
Replied On November 6, 2019 01:16 PM UTC

Hi George, 
  
We have checked the reported issue in our source, the issue occurs in Xamarin Forms Native control. It had been reported to the concern team already. But they have informed that the provided information is insufficient. So, we have reported with the issue replicating sample in the comment section. So, you can track the status of this report through the following link. MeanWhile, you can overcome the reported issue by using Grid instead of StackLayout in Expander Content. 
 
 
Once, Xamarin team updated with workable solution, we will update you the further status of this issue fix if included in our future releases.  
  
Kindly let us know in case of any queries related to this. 
 
Regards, 
Sangeetha Raju. 


Any update on this issue ? Facing the same issue in my code.

Sangeetha Raju [Syncfusion]
Replied On November 7, 2019 09:24 AM UTC

Hi Shreyans, 
  
We would like to inform you that the issue occurs from Xamarin framework and we already logged bug report to Xamarin team. For now, you can overcome the reported issue by using Grid instead of StackLayout in Expander Content. We will update you the further status of this issue, once, Xamarin team updated with a workable solution. We will appreciate your patience until then. 
  
Regards, 
Sangeetha Raju. 


Gnana Priya Namasivayam [Syncfusion]
Replied On December 25, 2019 04:24 AM UTC

Hi Shreyans,    
 
Thank you for your patience.     
 
On further analysis with the development team, we have fixed the reported issue “Application gets crashed in android when expand collapse the expander” in our side and included the issue fix in our latest Weekly NuGet release update version 17.4.0.40 which is available for download (nuget.org).  

We thank you for your support and appreciate your patience in waiting for this update. Please get in touch with us if you would require any further assistance. 
Regards,    
Gnana Priya N   
 
 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon