question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

2D example crashes with error

See original GitHub issue

When trying to run the dirichlet_poisson2D.py the following error appears:

$ python3 dirichlet_poisson2D.py 64 legendre
Traceback (most recent call last):
  File "dirichlet_poisson2D.py", line 49, in <module>
    K1 = Basis(N[1], family='F', dtype='d', domain=(-2*np.pi, 2*np.pi))
  File "/home/syesylev/.local/lib/python3.6/site-packages/shenfun/forms/arguments.py", line 84, in Basis
    return B(N, **par)
  File "/home/syesylev/.local/lib/python3.6/site-packages/shenfun/fourier/bases.py", line 332, in __init__
    self.plan((int(padding_factor*N),), (0,), np.float, {})
  File "/home/syesylev/.local/lib/python3.6/site-packages/shenfun/fourier/bases.py", line 277, in plan
    xfftn_fwd = plan_fwd(U, s=s, axes=axis, threads=threads, flags=flags)
  File "/home/syesylev/.local/lib/python3.6/site-packages/mpi4py_fft/fftw/xfftn.py", line 240, in rfftn
    flags, 1.0/M)
  File "/home/syesylev/.local/lib/python3.6/site-packages/mpi4py_fft/fftw/factory.py", line 102, in get_planned_FFT
    assert dtype.upper() in fftlib
AssertionError

An example file is not modified what is the problem?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:23 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
yesintcommented, Feb 26, 2020

I’ve finally found the problem! It’s very stupid but very hard to debug. There is an Amber14 software installed which comes with its own bundled fftw3 and the LD_LIBRARY_PATH is modified to include it. That is why linking was done with the wrong library. @mikaem thank you very much for your help and patience 😃 shenfun is a great piece of software.

0reactions
mikaemcommented, Feb 26, 2020

I think you simply need to install a different version of FFTW…

Read more comments on GitHub >

github_iconTop Results From Across the Web

c Program crashing using 2d array comparing values
So you access the array out of bounds. That may cause a crash. In any case it is illegal. The general problem seems...
Read more >
[BUG] 2D Starter Project Crash on Mouse Hover #2569 - GitHub
Description. 2D starter project will crash after hovering my mouse over the game window.
Read more >
5 Troubleshoot System Crashes
Information and guidance about some specific procedures for troubleshooting system crashes. A crash, or fatal error, causes a process to terminate ...
Read more >
d3d11 Error Causing builds to crash on some devices
In Unity 5.5.0p4, the build was running fine without any d3d11 errors, and would not crash the game. After some investigation of similar ......
Read more >
[2D][SpriteShape] Error message shown when SVG is added ...
[2D][SpriteShape] Error message shown when SVG is added to SpriteShapeProfile, crashes when Spriteshape is added to Scene · 1. Open Attached ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found