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.

map_reduce.py example: AttributeError: 'NoneType' object has no attribute 'eventDestroy'

See original GitHub issue

When running examples/streams/map_reduce.py, I get the following:

elapsed time 0.12984609603881836
total bytes 167778304
total bytes 167778304
Exception ignored in: <bound method Event.__del__ of <cupy.cuda.stream.Event object at 0x00000180AC0572E8>>
Traceback (most recent call last):
  File "cupy\cuda\stream.pyx", line 103, in cupy.cuda.stream.Event.__del__
AttributeError: 'NoneType' object has no attribute 'eventDestroy'
Exception ignored in: <bound method Event.__del__ of <cupy.cuda.stream.Event object at 0x00000180AC057278>>
Traceback (most recent call last):
  File "cupy\cuda\stream.pyx", line 103, in cupy.cuda.stream.Event.__del__
AttributeError: 'NoneType' object has no attribute 'eventDestroy'
Exception ignored in: <bound method Event.__del__ of <cupy.cuda.stream.Event object at 0x00000180AC057208>>
Traceback (most recent call last):
  File "cupy\cuda\stream.pyx", line 103, in cupy.cuda.stream.Event.__del__
AttributeError: 'NoneType' object has no attribute 'eventDestroy'
Exception ignored in: <bound method Event.__del__ of <cupy.cuda.stream.Event object at 0x00000180AC057198>>
Traceback (most recent call last):
  File "cupy\cuda\stream.pyx", line 103, in cupy.cuda.stream.Event.__del__
AttributeError: 'NoneType' object has no attribute 'eventDestroy'
Exception ignored in: <bound method Event.__del__ of <cupy.cuda.stream.Event object at 0x00000180AC057128>>
Traceback (most recent call last):
  File "cupy\cuda\stream.pyx", line 103, in cupy.cuda.stream.Event.__del__
AttributeError: 'NoneType' object has no attribute 'eventDestroy'
Exception ignored in: <bound method Event.__del__ of <cupy.cuda.stream.Event object at 0x00000180AC0570B8>>
Traceback (most recent call last):
  File "cupy\cuda\stream.pyx", line 103, in cupy.cuda.stream.Event.__del__
AttributeError: 'NoneType' object has no attribute 'eventDestroy'
Exception ignored in: <bound method Event.__del__ of <cupy.cuda.stream.Event object at 0x00000180AC057048>>
Traceback (most recent call last):
  File "cupy\cuda\stream.pyx", line 103, in cupy.cuda.stream.Event.__del__
AttributeError: 'NoneType' object has no attribute 'eventDestroy'
Exception ignored in: <bound method Event.__del__ of <cupy.cuda.stream.Event object at 0x00000180AC04DEF0>>
Traceback (most recent call last):
  File "cupy\cuda\stream.pyx", line 103, in cupy.cuda.stream.Event.__del__
AttributeError: 'NoneType' object has no attribute 'eventDestroy'
Exception ignored in: <bound method Event.__del__ of <cupy.cuda.stream.Event object at 0x00000180AC04DF28>>
Traceback (most recent call last):
  File "cupy\cuda\stream.pyx", line 103, in cupy.cuda.stream.Event.__del__
AttributeError: 'NoneType' object has no attribute 'eventDestroy'
Exception ignored in: <bound method Event.__del__ of <cupy.cuda.stream.Event object at 0x00000180AC057358>>
Traceback (most recent call last):
  File "cupy\cuda\stream.pyx", line 103, in cupy.cuda.stream.Event.__del__
AttributeError: 'NoneType' object has no attribute 'eventDestroy'

Conditions: CuPy Version : 7.2.0 CUDA Root : C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0 CUDA Build Version : 10010 CUDA Driver Version : 10010 CUDA Runtime Version : 10010 cuBLAS Version : 10200 cuFFT Version : 10010 cuRAND Version : 10010 cuSOLVER Version : (10, 1, 0) cuSPARSE Version : 10010 NVRTC Version : (10, 1) cuDNN Build Version : 7605 cuDNN Version : 7605 NCCL Build Version : None NCCL Runtime Version : None

I’ve had the same results on two different computers (Windows and Linux, both cupy 7.2.0)

Code to reproduce cupy/examples/streams/map_reduce.py - no changes

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
emcastillocommented, Mar 9, 2020

Event did not had the fix applied …

0reactions
leofangcommented, Mar 9, 2020

Chatted with a few colleagues and it seems we’re not alone. h5py had similar shutdown issues (see e.g., https://github.com/h5py/h5py/issues/534). I was told they resolved by holding a hard reference to the needed module/function, but for the moment I can’t find the PR/code snippet that does this. Will ask if needed.

Another ref: https://docs.python.org/3/library/weakref.html#comparing-finalizers-with-del-methods Not sure whether this is a better, permanent solution or not.

Read more comments on GitHub >

github_iconTop Results From Across the Web

2020年11月_weixin_39928736的博客
clover configurator_枯木逢春,用Clover让老电脑从NVME SSD启动再用叁年没问题,python format 字典_python 用字典格式化字符串,python背诵技巧_python历史背诵,devc++ ...
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