Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HOCON bug: System.InvalidOperationException : Collection was modified; enumeration operation may not execute #234

Closed
Aaronontheweb opened this issue Feb 21, 2020 · 1 comment
Assignees
Labels
akkadotnet-compat Legacy compatibility with Akka.Configuration bug
Milestone

Comments

@Aaronontheweb
Copy link
Member

Taken from this PR akkadotnet/akka.net#4212

Failed test: Akka.Persistence.Sqlite.Tests.Query.SqliteCurrentEventsByPersistenceIdSpec.ReadJournal_CurrentEventsByPersistenceId_should_return_empty_stream_for_empty_journal_from_0_to_0

Looks like the stuff we do to rebuild the ActorSystem.Settings.Config with the InjectTopLevelFallback calls blows up HOCON or something calling it.

System.InvalidOperationException : Collection was modified; enumeration operation may not execute.

at System.Collections.Generic.Dictionary`2.Enumerator.MoveNext()
   at Hocon.HoconObject.Clone(IHoconElement newParent)
   at Hocon.HoconValue.Clone(IHoconElement newParent)
   at Hocon.HoconField.Clone(IHoconElement newParent)
   at Hocon.HoconObject.Clone(IHoconElement newParent)
   at Hocon.HoconValue.Clone(IHoconElement newParent)
   at Hocon.HoconField.Clone(IHoconElement newParent)
   at Hocon.HoconObject.Clone(IHoconElement newParent)
   at Hocon.HoconValue.Clone(IHoconElement newParent)
   at Hocon.Config..ctor(HoconRoot source)
   at Akka.Dispatch.MessageDispatcherConfigurator..ctor(Config config, IDispatcherPrerequisites prerequisites) in D:\a\2\s\src\core\Akka\Dispatch\AbstractDispatcher.cs:line 262
   at Akka.TestKit.CallingThreadDispatcherConfigurator..ctor(Config config, IDispatcherPrerequisites prerequisites) in D:\a\2\s\src\core\Akka.TestKit\CallingThreadDispatcher.cs:line 26
   at Akka.TestKit.TestKitBase.InitializeTest(ActorSystem system, Config config, String actorSystemName, String testActorName) in D:\a\2\s\src\core\Akka.TestKit\TestKitBase.cs:line 132
   at Akka.TestKit.TestKitBase..ctor(ITestKitAssertions assertions, ActorSystem system, Config config, String actorSystemName, String testActorName) in D:\a\2\s\src\core\Akka.TestKit\TestKitBase.cs:line 102
   at Akka.TestKit.TestKitBase..ctor(ITestKitAssertions assertions, ActorSystem system, String testActorName) in D:\a\2\s\src\core\Akka.TestKit\TestKitBase.cs:line 77
   at Akka.TestKit.TestProbe..ctor(ActorSystem system, ITestKitAssertions assertions, String testProbeName) in D:\a\2\s\src\core\Akka.TestKit\TestProbe.cs:line 32
   at Akka.TestKit.TestKitBase.CreateTestProbe(ActorSystem system, String name) in D:\a\2\s\src\core\Akka.TestKit\TestKitBase.cs:line 545
   at Akka.TestKit.TestKitBase.CreateTestProbe(String name) in D:\a\2\s\src\core\Akka.TestKit\TestKitBase.cs:line 534
   at Akka.Streams.TestKit.TestSubscriber.ManualProbe`1..ctor(TestKitBase testKit) in D:\a\2\s\src\core\Akka.Streams.TestKit\TestSubscriber.cs:line 82
   at Akka.Streams.TestKit.TestSubscriber.Probe`1..ctor(TestKitBase testKit) in D:\a\2\s\src\core\Akka.Streams.TestKit\TestSubscriber.cs:line 489
   at Akka.Streams.TestKit.TestSubscriber.CreateSubscriberProbe[T](TestKitBase testKit) in D:\a\2\s\src\core\Akka.Streams.TestKit\TestSubscriber.cs:line 546
   at Akka.Streams.TestKit.StreamTestKit.ProbeSink`1.Create(MaterializationContext context, Probe`1& materializer) in D:\a\2\s\src\core\Akka.Streams.TestKit\StreamTestKit.cs:line 167
   at Akka.Streams.Implementation.SinkModule`2.Akka.Streams.Implementation.ISinkModule.Create(MaterializationContext context, Object& materializer) in D:\a\2\s\src\core\Akka.Streams\Implementation\Sinks.cs:line 101
   at Akka.Streams.Implementation.ActorMaterializerImpl.ActorMaterializerSession.MaterializeAtomic(AtomicModule atomic, Attributes effectiveAttributes, IDictionary`2 materializedValues) in D:\a\2\s\src\core\Akka.Streams\Implementation\ActorMaterializerImpl.cs:line 133
   at Akka.Streams.Implementation.MaterializerSession.MaterializeModule(IModule module, Attributes effectiveAttributes) in D:\a\2\s\src\core\Akka.Streams\Implementation\StreamLayout.cs:line 2365
   at Akka.Streams.Implementation.MaterializerSession.MaterializeModule(IModule module, Attributes effectiveAttributes) in D:\a\2\s\src\core\Akka.Streams\Implementation\StreamLayout.cs:line 2370
   at Akka.Streams.Implementation.MaterializerSession.Materialize() in D:\a\2\s\src\core\Akka.Streams\Implementation\StreamLayout.cs:line 2278
   at Akka.Streams.Implementation.ActorMaterializerImpl.Materialize[TMat](IGraph`2 runnable, Func`2 subFlowFuser, Attributes initialAttributes) in D:\a\2\s\src\core\Akka.Streams\Implementation\ActorMaterializerImpl.cs:line 395
   at Akka.Streams.Implementation.ActorMaterializerImpl.Materialize[TMat](IGraph`2 runnable) in D:\a\2\s\src\core\Akka.Streams\Implementation\ActorMaterializerImpl.cs:line 349
   at Akka.Streams.Dsl.Runna
@Aaronontheweb
Copy link
Member Author

closed via #237

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
akkadotnet-compat Legacy compatibility with Akka.Configuration bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants