Skip to content

Fixing mac issues - #40

Merged
stefantaubert merged 4 commits into
devfrom
mac-fix
May 9, 2026
Merged

Fixing mac issues#40
stefantaubert merged 4 commits into
devfrom
mac-fix

Conversation

@Josef-Haupt

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings May 5, 2026 18:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR hardens performance tracking on macOS by adding fallbacks for memory accounting and handling unsupported semaphore introspection, so the inference performance tracker can run without crashing on macOS.

Changes:

  • Add a fallback from memory_full_info().uss to memory_info().rss when access is denied (including for child processes).
  • Catch NotImplementedError from Semaphore.get_value() to avoid macOS runtime failures.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/birdnet/acoustic/inference/core/perf_tracker.py Outdated
Comment thread src/birdnet/acoustic/inference/core/perf_tracker.py Outdated
Comment thread src/birdnet/acoustic/inference/core/perf_tracker.py Outdated
@codecov

codecov Bot commented May 5, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 14 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...rc/birdnet/acoustic/inference/core/perf_tracker.py 0.00% 14 Missing ⚠️
Files with missing lines Coverage Δ
...rc/birdnet/acoustic/inference/core/perf_tracker.py 40.55% <0.00%> (-0.79%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@stefantaubert
stefantaubert changed the base branch from main to dev May 9, 2026 06:33
@stefantaubert
stefantaubert merged commit 2abc558 into dev May 9, 2026
@stefantaubert
stefantaubert deleted the mac-fix branch May 9, 2026 06:35
stefantaubert added a commit that referenced this pull request May 9, 2026
* Fix issue 32 (#35)

* fix table

* fix issue 32

* rm accident

* bump version

* Fixing mac issues (#40)

* Fixing mac issues

* fix issue

---------

Co-authored-by: Stefan Kahl <kahst@hrz.tu-chemnitz.de>
Co-authored-by: Stefan Taubert <23339395+stefantaubert@users.noreply.github.com>

* Upcast timing columns to float32 in Arrow export to avoid halffloat interop issues (#43)

* add fix for issue 38

* add comment for current limitation

---------

Co-authored-by: Stefan Taubert <23339395+stefantaubert@users.noreply.github.com>

---------

Co-authored-by: Josef Haupt <josef_haupt@gmx.net>
Co-authored-by: Stefan Kahl <kahst@hrz.tu-chemnitz.de>
Co-authored-by: Felix Günther <guenther@oekofor.de>
stefantaubert added a commit that referenced this pull request May 9, 2026
* Fix issue 32 (#35)

* fix table

* fix issue 32

* rm accident

* bump version

* Fixing mac issues (#40)

* Fixing mac issues

* fix issue

---------

Co-authored-by: Stefan Kahl <kahst@hrz.tu-chemnitz.de>
Co-authored-by: Stefan Taubert <23339395+stefantaubert@users.noreply.github.com>

* Upcast timing columns to float32 in Arrow export to avoid halffloat interop issues (#43)

* Upcast timing columns to float32 in Arrow export to avoid halffloat interop issues

* add fix for issue 38

* add comment for current limitation

---------

Co-authored-by: Stefan Taubert <23339395+stefantaubert@users.noreply.github.com>

* Add option to set birdnet app data manually (#37)

* Add option to set birdnet app data manually

* update with copilot suggestions

* add entry in changelog

---------

Co-authored-by: Stefan Taubert <23339395+stefantaubert@users.noreply.github.com>

* bump version

---------

Co-authored-by: Josef Haupt <josef_haupt@gmx.net>
Co-authored-by: Stefan Kahl <kahst@hrz.tu-chemnitz.de>
Co-authored-by: Felix Günther <guenther@oekofor.de>
stefantaubert added a commit that referenced this pull request May 9, 2026
* Fix issue 32 (#35)

* fix table

* fix issue 32

* rm accident

* bump version

* Fixing mac issues (#40)

* Fixing mac issues

* fix issue

---------

Co-authored-by: Stefan Kahl <kahst@hrz.tu-chemnitz.de>
Co-authored-by: Stefan Taubert <23339395+stefantaubert@users.noreply.github.com>

* Upcast timing columns to float32 in Arrow export to avoid halffloat interop issues (#43)

* Upcast timing columns to float32 in Arrow export to avoid halffloat interop issues

* add fix for issue 38

* add comment for current limitation

---------

Co-authored-by: Stefan Taubert <23339395+stefantaubert@users.noreply.github.com>

* Add option to set birdnet app data manually (#37)

* Add option to set birdnet app data manually

* update with copilot suggestions

* add entry in changelog

---------

Co-authored-by: Stefan Taubert <23339395+stefantaubert@users.noreply.github.com>

* bump version

---------

Co-authored-by: Josef Haupt <josef_haupt@gmx.net>
Co-authored-by: Stefan Kahl <kahst@hrz.tu-chemnitz.de>
Co-authored-by: Felix Günther <guenther@oekofor.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Analysis always cancelled on macOS after #867 (birdnet library upgrade)

4 participants