playframework / play-scala-anorm-example

Example Play Database Application using Anorm

Home Page:https://developer.lightbend.com/start/?group=play

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deadlock in "sbt run" when using Netty as a server

gslowikowski opened this issue · comments

There is no problem when using Akka HTTP server, but after switching to Netty, when I run sbt run (development mode) the first page shown is Database 'default' needs evolution!.
After clicking Apply this script now! application hangs.

Internally there is a deadlock.
One thread (play-dev-mode-akka.actor.default-dispatcher-<n>) is inside this synchronized block waiting for this asynchronous instruction to finish and another thread (netty-event-loop-<n>) trying to enter the same synchronized block.

Here is the repo showing this problem. Just execute sbt run. My execution log is here.