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
Error when using CPU: resource deadlock #293
Comments
Hello @JuliaBorgesSilva, There shouldn't be any issue with AMD processors, but this might be a filesystem or Windows 11-related issue. There were two new releases of Mitsuba last week, I'm wondering whether this is related. Could you try again by installing either:
or
If this doesn't fix it, could you please try replacing this line in your Sionna installation ( self._scene = mi.load_file(env_filename) with: self._scene = mi.load_file(env_filename, parallel=False) |
Hello, RuntimeError: [xml.cpp:215] Error while loading "FGA_2_6.xml" (at line 39, col 4): resource deadlock would occur: resource deadlock would occur. |
I have the same problem. I tried the solutions above but they do not solve my problem. It is possible that the problem comes from a bad combination of versions |
Hello @PhilSoy, This seems to be a Mitsuba-related issue. Does the following script work? import mitsuba as mi
mi.set_variant("cuda_ad_rgb") # Or whichever variant you were using
scene = mi.load_file("path/to/file.xml")
print(scene) If not, could you please open an issue describing the problem and sharing your full scene (XML file + meshes) on the Mitsuba repo. |
Hello,
The script works after modifying the second line, as follows:
```py
import mitsuba as mi
#mi.set_variant("cuda_ad_rgb") # Or whichever variant you were using
mi.set_variant('scalar_rgb')
scene=mi.load_file("grenoble_center\grenoble_center.xml")
print(scene)
```
The scene is displayed without any error message
Thanks,
Philippe
|
Hello @PhilSoy, Since Sionna does not use the |
With mi.set_variant('llvm_ad_rgb') I get the following error message (the one I am used to see with Sionna so far):
```
[xml.cpp:179] Error while loading "grenoble_center\grenoble_center.xml" (at line 8, col 3): resource deadlock would occur: resource deadlock would occur.
```
With mi.set_variant("cuda_ad_rgb"), I get:
```
ImportError: jit_init_thread_state(): the CUDA backend hasn't been initialized. Make sure to call jit_init(JitBackend::CUDA) to properly initialize this backend.
```
|
Thanks for checking. This is good since it means you can reproduce the issue with a minimal script. |
Will do after checking the drjit and LLVM versions
|
I've revised the LLVM path and library versions, but still get the same problem when running my scene, which is attached below as well as the code: |
For reference, here is @PhilSoy's issue on the Mitsuba repo: mitsuba-renderer/mitsuba3#1105 @JuliaBorgesSilva, could you please try @PhilSoy's solution described in this comment: mitsuba-renderer/mitsuba3#1105 (comment) |
The solution described I my last post worked, but does not work anymore. I get again the same error messages and crashes. After restarting the kernel and running the script, the path to LLVM-C.dll is not found and the script stops. After running it a second time, I get the usual ‘resource deadlock…’. I don’t know what has changed since last week. The environment variable is set on Windows, as well as on Sypder (with the Tools/user environment variables), I also put a os.environ['DRJIT_LIBLLVM_PATH'] = 'C:/Program Files/LLVM/bin’ in the script.
As I was fed up with wasting time, I now use the Jupyterlab notebook, and no longer have the problem
|
Thanks for reporting back @PhilSoy. Glad to hear it works with Jupyterlab. Do I understand correctly that previously, you were not running either Python scripts from the command line nor Jupyter / Jupyterlab notebooks, but running notebooks from Spyder? Please note that |
Yes, I was initially running a .py script on Spyder (not a notebook)
You are right (my mistake), I copied os.environ['DRJIT_LIBLLVM_PATH'] = 'C:/Program Files/LLVM/bin’ from an old script. Sorry about that. I corrected it, but the problem was still there.
|
I have installed Sionna on a AMD Ryzen 5 5600G CPU running on Windows 11 and am facing de problem shown on the screenshots below when running the RT Tutorial : "Error while loading "F:\DroneAPRegression\Sionna\fga.xml" (at line 11, col 3): resource deadlock would occur: resource deadlock would occur."
It happens when trying to run both the Sionna models and the maps I loaded from Blender, which work properly on a Linux computer. Is there any configuration needed when using AMD processors/ am I doing something wrong during set up?
The text was updated successfully, but these errors were encountered: