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

[Bug]: Can't cancel a non-existing write transaction

      What happened?

      15:26:23.709: E Can't cancel a non-existing write transaction
      15:26:23.709: E at Realms.NativeException.ThrowIfNecessary(Func`2 overrider)
      at Realms.SharedRealmHandle.CancelTransaction()
      at Realms.Transaction.Rollback()
      at Realms.Transaction.Dispose()
      at Realms.Realm.Write[T](Func`1 function)
      at Realms.Realm.WriteAsync[T](Func`1 function, CancellationToken cancellationToken)
      at Superhare.NHFutures.Threading.Activities.NHFuturesFuCodeSubscriber.<>c_DisplayClass7_0.<<OnSubscribe>b0>d.MoveNext() in E:\Clients_________.cs:line 166
      15:26:27.416: E MapViewOfFileFromApp() failed: Exec format error size: 49283072 offset: 0
      15:26:27.416: E at Realms.RealmConfiguration.CreateHandle(RealmSchema schema)
      at Realms.RealmConfiguration.CreateHandleAsync(RealmSchema schema, CancellationToken cancellationToken)
      at Realms.RealmConfigurationBase.CreateRealmAsync(CancellationToken cancellationToken)
      at Superhare.NHFutures.Threading.Activities.NHFuturesFuCodeSubscriber.<>c_DisplayClass7_0.<<OnSubscribe>b0>d.MoveNext() in E:\Clients_________.cs:line 157

          • __ => Named '__' processed

      Repro steps

      Since it is intermittent, it is almost impossible to reproduce.

      Version

      Net6

      What SDK flavour are you using?

      Local Database only

      What type of application is this?

      WPF

      Client OS and version

      Windows 10 Pro 19044.2251

      Code snippets

      await realm.WriteAsync

      Stacktrace of the exception/crash you're getting

      Unable to find source-code formatter for language: shell. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      15:26:23.709: E Can't cancel a non-existing write transaction
      15:26:23.709: E    at Realms.NativeException.ThrowIfNecessary(Func`2 overrider)
         at Realms.SharedRealmHandle.CancelTransaction()
         at Realms.Transaction.Rollback()
         at Realms.Transaction.Dispose()
         at Realms.Realm.Write[T](Func`1 function)
         at Realms.Realm.WriteAsync[T](Func`1 function, CancellationToken cancellationToken)
         at Superhare.NHFutures.Threading.Activities.NHFuturesFuCodeSubscriber.<>c__DisplayClass7_0.<<OnSubscribe>b__0>d.MoveNext() in E:\Clients\__\__\__\__\__\__\__\__.cs:line 166
      15:26:27.416: E MapViewOfFileFromApp() failed: Exec format error size: 49283072 offset: 0
      15:26:27.416: E    at Realms.RealmConfiguration.CreateHandle(RealmSchema schema)
         at Realms.RealmConfiguration.CreateHandleAsync(RealmSchema schema, CancellationToken cancellationToken)
         at Realms.RealmConfigurationBase.CreateRealmAsync(CancellationToken cancellationToken)
         at Superhare.NHFutures.Threading.Activities.NHFuturesFuCodeSubscriber.<>c__DisplayClass7_0.<<OnSubscribe>b__0>d.MoveNext() in E:\Clients\__\__\__\__\__\__\__\__.cs:line 157
      
      
      *** __ => Named '__' processed
      

      Relevant log output

      No response

            Assignee:
            nikola.irinchev@mongodb.com Nikola Irinchev
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: