Skip to content

Crash when getting DynamicConfig value #24

@bodnar-dan

Description

@bodnar-dan

Description

  • We're facing a crash that comes from Statsig library. There's not much manipulation done from our side and I am unable to reproduce, but I do see it in the crash reports.
  • It's an early crash, that happens soon after app start (2-5 seconds after the app started, possible while Statsig is updating values);

Staktrace

DynamicConfig.getValue<A>(forKey:defaultValue:)

Crashed: com.apple.main-thread
0  [APP]  0x15cdb1c DynamicConfig.getValue<A>(forKey:defaultValue:) + 101 (DynamicConfig.swift:101)

Usage

lazy var myConfig: DynamicConfig = Statsig.getConfig(configName)
lazy var myVar: Int = myConfig.getValue(forKey: valueKey, defaultValue: 0) // -> the line that crashes.

Versions

  • We've got this for several version now. The current version we're using is 1.48.1.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions