Skip to content

Couple of issues and questions #1

@whackashoe

Description

@whackashoe

First off, very exciting project!

I am not sure if this is premature to write as I'm sure this is still in heavy dev but I really wanted to try this out.

When I start this I get just a black screen, and a few errors:

SDL_Init failed: wayland not available
Trying default SDL driver.
starting using Vulkan
ParameterValidation(ERROR): object: 0x0 type: 0 location: 1497 msgCode: 8: vkCreateSampler(): The samplerAnisotropy feature was not enabled at device-creation time, so the maxAnisotropy member of the VkSamplerCreateInfo structure must be 1.0 but is 0.000000.
ParameterValidation(ERROR): object: 0x0 type: 0 location: 1497 msgCode: 8: vkCreateSampler(): The samplerAnisotropy feature was not enabled at device-creation time, so the maxAnisotropy member of the VkSamplerCreateInfo structure must be 1.0 but is 0.000000.
ParameterValidation(ERROR): object: 0x0 type: 0 location: 1497 msgCode: 8: vkCreateSampler(): The samplerAnisotropy feature was not enabled at device-creation time, so the maxAnisotropy member of the VkSamplerCreateInfo structure must be 1.0 but is 0.000000.
ParameterValidation(ERROR): object: 0x0 type: 0 location: 1497 msgCode: 8: vkCreateSampler(): The samplerAnisotropy feature was not enabled at device-creation time, so the maxAnisotropy member of the VkSamplerCreateInfo structure must be 1.0 but is 0.000000.
ParameterValidation(ERROR): object: 0x0 type: 0 location: 1497 msgCode: 8: vkCreateSampler(): The samplerAnisotropy feature was not enabled at device-creation time, so the maxAnisotropy member of the VkSamplerCreateInfo structure must be 1.0 but is 0.000000.
ParameterValidation(ERROR): object: 0x0 type: 0 location: 1497 msgCode: 8: vkCreateSampler(): The samplerAnisotropy feature was not enabled at device-creation time, so the maxAnisotropy member of the VkSamplerCreateInfo structure must be 1.0 but is 0.000000.
ParameterValidation(ERROR): object: 0x0 type: 0 location: 1497 msgCode: 8: vkCreateSampler(): The samplerAnisotropy feature was not enabled at device-creation time, so the maxAnisotropy member of the VkSamplerCreateInfo structure must be 1.0 but is 0.000000.
ParameterValidation(ERROR): object: 0x0 type: 0 location: 1497 msgCode: 8: vkCreateSampler(): The samplerAnisotropy feature was not enabled at device-creation time, so the maxAnisotropy member of the VkSamplerCreateInfo structure must be 1.0 but is 0.000000.
0 triangles

nvidia-smi

NVIDIA-SMI 396.44                 Driver Version: 396.44
GeForce GTX 1080

lsb_release -a

Distributor ID:	Ubuntu
Description:	Ubuntu 16.04.5 LTS
Release:	16.04
Codename:	xenial

uname -a

4.15.0-33-generic #36~16.04.1-Ubuntu SMP Wed Aug 15 17:21:05 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

rustc --version

rustc 1.29.0 (aa3ca1994 2018-09-11)

Also, when I close the window the program doesn't stop. Sending SIGHUP will close the window but not the program, I have to kill -9 it.

I also am getting segfaults.

(gdb) run run
Starting program: /home/whackashoe/.cargo/bin/cargo run
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
process 5141 is executing new program: /home/whackashoe/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/cargo
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffee3ff700 (LWP 5145)]
    Finished dev [unoptimized + debuginfo] target(s) in 0.10s                                           

Thread 2 "cargo" received signal SIGUSR1, User defined signal 1.
[Switching to Thread 0x7fffee3ff700 (LWP 5145)]
0x0000555555a344df in std::sys_common::backtrace::__rust_begin_short_backtrace::hc8c39f7a40b731f2 ()
(gdb) bt
#0  0x0000555555a344df in std::sys_common::backtrace::__rust_begin_short_backtrace::hc8c39f7a40b731f2
    ()
#1  0x0000555555a34cfe in std::panicking::try::do_call::hf856cd50efc68809 ()
#2  0x0000555555d9b02a in __rust_maybe_catch_panic () at libpanic_unwind/lib.rs:105
#3  0x0000555555a352da in _$LT$F$u20$as$u20$alloc..boxed..FnBox$LT$A$GT$$GT$::call_box::h8c8c4e47c1ff2489 ()
#4  0x0000555555d7380b in _$LT$alloc..boxed..Box$LT$$LP$dyn$u20$alloc..boxed..FnBox$LT$A$C$$u20$Output$u3d$R$GT$$u20$$u2b$$u20$$u27$a$RP$$GT$$u20$as$u20$core..ops..function..FnOnce$LT$A$GT$$GT$::call_once::h940efee7335c8f36 () at /checkout/src/liballoc/boxed.rs:652
#5  std::sys_common::thread::start_thread::hac18b9ed82bd359d () at libstd/sys_common/thread.rs:24
#6  0x0000555555d71816 in std::sys::unix::thread::Thread::new::thread_start::ha15fdd35f58285a3 ()
    at libstd/sys/unix/thread.rs:90
