-
-
Notifications
You must be signed in to change notification settings - Fork 5
protoc gets stuck #4
Comments
Here is strace for protoc:
|
lsof does not show anything for fd 6
|
Can't it be a bug with |
Worth noting that ~ one from 10 attempts compilation succeeds without any problems. |
@prettynatty thanks for the detailed report. I was able to reproduce this bug. Can you try upgrading to sbt-scalapb 0.5.17 in I submitted scalapb/ScalaPB@a9459ba which makes the input and output go through two named pipes instead of reusing a single one. Please let me know if it work or if it doesn't work for you. |
Looks like it works well now, thanks! |
After migrating to 0.5.21 from 0.5.17 issue appeared again. |
@prettynatty which protoc version you use? Can you send a minimal example on how to reproduce? To get a JVM stack trace, hit Ctrl \ |
When compiling my project after clean, sbt gets stuck. After killing sbt and re-running
sbt compile
it succeeds. If I clean and compile again, I get stalled compilation фпфшт. It happens on both OS X and Ubuntu.Using thread dump and strace debug I found out that sbt indefinitely waits for process
/tmp/protoc7087999790195032730.exe --plugin=protoc-gen-scala=/tmp/scalapbgen3078536628637421129 -I/home/ubuntu/TeamCity/buildAgent/work/3a46fa3b0b70b255/actor-server/actor-bots/src/main/protobuf -I/home/ubuntu/TeamCity/buildAgent/work/3a46fa3b0b70b255/actor-server/actor-bots/target/protobuf_external -I/home/ubuntu/TeamCity/buildAgent/work/3a46fa3b0b70b255/actor-server/actor-models/src/main/protobuf -I/home/ubuntu/TeamCity/buildAgent/work/3a46fa3b0b70b255/actor-server/actor-core/src/main/protobuf --scala_out=:/home/ubuntu/TeamCity/buildAgent/work/3a46fa3b0b70b255/actor-server/actor-bots/target/src_managed/main/compiled_protobuf /home/ubuntu/TeamCity/buildAgent/work/3a46fa3b0b70b255/actor-server/actor-bots/src/main/protobuf/bot.proto
which never completes.bot.proto
looks pretty simple:The text was updated successfully, but these errors were encountered: