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

path-tracer sample segfaults on Ubuntu #45

Open
virtualritz opened this issue Dec 20, 2024 · 0 comments
Open

path-tracer sample segfaults on Ubuntu #45

virtualritz opened this issue Dec 20, 2024 · 0 comments

Comments

@virtualritz
Copy link
Contributor

Maybe my machine doesn't have enough RAM (16GB)?

On that note, I am running the Efficient-Image-Shape-Splatting example just fine, i.e.

cargo run --release --bin akari-cli -- -s scenes/fireplace-room/scene.json  -m config/pssmlt.json
cargo run --release --bin akari-cli -- -s scenes/fireplace-room/scene.json  -m config/shape-splatting-pssmlt.json

both run just fine/create the expected images.

     Running `/home/ritz/code/crates/luisa-compute-rs/target/debug/examples/path_tracer cpu`
[2024-12-20T16:44:13Z INFO  lc-cpp] Created context for program 'examples'.
[2024-12-20T16:44:13Z INFO  lc-cpp] Runtime directory: /home/ritz/code/crates/luisa-compute-rs/target/debug/examples.
[2024-12-20T16:44:13Z DEBUG lc-cpp] Found backend: cpu. [/home/ritz/code/crates/luisa-compute-rs/luisa_compute_sys/LuisaCompute/src/runtime/context.cpp:133]
[2024-12-20T16:44:13Z DEBUG lc-cpp] Found backend: remote. [/home/ritz/code/crates/luisa-compute-rs/luisa_compute_sys/LuisaCompute/src/runtime/context.cpp:133]
[2024-12-20T16:44:13Z DEBUG lc-cpp] Found backend: cuda. [/home/ritz/code/crates/luisa-compute-rs/luisa_compute_sys/LuisaCompute/src/runtime/context.cpp:133]
[2024-12-20T16:44:13Z INFO  lc-cpp] Loaded dynamic module '/home/ritz/code/crates/luisa-compute-rs/target/debug/examples/liblc-backend-cpu.so' in 5.738713 ms.
[2024-12-20T16:44:13Z DEBUG lc-cpp] Loading dynamic symbol 'create' in 0.008927 ms. [/home/ritz/code/crates/luisa-compute-rs/luisa_compute_sys/LuisaCompute/src/core/platform.cpp:249]
[2024-12-20T16:44:13Z DEBUG lc-cpp] Loading dynamic symbol 'destroy' in 0.00037099999999999996 ms. [/home/ritz/code/crates/luisa-compute-rs/luisa_compute_sys/LuisaCompute/src/core/platform.cpp:249]
[2024-12-20T16:44:13Z DEBUG lc-cpp] Loading dynamic symbol 'backend_device_names' in 0.00035999999999999997 ms. [/home/ritz/code/crates/luisa-compute-rs/luisa_compute_sys/LuisaCompute/src/core/platform.cpp:249]
[2024-12-20T16:44:13Z INFO  lc-cpp] Loaded dynamic module '/home/ritz/code/crates/luisa-compute-rs/target/debug/examples/libluisa_compute_backend_impl.so' in 1.18698 ms.
[2024-12-20T16:44:13Z DEBUG lc-cpp] Loading dynamic symbol 'luisa_compute_lib_interface' in 0.000611 ms. [/home/ritz/code/crates/luisa-compute-rs/luisa_compute_sys/LuisaCompute/src/core/platform.cpp:249]
[2024-12-20T16:44:13Z DEBUG lc-cpp] [luisa_compute_backend_impl::cpu] Source generated in 1.081ms
[2024-12-20T16:44:13Z DEBUG lc-cpp] [luisa_compute_backend_impl::cpu] Source generated in 4.567ms
[2024-12-20T16:44:13Z DEBUG lc-cpp] [luisa_compute_backend_impl::cpu::shader] Loading cached LLVM IR kernel_ApfmbEU1S58v7q82n.bc
[2024-12-20T16:44:13Z DEBUG lc-cpp] [luisa_compute_backend_impl::cpu::shader] Loading cached LLVM IR kernel_APe9LnmkqhCgsY2bX.bc
[2024-12-20T16:44:13Z INFO  lc-cpp] [luisa_compute_backend_impl::cpu::llvm] Loading LLVM functions from /usr/lib/llvm-16/lib/libLLVM.so
[2024-12-20T16:44:13Z INFO  lc-cpp] [luisa_compute_backend_impl::cpu::llvm] LLVM functions loaded from /usr/lib/llvm-16/lib/libLLVM.so
[2024-12-20T16:44:13Z DEBUG lc-cpp] [luisa_compute_backend_impl::cpu::shader] LLVM IR compiled in 53.564ms
[2024-12-20T16:44:13Z DEBUG lc-cpp] [luisa_compute_backend_impl::cpu::shader] LLVM IR compiled in 67.490ms
[2024-12-20T16:44:13Z DEBUG sctk] Bound new global [4] wl_output v4
[2024-12-20T16:44:13Z DEBUG sctk] Bound new global [5] zxdg_output_manager_v1 v3
[2024-12-20T16:44:13Z DEBUG sctk] Bound new global [15] wl_seat v7
[2024-12-20T16:44:13Z DEBUG sctk] supported wl_shm format Argb8888
[2024-12-20T16:44:13Z DEBUG sctk] supported wl_shm format Xrgb8888
[2024-12-20T16:44:13Z DEBUG sctk] supported wl_shm format Abgr8888
[2024-12-20T16:44:13Z DEBUG sctk] supported wl_shm format Xbgr8888
[2024-12-20T16:44:13Z DEBUG sctk] supported wl_shm format Rgb565
[2024-12-20T16:44:13Z DEBUG sctk] supported wl_shm format Argb2101010
[2024-12-20T16:44:13Z DEBUG sctk] supported wl_shm format Xrgb2101010
[2024-12-20T16:44:13Z DEBUG sctk] supported wl_shm format Abgr2101010
[2024-12-20T16:44:13Z DEBUG sctk] supported wl_shm format Xbgr2101010
[2024-12-20T16:44:13Z DEBUG sctk] supported wl_shm format Argb16161616f
[2024-12-20T16:44:13Z DEBUG sctk] supported wl_shm format Xrgb16161616f
[2024-12-20T16:44:13Z DEBUG sctk] supported wl_shm format Abgr16161616f
[2024-12-20T16:44:13Z DEBUG sctk] supported wl_shm format Xbgr16161616f
[2024-12-20T16:44:13Z DEBUG sctk] supported wl_shm format Yuyv
[2024-12-20T16:44:13Z DEBUG sctk] supported wl_shm format Nv12
[2024-12-20T16:44:13Z DEBUG sctk] supported wl_shm format P010
[2024-12-20T16:44:13Z DEBUG sctk] supported wl_shm format Yuv420
[2024-12-20T16:44:13Z WARN  sctk_adwaita::buttons] Ignoring unknown button type: icon
[2024-12-20T16:44:13Z DEBUG lc-cpp] Created vulkan instance. [/home/ritz/code/crates/luisa-compute-rs/luisa_compute_sys/LuisaCompute/src/backends/common/vulkan_instance.cpp:151]
[2024-12-20T16:44:13Z ERROR lc-cpp] Vulkan call `vkCreateXlibSurfaceKHR(_instance->handle(), &create_info, nullptr, &_surface)` failed: VK_ERROR_OUT_OF_HOST_MEMORY. [/home/ritz/code/crates/luisa-compute-rs/luisa_compute_sys/LuisaCompute/src/backends/common/vulkan_swapchain.cpp:187]
         0 [0x702c36bfcd02]: /home/ritz/code/crates/luisa-compute-rs/target/debug/examples/liblc-backend-cpu.so :: luisa::compute::VulkanSwapchain::Impl::_create_surface(unsigned long, unsigned long)::{lambda()#2}::operator()() const + 674
         1 [0x702c36bfcf25]: /home/ritz/code/crates/luisa-compute-rs/target/debug/examples/liblc-backend-cpu.so :: luisa::compute::VulkanSwapchain::Impl::_create_surface(unsigned long, unsigned long) + 97
         2 [0x702c36c091ca]: /home/ritz/code/crates/luisa-compute-rs/target/debug/examples/liblc-backend-cpu.so :: luisa::compute::VulkanSwapchain::Impl::Impl(luisa::compute::VulkanDeviceUUID, unsigned long, unsigned long, unsigned int, unsigned int, bool, bool, unsigned int, eastl::span<char const* const, 18446744073709551615ul>) + 560
         3 [0x702c36c1d283]: /home/ritz/code/crates/luisa-compute-rs/target/debug/examples/liblc-backend-cpu.so :: eastl::enable_if<!eastl::is_array<luisa::compute::VulkanSwapchain::Impl>::value, eastl::unique_ptr<luisa::compute::VulkanSwapchain::Impl, eastl::default_delete<luisa::compute::VulkanSwapchain::Impl> > >::type eastl::make_unique<luisa::compute::VulkanSwapchain::Impl, luisa::compute::VulkanDeviceUUID const&, unsigned long&, unsigned long&, unsigned int&, unsigned int&, bool&, bool&, unsigned int&, eastl::span<char const* const, 18446744073709551615ul>&>(luisa::compute::VulkanDeviceUUID const&, unsigned long&, unsigned long&, unsigned int&, unsigned int&, bool&, bool&, unsigned int&, eastl::span<char const* const, 18446744073709551615ul>&) + 292
         4 [0x702c36c0ae03]: /home/ritz/code/crates/luisa-compute-rs/target/debug/examples/liblc-backend-cpu.so :: luisa::compute::VulkanSwapchain::VulkanSwapchain(luisa::compute::VulkanDeviceUUID const&, unsigned long, unsigned long, unsigned int, unsigned int, bool, bool, unsigned int, eastl::span<char const* const, 18446744073709551615ul>) + 115
         5 [0x702c36c0eec8]: /home/ritz/code/crates/luisa-compute-rs/target/debug/examples/liblc-backend-cpu.so :: luisa::compute::VulkanSwapchainForCPU::VulkanSwapchainForCPU(unsigned long, unsigned long, unsigned int, unsigned int, bool, bool, unsigned int) + 212
         6 [0x702c36c10d38]: /home/ritz/code/crates/luisa-compute-rs/target/debug/examples/liblc-backend-cpu.so :: luisa_compute_create_cpu_swapchain + 94
         7 [0x702c35d9c231]: /home/ritz/code/crates/luisa-compute-rs/target/debug/examples/libluisa_compute_backend_impl.so :: unknown + 1688113
         8 [0x702c35dfb806]: /home/ritz/code/crates/luisa-compute-rs/target/debug/examples/libluisa_compute_backend_impl.so :: unknown + 2078726
         9 [0x702c36c366a1]: /home/ritz/code/crates/luisa-compute-rs/target/debug/examples/liblc-backend-cpu.so :: luisa::compute::rust::RustDevice::create_swapchain(luisa::compute::SwapchainOption const&, unsigned long) + 155
        10 [0x702c381768cb]: /home/ritz/code/crates/luisa-compute-rs/target/debug/examples/liblc-api.so :: luisa_compute_swapchain_create + 169
        11 [0x618b15ed8bcb]: /home/ritz/code/crates/luisa-compute-rs/target/debug/examples/path_tracer :: unknown + 6441931
        12 [0x618b15eee8e3]: /home/ritz/code/crates/luisa-compute-rs/target/debug/examples/path_tracer :: unknown + 6531299
        13 [0x618b15e066bc]: /home/ritz/code/crates/luisa-compute-rs/target/debug/examples/path_tracer :: unknown + 5580476
        14 [0x618b15e017aa]: /home/ritz/code/crates/luisa-compute-rs/target/debug/examples/path_tracer :: unknown + 5560234
        15 [0x618b15dd881b]: /home/ritz/code/crates/luisa-compute-rs/target/debug/examples/path_tracer :: unknown + 5392411
        16 [0x618b15db727e]: /home/ritz/code/crates/luisa-compute-rs/target/debug/examples/path_tracer :: unknown + 5255806
        17 [0x618b15e09131]: /home/ritz/code/crates/luisa-compute-rs/target/debug/examples/path_tracer :: unknown + 5591345
        18 [0x618b168e1cb7]: /home/ritz/code/crates/luisa-compute-rs/target/debug/examples/path_tracer :: unknown + 16964791
        19 [0x618b15e0910a]: /home/ritz/code/crates/luisa-compute-rs/target/debug/examples/path_tracer :: unknown + 5591306
        20 [0x618b15e0271e]: /home/ritz/code/crates/luisa-compute-rs/target/debug/examples/path_tracer :: unknown + 5564190
        21 [0x702c3842a3b8]: /lib/x86_64-linux-gnu/libc.so.6 :: unknown + 172984
        22 [0x702c3842a47b]: /lib/x86_64-linux-gnu/libc.so.6 :: __libc_start_main + 139
        23 [0x618b15cfa6c5]: /home/ritz/code/crates/luisa-compute-rs/target/debug/examples/path_tracer :: unknown + 4482757
[1]    102308 IOT instruction (core dumped)  RUST_BACKTRACE=1 cargo run --example path_tracer -- cpu
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

1 participant