Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows Error 0xe0434352 with Anaconda3 in fresh environment #7

Closed
xaedes opened this issue Oct 13, 2019 · 11 comments
Closed

Windows Error 0xe0434352 with Anaconda3 in fresh environment #7

xaedes opened this issue Oct 13, 2019 · 11 comments

Comments

@xaedes
Copy link

xaedes commented Oct 13, 2019

When I try to import plotoptix or try any example I get following error:

----> 1 import plotoptix

~\Anaconda3\lib\site-packages\plotoptix\__init__.py in <module>
     22 # import PlotOptiX modules ###############################################
     23 from plotoptix.enums import *
---> 24 from plotoptix.npoptix import NpOptiX
     25 from plotoptix.tkoptix import TkOptiX
     26

~\Anaconda3\lib\site-packages\plotoptix\npoptix.py in <module>
     15 from plotoptix.singleton import Singleton
     16 from plotoptix._load_lib import load_optix, load_denoiser, PARAM_NONE_CALLBACK, PARAM_INT_CALLBACK
---> 17 from plotoptix.utils import _make_contiguous_vector, _make_contiguous_3d
     18 from plotoptix.enums import *
     19

~\Anaconda3\lib\site-packages\plotoptix\utils.py in <module>
     12 from plotoptix.enums import GpuArchitecture, ChannelOrder
     13
---> 14 _optix = load_optix()
     15
     16

~\Anaconda3\lib\site-packages\plotoptix\_load_lib.py in load_optix()
   1010
   1011     package_dir = os.path.dirname(__file__)
-> 1012     optix.set_library_dir(os.path.join(package_dir, BIN_PATH))
   1013     optix.set_include_dir(os.path.join(package_dir, BIN_PATH, "cuda"))
   1014     sharp_optix = optix

OSError: [WinError -532462766] Windows Error 0xe0434352

I can reproduce this on my system with a fresh anaconda evironment only installing plotoptix with pip. The versions of everything actually look good, don't they? :

Windows Version: 1903 Build 18362.418

python --version
Python 3.7.4

nVidia driver version:
436.48 DCH

reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\full" /v version

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\full
    version    REG_SZ    4.8.03752

pip freeze

certifi==2019.9.11
cycler==0.10.0
kiwisolver==1.1.0
matplotlib==3.1.1
numpy==1.17.2
packaging==19.2
Pillow==6.2.0
plotoptix==0.5.1
pyparsing==2.4.2
python-dateutil==2.8.0
six==1.12.0
wincertstore==0.2

conda list

# Name                    Version                   Build  Channel
ca-certificates           2019.8.28                     0
certifi                   2019.9.11                py37_0
cycler                    0.10.0                   pypi_0    pypi
kiwisolver                1.1.0                    pypi_0    pypi
matplotlib                3.1.1                    pypi_0    pypi
numpy                     1.17.2                   pypi_0    pypi
openssl                   1.1.1d               he774522_2
packaging                 19.2                     pypi_0    pypi
pillow                    6.2.0                    pypi_0    pypi
pip                       19.2.3                   py37_0
plotoptix                 0.5.1                    pypi_0    pypi
pyparsing                 2.4.2                    pypi_0    pypi
python                    3.7.4                h5263a28_0
python-dateutil           2.8.0                    pypi_0    pypi
setuptools                41.4.0                   py37_0
six                       1.12.0                   pypi_0    pypi
sqlite                    3.30.0               he774522_0
vc                        14.1                 h0510ff6_4
vs2015_runtime            14.16.27012          hf0eaf9b_0
wheel                     0.33.6                   py37_0
wincertstore              0.2                      py37_0
@robertsulej
Copy link
Member

robertsulej commented Oct 13, 2019

Right, your packages look good. I just checked the new driver release and it works well. Could you, please, tell me what is your graphics board?

@dakoner
Copy link

dakoner commented Oct 14, 2019

I get the same error (basically same repro info). I have a brand-new
Gigabyte GeForce RTX 2080 Windforce 8G Graphics Card, 3X Windforce Fans, 8GB 256-Bit GDDR6, GV-N2080WF3-8GC Video Card

@robertsulej
Copy link
Member

I just tried on two windows systems, rtx 2070 and gtx 1060, with fresh anaconda3 install and it works. Investigating...

@joaoponte
Copy link

joaoponte commented Oct 14, 2019

I tried with the 0.5.0 version of plotoptix and works perfectly.
The error is in the 0.5.1, curiously..

EDIT: The env is almost the same, but my GPU is a old 980M in my laptop.

@robertsulej
Copy link
Member

@joaoponte thanks for that hint!
I can see there is an additional dependency on vcruntime140_1.dll in the windows binary rndSharpOptiX.dll that was not present in v0.5.0. This may cause problems with the dll loading which usually results with errors like "Windows Error xxxx". I have updated Visual Studio between releases, apparently something wrong happened to the configuration. Will try to fix that!

@dakoner
Copy link

dakoner commented Oct 14, 2019

Confirmed, by installing plotoptix==0.5.0, I am able to import and proceed with the notebook examples without receiving this error.

@xaedes
Copy link
Author

xaedes commented Oct 14, 2019

I have 1080 Ti. It also works with plotoptix==0.5.0 for me.

@robertsulej
Copy link
Member

Cleaned up the dll dependencies. Hope this will solve the problem. New release is on PyPI.

@joaoponte
Copy link

I tested the 0.5.2 version and now it is working normally. Thank you!

@robertsulej
Copy link
Member

Great, thanks for your help, guys!

@robertsulej
Copy link
Member

OK, sound like solved :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants