You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 6, 2020. It is now read-only.
I'm attempting to deserialize a very large instance of an element, and it's resulting in the following error:
Finished debug [unoptimized + debuginfo] target(s) in 0.0 secs
Running target/debug/deps/wolfram_alpha-04600d635340b2d6
running 21 tests
test model::tests::test_error_deserializer ... ok
test model::tests::test_didyoumean_deserializer ... ok
test model::tests::test_didyoumeans_deserializer ... ok
test model::tests::test_definitions_deserializer ... ok
test model::tests::test_notes_deserializer ... ok
test model::tests::test_plaintext_deserializer ... ok
test model::tests::test_img_deserializer ... ok
test model::tests::test_infos_deserializer ... ok
test model::tests::test_languagemsg_deserializer ... ok
thread 'model::tests::test_plaintext_too_large_deserializer' has overflowed its stack
fatal runtime error: stack overflow
error: process didn't exit successfully: `/home/indiv0/src/rust/wolfram-alpha-rs/target/debug/deps/wolfram_alpha-04600d635340b2d6` (signal: 6, SIGABRT: process abort signal)
To learn more, run the command again with --verbose.
Yea stackoverflows are hard. I suggest you enable optimizations for your tests, then the stackoverflows should only happen when doing really deeply nested deserialization. I'll add some checks to ensure it results in a readable error message instead of a stackoverflow
OK I'll do that for my tests, the only problem is the way I found out about this is that it happened during normal usage of the library (i.e. outside of tests), so I was hoping for a way to make it not crash in the long term. For now I'm using larger stack sizes on the threads as a bandaid.
Hello, me again!
I'm attempting to deserialize a very large instance of an element, and it's resulting in the following error:
The element type is defined as:
The example text can be found here.
Is this expected?
The text was updated successfully, but these errors were encountered: