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. Image for the cookie policy date

SfCircularGauge - multiple pointers rendered on iOS

I'm using an SfCircularGauge in my Xamarin.Forms project, and have a problem where on iOS more than one pointer is being rendered. It works fine on Android.

My XAML is here:

<gauge:SfCircularGauge
        WidthRequest     ="120"
        HorizontalOptions="EndAndExpand"
        x:Name           ="gaugeRSSI"
        GaugeType        ="North">
        <gauge:SfCircularGauge.Scales>
            <gauge:Scale
                StartValue   ="-100"
                EndValue     ="-20"
                Interval     ="20"
                StartAngle   ="180"
                SweepAngle   ="180"
                RimColor     ="Red"
                RimThickness ="4"
                LabelOffset  ="0.2"
                LabelFontSize="8"
                LabelColor   ="White">

                <gauge:Scale.Pointers>
                    <gauge:NeedlePointer
                        x:Name      ="needle"
                        Value       ="{Binding RSSI}"
                        LengthFactor="0.7"
                        Color       ="White"
                        Thickness   ="5"
                        KnobColor   ="White"
                        KnobRadius  ="5" />
                </gauge:Scale.Pointers>
            </gauge:Scale>
        </gauge:SfCircularGauge.Scales>
        <gauge:Header
            Text           ="Signal"
            ForegroundColor="White"
            TextSize       ="10"
            Position       ="0,0" />
    </gauge:SfCircularGauge>
 

and a screenshot of the results is attached.

Note that I've got the SfCircularGauges in a custom ViewCell (not shown in the XAML above).

Is this a known problem, and/or what is the workaround/fix?
 

Attachment: Simulator_Screen_Shot_18_Feb_2016,_11.28.05.png_6f52efe8.zip

12 Replies

SP Sivakumar Punniya Moorthi Syncfusion Team February 19, 2016 01:32 PM UTC

Hi James,


Thanks for your interest in Syncfusion products.


We have tested the provided code snippet and it renders the pointers in both Android and iOS, also we have added multiple pointers and it works fine when updated the pointer values dynamically. So could you please provide us more information about the issue reproducing scenario along with simple reproducing sample, so that we could analyze on it and provide you better solution.


Regards,

Sivakumar P



JL James Lavery February 19, 2016 03:48 PM UTC

Looking into this more, it appears that the rendered images are being superimposed - see the attached latest screenshot. It must be an artefact of how the renderer is behaving within the listview. I'm running Xamarin.Forms 2.0.1 by the way.




Attachment: Simulator_Screen_Shot_19_Feb_2016,_15.44.28.png_268191dc.zip


SP Sivakumar Punniya Moorthi Syncfusion Team February 22, 2016 01:26 PM UTC

Hi James,


Thanks for using Syncfusion products.


Based on the provided information, we are analyzing the issue of gauge control render in List View.  Let you know the details in one business day (23/2/2016).


Please let us know. If you have any concerns.


Regards,

Sivakumar P



SP Subburaj Pandian Veluchamy Syncfusion Team February 23, 2016 11:24 AM UTC

Hi James,
Based on the provided information we suspect that, CircularGauge control overlaps when used it inside a list view, We have prepared a sample where we have used Gauge control as an ItemTemplate for the ListView, where the Gauge is available with multiple needle. And the prepared sample works fine without any rendering issue. Please find the sample in the below location,

Sample: GaugeSampleTest
 
Could you please provide us more information about the issue and modify the provided sample to reproduce the issue, so that we could analyze on it and provide you better solution.

Please let us know. If you have any concerns.

Regards,
Subburaj Pandian V


JL James Lavery February 23, 2016 01:22 PM UTC

Thanks for the sample project - I'm afraid it crashes in iOS with no exception being logged in the application output.

This is running on a simulator with iOS 9.2, and a physical device with iOS 9.1


SP Subburaj Pandian Veluchamy Syncfusion Team February 24, 2016 10:20 AM UTC

Hi James,
Thank you for the update. If you still facing any crash issue kindly provide more information along with iOS version which you have used to run the sample, so that we could analyze on it further and provide you the better solution.

Please let us know. If you have any concerns.

Regards,
Subburaj Pandian V


JL James Lavery February 24, 2016 11:44 AM UTC

Hi Subburaj,
I'm afraid it's still crashing on my device. I've attached the crash log, which has OS version details etc.

Regards,
James

