Uploaded image for project: 'Realm .NET SDK'
  1. Realm .NET SDK
  2. RNET-781

Read access violation when refreshing SubscriptionSet

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      We are getting a "Read access violation" in here:

      https://github.com/realm/realm-core/blob/6b05da97d0a9bd0bf61522a0342222443b35e196/src/realm/sync/subscriptions.cpp#L708

      when refreshing the SubscriptionSet (line 335) in the callback of {{get_state_change_notification }}:

      https://github.com/realm/realm-dotnet/blob/db0d9023937d06c9df089257a09fd4c16a4ca530/wrappers/src/subscription_set_cs.cpp#L329-L350

      This happens only when previously we committed an empty write to the SubscriptionSet. By "empty", I mean that no query was added or removed, so the refresh should probably be a no-op.

            Assignee:
            nikola.irinchev@mongodb.com Nikola Irinchev
            Reporter:
            ferdinando.papale@mongodb.com Ferdinando Papale
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: