Spurious warning message when submitting many tasks.
See original GitHub issueimport ray
ray.init()
@ray.remote
def double(x):
return x * 2
results = [double.remote(i) for i in range(100000)]
ray.get(results)
Running the above in IPython succeeds but prints the following warning.
(pid=78589) [libprotobuf ERROR external/com_google_protobuf/src/google/protobuf/wire_format_lite.cc:603] String field ‘ray.rpc.CoreWorkerStats.current_task_func_desc’ contains invalid UTF-8 data when serializing a protocol buffer. Use the ‘bytes’ type if you intend to send raw bytes. (pid=raylet) [libprotobuf ERROR external/com_google_protobuf/src/google/protobuf/wire_format_lite.cc:603] String field ‘ray.rpc.CoreWorkerStats.current_task_func_desc’ contains invalid UTF-8 data when parsing a protocol buffer. Use the ‘bytes’ type if you intend to send raw bytes.
Note that the ray.get
is not necessary to trigger the warning.
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (7 by maintainers)
Top Results From Across the Web
Address false positives/negatives in Microsoft Defender for ...
Learn how to handle false positives or false negatives in Microsoft Defender for Endpoint.
Read more >Managing code scanning alerts for your repository
From the security view, you can view, fix, or dismiss alerts for potential vulnerabilities or errors in your project's code.
Read more >How to Recognize and Avoid Phishing Scams
How To Recognize Phishing. Scammers use email or text messages to try to steal your passwords, account numbers, or Social Security numbers.
Read more >Async method to return true or false in a Task - Stack Overflow
The warning appears everywhere I have called the method RefreshContacts() If I add await before every call, does that mean I should change...
Read more >About admin alerts for suspicious login activity - Google Help
If you're using a personal Google Account, you can investigate suspicious activity on your account. As a Google Workspace administrator, you can use...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think the only relation to many tasks is that it delays exit until the first stats heartbeat.
I just thought of a possible cause. When
--load-code-from-local
is not set, Python’s function descriptor contains a fourth element, which is the hash value of the source code. This element is raw binary and not UTF-8-decodable. But I don’t see how it’s related with many tasks.To fix this issue, I think we can just make
CoreWorkerStats.current_task_func_desc
a single concatenated string, instead ofrepeated string
.Also, @fyrestone is refactoring
FunctionDescriptor
as part of the cross-lang feature. He’ll add a c++ class to represent function descriptor. So dealing with such problems will be easier after that.