ubc-aamodt-group / vulkan-sim

Vulkan-Sim is a GPU architecture simulator for Vulkan ray tracing based on GPGPU-Sim and Mesa.
Other
48 stars 11 forks source link

A segmentation fault happens when running the "./vulkan_rt_runner RTV6-trace/ RTV6" #8

Closed Cuicunhao closed 1 year ago

Cuicunhao commented 1 year ago

Hello, when I tried to run the "./vulkan_rt_runner RTV6-trace/ RTV6, I got a segmentation fault. When I followed the tutorial instructions and rerun using gdb, I found that it crashes at VulkanRayTracing::traceRay. 图片 I'm not sure if this issue is due to not waiting for 'Trace dumped' to appear in the terminal when running RTV6. Because I did not find 'Trace dumped' in the terminal, but the terminal displayed the interface shown in the following figure, I felt that the program had already run. Could you please help me solve the segmentation fault? Thanks a lot. 图片

mohammadrezasaed commented 1 year ago

It seems the BVH tree is invalid and you get an error when traceRay function tries to read it. Did you change the use_external_launcher to false when dumping the trace? Can you check the files in your dumped trace? The files should look similar to this.

MascaChapas27 commented 1 year ago

The same thing is happening to me. I changed use_external_launcher to false and commented out the continue;s, and then compiled using make -j, and after executing ./RayTracer the files in my dumped trace look like this:

Captura de pantalla de 2023-06-30 14-41-52

Also, when executing ./RayTracer, the screen is completely black when the Ray Tracing option is enabled, but the scene can be seen when the option is disabled.

tommychouyc commented 1 year ago

We've just released Vulkan-Sim 2.0.0 and the corresponding mesa repo which removes the Intel driver dependency and can now be run directly on any CPU. There is no longer a need to use the trace runner / traces and you can just run the Vulkan RT application directly.

Cuicunhao commented 1 year ago

Thanks a lot, I'm sorry for the delayed response. I will attempt to use Vulkan-Sim 2.0.0 and close this issue.