-
Notifications
You must be signed in to change notification settings - Fork 40
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
Got "fatal runtime error: stack overflow" when the schema in Confluent Schema Registry is big #121
Comments
Can you share the stacktrace please? I wonder if it's an issue with the implementation of logos or something else. maciejhirsz/logos#400 might be related. |
Hi @gklijs I found more things. On my MacBook Pro (64 GB memory), I remember this issue happened a few times in the past. But now even I have 3000 temperature fields in Confluent Schema Registry, the code still runs well. How can I print out stack trace? use std::env;
fn main() {
env::set_var("RUST_BACKTRACE", "1");
// My rest of code
} and then run Or thread 'main' has overflowed its stack
fatal runtime error: stack overflow
Aborted (core dumped) |
I'm not sure, likely because the error is kind of outside the reach of Rust, it might not work in this case, which makes it hard to find out where it's going wrong. Googled a bit and it seems to be hard, How to diagnose a |
Describe the bug
When the protobuf schema in Confluent Schema is big, based on my debugging, this step
will cause the app fail with error:
To Reproduce
Download the producer code at https://github.com/hongbo-miao/hongbomiao.com/tree/c60ab834456279df00ec55b1e2c7a245df82e277/hm-kafka/kafka-client/kafka-rust/proto-producer
Change to 500 temperature fields for
Motor
inmain.rs
file:Click to expand!
src/protos/production.iot.motor.proto
file,:Click to expand!
Expected behavior
I expect the app not crash.
Additional context
If I change to less fields such as 400 temperature fields in Confluent Schema Registry, this line works well and won't crash.
The text was updated successfully, but these errors were encountered: