mobile-sdk-ios icon indicating copy to clipboard operation
mobile-sdk-ios copied to clipboard

Crash on startup at LocalLocalizationExtractor.localizedString(for:)

Open samchanLLM opened this issue 3 years ago • 8 comments

Describe the bug After we turned the Crowdin OTA feature on our apps, we have seen quite a number of crashes on Firebase, all pointing to LocalLocalizationExtractor.localizedString(for:), which is a file in CrowdinSDK

For example here Screenshot 2021-11-10 at 11 36 32 AM

To Reproduce Steps to reproduce the behavior:

  • We weren't able to reproduce on our side.
  • Since Firebase reported 88% of the crash events was happened in the first 5 seconds of a user's session, we suspect it was during the app launch.
  • This crash did not happen until we turned the Crowdin OTA feature on.

Expected behavior Should not crash on the SDK side.

Screenshots Code for setting up the Crowdin, it will be called in didFinishLaunchingWithOptions in AppDelegate Screenshot 2021-11-10 at 11 49 59 AM

Additional context We would like to know why this crash will happen, and how to fix it, so we can use this SDK in our production app.

samchanLLM avatar Nov 10 '21 03:11 samchanLLM

Hello! Thanks, checking

Olena1234 avatar Nov 10 '21 04:11 Olena1234

Hi @samchanLLM! Could you please share the full SDK initialization part (in the AppDelegate.swift file) and your distribution hash? It will be better to share this data using the contact form with mention of this issue.

andrii-bodnar avatar Nov 11 '21 10:11 andrii-bodnar

Hi @samchanLLM! Could you please share the full SDK initialization part (in the AppDelegate.swift file) and your distribution hash? It will be better to share this data using the contact form with mention of this issue.

just sent, thanks!

samchanLLM avatar Nov 12 '21 02:11 samchanLLM

Hi @samchanLLM !

Thank you, we have received your message with the attached file!

We will let you know as soon as there are updates!

Rommka4 avatar Nov 12 '21 02:11 Rommka4

Hello, I want to update my description here. I did reproduce the crash I mentioned, and it seems it was due to Crowdin SDK try to get the localized string even if I didn't use NSLocalizedString function, one of the example was it crash when trying to display my username (which does not exist in the String file obviously)

Hope it helps!

samchanLLM avatar Nov 15 '21 09:11 samchanLLM

Hi @samchanLLM ! replied in the email where you previously shared the file with us

ira-sem avatar Nov 15 '21 10:11 ira-sem

Hello, may I know are there any updates?

samchanLLM avatar Nov 24 '21 07:11 samchanLLM

Hi Sam! Sorry for the delay! Will ask the developers for the update and reach you back

ira-sem avatar Nov 24 '21 08:11 ira-sem

Can't reproduce

andrii-bodnar avatar Mar 30 '23 06:03 andrii-bodnar