{"action":"created","issue":{"url":"https://api.github.com/repos/pyFFTW/pyFFTW/issues/136","repository_url":"https://api.github.com/repos/pyFFTW/pyFFTW","labels_url":"https://api.github.com/repos/pyFFTW/pyFFTW/issues/136/labels{/name}","comments_url":"https://api.github.com/repos/pyFFTW/pyFFTW/issues/136/comments","events_url":"https://api.github.com/repos/pyFFTW/pyFFTW/issues/136/events","html_url":"https://github.com/pyFFTW/pyFFTW/issues/136","id":180472487,"number":136,"title":"RuntimeWarning: overflow encountered in long_scalars","user":{"login":"david-hoffman","id":3699983,"avatar_url":"https://avatars.githubusercontent.com/u/3699983?v=3","gravatar_id":"","url":"https://api.github.com/users/david-hoffman","html_url":"https://github.com/david-hoffman","followers_url":"https://api.github.com/users/david-hoffman/followers","following_url":"https://api.github.com/users/david-hoffman/following{/other_user}","gists_url":"https://api.github.com/users/david-hoffman/gists{/gist_id}","starred_url":"https://api.github.com/users/david-hoffman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/david-hoffman/subscriptions","organizations_url":"https://api.github.com/users/david-hoffman/orgs","repos_url":"https://api.github.com/users/david-hoffman/repos","events_url":"https://api.github.com/users/david-hoffman/events{/privacy}","received_events_url":"https://api.github.com/users/david-hoffman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-10-01T18:40:05Z","updated_at":"2016-10-04T13:21:00Z","closed_at":null,"body":"I've been getting the following error when attempting to perform an fft on a large array:\r\n\r\n```console\r\nC:\\Anaconda3\\lib\\site-packages\\pyfftw\\builders\\_utils.py:127: RuntimeWarning: overflow encountered in long_scalars\r\n  output_array = pyfftw.empty_aligned(output_shape, output_dtype)\r\n---------------------------------------------------------------------------\r\nValueError                                Traceback (most recent call last)\r\n<ipython-input-65-12bb74fa6d42> in <module>()\r\n----> 1 pyfftw.fftn(a);\r\n\r\nC:\\Anaconda3\\lib\\site-packages\\pyfftw\\interfaces\\numpy_fft.py in fftn(a, s, axes, norm, overwrite_input, planner_effort, threads, auto_align_input, auto_contiguous)\r\n    181     return _Xfftn(a, s, axes, overwrite_input, planner_effort,\r\n    182             threads, auto_align_input, auto_contiguous,\r\n--> 183             calling_func, normalise_idft=normalise_idft, ortho=ortho)\r\n    184\r\n    185 def ifftn(a, s=None, axes=None, norm=None, overwrite_input=False,\r\n\r\nC:\\Anaconda3\\lib\\site-packages\\pyfftw\\interfaces\\_utils.py in _Xfftn(a, s, axes, overwrite_input, planner_effort, threads, auto_align_input, auto_contiguous, calling_func, normalise_idft, ortho)\r\n    123         planner_args = (a, s, axes) + args\r\n    124\r\n--> 125         FFTW_object = getattr(builders, calling_func)(*planner_args)\r\n    126\r\n    127         # Only copy if the input array is what was actually used\r\n\r\nC:\\Anaconda3\\lib\\site-packages\\pyfftw\\builders\\builders.py in fftn(a, s, axes, overwrite_input, planner_effort, threads, auto_align_input, auto_contiguous, avoid_copy)\r\n    362     return _Xfftn(a, s, axes, overwrite_input, planner_effort,\r\n    363             threads, auto_align_input, auto_contiguous,\r\n--> 364             avoid_copy, inverse, real)\r\n    365\r\n    366 def ifftn(a, s=None, axes=None, overwrite_input=False,\r\n\r\nC:\\Anaconda3\\lib\\site-packages\\pyfftw\\builders\\_utils.py in _Xfftn(a, s, axes, overwrite_input, planner_effort, threads, auto_align_input, auto_contiguous, avoid_copy, inverse, real)\r\n    125         a_copy = a.copy()\r\n    126\r\n--> 127     output_array = pyfftw.empty_aligned(output_shape, output_dtype)\r\n    128\r\n    129     flags = [planner_effort]\r\n\r\npyfftw\\utils.pxi in pyfftw.pyfftw.empty_aligned (C:\\projects\\pyfftw\\pyfftw\\pyfftw.c:3958)()\r\n\r\npyfftw\\utils.pxi in pyfftw.pyfftw.empty_aligned (C:\\projects\\pyfftw\\pyfftw\\pyfftw.c:3705)()\r\n\r\nValueError: negative dimensions are not allowed\r\n```\r\n\r\nI'm not familiar with the code base but it seems like `output_shape` is overflowing.\r\n\r\nA small code snippet that can reproduce the error on my system is:\r\n\r\n```python\r\nimport numpy as np\r\nimport pyfftw.interfaces.numpy_fft as pyfftw\r\na = np.zeros((512, 512, 512))\r\npyfftw.fftn(a)\r\n```"},"comment":{"url":"https://api.github.com/repos/pyFFTW/pyFFTW/issues/comments/251385668","html_url":"https://github.com/pyFFTW/pyFFTW/issues/136#issuecomment-251385668","issue_url":"https://api.github.com/repos/pyFFTW/pyFFTW/issues/136","id":251385668,"user":{"login":"hgomersall","id":701883,"avatar_url":"https://avatars.githubusercontent.com/u/701883?v=3","gravatar_id":"","url":"https://api.github.com/users/hgomersall","html_url":"https://github.com/hgomersall","followers_url":"https://api.github.com/users/hgomersall/followers","following_url":"https://api.github.com/users/hgomersall/following{/other_user}","gists_url":"https://api.github.com/users/hgomersall/gists{/gist_id}","starred_url":"https://api.github.com/users/hgomersall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hgomersall/subscriptions","organizations_url":"https://api.github.com/users/hgomersall/orgs","repos_url":"https://api.github.com/users/hgomersall/repos","events_url":"https://api.github.com/users/hgomersall/events{/privacy}","received_events_url":"https://api.github.com/users/hgomersall/received_events","type":"User","site_admin":false},"created_at":"2016-10-04T13:21:00Z","updated_at":"2016-10-04T13:21:00Z","body":"right, but is it numpy or pyfftw?"}}
{"actor":{"display_login":"hgomersall"}}