Attachment: GaugeSampleTestcrashlog.crash_e3a15e5c.zip


SP Subburaj Pandian Veluchamy Syncfusion Team February 25, 2016 12:40 PM UTC

Hi James,

 

We are unable to reproduce the mentioned issue, we have tested the sample with the given OS version (9.1 & 9.2) in both simulator and device and its working fine. I have attached the sample along with latest Xamarin assemblies and screen shot of the output image.

 

Sample: GaugeSampleTest
 

Screenshot: output
 

If the above solution does not meet your requirement, Could you please provide the Xamarin version, XCode version, Syncfusion assembly version? So that we could further analyze on it and provide you the better solution.

 

Please let us know. If you have any query.

 

Regards,

Subburaj Pandian V



JL James Lavery February 25, 2016 04:01 PM UTC

No problem.

I'm running Syncfusion version 13.4551.0.53

here are my Xamarin versions:
=== Xamarin Studio ===

Version 5.10.2 (build 56)
Installation UUID: 462e6ba8-9cb7-4b87-acc8-9dfb0ab2c6f7
Runtime:
Mono 4.2.2 (explicit/996df3c)
GTK+ 2.24.23 (Raleigh theme)

Package version: 402020030

=== Xamarin.Profiler ===

Version: 0.30.0
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

=== Xamarin.Android ===

Version: 6.0.1.10 (Enterprise Edition)
Android SDK: /Users/jameslavery/Library/Developer/Xamarin/android-sdk-macosx
Supported Android versions:
2.3   (API level 10)
4.0.3 (API level 15)
4.4   (API level 19)
5.0   (API level 21)
5.1   (API level 22)
6.0   (API level 23)

SDK Tools Version: 24.4.1
SDK Platform Tools Version: 23.0.1
SDK Build Tools Version: 22.0.0

Java SDK: /usr
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)

=== Xamarin Android Player ===

Version: 0.6.5
Location: /Applications/Xamarin Android Player.app

=== Apple Developer Tools ===

Xcode 7.2 (9548)
Build 7C68

=== Xamarin.Mac ===

Version: 2.4.1.6 (Enterprise Edition)

=== Xamarin.iOS ===

Version: 9.4.1.25 (Enterprise Edition)
Hash: 962a050
Branch: master
Build date: 2016-01-29 16:59:11-0500

=== Build Information ===

Release ID: 510020056
Git revision: bb74ff467c62ded42b7b7ac7fdd2edc60f8647b0
Build date: 2016-01-26 16:24:41-05
Xamarin addins: 8b797d7ba24d5abab226c2cf9fda77f666263f1b
Build lane: monodevelop-lion-cycle6-c6sr1

=== Operating System ===

Mac OS X 10.11.0
Darwin Jamess-MacBook-Pro.local 15.0.0 Darwin Kernel Version 15.0.0
    Wed Aug 26 16:57:32 PDT 2015
    root:xnu-3247.1.106~1/RELEASE_X86_64 x86_64




SP Subburaj Pandian Veluchamy Syncfusion Team February 26, 2016 07:02 AM UTC

Hi James,


We are sorry for the inconvenience caused.  


Based on the provided information, we have found that the crashing occurs due to the Syncfusion Assembly version 13.4551.0.53. We have internally found and fixed the mentioned issue and the issue fix has already included in our Vol4 SP1 release 13.4551.0.58.  you can download the complete Xamarin build from the below Vol4 SP1 link.

 

Vol4 SP1: https://syncfusion.com/forums/122061/essential-studio-2015-volume-4-service-pack-release-v13-4-0-58-available-for-download


Kindly check with the above Xamarin version 13.4.0.58, if the provided solution doesn’t meet your requirement, please revert us.


Please let us know, if you need any further assistance on this.


Regards,

Subburaj Pandian V 



JL James Lavery February 26, 2016 09:16 AM UTC

I have downloaded the service pack and updated the references in the sample, so it now runs - thank you.

I have then amended the sample to demonstrate the problem - attached. Hopefully this will help diagnose the cause of the problem!

Attachment: GaugeSampleTest_jgl_918ce645.zip


NM Nijamudeen Mohamed Sulaiman Syncfusion Team February 29, 2016 09:29 AM UTC

Hi James,


Thanks for the update.


You have created a separate incident for multiple pointers rendered on iOS. Please have follow up with the incident.

Regards,
Nijamudeen M.


Loader.
Live Chat Icon For mobile
Up arrow icon