-
Notifications
You must be signed in to change notification settings - Fork 7
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
Problem with `dynamic initializer for 'antennas' #2
Comments
@gvanem To answer your question, this version is for GNU Radio 3.9 (and future versions), while the module in the 'gr-sdrplay' repo (branch 'API3+RSPduo') is for GNU Radio 3.7. Also I developed (and built) them on Linux using the gcc compiler, so I am not surprised that a different compiler like MSVC generates different errors. I am really glad that you found out what caused that crash and how to fix it; I'll make the same changes to the code in the repo, so it won't happen to other people using MSVC. Also since you are probably the first person that built and successfully ran this GNU Radio module with Windows10 and MSVC, do you mind sharing what commands did you use? One last question: I assume that you are running GNU Radio 3.9 since you are using this module; if this is the case, did you compile GNU Radio 3.9 yourself directly from the source code in github using MSVC? (the only instructions I found for Windows were for GNU Radio 3.8, if I remember correctly) Thanks again, |
I started with CMake 5 years ago, but failed and feeled it was clumsy. So I then created some GNU-makefiles to build most of GnuRadio. Also for this module. So I do not know if your
Yes, I only work with one GR version; But the issue with dynamic initialiser, seems all three initialisers were merged into one. And when the loader called it the 2nd time, I got a stack-fault (or similar?). Building with clang-cl, the crash is different!? Gotta love this mess with C++.. |
I just sync'd up with the latest commit from GNU Radio master, built it, rebuilt this gr-sdrplay3 module from scratch (using gcc, since that's the default), and, since I have an RSP2 here, I ran the very simple 'rsp2.grc' flowgraph (in the 'examples' folder) using GRC without any errors. I also rebuilt just the module using Clang 11.0.0 (using the command
Perhaps I would have to recompile all of GNU Radio with clang (as opposed to gcc), but it is going to take too long. I also have a Windows10 VM that I used to play with SDRuno to understand how the RSP2 works; I'll give it a try to see if I can build GNU Radio 3.9 first and then this module using the latest MSVC; this way I should be able to reproduce the 'dynamic initializer' error here, and try to figure out what's going on. I'll send you an update about my progress. Franco |
Another problem just happened after (I think), in converting
|
@gvanem Regarding the error message you are seeing
To help you troubleshoot this problem, I am also attaching the 'rsp1a.py' Python script that gets generated on my Linux computer here, so you can compare it with yours (I am not really sure why it says 'GNU Radio version: v3.8.0.0-843-g6d6c9a25' in line 12, since I have only GNU radio 3.9 installed here). Franco |
No, I downloaded it, did a
--- mine-rsp1a.py 2020-12-19 21:38:28
+++ yours-rsp1a.py 2020-12-19 23:23:16
@@ -9,7 +9,7 @@
# Author: Franco Venturi
# Copyright: Franco Venturi
# Description: RSP1A test
-# GNU Radio version: 3.9.0
+# GNU Radio version: v3.8.0.0-843-g6d6c9a25
from distutils.version import StrictVersion
@@ -28,6 +28,7 @@
from gnuradio.filter import firdes
import sip
from gnuradio import gr
+from gnuradio.fft import window
import sys
import signal
from argparse import ArgumentParser The diff is due to change of |
I figured out where that As per building log4cpp, the msbuild command you gave me worked without a problem (I just had to tell it to use a target of 142), but then I realized the Thanks again for all your help, |
No, I have never tried that. Build most of my things using 32-bit. Looking at
Since I feel VC project files are more obfuscated than CMake, I seldom do that. Not in relation with GnuRadio anyway. |
First off, I'm a bit confused whether this is the last / most up-to-date version of this block.
But my issue building this on Win-10 using MSVC, was plainly this C++ exception (from CDB after generating
rsp1.py
):At first (when running w/o the debugger), I thought it had something to do with mixing CRTs;
MSVCR90.dll
inSDRPLAY_API.dll
and
vcruntime140.dll
in my Python 3.6. But no. The ugly call-stack (deep inside a Python-call) shows it:Since you had 3 equally named
struct _antenna
, I renamed them to become unique (struct _antenna_rsp1
, etc.).That seemed to have fixed it. No crash from MSVC's STL-code. I have a RSP1A which works fine.
Edit: my patch:
The text was updated successfully, but these errors were encountered: