Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Crash when dispatching actions from inside StoreSubscriber.newState() #498

Open
@gmorning

Description

@gmorning

Screenshot 2022-12-07 at 18 16 47

We have several actions that are chained one after another in this manner:

  1. Action is dispatched
  2. A StoreSubscriber receivesnewState callback on state change
  3. It dispatches another Action on the same Store
  4. Another StoreSubscriber (or maybe the same one) receivesnewState callback on state change
  5. It dispatches another Action on the same Store

These chains are not infinitely recursive, their depth is 2-4 actions. They all operate on single (main) thread synchronously. We see a crash when 2nd or 3rddispatch is called inside ReSwift. It occurs with different action sequences. One case we can reproduce 100% in debug configuration (-Onone), but it's not reproduced in release configuration.

Stacktrace top is__swift_instantiateConcreteTypeFromMangledName

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


      [8]ページ先頭

      ©2009-2025 Movatter.jp