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

[UHD Python API] Error in macOS 15.0: pointer being freed was not allocated #778

Open
doctormin opened this issue Aug 2, 2024 · 1 comment

Comments

@doctormin
Copy link

Issue Description

I have been successfully using the UHD Python API with USRP devices on macOS. However, recently, after upgrading to the macOS 15.0 developer beta system, my UHD API returns an error when running the following line of code:

super(MultiUSRP, self).__init__(args)

The error is as follows:

[INFO] [UHD] Mac OS; Clang version 16.0.6 ; Boost_108400; UHD_4.7.0.0-release
python(28956,0x1f0f218c0) malloc: *** error for object 0x1eee29cc0: pointer being freed was not allocated
python(28956,0x1f0f218c0) malloc: *** set a breakpoint in malloc_error_break to debug

Setup Details

Host OS: macOS 15.0
Python: 3.12.4
UHD: 4.7.0.0-release

ENV setup:
I used miniforge to install gnuradio from conda-forge, which automatically installs Python and UHD. For example, I am currently using the latest version:
2024-08-02 at 14 53 02

Suspecting this bug might be related to the versions of Python and UHD, I tried the following:
mamba install gnuradio=3.10.7 (UHD=4.5.0.0, Python=3.11.9)
but encountered the same error.

Steps to reproduce the problem

  1. Prepare a host with macOS 15.0
  2. install miniforge
  3. mamba create -n <env_name>
  4. mamba activate <env_name>
  5. mamba install gnuradio
  6. Write a python script to evoke UHD API:
import uhd
import time
usrp = uhd.usrp.MultiUSRP()

This error will emerge:
2024-08-02 at 14 58 13

@doctormin doctormin changed the title Error in macOS15.0 : pointer being freed was not allocated Error in macOS 15.0 : pointer being freed was not allocated Aug 2, 2024
@doctormin doctormin changed the title Error in macOS 15.0 : pointer being freed was not allocated [UHD Python API] Error in macOS 15.0: pointer being freed was not allocated Aug 2, 2024
@rchmielarz
Copy link

I experience the same issue on MacOS 15.1:

Python 3.12.5 | packaged by conda-forge | (main, Aug 8 2024, 18:32:50) [Clang 16.0.6 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import uhd
>>> import time
>>> usrp = uhd.usrp.MultiUSRP()
[INFO] [UHD] Mac OS; Clang version 16.0.6 ; Boost_108400; UHD_4.7.0.0-release
python3(33938,0x1f3bd2c40) malloc: *** error for object 0x1f1ae9cc0: pointer being freed was not allocated
python3(33938,0x1f3bd2c40) malloc: *** set a breakpoint in malloc_error_break to debug
zsh: abort python3

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

No branches or pull requests

2 participants