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

suscli exceptions on Mac OSX #59

Closed
rabarar opened this issue Mar 31, 2022 · 5 comments
Closed

suscli exceptions on Mac OSX #59

rabarar opened this issue Mar 31, 2022 · 5 comments

Comments

@rabarar
Copy link

rabarar commented Mar 31, 2022

Any idea why these exceptions print when running suscli devices

./suscli devices      
[e] suscan_bundle_get_resource_path:45: exception in "dir_url = CFBundleCopyResourceURL( main_bundle, relpath, ((void*)0), ((void*)0) )" (build/CMakeFiles/suscan.dir/compiler_depend.ts:45)
[e] suscan_bundle_get_resource_path:45: exception in "dir_url = CFBundleCopyResourceURL( main_bundle, relpath, ((void*)0), ((void*)0) )" (build/CMakeFiles/suscan.dir/compiler_depend.ts:45)
@andreascla
Copy link

andreascla commented May 11, 2022

I have the same issue, in addition I can see that the "Dummy device" is unavailable if that helps

% suscli devices
11 May 2022 - 08:50:40   exception in "dir_url = CFBundleCopyResourceURL( main_bundle, relpath, ((void*)0), ((void*)0) )" (build/CMakeFiles/suscan.dir/compiler_depend.ts:45)
11 May 2022 - 08:50:40   exception in "dir_url = CFBundleCopyResourceURL( main_bundle, relpath, ((void*)0), ((void*)0) )" (build/CMakeFiles/suscan.dir/compiler_depend.ts:45)
 ndx Device name                              Driver   Interface Availability
------------------------------------------------------------------------------
[ 0] Dummy device                             null     local     unavailable

The same issue is also present in the suscan.status command:

% suscan.status
suscan.status: suscan library loaded successfully.
---------8<-------------------------------------
(e) exception in "dir_url = CFBundleCopyResourceURL( main_bundle, relpath, ((void*)0), ((void*)0) )" (build/CMakeFiles/suscan.dir/compiler_depend.ts:45)
(e) exception in "dir_url = CFBundleCopyResourceURL( main_bundle, relpath, ((void*)0), ((void*)0) )" (build/CMakeFiles/suscan.dir/compiler_depend.ts:45)
---------8<-------------------------------------

I have built this from scratch on two different Mac Book M1, but the issue is only present on one of them so I suspect there is an issue with one of the dependencies or build environment.

@andreascla
Copy link

The issue is definitely related to SoapySDR. I rebuilt it from scratch (as opposed to install it from brew) and the suscan library now works without error messages:

% suscli devices
 ndx Device name                              Driver   Interface Availability
------------------------------------------------------------------------------
[ 0] Dummy device                             null     local     unavailable

@BatchDrake
Copy link
Owner

Nah, it was actually an improper exception handling from my part. By the way, what is the output when you plug any SDR (e.g. HackRF) and run suscli devices again?

@andreascla
Copy link

This is what it looks like with a USRP B205 connected:

% suscli devices
 ndx Device name                              Driver   Interface Availability
------------------------------------------------------------------------------
[ 0] Dummy device                             null     local     unavailable
[ 1] uhd (B205mini 31B66CC)                   uhd      local     available

Not sure why the "Dummy device" is "unavailable" though, but not sure if it matters.

@BatchDrake
Copy link
Owner

Don't worry about that. The dummy device, although seen by Suscan, it is not instantiable by SoapySDR (hence its unavailability). Think of it as some kind of placeholder when there are no connected devices whatsoever.

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

3 participants