Giter Club home page Giter Club logo

Comments (18)

tomaka avatar tomaka commented on May 20, 2024

Hi. The reason why you get compilation error is simply because I made lots of breaking changes in the API and only kept the teapot example up-to-date!

Also you get an error in the teapot example because it expects the SDK to be installed on the machine. I just pushed a change (69d6b90) that should fix that.

from vulkano.

tyoc213 avatar tyoc213 commented on May 20, 2024

because drivers are drivers and SDKs are SDKs why would I need the lunar SDK to run/compile vulkano? anyway I downloaded and installed latest https://vulkan.lunarg.com

Updated master to 69d6b90 and get this error (after second run to dismiss extra compiler warnings)

cargo run --example teapot
     Running `target\debug\examples\teapot.exe`
thread '<main>' panicked at 'failed to create instance: ExtensionNotPresent', ../src/libcore\result.rs:709
Process didn't exit successfully: `target\debug\examples\teapot.exe` (exit code: 101)

Here is vulkaninfo if of any help

vulcaninfo.txt

from vulkano.

tomaka avatar tomaka commented on May 20, 2024

You shouldn't need to install the SDK. The change I pushed fixed the example so that it no longer requires it.

For your other problem, that's interesting. The instance doesn't support VK_KHR_swapchain.

from vulkano.

tomaka avatar tomaka commented on May 20, 2024

This should be fixed by 3e15fd3. My AMD driver is probably faulty.

from vulkano.

tyoc213 avatar tyoc213 commented on May 20, 2024

Nice, but does that part need to be static and not dynamic?

Anyway, now I see a creation of a window... but still

cargo run --example teapot
     Running `target\debug\examples\teapot.exe`
Using device: GTX TITAN (type: DiscreteGpu)
thread '<main>' panicked at 'called `Option::unwrap()` on a `None` value', ../src/libcore\option.rs:330
Process didn't exit successfully: `target\debug\examples\teapot.exe` (exit code: 101)

And thanks for your fast answers :).

from vulkano.

tomaka avatar tomaka commented on May 20, 2024

Nice, but does that part need to be static and not dynamic?

VK_KHR_surface is required to draw on windows, and VK_KHR_surface_win32 is require to draw on windows on Windows.

Anyway, now I see a creation of a window... but still

Please provide a backtrace with RUST_BACKTRACE=1

from vulkano.

tyoc213 avatar tyoc213 commented on May 20, 2024

Here it is

cargo run --example teapot
     Running `target\debug\examples\teapot.exe`
Using device: GTX TITAN (type: DiscreteGpu)
thread '<main>' panicked at 'called `Option::unwrap()` on a `None` value', ../src/libcore\option.rs:330
stack backtrace:
   0:     0x7ff6917a2ca5 - sys::ext::ffi::OsString.OsStringExt::from_wide::h7c8f6f825e0cb7e7JAv
   1:     0x7ff6917a7ce7 - rt::lang_start::h98aefce18d0542a30Ky
   2:     0x7ff691798808 - sys_common::unwind::begin_unwind_inner::h485629376f8607efSat
   3:     0x7ff691798c6b - sys_common::unwind::begin_unwind_fmt::ha23b0b11dd517285Y9s
   4:     0x7ff6917a0512 - rust_begin_unwind
   5:     0x7ff6917a96d8 - panicking::panic_fmt::h3dc40a8b303af4f9zYL
   6:     0x7ff6917a99d0 - panicking::panic::hf4e33ac4547ee3e16WL
   7:     0x7ff691409a7e - unwrap
                        at Z:\tyoc\Documentos\GitHub\vulkano\src\libcore\macros.rs:21
   8:     0x7ff69140786e - try_write
                        at Z:\tyoc\Documentos\GitHub\vulkano\vulkano\src\memory\single.rs:254
   9:     0x7ff69140777d - try_write
                        at Z:\tyoc\Documentos\GitHub\vulkano\vulkano\src\buffer.rs:335
  10:     0x7ff6913d218d - main
                        at Z:\tyoc\Documentos\GitHub\vulkano\vulkano\examples\teapot.rs:86
  11:     0x7ff6917a7628 - rt::lang_start::h98aefce18d0542a30Ky
  12:     0x7ff69179e72f - sys_common::unwind::try::inner_try::hf61c3446f7caab3aq7s
  13:     0x7ff6917a7529 - rt::lang_start::h98aefce18d0542a30Ky
  14:     0x7ff69144c879 - main
  15:     0x7ff6917b32e7 - __scrt_common_main_seh
                        at f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl:264
  16:     0x7ffc7f428101 - BaseThreadInitThunk
Process didn't exit successfully: `target\debug\examples\teapot.exe` (exit code: 101)

from vulkano.

tyoc213 avatar tyoc213 commented on May 20, 2024

By the way, I try the same with image example (set RUST_BACKTRACE=1), but stack trace doesnt show

cargo run --example image
     Running `target\debug\examples\image.exe`
Using device: GTX TITAN (type: DiscreteGpu)
Process didn't exit successfully: `target\debug\examples\image.exe` (exit code: 3221226505)

The example uses swap chain so, the VS debugger catch this

1

2

And finally

3

from vulkano.

tomaka avatar tomaka commented on May 20, 2024

