crowdin/mobile-sdk-ios

Crash self.stringsDataSource = StringsLocalizationDataSource(strings: strings) in LocalizationProvider

Radzievskyi opened this issue · 3 comments

Describe the bug
We received crash report from Crowdin SDK file

To Reproduce
Steps to reproduce the behavior:

  1. In our application on launch app, from AppDelegate.swift in:

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool

we call:

 class func initCrowdin() {
        let crowdinProviderConfig = CrowdinProviderConfig(hashString: WXCrowdinManager.distributionHash,
                                                          sourceLanguage: WXLocalization.detectLanguage())

        let crowdinSDKConfig = CrowdinSDKConfig.config().with(crowdinProviderConfig: crowdinProviderConfig)
        
        CrowdinSDK.startWithConfig(crowdinSDKConfig, completion: {})

        CrowdinSDK.currentLocalization = WXLocalization.detectLanguage();
    }

1*. Also initCrowdin() we call on AppleWatch in class:
class ExtensionDelegate: NSObject, WKExtensionDelegate
on

func applicationDidBecomeActive() {

  1. In Xcode and AppstoreConnect we received information about crash. Detail information is shown on screenshots.

Expected behavior
No crash happened

Screenshots
Screen Shot 2022-08-01 at 12 52 42

Screen Shot 2022-08-01 at 12 55 33

Screen Shot 2022-08-01 at 12 55 44

Screen Shot 2022-08-01 at 12 55 51

Screen Shot 2022-08-01 at 12 55 59

Screen Shot 2022-08-01 at 12 56 06

Smartphone (please complete the following information):

  • Device: iPhone 13 Pro Max
  • OS: iOS 15.6 (19G71)

Hi @Radzievskyi!

Is there any way to reproduce this issue on a sample iOS project?

Hi @Radzievskyi!

Is there any way to reproduce this issue on a sample iOS project?

Hello @andrii-bodnar

Sorry, I got this crash log report from our TestFlight on AppstoreConnect. I can't exactly reproduce it on my device. So I can't build representative a sample iOS project.

But I checked log what I show previous more detail, and I found, when crash happened in Thread 2. Is have another Thread 9, what look similar to 2:

Screen Shot 2022-08-01 at 16 34 48

@Radzievskyi thanks a lot for the details provided!

@serhii-londar do you have any ideas why is this issue happening?