Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Following Simple Example Get Exception in lattest Xam.Forms #110

Open
davidbuckleyni opened this issue Oct 10, 2021 · 0 comments
Open
Labels
bug Something isn't working

Comments

@davidbuckleyni
Copy link

Describe the bug
When Following the simple sample page I am getting an issue

 
    <ContentPage.BindingContext>
        <local:AdvancedPageViewModel />
    </ContentPage.BindingContext>

    <ContentPage.Content>
        <StackLayout>
        <Image Source="logo.png"></Image>
        <Label Text="My Schedule" FontSize="50" TextColor="White"></Label>

            <ScrollView>
        <StackLayout>
            <plugin:Calendar
          BackgroundColor="Black"
        Padding="10,0"
        AnimateCalendar="True"
         DayViewSize="40"
        DaysTitleColor="White"
        DaysTitleHeight="40"
        DaysTitleMaximumLength="ThreeChars"
        DeselectedDayTextColor="White"
        DisableSwipeDetection="False"
                DayViewCornerRadius="20"
        EventIndicatorColor="Blue"
                EventIndicatorTextColor="White"
        EventIndicatorSelectedColor="Blue"
          EventIndicatorType="Background"
               
        Events="{Binding Events}"
        HeaderSectionVisible="True"
        HorizontalOptions="FillAndExpand"
        MonthLabelColor="White"
        OtherMonthDayColor="White"
        OtherMonthDayIsVisible="False"
        SelectedDateColor="Blue"
        SelectedDateTextFormat="ddd, dd MMM yyyy"
        SelectedDayBackgroundColor="DarkCyan"
        SelectedDayTextColor="Cyan"
        SelectedTodayTextColor="White"
        
        SwipeToChangeMonthEnabled="False"
        SwipeUpToHideEnabled="False"
        TodayFillColor="Silver"
        TodayOutlineColor="Blue"
        TodayTextColor="Red"
        VerticalOptions="FillAndExpand"
        YearLabelColor="Blue">

                        <plugin:Calendar.EventTemplate>
                            <DataTemplate>
                                <StackLayout
                    Padding="15,0,0,0"
                    HorizontalOptions="FillAndExpand"
                    VerticalOptions="FillAndExpand">
                                    <Label
                        FontAttributes="Bold"
                        FontSize="Medium"
                        Text="{Binding Name}"
                    />
                                    <Label
                        FontSize="Small"
                        LineBreakMode="WordWrap"
                        Text="{Binding Description}" 
                    />
                                    <StackLayout.GestureRecognizers>
                                        <TapGestureRecognizer Command="{Binding BindingContext.EventSelectedCommand, Source={x:Reference simpleCalendarPage}}" CommandParameter="{Binding .}" />
                                    </StackLayout.GestureRecognizers>
                                </StackLayout>
                            </DataTemplate>
                        </plugin:Calendar.EventTemplate>
                    </plugin:Calendar>
                </StackLayout>
            </ScrollView>
        </StackLayout>
    </ContentPage.Content>

I get the following error message

image

The output I get in the code output window is

System.Reflection.TargetInvocationException: 'Exception has been thrown by the target of an invocation.'

