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
StackOverflowError with Promise with scalac >= 2.13.7 #12524
Comments
I confirm that using |
Maybe:
-> this is sufficient to reach a |
The behavior change is "symmetrification of zipWith" scala/scala#9655 I need a second coffee before understanding the moving parts, but presumably whatever callbacks are moved to heap in Maybe the new |
not sure if @viktorklang still wants to be summoned for this kind of thing but let's find out :-) also @lihaoyi since that's his PR |
@yanns Do you have a minimal reproducer? |
No I don't have a reproducer. Sangria is using So I guess this happens only on a very specific query that may need several Promises chained together. I just hope that it's not something more important. |
@yanns Thanks for the background info. May I ask which ExecutionContext you're using with this? |
It was a synchronous one:
I've switched it with |
-- https://www.scala-lang.org/api/current/scala/concurrent/ExecutionContext.html The correct fix is to use This is not-a-bug :) |
@SethTisue Vote to close |
I'm also ok to close this. |
@yanns You did the right thing. Thank you :) |
problem
When updating an application from scala 2.13.6 to 2.13.7, we can observe new StackOverflowError like:
I can only provide this stack trace. The
<our code>
is very minimal, like a synchronous execution context.We can also observe this behavior with scala 2.13.8
We cannot observe this behavior with scala 2.13.6
I'll change the execution context to be stack safe.
You could still find this useful. I don't know if it's a regression or not.
The text was updated successfully, but these errors were encountered: