OpenUSD icon indicating copy to clipboard operation
OpenUSD copied to clipboard

"cpu MHz" not found when running a Linux container on an ARM MAC

Open terracotta75 opened this issue 2 years ago • 5 comments

https://github.com/PixarAnimationStudios/OpenUSD/blob/10b62439e9242a55101cf8b200f2c7e02420e1b0/pxr/base/arch/timing.cpp#L150

We wanted to bring the following issue to your attention. We are building a Linux container with USD, and testing it on a MAC ARM host, and we are getting the following error:

ArchError: Could not find 'cpu MHz' in /proc/cpuinfo
  Function: Arch_ComputeNanosecondsPerTick
      File: /opt/jenkins/workspace/some_release/build-Release/_deps/usd-src/pxr/base/arch/timing.cpp
      Line: 149
qemu: uncaught target signal 6 (Aborted) - core dumped

According to a quick search, other people have run into this. The "CPU MHz: " line is definitely missing from /proc/cpuinfo in the container in this case. Since that file can not be edited, we don't have a workaround right now.

Thank you!

terracotta75 avatar Oct 19 '23 20:10 terracotta75

Filed as internal issue #USD-8856

jesschimein avatar Oct 20 '23 16:10 jesschimein

Any updates?

ysinh avatar Jan 12 '24 09:01 ysinh

This seems like it might be addressed by https://github.com/PixarAnimationStudios/OpenUSD/commit/660d111cfa9fe946cef7c45a4a07e0a0ae39947a

@ysinh Is this still an issue?

nvmkuruc avatar Oct 23 '24 14:10 nvmkuruc

Related issue https://github.com/PixarAnimationStudios/OpenUSD/issues/2438 I assume this is a running in a Docker image?

I do think based on that change it should be fixed now, but I don't have a Docker setup currently to test it out.

dgovil avatar Oct 23 '24 15:10 dgovil

Okay, I just confirmed that commit did fix the issue. @ysinh can you verify that everything works on your end as well?

dgovil avatar Jan 27 '25 18:01 dgovil