NVlabs / sionna

Sionna: An Open-Source Library for Next-Generation Physical Layer Research
https://nvlabs.github.io/sionna
Other
819 stars 232 forks source link

Kernel crashes when changing object orientation #633

Open robpegurri opened 3 weeks ago

robpegurri commented 3 weeks ago

Hello everyone, I'm having some headaches trying to change the orientation of an object to any value: the kernel always crashes.

All I'm doing is simply setting: object.orientation = [new_angle*np.pi/180, 0, 0]. The same happens if, just for testing, I put [0, 0, 0].

Screenshot 2024-10-29 at 00 00 10

All I can see from terminal is: Critical Dr.Jit compiler failure: jit_var(r0): unknown variable! Aborted (core dumped)

I really can't understand what's wrong here, the .position is working flawlessly. Has anybody any idea? Thanks!

Leeyyhh commented 2 weeks ago

Hi, I am facing the same issue. When I change the orientation, I receive the error message: 'The kernel appears to have died. It will restart automatically.' Have you found a solution to this problem?

Similarly, when I change the position of an object twice (the first time, the program runs normally), I also encounter this error. I’ve tried running this locally and on Colab with both GPU and CPU, but nothing seems to work.

Weixin Image_20241108201548

The code I’m using is simplified to just a few lines, but it still reports the error.

scene=load_scene("./scene.xml")
selected_objects = random.sample( [obj for obj in scene.objects.values()], k=1)
for obj in selected_objects:
    obj.orientation = (np.pi, 0,  0)
merlinND commented 5 days ago

Hello @robpegurri and @Leeyyhh,

Could you please try the following and let us know if it solves the crash?

new_orientation = (np.pi, 0,  0)
obj.orientation = type(obj.orientation)(new_orientation)