Open lorenzocelli opened 4 days ago
Hi @lorenzocelli ,
I tried pip installing the latest mitsuba
and drjit
on our Windows machine with the same Python version as reported and was unable to reproduce the error you're encountering.
In terms of things to try:
Uninstall both packages and attempt to reinstall using the --user
option. This is pretty unlikely the problem but worth checking just to be sure
You can use something like DependencyWalker to inspect the Dr.Jit extension module (i.e._drjit_ext.cp312-win_amd64.pyd
) to see if for some reason it's unable to find any dependencies. Again, probably unlikely.
The final thing is to try a different version of Python to see if you can still reproduce the problem.
Other than that, some more details of your setup might be helpful in order for us to reproduce the error from our side.
Could it be a processor issue? Potentially our builds are using AVX2 instructions. If your machine is comparatively old (pre-Haswell), it might crash when executing AVX2 instructions.
Hello! Thank you for your replies. I have tried:
--user
but without any luck._drjit_ext.cp312-win_amd64.pyd
, but it does not seem to find any relevant issues (only a bunch of apparently false alarms). However I have never used the software so I am not really sure.I just checked and my processor (i7-9750h) should support AVX2. My device specifications:
Processor Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz, 2601 Mhz, 6 Core(s), 12 Logical Processor(s)
Installed Physical Memory (RAM) 16.0 GB
System type 64-bit operating system, x64-based processor
OS:
Edition Windows 11 Home
Version 23H2
Installed on 1/1/2117
OS build 22631.4541
Graphic card:
DirectX version: 12.0
GPU processor: NVIDIA GeForce RTX 2070 with Max-Q Design
Driver version: 566.14
Driver Type: DCH
Thank you for the followup. Your hardware + OS should be compatible with Mitsuba & Dr.Jit. However, we cannot reproduce the issue on our end, and it's the first time that this kind of import-time crash is reported. It's quite possible that there is an issue in Dr.Jit, but it sounds like something that is highly specific to your machine that others simply haven't run into yet.
Unfortunately, the Python backtrace in your first post does not contain enough information to identify the issue. Could I ask you to clone https://github.com/mitsuba-renderer/drjit
and compile it in MSVC (i.e. without WSL -- I am also assuming that the crashes above happened on the Windows command line, not on WSL). In the ideal case, your compiled version will also crash in the same way. Then you could make a debug build and post a screenshot of the C++ backtrace shown by the Visual Studio debugger. This would narrow things down quite a bit.
Thank you for your suggestions! Here is what I did:
For me the issue is now solved since I will just use the Python packages produced during the build. Let me know if there is anything else you would like me to try in order to figure out the issue with the pip packages. Otherwise, feel free to close the ticket :)
Did you compile with Visual Studio? If so, what version?
This is really weird, and it would be good to have a data point. One more request: could you install the crashing version and when the crash happens, open it in Visual Studio and send a backtrace? I'm hoping that this will perhaps identify some API function (e.g. Python API) that is involved.
Hello, I am trying to use Mitsuba and Drjit after installing via pip. After importing drjit, Python crashes due to an access violation:
Any help on how to further investigate this would be highly appreciated. I am happy to provide further details on my system specs if needed.