marcojak / MauiMTAdmob

MIT License
104 stars 17 forks source link

App chrashes when banner is added and app is opened on a real device #29

Closed nicolajhansen97 closed 1 year ago

nicolajhansen97 commented 1 year ago

Bug:

As soon the app open on a page where there is a banner the app crash instantly. It is only a problem on IOS as it works like a charm on Android. It also works fine on IOS Simulator, the problem is only on a real device. I am building with a Macbook and download the app through Testflight.

Phone OS: iOS Version 16.4

clovervalleyapps commented 1 year ago

Hi. Same problem here. I would offer to pay for debugging support and have you release to the community.

Went over your step by step list over and over and it's all implemented.

No errors written on device logs.

No error events: <controls:MTAdView AdsId="{OnPlatform Android='ca-app-pub-3940256099942544/6300978111', iOS='ca-app-pub-3940256099942544/2934735716'}" HeightRequest="50" WidthRequest="300" BackgroundColor="Transparent" AdsFailedToLoad="MTAdView_AdsFailedToLoad"/>

Only this written to console:

Objective-C exception thrown. Name: NSRangeException Reason: *** -[__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array

App loads with no errors without ads.

Phone 11 Max: iOS 16.4.1

Hope you have time to reply today. Thank you.

P.S. Works on Android device and Android simulator.

marcojak commented 1 year ago

Hi @clovervalleyapps ,

let me have a look at the issue and I'll update you asap. I'll try to give you an answer by the end of the weekend.

clovervalleyapps commented 1 year ago

I got lucky and was able to catch error message. Also note: <controls:MTAdView ... IsVisible="{OnPlatform Android=true, iOS=false}" IsEnabled="{OnPlatform Android=true, iOS=false}"/> and <controls:MTAdView ... IsVisible="{OnPlatform Android=true, iOS=false}"/>
and <controls:MTAdView ... IsEnabled="{OnPlatform Android=true, iOS=false}"/>
All throw the error.

I am hopeful you can fix this weekend. Early next week we need to send to the App Store, and this is all that's remaining.

EDIT : The Chinese encoding was unrelated. The following is generated by MTAdMob. I have verified it several times.

2023-05-06 10:04:15.814 MyApp[2572:646493] <<< CurrentDomain_FirstChanceException : Details: System.NullReferenceException: Object reference not set to an instance of an object. >>> <<< CurrentDomain_FirstChanceException : Details: System.NullReferenceException: Object reference not set to an instance of an object. at Google.MobileAds.AdSizeCons.get_Banner() at Plugin.MauiMTAdmob.Platforms.iOS.MTAdViewHandler.CreatePlatformView() at Microsoft.Maui.Handlers.ViewHandler2[[Plugin.MauiMTAdmob.Interfaces.IMTAdView, Plugin.MauiMtAdmob, Version=1.0.2.0, Culture=neutral, PublicKeyToken=null],[Google.MobileAds.BannerView, Google.MobileAds, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].OnCreatePlatformView() at Microsoft.Maui.Handlers.ViewHandler.OnCreatePlatformElement() at Microsoft.Maui.Handlers.ElementHandler.CreatePlatformElement() at Microsoft.Maui.Handlers.ElementHandler.SetVirtualView(IElement view) at Microsoft.Maui.Handlers.ViewHandler2[[Plugin.MauiMTAdmob.Interfaces.IMTAdView, Plugin.MauiMtAdmob, Version=1.0.2.0, Culture=neutral, PublicKeyToken=null],[Google.MobileAds.BannerView, Google.MobileAds, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].SetVirtualView(IView view) at Plugin.MauiMTAdmob.Platforms.iOS.MTAdViewHandler.SetVirtualView(IView view) at Microsoft.Maui.Handlers.ViewHandler2[[Plugin.MauiMTAdmob.Interfaces.IMTAdView, Plugin.MauiMtAdmob, Version=1.0.2.0, Culture=neutral, PublicKeyToken=null],[Google.MobileAds.BannerView, Google.MobileAds, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].SetVirtualView(IElement view) at Microsoft.Maui.Controls.Element.SetHandler(IElementHandler newHandler) at Microsoft.Maui.Controls.Element.set_Handler(IElementHandler value) at Microsoft.Maui.Controls.VisualElement.Microsoft.Maui.IElement.set_Handler(IElementHandler value) at Microsoft.Maui.Platform.ElementExtensions.ToHandler(IElement view, IMauiContext context) at Microsoft.Maui.Platform.ElementExtensions.ToPlatform(IElement view, IMauiContext context) at Microsoft.Maui.Handlers.BorderHandler.UpdateContent(IBorderHandler handler) at Microsoft.Maui.Handlers.BorderHandler.MapContent(IBorderHandler handler, IBorderView border) at Microsoft.Maui.PropertyMapper2.<>cDisplayClass5_0[[Microsoft.Maui.IBorderView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Handlers.IBorderHandler, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].b0(IElementHandler h, IElement v) at Microsoft.Maui.PropertyMapper.UpdatePropertyCore(String key, IElementHandler viewHandler, IElement virtualView) at Microsoft.Maui.PropertyMapper.UpdateProperties(IElementHandler viewHandler, IElement virtualView) at Microsoft.Maui.Handlers.ElementHandler.SetVirtualView(IElement view) at Microsoft.Maui.Handlers.ViewHandler2[[Microsoft.Maui.IBorderView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Platform.ContentView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].SetVirtualView(IView view) at Microsoft.Maui.Handlers.BorderHandler.SetVirtualView(IView view) at Microsoft.Maui.Handlers.ViewHandler2[[Microsoft.Maui.IBorderView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Platform.ContentView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].SetVirtualView(IElement view) at Microsoft.Maui.Controls.Element.SetHandler(IElementHandler newHandler) at Microsoft.Maui.Controls.Element.set_Handler(IElementHandler value) at Microsoft.Maui.Controls.VisualElement.Microsoft.Maui.IElement.set_Handler(IElementHandler value) at Microsoft.Maui.Platform.ElementExtensions.ToHandler(IElement view, IMauiContext context) at Microsoft.Maui.Platform.ElementExtensions.ToPlatform(IElement view, IMauiContext context) at Microsoft.Maui.Handlers.LayoutHandler.SetVirtualView(IView view) at Microsoft.Maui.Handlers.ViewHandler2[[Microsoft.Maui.ILayout, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Platform.LayoutView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].SetVirtualView(IElement view) at Microsoft.Maui.Controls.Element.SetHandler(IElementHandler newHandler) at Microsoft.Maui.Controls.Element.set_Handler(IElementHandler value) at Microsoft.Maui.Controls.VisualElement.Microsoft.Maui.IElement.set_Handler(IElementHandler value) at Microsoft.Maui.Platform.ElementExtensions.ToHandler(IElement view, IMauiContext context) at Microsoft.Maui.Platform.ViewExtensions.ToHandler(IView view, IMauiContext context) at Microsoft.Maui.Controls.Handlers.Items.TemplateHelpers.GetHandler(View view, IMauiContext context) at Microsoft.Maui.Controls.Handlers.Items.TemplatedCell.Bind(DataTemplate template, Object bindingContext, ItemsView itemsView) at Microsoft.Maui.Controls.Handlers.Items.ItemsViewController1[[Microsoft.Maui.Controls.ReorderableItemsView, Microsoft.Maui.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].UpdateTemplatedCell(TemplatedCell cell, NSIndexPath indexPath) at Microsoft.Maui.Controls.Handlers.Items.ItemsViewController1[[Microsoft.Maui.Controls.ReorderableItemsView, Microsoft.Maui.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].CreateMeasurementCell(NSIndexPath indexPath) at Microsoft.Maui.Controls.Handlers.Items.ItemsViewController1[[Microsoft.Maui.Controls.ReorderableItemsView, Microsoft.Maui.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].GetPrototype() at Microsoft.Maui.Controls.Handlers.Items.ItemsViewLayout.DetermineCellSize() at Microsoft.Maui.Controls.Handlers.Items.ListViewLayout.ConstrainTo(CGSize size) at Microsoft.Maui.Controls.Handlers.Items.ItemsViewController1[[Microsoft.Maui.Controls.ReorderableItemsView, Microsoft.Maui.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].CheckForEmptySource() at Microsoft.Maui.Controls.Handlers.Items.ItemsViewController1[[Microsoft.Maui.Controls.ReorderableItemsView, Microsoft.Maui.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].NumberOfSections(UICollectionView collectionView) >>> 2023-05-06 10:04:15.818 MyApp[2572:646493] <<< CurrentDomain_FirstChanceException : Details: System.NullReferenceException: Object reference not set to an instance of an object. at Google.MobileAds.AdSizeCons.get_Banner() 2023-05-06 10:04:15.818 MyApp[2572:646493] at Plugin.MauiMTAdmob.Platforms.iOS.MTAdViewHandler.CreatePlatformView() 2023-05-06 10:04:15.818 MyApp[2572:646493] at Microsoft.Maui.Handlers.ViewHandler2[[Plugin.MauiMTAdmob.Interfaces.IMTAdView, Plugin.MauiMtAdmob, Version=1.0.2.0, Culture=neutral, PublicKeyToken=null],[Google.MobileAds.BannerView, Google.MobileAds, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].OnCreatePlatformView() at Microsoft.Maui.Handlers.ViewHandler.OnCreatePlatformElement() at Microsoft.Maui.Handlers.ElementHandler.CreatePlatformElement() at Microsoft.Maui.Handlers.ElementHandler.SetVirtualView(IElement view) 2023-05-06 10:04:15.818 MyApp[2572:646493] at Microsoft.Maui.Handlers.ViewHandler2[[Plugin.MauiMTAdmob.Interfaces.IMTAdView, Plugin.MauiMtAdmob, Version=1.0.2.0, Culture=neutral, PublicKeyToken=null],[Google.MobileAds.BannerView, Google.MobileAds, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].SetVirtualView(IView view) at Plugin.MauiMTAdmob.Platforms.iOS.MTAdViewHandler.SetVirtualView(IView view) 2023-05-06 10:04:15.818 MyApp[2572:646493] at Microsoft.Maui.Handlers.ViewHandler2[[Plugin.MauiMTAdmob.Interfaces.IMTAdView, Plugin.MauiMtAdmob, Version=1.0.2.0, Culture=neutral, PublicKeyToken=null],[Google.MobileAds.BannerView, Google.MobileAds, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].SetVirtualView(IElement view) at Microsoft.Maui.Controls.Element.SetHandler(IElementHandler newHandler) 2023-05-06 10:04:15.818 MyApp[2572:646493] at Microsoft.Maui.Controls.Element.set_Handler(IElementHandler value) at Microsoft.Maui.Controls.VisualElement.Microsoft.Maui.IElement.set_Handler(IElementHandler value) at Microsoft.Maui.Platform.ElementExtensions.ToHandler(IElement view, IMauiContext context) 2023-05-06 10:04:15.818 MyApp[2572:646493] at Microsoft.Maui.Platform.ElementExtensions.ToPlatform(IElement view, IMauiContext context) at Microsoft.Maui.Handlers.BorderHandler.UpdateContent(IBorderHandler handler) 2023-05-06 10:04:15.818 MyApp[2572:646493] at Microsoft.Maui.Handlers.BorderHandler.MapContent(IBorderHandler handler, IBorderView border) 2023-05-06 10:04:15.818 MyApp[2572:646493] at Microsoft.Maui.PropertyMapper2.<>cDisplayClass5_0[[Microsoft.Maui.IBorderView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Handlers.IBorderHandler, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].b0(IElementHandler h, IElement v) at Microsoft.Maui.PropertyMapper.UpdatePropertyCore(String key, IElementHandler viewHandler, IElement virtualView) 2023-05-06 10:04:15.818 MyApp[2572:646493] at Microsoft.Maui.PropertyMapper.UpdateProperties(IElementHandler viewHandler, IElement virtualView) at Microsoft.Maui.Handlers.ElementHandler.SetVirtualView(IElement view) 2023-05-06 10:04:15.818 MyApp[2572:646493] at Microsoft.Maui.Handlers.ViewHandler2[[Microsoft.Maui.IBorderView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Platform.ContentView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].SetVirtualView(IView view) at Microsoft.Maui.Handlers.BorderHandler.SetVirtualView(IView view) 2023-05-06 10:04:15.818 MyApp[2572:646493] at Microsoft.Maui.Handlers.ViewHandler2[[Microsoft.Maui.IBorderView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Platform.ContentView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].SetVirtualView(IElement view) 2023-05-06 10:04:15.818 MyApp[2572:646493] at Microsoft.Maui.Controls.Element.SetHandler(IElementHandler newHandler) at Microsoft.Maui.Controls.Element.set_Handler(IElementHandler value) at Microsoft.Maui.Controls.VisualElement.Microsoft.Maui.IElement.set_Handler(IElementHandler value) 2023-05-06 10:04:15.818 MyApp[2572:646493] at Microsoft.Maui.Platform.ElementExtensions.ToHandler(IElement view, IMauiContext context) at Microsoft.Maui.Platform.ElementExtensions.ToPlatform(IElement view, IMauiContext context) at Microsoft.Maui.Handlers.LayoutHandler.SetVirtualView(IView view) 2023-05-06 10:04:15.818 MyApp[2572:646493] at Microsoft.Maui.Handlers.ViewHandler2[[Microsoft.Maui.ILayout, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Platform.LayoutView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].SetVirtualView(IElement view) 2023-05-06 10:04:15.818 MyApp[2572:646493] at Microsoft.Maui.Controls.Element.SetHandler(IElementHandler newHandler) at Microsoft.Maui.Controls.Element.set_Handler(IElementHandler value) at Microsoft.Maui.Controls.VisualElement.Microsoft.Maui.IElement.set_Handler(IElementHandler value) 2023-05-06 10:04:15.818 MyApp[2572:646493] at Microsoft.Maui.Platform.ElementExtensions.ToHandler(IElement view, IMauiContext context) at Microsoft.Maui.Platform.ViewExtensions.ToHandler(IView view, IMauiContext context) 2023-05-06 10:04:15.818 MyApp[2572:646493] at Microsoft.Maui.Controls.Handlers.Items.TemplateHelpers.GetHandler(View view, IMauiContext context) at Microsoft.Maui.Controls.Handlers.Items.TemplatedCell.Bind(DataTemplate template, Object bindingContext, ItemsView itemsView) 2023-05-06 10:04:15.818 MyApp[2572:646493] at Microsoft.Maui.Controls.Handlers.Items.ItemsViewController1[[Microsoft.Maui.Controls.ReorderableItemsView, Microsoft.Maui.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].UpdateTemplatedCell(TemplatedCell cell, NSIndexPath indexPath) 2023-05-06 10:04:15.818 MyApp[2572:646493] at Microsoft.Maui.Controls.Handlers.Items.ItemsViewController1[[Microsoft.Maui.Controls.ReorderableItemsView, Microsoft.Maui.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].CreateMeasurementCell(NSIndexPath indexPath) 2023-05-06 10:04:15.818 MyApp[2572:646493] at Microsoft.Maui.Controls.Handlers.Items.ItemsViewController1[[Microsoft.Maui.Controls.ReorderableItemsView, Microsoft.Maui.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].GetPrototype() at Microsoft.Maui.Controls.Handlers.Items.ItemsViewLayout.DetermineCellSize() 2023-05-06 10:04:15.818 MyApp[2572:646493] at Microsoft.Maui.Controls.Handlers.Items.ListViewLayout.ConstrainTo(CGSize size) at Microsoft.Maui.Controls.Handlers.Items.ItemsViewController1[[Microsoft.Maui.Controls.ReorderableItemsView, Microsoft.Maui.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].CheckForEmptySource() 2023-05-06 10:04:15.818 MyApp[2572:646493] at Microsoft.Maui.Controls.Handlers.Items.ItemsViewController1[[Microsoft.Maui.Controls.ReorderableItemsView, Microsoft.Maui.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].NumberOfSections(UICollectionView collectionView) >>>

clovervalleyapps commented 1 year ago

Can I help you test or write a solution, much needed. Thx.

marcojak commented 1 year ago

I think I know what the problem is. I've had a problem with my laptop so I haven't been able to fix the issue. I'll restore the data on my machine and then I'll fix it asap.

clovervalleyapps commented 1 year ago

How's it going? I'm dying out here not sure if this will before launch...

clovervalleyapps commented 1 year ago

2023-05-13 10:33:35.015 MyApp[17606:1682321] <<< CurrentDomain_FirstChanceException : Details: ObjCRuntime.ObjCException: Objective-C exception thrown. Name: NSRangeException Reason: *** -[__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array Native stack trace: 2023-05-13 10:33:35.015 MyApp[17606:1682321] 0 CoreFoundation 0x00000001c9762da0 6A07CBE8-4F65-3DBC-B59D-C1A188A7B95D + 40352 1 libobjc.A.dylib 0x00000001c28203d0 objc_exception_throw + 60 2023-05-13 10:33:35.015 MyApp[17606:1682321] 2 CoreFoundation 0x00000001c9908f94 6A07CBE8-4F65-3DBC-B59D-C1A188A7B95D + 1769364 3 CoreFoundation 0x00000001c977369c 6A07CBE8-4F65-3DBC-B59D-C1A188A7B95D + 108188 4 UIKitCore 0x00000001cb94c0f0 B0858D8E-7220-37BF-873F-ECC2B0A358C3 + 1593584 2023-05-13 10:33:35.015 MyApp[17606:1682321] 5 UIKitCore 0x00000001cb94bbf0 B0858D8E-7220-37BF-873F-ECC2B0A358C3 + 1592304 6 UIKitCore 0x00000001cb82d628 B0858D8E-7220-37BF-873F-ECC2B0A358C3 + 419368 2023-05-13 10:33:35.015 MyApp[17606:1682321] 7 UIKitCore 0x00000001cb82ca0c B0858D8E-7220-37BF-873F-ECC2B0A358C3 + 416268 8 UIKitCore 0x00000001cb82c1b4 B0858D8E-7220-37BF-873F-ECC2B0A358C3 + 414132 9 UIKitCore 0x00000001cbbac618 B0858D8E-7220-37BF-873F-ECC2B0A358C3 + 4085272 2023-05-13 10:33:35.015 MyApp[17606:1682321] 10 UIKitCore 0x00000001cbbac024 B0858D8E-7220-37BF-873F-ECC2B0A358C3 + 4083748 11 MyApp 0x00000001028b60ac _ZN16XamarinCallState3selEv + 3780 2023-05-13 10:33:35.015 MyApp[17606:1682321] 12 MyApp 0x000000010287142c GADInlineAdaptiveBannerAdSizeWithWidthAndMaxHeight + 706108 13 MyApp 0x0000000102ba2fcc _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode + 2339548 2023-05-13 10:33:35.015 MyApp[17606:1682321] 14 MyApp 0x0000000102b98750 _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode + 2296416 2023-05-13 10:33:35.015 MyApp[17606:1682321] 15 MyApp 0x0000000102b96228 _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode + 2286904 16 MyApp 0x0000000102b67230 _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode + 2094400 2023-05-13 10:33:35.015 MyApp[17606:1682321] 17 MyApp 0x0000000102ab6538 _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode + 1370184 2023-05-13 10:33:35.015 MyApp[17606:1682321] 18 MyApp 0x0000000102ab9bd8 _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode + 1384168 19 MyApp 0x0000000102bda218 _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode + 2565416 2023-05-13 10:33:35.016 MyApp[17606:1682321] 20 MyApp 0x0000000102be8574 _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode + 2623620 21 Foundation 0x00000001c3a6f89c 35567930-FBC2-374B-B44B-1DDFE3ADA4A1 + 243868 2023-05-13 10:33:35.016 MyApp[17606:1682321] 22 CoreFoundation 0x00000001c982c208 6A07CBE8-4F65-3DBC-B59D-C1A188A7B95D + 864776 23 CoreFoundation 0x00000001c9838864 6A07CBE8-4F65-3DBC-B59D-C1A188A7B95D + 915556 2023-05-13 10:33:35.016 MyApp[17606:1682321] 24 CoreFoundation 0x00000001c97bd6c8 6A07CBE8-4F65-3DBC-B59D-C1A188A7B95D + 411336 25 CoreFoundation 0x00000001c97d31c4 6A07CBE8-4F65-3DBC-B59D-C1A188A7B95D + 500164 26 CoreFoundation 0x00000001c97d84dc CFRunLoopRunSpecific + 612 2023-05-13 10:33:35.016 MyApp[17606:1682321] 27 GraphicsServices 0x0000000204a4435c GSEventRunModal + 164 28 UIKitCore 0x00000001cbb6437c B0858D8E-7220-37BF-873F-ECC2B0A358C3 + 3789692 2023-05-13 10:33:35.016 MyApp[17606:1682321] 29 UIKitCore 0x00000001cbb63fe0 UIApplicationMain + 340 30 MyApp 0x00000001028885f4 xamarin_UIApplicationMain + 60 2023-05-13 10:33:35.016 MyApp[17606:1682321] 31 MyApp 0x0000000102ba3f58 _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode + 2343528 32 MyApp 0x0000000102ba2c78 _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode + 2338696 2023-05-13 10:33:35.016 MyApp[17606:1682321] 33 MyApp 0x0000000102b98654 _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode + 2296164 2023-05-13 10:33:35.016 MyApp[17606:1682321] 34 MyApp 0x0000000102b96228 _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode + 2286904 35 MyApp 0x0000000102b67230 _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode + 2094400 2023-05-13 10:33:35.016 MyApp[17606:1682321] 36 MyApp 0x0000000102ab6538 _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode + 1370184 2023-05-13 10:33:35.016 MyApp[17606:1682321] 37 MyApp 0x0000000102abcde0 _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode + 1396976 38 MyApp 0x0000000102b6c42c _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode + 2115388 2023-05-13 10:33:35.016 MyApp[17606:1682321] 39 MyApp 0x00000001028b4fc8 xamarin_get_original_working_directory_path + 4368 40 MyApp 0x0000000102bd25c0 _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode + 2533584 2023-05-13 10:33:35.016 MyApp[17606:1682321] 41 dyld 0x00000001e8c6cdec 41605DC7-F412-37D1-B51B-FEE1A26701E9 + 89580

Native stack trace: 0 CoreFoundation 0x00000001c9762da0 6A07CBE8-4F65-3DBC-B59D-C1A188A7B95D + 40352 2023-05-13 10:33:35.016 MyApp[17606:1682321] 1 libobjc.A.dylib 0x00000001c28203d0 objc_exception_throw + 60 2 CoreFoundation 0x00000001c9908f94 6A07CBE8-4F65-3DBC-B59D-C1A188A7B95D + 1769364 3 CoreFoundation 0x00000001c977369c 6A07CBE8-4F65-3DBC-B59D-C1A188A7B95D + 108188 2023-05-13 10:33:35.016 MyApp[17606:1682321] 4 UIKitCore 0x00000001cb94c0f0 B0858D8E-7220-37BF-873F-ECC2B0A358C3 + 1593584 5 UIKitCore 0x00000001cb94bbf0 B0858D8E-7220-37BF-873F-ECC2B0A358C3 + 1592304 2023-05-13 10:33:35.016 MyApp[17606:1682321] 6 UIKitCore 0x00000001cb82d628 B0858D8E-7220-37BF-873F-ECC2B0A358C3 + 419368 7 UIKitCore 0x00000001cb82ca0c B0858D8E-7220-37BF-873F-ECC2B0A358C3 + 416268 8 UIKitCore 0x00000001cb82c1b4 B0858D8E-7220-37BF-873F-ECC2B0A358C3 + 414132 2023-05-13 10:33:35.016 MyApp[17606:1682321] 9 UIKitCore 0x00000001cbbac618 B0858D8E-7220-37BF-873F-ECC2B0A358C3 + 4085272 10 UIKitCore 0x00000001cbbac024 B0858D8E-7220-37BF-873F-ECC2B0A358C3 + 4083748 2023-05-13 10:33:35.016 MyApp[17606:1682321] 11 MyApp 0x00000001028b60ac _ZN16XamarinCallState3selEv + 3780 12 MyApp 0x000000010287142c GADInlineAdaptiveBannerAdSizeWithWidthAndMaxHeight + 706108 2023-05-13 10:33:35.016 MyApp[17606:1682321] 13 MyApp 0x0000000102ba2fcc _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode + 2339548 14 MyApp 0x0000000102b98750 _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode + 2296416 2023-05-13 10:33:35.016 MyApp[17606:1682321] 15 MyApp 0x0000000102b96228 _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode + 2286904 2023-05-13 10:33:35.016 MyApp[17606:1682321] 16 MyApp 0x0000000102b67230 _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode + 2094400 17 MyApp 0x0000000102ab6538 _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode + 1370184 2023-05-13 10:33:35.016 MyApp[17606:1682321] 18 MyApp 0x0000000102ab9bd8 _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode + 1384168 2023-05-13 10:33:35.016 MyApp[17606:1682321] 19 MyApp 0x0000000102bda218 _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode + 2565416 20 MyApp 0x0000000102be8574 _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode + 2623620 2023-05-13 10:33:35.016 MyApp[17606:1682321] 21 Foundation 0x00000001c3a6f89c 35567930-FBC2-374B-B44B-1DDFE3ADA4A1 + 243868 22 CoreFoundation 0x00000001c982c208 6A07CBE8-4F65-3DBC-B59D-C1A188A7B95D + 864776 2023-05-13 10:33:35.016 MyApp[17606:1682321] 23 CoreFoundation 0x00000001c9838864 6A07CBE8-4F65-3DBC-B59D-C1A188A7B95D + 915556 24 CoreFoundation 0x00000001c97bd6c8 6A07CBE8-4F65-3DBC-B59D-C1A188A7B95D + 411336 25 CoreFoundation 0x00000001c97d31c4 6A07CBE8-4F65-3DBC-B59D-C1A188A7B95D + 500164 2023-05-13 10:33:35.016 MyApp[17606:1682321] 26 CoreFoundation 0x00000001c97d84dc CFRunLoopRunSpecific + 612 27 GraphicsServices 0x0000000204a4435c GSEventRunModal + 164 2023-05-13 10:33:35.016 MyApp[17606:1682321] 28 UIKitCore 0x00000001cbb6437c B0858D8E-7220-37BF-873F-ECC2B0A358C3 + 3789692 29 UIKitCore 0x00000001cbb63fe0 UIApplicationMain + 340 30 MyApp 0x00000001028885f4 xamarin_UIApplicationMain + 60 2023-05-13 10:33:35.016 MyApp[17606:1682321] 31 MyApp 0x0000000102ba3f58 _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode + 2343528 2023-05-13 10:33:35.016 MyApp[17606:1682321] 32 MyApp 0x0000000102ba2c78 _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode + 2338696 33 MyApp 0x0000000102b98654 _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode + 2296164 2023-05-13 10:33:35.016 MyApp[17606:1682321] 34 MyApp 0x0000000102b96228 _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode + 2286904 2023-05-13 10:33:35.016 MyApp[17606:1682321] 35 MyApp 0x0000000102b67230 _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode + 2094400 36 MyApp 0x0000000102ab6538 _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode + 1370184 2023-05-13 10:33:35.016 MyApp[17606:1682321] 37 MyApp 0x0000000102abcde0 _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode + 1396976 2023-05-13 10:33:35.016 MyApp[17606:1682321] 38 MyApp 0x0000000102b6c42c _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode + 2115388 39 MyApp 0x00000001028b4fc8 xamarin_get_original_working_directory_path + 4368 2023-05-13 10:33:35.016 MyApp[17606:1682321] 40 MyApp 0x0000000102bd25c0 _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode + 2533584 41 dyld 0x00000001e8c6cdec 41605DC7-F412-37D1-B51B-FEE1A26701E9 + 89580

2023-05-13 10:33:35.017 MyApp[17606:1682321] <<< Error: MainPageScrollTo = Objective-C exception thrown. Name: NSRangeException Reason: *** -[__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array Native stack trace: 2023-05-13 10:33:35.017 MyApp[17606:1682321] 0 CoreFoundation 0x00000001c9762da0 6A07CBE8-4F65-3DBC-B59D-C1A188A7B95D + 40352 1 libobjc.A.dylib 0x00000001c28203d0 objc_exception_throw + 60 2 CoreFoundation 0x00000001c9908f94 6A07CBE8-4F65-3DBC-B59D-C1A188A7B95D + 1769364 2023-05-13 10:33:35.017 MyApp[17606:1682321] 3 CoreFoundation 0x00000001c977369c 6A07CBE8-4F65-3DBC-B59D-C1A188A7B95D + 108188 4 UIKitCore 0x00000001cb94c0f0 B0858D8E-7220-37BF-873F-ECC2B0A358C3 + 1593584 2023-05-13 10:33:35.017 MyApp[17606:1682321] 5 UIKitCore 0x00000001cb94bbf0 B0858D8E-7220-37BF-873F-ECC2B0A358C3 + 1592304 6 UIKitCore 0x00000001cb82d628 B0858D8E-7220-37BF-873F-ECC2B0A358C3 + 419368 7 UIKitCore 0x00000001cb82ca0c B0858D8E-7220-37BF-873F-ECC2B0A358C3 + 416268 2023-05-13 10:33:35.017 MyApp[17606:1682321] 8 UIKitCore 0x00000001cb82c1b4 B0858D8E-7220-37BF-873F-ECC2B0A358C3 + 414132 9 UIKitCore 0x00000001cbbac618 B0858D8E-7220-37BF-873F-ECC2B0A358C3 + 4085272 2023-05-13 10:33:35.017 MyApp[17606:1682321] 10 UIKitCore 0x00000001cbbac024 B0858D8E-7220-37BF-873F-ECC2B0A358C3 + 4083748 11 MyApp 0x00000001028b60ac _ZN16XamarinCallState3selEv + 3780 2023-05-13 10:33:35.017 MyApp[17606:1682321] 12 MyApp 0x000000010287142c GADInlineAdaptiveBannerAdSizeWithWidthAndMaxHeight + 706108 13 MyApp 0x0000000102ba2fcc _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode + 2339548 2023-05-13 10:33:35.017 MyApp[17606:1682321] 14 MyApp 0x0000000102b98750 _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode + 2296416 2023-05-13 10:33:35.017 MyApp[17606:1682321] 15 MyApp 0x0000000102b96228 _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode + 2286904 16 MyApp 0x0000000102b67230 _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode + 2094400 2023-05-13 10:33:35.017 MyApp[17606:1682321] 17 MyApp 0x0000000102ab6538 _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode + 1370184 2023-05-13 10:33:35.017 MyApp[17606:1682321] 18 MyApp 0x0000000102ab9bd8 _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode + 1384168 19 MyApp 0x0000000102bda218 _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode + 2565416 2023-05-13 10:33:35.017 MyApp[17606:1682321] 20 MyApp 0x0000000102be8574 _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode + 2623620 21 Foundation 0x00000001c3a6f89c 35567930-FBC2-374B-B44B-1DDFE3ADA4A1 + 243868 2023-05-13 10:33:35.017 MyApp[17606:1682321] 22 CoreFoundation 0x00000001c982c208 6A07CBE8-4F65-3DBC-B59D-C1A188A7B95D + 864776 23 CoreFoundation 0x00000001c9838864 6A07CBE8-4F65-3DBC-B59D-C1A188A7B95D + 915556 2023-05-13 10:33:35.017 MyApp[17606:1682321] 24 CoreFoundation 0x00000001c97bd6c8 6A07CBE8-4F65-3DBC-B59D-C1A188A7B95D + 411336 25 CoreFoundation 0x00000001c97d31c4 6A07CBE8-4F65-3DBC-B59D-C1A188A7B95D + 500164 26 CoreFoundation 0x00000001c97d84dc CFRunLoopRunSpecific + 612 2023-05-13 10:33:35.017 MyApp[17606:1682321] 27 GraphicsServices 0x0000000204a4435c GSEventRunModal + 164 28 UIKitCore 0x00000001cbb6437c B0858D8E-7220-37BF-873F-ECC2B0A358C3 + 3789692 29 UIKitCore 0x00000001cbb63fe0 UIApplicationMain + 340 2023-05-13 10:33:35.018 MyApp[17606:1682321] 30 MyApp 0x00000001028885f4 xamarin_UIApplicationMain + 60 31 MyApp 0x0000000102ba3f58 _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode + 2343528 2023-05-13 10:33:35.018 MyApp[17606:1682321] 32 MyApp 0x0000000102ba2c78 _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode + 2338696 2023-05-13 10:33:35.018 MyApp[17606:1682321] 33 MyApp 0x0000000102b98654 _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode + 2296164 34 MyApp 0x0000000102b96228 _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode + 2286904 2023-05-13 10:33:35.018 MyApp[17606:1682321] 35 MyApp 0x0000000102b67230 _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode + 2094400 2023-05-13 10:33:35.018 MyApp[17606:1682321] 36 MyApp 0x0000000102ab6538 _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode + 1370184 37 MyApp 0x0000000102abcde0 _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode + 1396976 2023-05-13 10:33:35.018 MyApp[17606:1682321] 38 MyApp 0x0000000102b6c42c _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode + 2115388 39 MyApp 0x00000001028b4fc8 xamarin_get_original_working_directory_path + 4368 2023-05-13 10:33:35.018 MyApp[17606:1682321] 40 MyApp 0x0000000102bd25c0 _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode + 2533584 2023-05-13 10:33:35.018 MyApp[17606:1682321] 41 dyld 0x00000001e8c6cdec 41605DC7-F412-37D1-B51B-FEE1A26701E9 + 89580

marcojak commented 1 year ago

I've just released version 1.0.3. This should solve the issue on iOS. The version for iOS is still behind the one for Android, especially because there are several issues with the original Google binding library. As soon as I'll get more time, I'll update the iOS version to be aligned with Android. After I'll have time to clean the code, I'll release it open source as done for the Xamarin version.

clovervalleyapps commented 1 year ago

You are a life saver. The fix arrived just in time to advert a real problem with the client. And 1.0.3 works on the dist iphoned device. Thank you for the other updates. I see you have a subscription support link, do you have a tip jar of some kind?

marcojak commented 1 year ago

I'm glad it works. My plan is to release a new version for iOS soon but it takes time as my MacBook is quite old and it takes time to develop, compile and test the apple version.

Anyway, yes I have a support link: https://www.buymeacoffee.com/xamarinexpert

It works as monthly subscription or one time donation (you can donate as many coffees as you like), you have the option to choose from.