Commit 7ab8067 should fix the teapot issue.

As for the swapchain, could you tell what error Visual Studio reported for the crash?

from vulkano.

tyoc213 avatar tyoc213 commented on May 20, 2024

I updated to latest 31415af and the teapot example now launch on exit the VS debugger instead of show the backtrace... This is what I get in the output log... from VS...

The thread 0x38fc has exited with code 0 (0x0).
Unhandled exception at 0x0000000056FAE3CC (nvoglv64.dll) in teapot.exe: Fatal program exit requested.

The command promt only show

cargo run --example teapot
     Running `target\debug\examples\teapot.exe`
Using device: GTX TITAN (type: DiscreteGpu)
Process didn't exit successfully: `target\debug\examples\teapot.exe` (exit code: 3221226505)

Sorry I cant help more, but this are the windows I get

4

Later it prompts to choose a debugger

5

On the left on the bkreaced at exception if I click go to source I get

6

But if I go to thread 1 and click on the only call of teapot I go to

7

from vulkano.

reneeichhorn avatar reneeichhorn commented on May 20, 2024

Teapot sample is broken for me again,

`<vulkano macros>:57:1: 57:23 error: the trait `core::clone::Clone` is not implemented for the type `collections::vec::IntoIter<vulkano::framebuffer::LayoutAttachmentDescription>` [E0277]
<vulkano macros>:57 UnsafeRenderPass:: new (
                    ^~~~~~~~~~~~~~~~~~~~~~
<vulkano macros>:55:42: 59:41 note: in this expansion of try! (defined in <std macros>)
<vulkano macros>:5:1: 9:21 note: in this expansion of ordered_passes_renderpass! (defined in <vulkano macros>)
examples\teapot.rs:140:9: 157:10 note: in this expansion of single_pass_renderpass! (defined in <vulkano macros>)
<vulkano macros>:57:1: 57:23 help: run `rustc --explain E0277` to see a detailed explanation
<vulkano macros>:57:1: 57:23 note: required by `vulkano::framebuffer::UnsafeRenderPass::new`
<vulkano macros>:57:1: 57:23 error: the trait `core::clone::Clone` is not implemented for the type `collections::vec::IntoIter<vulkano::framebuffer::LayoutPassDescription>` [E0277]
<vulkano macros>:57 UnsafeRenderPass:: new (
                    ^~~~~~~~~~~~~~~~~~~~~~
<vulkano macros>:55:42: 59:41 note: in this expansion of try! (defined in <std macros>)
<vulkano macros>:5:1: 9:21 note: in this expansion of ordered_passes_renderpass! (defined in <vulkano macros>)
examples\teapot.rs:140:9: 157:10 note: in this expansion of single_pass_renderpass! (defined in <vulkano macros>)
<vulkano macros>:57:1: 57:23 help: run `rustc --explain E0277` to see a detailed explanation
<vulkano macros>:57:1: 57:23 note: required by `vulkano::framebuffer::UnsafeRenderPass::new`
error: aborting due to 2 previous errors
Could not compile `vulkano`.`

I'm currently trying to write my first vulkano program, but that unfortunately breaks it

from vulkano.

tomaka avatar tomaka commented on May 20, 2024

@auruss It compiles fine for me, plus the framebuffer code is a code that I haven't touched in the last few days. Make sure you have a recent version of Rust.

Other than that, I strongly encourage you not to use vulkano right now. Like the readme says, its API breaks every 5 minutes.

from vulkano.

tyoc213 avatar tyoc213 commented on May 20, 2024

@tomaka I wonder what your configuration is (OS, rust version, Hardware and maybe drivers probably could be shared on the read me in the mean time vulkano become usable on any config).

from vulkano.

tomaka avatar tomaka commented on May 20, 2024

@tyoc213 Windows and AMD drivers should work.

from vulkano.

tyoc213 avatar tyoc213 commented on May 20, 2024

I see, guess I will need to build a little computer with and R9 fury or something.

By the way, I can confirm the compile error above.. Thought dont know why it compiles in your end and not on us, Im using rustc 1.7.0 (a5d1e7a59 2016-02-29) gcc version and cargo 0.8.0-nightly (28a0cbb 2016-01-17).

The problem did come from the merge of tomaka/vulkano/pull/9 specially 556adf8 (Render pass is now a trait) parent commit did compile teapot.

from vulkano.

tomaka avatar tomaka commented on May 20, 2024

I investigated a bit, and apparently the Clone trait is only available on IntoIter starting from Rust 1.8.
Since I'm using the nightly version, I didn't realize that it wasn't available on stable. I also wasn't aware of the fact that code could compile on nightly but not stable even if you didn't activate any nightly-only feature.

from vulkano.

tyoc213 avatar tyoc213 commented on May 20, 2024

Well, 1.8 comes in April, so I uninstalled 1.7, installed https://www.rust-lang.org/downloads.html 1.8 (which is beta now, 1.9 is nightly) and under 364.7 drivers I see....

nice

A red teapot!


Well I jus tracked that the teapot example did start running in this commit b7fb160

from vulkano.

tomaka avatar tomaka commented on May 20, 2024

Since Rust 1.8 is now stable and a warning has been put in the README, I'm going to close this.

from vulkano.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.