Hey there,
I'm getting the panic "data for rust::String is not utf-8" for a string built by Windows, in this particular case the string is mixed between English and Spanish:
(stun_port.cc:608): UDP send of 20 bytes to host 168.75.70.x:3478 failed with error 0 : [0x00002743] Se ha intentado una operación de socket en una red no accesible.\n
I think the Spanish part of the message is provided by Windows, here is the memory representation when I caught the panic:
As far as I can tell, cxx is behaving correctly here. Those bytes are indeed not utf-8. If you want to construct a Rust String from C++ std::string, you'll need to ensure that the contents are utf-8.
Hey there, I'm getting the panic
"data for rust::String is not utf-8"
for a string built by Windows, in this particular case the string is mixed between English and Spanish:(stun_port.cc:608): UDP send of 20 bytes to host 168.75.70.x:3478 failed with error 0 : [0x00002743] Se ha intentado una operación de socket en una red no accesible.\n
I think the Spanish part of the message is provided by Windows, here is the memory representation when I caught the panic:
The original crash callstack:
I'm submitting this issue to
livekit
as well.