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] Native crash in xamarin.forms due to "Xamarin_Essentials_Xamarin_Essentials_Preferences_Get_string_System_DateTime_string" #2134

Open
abdul-wasey opened this issue Mar 5, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@abdul-wasey
Copy link

abdul-wasey commented Mar 5, 2024

Our xamarin.forms app has faced a native crash for iOS (SIGSEGV). According to the available crash information on App Center, it seems like the crash is related to "Xamarin_Essentials_Preferences" as we can see in the crash logs below :

App Center's Crash Report Details :

MAIN THREAD - CRASHED
CoreFoundation
mdict_rehashd
CoreFoundation
-[__NSDictionaryM __setObject:forKey:]
CoreFoundation
-[CFPrefsSource mergeIntoDictionary:sourceDictionary:cloudKeyEvaluator:]
CoreFoundation
-[__NSFrozenDictionaryM __apply:context:]
CoreFoundation
-[CFPrefsSource mergeIntoDictionary:sourceDictionary:cloudKeyEvaluator:]
CoreFoundation
-[CFPrefsSearchListSource alreadylocked_getDictionary:]
CoreFoundation
-[CFPrefsSearchListSource alreadylocked_copyValueForKey:]
CoreFoundation
-[CFPrefsSource copyValueForKey:]
CoreFoundation
-[_CFXPreferences copyAppValueForKey:identifier:container:configurationURL:]
CoreFoundation
-[_CFXPreferences(SearchListAdditions) withSearchListForIdentifier:container:cloudConfigurationURL:perform:]
CoreFoundation
normalizeQuintuplet
CoreFoundation
-[_CFXPreferences withSearchListForIdentifier:container:cloudConfigurationURL:perform:]
CoreFoundation
-[_CFXPreferences copyAppValueForKey:identifier:container:configurationURL:]
CoreFoundation
_CFPreferencesCopyAppValueWithContainerAndConfiguration
Foundation
-[NSUserDefaults(NSUserDefaults) objectForKey:]
wrapper_managed_to_native_ObjCRuntime_Messaging_objc_msgSend_intptr_intptr_intptr
NSUserDefaults.g.cs:263
Xamarin_Essentials_Xamarin_Essentials_Preferences_Get_string_System_DateTime_string (D:\a_work\1\s\Xamarin.Essentials\Preferences\Preferences.shared.cs:113)
mono_jit_runtime_invoke mini-runtime.c:3190
mono_runtime_invoke_checked object.c:3052
mono_runtime_invoke object.c:3107
native_to_managed_trampoline_8(objc_object*, objc_selector*, _MonoMethod**, unsigned int) registrar.m:485
-[__MonoMac_NSAsyncSynchronizationContextDispatcher xamarinApplySelector] registrar.m:10473
Foundation
__NSThreadPerformPerform
CoreFoundation
CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION
CoreFoundation
__CFRunLoopDoSource0
CoreFoundation
__CFRunLoopDoSources0
CoreFoundation
__CFRunLoopRun
CoreFoundation
CFRunLoopRunSpecific
GraphicsServices
GSEventRunModal
UIKitCore
-[UIApplication run]
UIKitCore
UIApplicationMain
xamarin_UIApplicationMain bindings.m:126
wrapper_managed_to_native_UIKit_UIApplication_xamarin_UIApplicationMain_int_intptr_intptr_intptr_intptr

UIApplication.cs:58
mono_jit_runtime_invoke mini-runtime.c:3190
mono_runtime_invoke_checked object.c:3052
mono_runtime_exec_main_checked object.c:0
mono_jit_exec driver.c:1383
xamarin_main monotouch-main.m:490
main main.m:260
0x0 + 0

Basic Information

  • Platform Target Frameworks:
    • iOS: iOS 17.2
  • Nuget Packages: Xamarin.Essentials 1.8.1
@abdul-wasey abdul-wasey added the bug Something isn't working label Mar 5, 2024
@abdul-wasey abdul-wasey changed the title [Bug] Native crash in xamarin.forms's iOS release build (SIGSEGV) [Bug] Native crash in xamarin.forms due "Xamarin_Essentials_Xamarin_Essentials_Preferences_Get_string_System_DateTime_string" Mar 5, 2024
@abdul-wasey abdul-wasey changed the title [Bug] Native crash in xamarin.forms due "Xamarin_Essentials_Xamarin_Essentials_Preferences_Get_string_System_DateTime_string" [Bug] Native crash in xamarin.forms due to "Xamarin_Essentials_Xamarin_Essentials_Preferences_Get_string_System_DateTime_string" Mar 5, 2024
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