pointnerf icon indicating copy to clipboard operation
pointnerf copied to clipboard

PyCUDA ERROR: The context stack was not empty upon module cleanup

Open JI0726 opened this issue 2 years ago • 15 comments

After running ‘bash dev_scripts/w_scannet_etf/scane241_test.sh’ and 'bash dev_scripts/w_n360/chair_test.sh' I got this PyCUDA error: image Does anybody know how to solve it?

JI0726 avatar Jun 22 '22 12:06 JI0726

same problem

zhoupeizhu avatar Jun 28 '22 08:06 zhoupeizhu

I have a same problem, too.

taekkii avatar Jun 30 '22 07:06 taekkii

same problem

hdzmtsssw avatar Jul 05 '22 14:07 hdzmtsssw

similar problem, need help

zhangchuanyi96 avatar Jul 14 '22 13:07 zhangchuanyi96

same problem

Ailon-Island avatar Jul 20 '22 14:07 Ailon-Island

same problem, has anyone found a solution?

phillipinseoul avatar Jul 28 '22 09:07 phillipinseoul

same...

OvOtoQAQ avatar Aug 29 '22 12:08 OvOtoQAQ

https://blog.csdn.net/Andrew_megemeta/article/details/115712499 hey guys, I find a blog which seems like be able to solve this problem, I tried a lot but still can't figure out where to pop, if anyone solve this one, please inform me.

OvOtoQAQ avatar Aug 30 '22 03:08 OvOtoQAQ

Same problem!Does anyone know how to fix it??

MobiusLqm avatar Oct 26 '22 11:10 MobiusLqm

try import pycuda.autoinit

yjcaimeow avatar Nov 02 '22 12:11 yjcaimeow

Same problem

knightwzh avatar Nov 20 '22 11:11 knightwzh

hi folks, it is wrong decision to build things in pycuda, and im sorry that i don't have enough time to rebuild everything in a fashion of pure cuda/pytorch.

Xharlie avatar Nov 26 '22 00:11 Xharlie

Hi, I have the same problem. Further I also encountered this when I was running the scripts for: Test feed forward inference on dtu scenes like 'bash dev_scripts/dtu_test_inf/inftest_scan1.sh'. I was able to fix this by adding model.cleanup() and del model into the train_ft.py before exit() is called. Unfortunately when trying to apply this to the test_ft.py script, I run into a Segmentation fault instead of the PyCuda ERROR...

juliuskuehn1 avatar Mar 03 '23 12:03 juliuskuehn1

Hello, I would like to ask which parts are using pycuda. Perhaps I can rewrite these parts as cuda

HanLingsgjk avatar May 18 '23 11:05 HanLingsgjk

https://github.com/Xharlie/pointnerf/issues/82#issue-1643198265 Try this method.

CTouch avatar Dec 12 '23 07:12 CTouch