Comments (2)
I would edit the code (or use a debugger) to print the value of nDftSamples
in snd2fftw's main.c
when it prints out ERR_FAIL_TO_INITIALIZE_PLAN
(see the code); that should help you diagnose the problem. Basically, it must be passing invalid arguments to fftw_plan_dft_r2c_1d
, and you'll need to debug that.
However, this really sounds like a bug in snd2fftw (or an error in how you are using it) rather than a bug in FFTW, so I'm going to close this issue.
from fftw3.
I understand that this is a bug in snd2fftw rather than fftw, but this is the first Google result for "Fail to initialize FFTW plan.", so I figured I'd update the thread with the actual fix:
At lines 404 and 532 of main.c, snd2fftw calls fftw_plan_dft_r2c_1d with flags=FFTW_FORWARD, which isn't a valid flag for fftw_plan_dtf_*. The easiest fix is to pass FFTW_MEASURE (or FFTW_ESTIMATE) instead.
(This worked for me, with FFTW 3.3.8 installed on Linux, after making a few separate Windows->Linux portability patches.)
I'll submit a request for a fix to the author, but the source hasn't seen updates in >5 years, so future users may just have to manually patch themselves.
from fftw3.
Related Issues (20)
- FFTW3LibraryDepends.cmake missing from autotools build HOT 4
- Error encountered when running 'make' after modifying Makefile.am
- Occasional failures in MPI part of the unit tests on ARM neoverse_v1 HOT 34
- Assessment of the difficulty in porting CPU architecture for fftw3
- FFTW SIMD Support HOT 1
- non-deterministic wisdom output HOT 4
- Link FFTW in Android Studio
- Fftw build failed when open ENABLE_OPENMP HOT 1
- Segmentation fault in check()
- Support DCT/DST-V-VIII HOT 1
- Smallbin double linked list corruption for specific data HOT 2
- FFTW threads: ld: error: undefined symbol: fftwf_threads_set_callback HOT 2
- `afft`?
- IFFT error HOT 1
- Compile application error
- Compilation Error HOT 2
- SVE Imlementation
- Error: Unbound module "Pervasives" HOT 3
- "fftw_execute " case "Segmentation fault" HOT 4
- H
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fftw3.