#7  0x00007ffff77b56ba in start_thread (arg=0x7fffee3ff700) at pthread_create.c:333
#8  0x00007ffff72d341d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
(gdb) run run
Starting program: /home/whackashoe/.cargo/bin/cargo run
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
process 5275 is executing new program: /home/whackashoe/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/cargo
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffee3ff700 (LWP 5281)]
    Finished dev [unoptimized + debuginfo] target(s) in 0.10s                                           

Thread 2 "cargo" received signal SIGUSR1, User defined signal 1.
[Switching to Thread 0x7fffee3ff700 (LWP 5281)]
0x0000555555a3911e in _$LT$std..sync..mpsc..oneshot..Packet$LT$T$GT$$GT$::send::h3e90ece1d94112c8 ()
(gdb) bt
#0  0x0000555555a3911e in _$LT$std..sync..mpsc..oneshot..Packet$LT$T$GT$$GT$::send::h3e90ece1d94112c8
    ()
#1  0x0000555555a37431 in _$LT$std..sync..mpsc..Sender$LT$T$GT$$GT$::send::hdc2581588fa67d83 ()
#2  0x0000555555a3445c in std::sys_common::backtrace::__rust_begin_short_backtrace::hc8c39f7a40b731f2
    ()
#3  0x0000555555a34cfe in std::panicking::try::do_call::hf856cd50efc68809 ()
#4  0x0000555555d9b02a in __rust_maybe_catch_panic () at libpanic_unwind/lib.rs:105
#5  0x0000555555a352da in _$LT$F$u20$as$u20$alloc..boxed..FnBox$LT$A$GT$$GT$::call_box::h8c8c4e47c1ff2489 ()
#6  0x0000555555d7380b in _$LT$alloc..boxed..Box$LT$$LP$dyn$u20$alloc..boxed..FnBox$LT$A$C$$u20$Output$u3d$R$GT$$u20$$u2b$$u20$$u27$a$RP$$GT$$u20$as$u20$core..ops..function..FnOnce$LT$A$GT$$GT$::call_once::h940efee7335c8f36 () at /checkout/src/liballoc/boxed.rs:652
#7  std::sys_common::thread::start_thread::hac18b9ed82bd359d () at libstd/sys_common/thread.rs:24
#8  0x0000555555d71816 in std::sys::unix::thread::Thread::new::thread_start::ha15fdd35f58285a3 ()
    at libstd/sys/unix/thread.rs:90
#9  0x00007ffff77b56ba in start_thread (arg=0x7fffee3ff700) at pthread_create.c:333
#10 0x00007ffff72d341d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

I had to apply a minor patch to get this to build so I'm guessing there's some code otherwise I'm missing:

diff --git a/voxels-renderer-vulkan/src/error.rs b/voxels-renderer-vulkan/src/error.rs
index 79ebcb1..1e75b94 100644
--- a/voxels-renderer-vulkan/src/error.rs
+++ b/voxels-renderer-vulkan/src/error.rs
@@ -70,7 +70,7 @@ impl fmt::Display for VulkanError {
                     api::VK_ERROR_INCOMPATIBLE_DISPLAY_KHR => "VK_ERROR_INCOMPATIBLE_DISPLAY_KHR",
                     api::VK_ERROR_VALIDATION_FAILED_EXT => "VK_ERROR_VALIDATION_FAILED_EXT",
                     api::VK_ERROR_INVALID_SHADER_NV => "VK_ERROR_INVALID_SHADER_NV",
-                    api::VK_ERROR_NOT_PERMITTED_EXT => "VK_ERROR_NOT_PERMITTED_EXT",
+                    // api::VK_ERROR_NOT_PERMITTED_EXT => "VK_ERROR_NOT_PERMITTED_EXT",
                     api::VK_ERROR_OUT_OF_POOL_MEMORY_KHR => "VK_ERROR_OUT_OF_POOL_MEMORY_KHR",
                     api::VK_ERROR_INVALID_EXTERNAL_HANDLE_KHR => {
                         "VK_ERROR_INVALID_EXTERNAL_HANDLE_KHR"

Anyways, best of luck - hope some of this is useful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions