Closed anacrolix closed 4 years ago
This doesn't only happen when using parens. It also happens when an actor has any invalid name (e.g.: not matching this regex r"^[a-zA-Z0-9_-]+$"
) or an actor with the same name already exists.
After a bit of digging it seems that the to_string method on CreateError gets called recursively which destroys the stack.
Code to reproduce:
use riker::actors::*;
fn main() {
let ce = CreateError::InvalidName("asd".to_string());
println!("{}", ce.to_string());
}
@hardliner66 https://github.com/riker-rs/riker/pull/123
I called a
Context::actor_of
with a name containing(
and)
(I used&format!("{:?}"
) and determined that it was the()
that caused it.