Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Illegal callback invocation from native module. This callback type only permits a single invocation from native code. #190

@adamivancza

Description

@adamivancza

Is this a support request?
This issue tracker is maintained by LaunchDarkly SDK developers and is intended for feedback on the SDK code. If you're not sure whether the problem you are having is specifically related to the SDK, or to the LaunchDarkly service overall, it may be more appropriate to contact the LaunchDarkly support team; they can help to investigate the problem and will consult the SDK team if necessary. You can submit a support request by going here or by emailing [email protected].

Note that issues filed on this issue tracker are publicly accessible. Do not provide any private account information on your issues. If your problem is specific to your account, you should submit a support request as described above.

Describe the bug
When evaluating a JSON flag there is an unhandled exception.
Simulator Screen Shot - iPhone 11 - 2023-03-02 at 13 52 58

To reproduce
Evaluate a JSON flag

Expected behavior
Do not crash when evaluating a JSON flag

Logs

SDK version
Started to happen in version 6.3.1, but I'm using 7.0.2 now

Language version, developer tools
For instance, Go 1.11 or Ruby 2.5.3. If you are using a language that requires a separate compiler, such as C, please include the name and version of the compiler too.

OS/platform
For instance, Ubuntu 16.04, Windows 10, or Android 4.0.3. If your code is running in a browser, please also include the browser type and version.

Additional context
Based on git blame this commit is causing this issue: a01ed3d
I've compared how other flags are evaluated and there is a big difference in the JSON evaluation:
SCR-20230302-jc7

Basically, I think we need to get rid of line 173 here: a01ed3d#diff-cd97361c4f9361640dd6bed725225b77187ed86a1465713e326390be4ed932b6R173

Metadata

Metadata

Assignees

No one assigned

    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