question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Spurious warning message when submitting many tasks.

See original GitHub issue
import 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:closed
  • Created 4 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
ericlcommented, Jan 8, 2020

I think the only relation to many tasks is that it delays exit until the first stats heartbeat.

1reaction
raulchencommented, Jan 8, 2020

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 of repeated 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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found