c.a.d.oa.Main$ - ZIO runtime exits with cause Traced(Interrupt(Id(1659108336520,76)),ZTrace(Id(1659108336524,80),List(SourceLocation(Promise.scala,zio.Promise,await,52), SourceLocation(ZIO.scala,zio.ZIO$,effectAsyncInterrupt,2725), SourceLocation(ZIO.scala,zio.ZIO$,effectAsyncInterrupt,2725), SourceLocation(ZIO.scala,zio.ZIO$,effectSuspendTotal,2791), SourceLocation(ZIO.scala,<unknown>,<unknown>,0)),List(SourceLocation(ZIO.scala,zio.ZIO$,_IdentityFn,4233), SourceLocation(ZIO.scala,zio.ZIO,onInterrupt,1051), SourceLocation(ZIO.scala,zio.ZIO$,zio$ZIO$$_succeedRight,4417), SourceLocation(Monad.scala,cats.Monad,map,18), SourceLocation(InterruptContext.scala,fs2.internal.InterruptContext,completeWhen,52), SourceLocation(ZIO.scala,zio.ZIO,run,1730), SourceLocation(ZIO.scala,zio.ZIO,onExit,1027)),Some(ZTrace(Id(1659108336524,79),List(SourceLocation(cats.scala,zio.interop.ZioConcurrent,start,262), SourceLocation(ZRef.scala,zio.ZRef$,make,756), SourceLocation(Scope.scala,fs2.internal.Scope,acquireResource,188), SourceLocation(Monad.scala,cats.Monad,map,18), SourceLocation(ZioAsync.scala,zio.interop.ZioAsync,unique,22), SourceLocation(ScopedResource.scala,fs2.internal.ScopedResource$,create,124), SourceLocation(cats.scala,zio.interop.ZioConcurrent,ref,254), SourceLocation(ZRef.scala,zio.ZRef$,make,756), SourceLocation(ZIO.scala,zio.ZIO$,effectSuspendTotal,2791), SourceLocation(ZIO.scala,<unknown>,<unknown>,0)),List(SourceLocation(cats.scala,zio.interop.ZioConcurrent,start,263), SourceLocation(Monad.scala,cats.Monad,map,18), SourceLocation(ApplicativeError.scala,cats.ApplicativeError,attempt,96), SourceLocation(MonadError.scala,cats.MonadError,redeemWith,78), SourceLocation(ZIO.scala,zio.ZIO$,zio$ZIO$$_succeedRight,4417), SourceLocation(ZIO.scala,zio.ZIO,run,1730), SourceLocation(ZIO.scala,zio.ZIO,onExit,1027)),Some(ZTrace(Id(1659108336520,76),List(SourceLocation(cats.scala,zio.interop.ZioConcurrent,racePair,329) // ... elided
I will err on the side of being vague here at first as I am not even sure where to begin in deciphering this stack trace and therefore which information to provide. That said, I am more than happy to add any relevant details that might be helpful.
I am using
interop-catz(version=13.0.0.0and zio version =1.0.9) to interop withhttp4s. I am currently getting intermittent runtime exits errors.I am creating an
http4s.server.Serverlike:Something that might of interest is that there is a
Runtimebeing created inMainand threaded through other parts of the application - this runtime is (unfortunately) used tounsafeRuneffects.I will err on the side of being vague here at first as I am not even sure where to begin in deciphering this stack trace and therefore which information to provide. That said, I am more than happy to add any relevant details that might be helpful.