```[AppCenterCrashes] System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Xamarin.Forms.Xaml.XamlParseException: Position 76:63. Can not find the object referenced by CalendarPage
[AppCenterCrashes] at Xamarin.Forms.Xaml.ReferenceExtension.ProvideValue (System.IServiceProvider serviceProvider) [0x000bf] in D:\a\1\s\Xamarin.Forms.Xaml\MarkupExtensions\ReferenceExtension.cs:43
[AppCenterCrashes] at THEHOCKEYLAB.Views.CalendarPage+_anonXamlCDataTemplate_0.LoadDataTemplate () [0x0031a] in <94ebbbfb752b4771825253fb3cb0510e>:0
[AppCenterCrashes] at Xamarin.Forms.ElementTemplate.CreateContent () [0x00026] in D:\a\1\s\Xamarin.Forms.Core\ElementTemplate.cs:82
[AppCenterCrashes] at Xamarin.Plugin.Calendar.Extensions.CreateContent (Xamarin.Forms.DataTemplate dataTemplate, System.Object itemModel) [0x00030] in D:\a\1\s\src\Calendar.Plugin\Shared\Extensions.cs:26
[AppCenterCrashes] at Xamarin.Plugin.Calendar.Controls.GenericRepeaterView.GetItemView (System.Object itemModel) [0x00000] in D:\a\1\s\src\Calendar.Plugin\Shared\Controls\GenericRepeaterView.cs:91
[AppCenterCrashes] at Xamarin.Plugin.Calendar.Controls.GenericRepeaterView.ResetItems () [0x00048] in D:\a\1\s\src\Calendar.Plugin\Shared\Controls\GenericRepeaterView.cs:81
[AppCenterCrashes] at Xamarin.Plugin.Calendar.Controls.GenericRepeaterView.OnItemsSourceChanged (Xamarin.Forms.BindableObject bindable, System.Object oldValue, System.Object newValue) [0x00026] in D:\a\1\s\src\Calendar.Plugin\Shared\Controls\GenericRepeaterView.cs:62
[AppCenterCrashes] at Xamarin.Forms.BindableObject.SetValueActual (Xamarin.Forms.BindableProperty property, Xamarin.Forms.BindableObject+BindablePropertyContext context, System.Object value, System.Boolean currentlyApplying, Xamarin.Forms.Internals.SetValueFlags attributes, System.Boolean silent) [0x00120] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:512
[AppCenterCrashes] at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, Xamarin.Forms.Internals.SetValueFlags attributes, Xamarin.Forms.BindableObject+SetValuePrivateFlags privateAttributes) [0x00173] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:446
[AppCenterCrashes] at Xamarin.Forms.BindingExpression.ApplyCore (System.Object sourceObject, Xamarin.Forms.BindableObject target, Xamarin.Forms.BindableProperty property, System.Boolean fromTarget) [0x00226] in D:\a\1\s\Xamarin.Forms.Core\BindingExpression.cs:160
[AppCenterCrashes] at Xamarin.Forms.BindingExpression.Apply (System.Boolean fromTarget) [0x0003e] in D:\a\1\s\Xamarin.Forms.Core\BindingExpression.cs:56
[AppCenterCrashes] at Xamarin.Forms.BindingExpression+BindingExpressionPart.b__49_0 () [0x00000] in D:\a\1\s\Xamarin.Forms.Core\BindingExpression.cs:762
[AppCenterCrashes] at Xamarin.Forms.BindingExpression+BindingExpressionPart.PropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs args) [0x000cb] in D:\a\1\s\Xamarin.Forms.Core\BindingExpression.cs:773
[AppCenterCrashes] at Xamarin.Forms.BindingExpression+WeakPropertyChangedProxy.OnPropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs e) [0x00012] in D:\a\1\s\Xamarin.Forms.Core\BindingExpression.cs:666
[AppCenterCrashes] at (wrapper delegate-invoke) .invoke_void_object_PropertyChangedEventArgs(object,System.ComponentModel.PropertyChangedEventArgs)
[AppCenterCrashes] at Xamarin.Forms.BindableObject.OnPropertyChanged (System.String propertyName) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:266
[AppCenterCrashes] at Xamarin.Forms.Element.OnPropertyChanged (System.String propertyName) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\Element.cs:362
[AppCenterCrashes] at Xamarin.Plugin.Calendar.Controls.Calendar.OnPropertyChanged (System.String propertyName) [0x00000] in D:\a\1\s\src\Calendar.Plugin\Shared\Controls\Calendar.xaml.cs:1031
[AppCenterCrashes] at Xamarin.Forms.BindableObject.SetValueActual (Xamarin.Forms.BindableProperty property, Xamarin.Forms.BindableObject+BindablePropertyContext context, System.Object value, System.Boolean currentlyApplying, Xamarin.Forms.Internals.SetValueFlags attributes, System.Boolean silent) [0x00114] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:510
[AppCenterCrashes]
System.Reflection.TargetInvocationException: 'Exception has been thrown by the target of an invocation.'

[libc] Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x3a16076 in tid 7441 (me.thehockeylab), pid 7441 (me.thehockeylab)```

@davidbuckleyni davidbuckleyni added the bug Something isn't working label Oct 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant