-
Notifications
You must be signed in to change notification settings - Fork 3.9k
protoc-gen-grpc-java crashed on MaxOS #1683
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
Comments
Can you include the protoc output? Also, your .proto file? |
@carl-mastrangelo what you mean protoc output? |
Protoc is the compiler that takes in the .proto file, and runs the grpc code generator. It says in your error you pasted above:
|
and this is my .proto file:
|
@carl-mastrangelo I use this command to generate code:
and no error return. I checked the generated code, no *Grpc java generate. And if I run |
Hmm, runnning locally shows that it does work. Signal 11 is segfault. That probably means a bug in your protoc binary. Can you run this:
|
@carl-mastrangelo since mac os has no
|
@adohe Kind of short on ideas. Not sure what can cause a segfault. Are you running the latest protobuf? Would it be possible for you to try with protoc from head? The instructions to build it are here: https://github.com/google/protobuf/blob/master/src/README.md |
@carl-mastrangelo, did you try to reproduce on a Mac or on Linux? I tried on Linux and wasn't able to reproduce. Based on the snippet above, when running from maven it is using good versions:
This makes it seem fairly plain that the grpc plugin crashed:
|
I ran on linux. Maybe it's a mac specific bug? |
I'd expect it is a general bug it just results in a crash on OS X. @zhangkun83 or @nmittler, on your Mac you could throw the proto some place like compiler/src/test/proto and then run |
Tried it out on a mac using protoc-3.0.0-beta-2-osx-x86_64 and protoc-gen-grpc-java-0.13.2-osx-x86_64.exe Seems to work fine with command line
Maybe it fails at head? |
@adohe You are using the
|
@zhangkun83 thanks very much and I will give a try. |
It seems like this may have been resolved and may not have been specific to grpc. Feel free to comment if that is not the case. |
1. 补偿方法里通过omegaContext.globalTxId()和omegaContext.localTxId()可得到当前分布式事务的全局事务ID及本地事务ID 2. 解决macOS系统下protoc-gen-grpc-java crash导致无法正常通过maven test的问题,升级依赖的protoc-gen-grpc-java版本,见grpc/grpc-java#1683 3. 解决protoc-gen-grpc-java无法通过maven test的问题,补上缺失的grpc-stub依赖
1. 补偿方法里通过omegaContext.globalTxId()和omegaContext.localTxId()可得到当前分布式事务的全局事务ID及本地事务ID 2. 解决macOS系统下protoc-gen-grpc-java crash导致无法正常通过maven test的问题,升级依赖的protoc-gen-grpc-java版本,见grpc/grpc-java#1683 3. 解决protoc-gen-grpc-java无法通过maven test的问题,补上缺失的grpc-stub依赖
1. 升级依赖的protoc-gen-grpc-java版本,见 grpc/grpc-java#1683
I meet this problem when I was trying to generate code based on my
.proto
file, and the error stack trace is:And my
pom.xml
content is:And
java -version
output is:mvn -version
output is:protoc --version
is:I have no idea how to fix this issue, and hope you guys can help me. Thanks~
The text was updated successfully, but these errors were encountered: