Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WARNING: All log messages before absl::InitializeLog() is called are written to STDERR #5371

Open
matanox opened this issue May 2, 2024 · 5 comments
Assignees
Labels
os:linux-non-arm Issues on linux distributions which run on x86-64 architecture. DOES NOT include ARM devices. platform:python MediaPipe Python issues stat:awaiting googler Waiting for Google Engineer's Response type:feature Enhancement in the New Functionality or Request for a New Solution

Comments

@matanox
Copy link

matanox commented May 2, 2024

Have I written custom code (as opposed to using a stock example script provided in MediaPipe)

Yes

OS Platform and Distribution

Ubuntu 22.04

Programming Language and version

python 3.10

MediaPipe version

0.10.11

Bazel version

not built from source.

Solution

Hands

Describe the actual behavior

logging going to stderr

Describe the expected behaviour

program logs gracefully

Standalone code/steps you may have used to try to get what you need

WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
I0000 00:00:1714668459.875897  381002 gl_context_egl.cc:85] Successfully initialized EGL. Major : 1 Minor: 5
I0000 00:00:1714668459.877641  381112 gl_context.cc:357] GL version: 3.2 (OpenGL ES 3.2 Mesa 23.2.1-1ubuntu3.1~22.04.2), renderer: Mesa Intel(R) UHD Graphics 630 (CFL GT2)
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.

It's nicer if framework code is refactored to avoid this.



@matanox matanox added the type:bug Bug in the Source Code of MediaPipe Solution label May 2, 2024
@kuaashish kuaashish added os:linux-non-arm Issues on linux distributions which run on x86-64 architecture. DOES NOT include ARM devices. platform:python MediaPipe Python issues labels May 6, 2024
@matanox
Copy link
Author

matanox commented May 6, 2024

Also, when no GPU model is used, why does it initialize OpenGL?

@matanox
Copy link
Author

matanox commented May 8, 2024

With 10.0.13, there seem to be more warnings on stdout:

.venv/lib/python3.10/site-packages/google/protobuf/symbol_database.py:55: UserWarning: SymbolDatabase.GetPrototype() is deprecated. Please use message_factory.GetMessageClass() instead. SymbolDatabase.GetPrototype() will be removed soon.
warnings.warn('SymbolDatabase.GetPrototype() is deprecated. Please '

Maybe something to clean up in 0.10.14, by avoiding soon deprecated protobuf api, or least favorably by constraining the protobuf version.

@schmidt-sebastian
Copy link
Collaborator

We will put this on our list of cleanup items but we are pretty busy these days :)

@schmidt-sebastian schmidt-sebastian added type:feature Enhancement in the New Functionality or Request for a New Solution and removed type:bug Bug in the Source Code of MediaPipe Solution labels May 16, 2024
@matanox
Copy link
Author

matanox commented May 16, 2024

Yeah I know, sorry for being very active here.

@Kunz-David
Copy link

Im getting this too, but for the selfie model.

@kuaashish kuaashish added the stat:awaiting googler Waiting for Google Engineer's Response label May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
os:linux-non-arm Issues on linux distributions which run on x86-64 architecture. DOES NOT include ARM devices. platform:python MediaPipe Python issues stat:awaiting googler Waiting for Google Engineer's Response type:feature Enhancement in the New Functionality or Request for a New Solution
Projects
None yet
Development

No branches or pull requests

4 participants