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

[bug] Any pipeline would fail on Apple M1 due to psutil.cpu_freq() not available #1909

Open
hammady opened this issue Feb 26, 2023 · 0 comments
Labels
bug for actual bugs (unsure? use type:question)

Comments

@hammady
Copy link
Contributor

hammady commented Feb 26, 2023

Describe the bug
I have noticed the below error right after the cameraInit node in the photogrammetry pipeline:

Failed to get statistics: "'NoneType' object has no attribute 'max'"
After some investigation I figured out the exact line that produces this (by disabling the exception handling to view the full stack trace), and it was from this file: meshroom/core/stats.py line 51.
After some digging I found that Apple M1 has no support for getting the CPU frequency using this method. See here. This causes the Statistics thread to crash.

To Reproduce
Steps to reproduce the behavior:

  1. Run the photogrammetry pipeline on Apple M1
  2. See error: Failed to get statistics: "'NoneType' object has no attribute 'max'" in the logs

Expected behavior
No errors, and getting the cpuFreq correctly.

Desktop (please complete the following and other pertinent information):

  • OS: macOS Ventura 13.1 running on Apple M1 chip
  • Python version 3.10
  • Qt/PySide version (not installed)
  • Meshroom version: my own build from the latest commit on master

Additional context
None.

@hammady hammady added the bug for actual bugs (unsure? use type:question) label Feb 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug for actual bugs (unsure? use type:question)
Projects
None yet
Development

No branches or pull requests

1 participant