GithubHelp home page GithubHelp logo

Comments (7)

mattparks avatar mattparks commented on August 16, 2024

What CXX compiler is being used by CMake? If you run the tests with gdb (build for debug mode) you should be able to get more info for me.

from acid.

mattparks avatar mattparks commented on August 16, 2024

I made a small change that fixed runtime crashes on Linux: 9305528
If this fixes your issue then close this commit.

from acid.

consultit avatar consultit commented on August 16, 2024

I've updated and successfully compiled with both g++ (Ubuntu 9.1.0-9ubuntu2) 9.1.0 and clang version 8.0.1-3 (tags/RELEASE_801/final), but TestGUI, in both cases, issues the following additional message:

File System error adding path or zip (Resources / Engine): not found
Render Stage built in 2.157ms
 [UNASSIGNED-CoreValidation-Shader-OutputNotConsumed] Object: 0x1f (Type = 15) | Vertex attribute at location 2 not consumed by vertex shader
 [UNASSIGNED-CoreValidation-Shader-OutputNotConsumed] Object: 0x25 (Type = 15) | Vertex attribute at location 2 not consumed by vertex shader
 [UNASSIGNED-CoreValidation-Shader-InterfaceTypeMismatch] Object: 0x2b (Type = 15) | Attribute type of `VK_FORMAT_R32_UINT` at location 2 does not match vertex shader input
terminate called after throwing an instance of 'std :: runtime_error'
  what (): Failed to find a valid memory type for buffer
Aborted

from acid.

mattparks avatar mattparks commented on August 16, 2024

All I can tell is that the exception is thrown from Buffer::FindMemoryType, this is only used when creating Buffers and Images. Some memory property is missing from your device, if you could figure out the calls leading up to the exception using CLion/GDB I could be more helpful.

I don't think I have it written wrong, two memory type resources:

https://github.com/SaschaWillems/Vulkan/blob/4318c6d43e286350dac64487bece3ce5adc624de/base/VulkanDevice.hpp#L126

https://vulkan-tutorial.com/code/29_multisampling.cpp

I've tested master on my AMD R9 390 (Windows, macOS), and NVidia 840M (Linux), and they have no major issues.

from acid.

consultit avatar consultit commented on August 16, 2024

After some debug sessions of TestGUI I found that Buffer::FindMemoryType() is called several times with the following different combinations of the (typeFilter, requiredProperties) parameters, that I report:

(160, 1)
(130,  1)
(1665, 6)
(1665, 1)
(1665, 4)
(1665, 3) -> throws exception

the last combination throws the exception.
I'm definitely not a vulkan expert, so I don't know how to make it work with my video card.
P.S. this is the stack trace:

Thread #1 [TestGUI] 2366 [core: 0] (Suspended : Signal : SIGABRT:Aborted)	
	__GI_raise() at raise.c:50 0x7ffff700bbfb	
	__GI_abort() at abort.c:79 0x7ffff6fec855	
	0x7ffff73be5fa	
	0x7ffff73ca9bc	
	std::terminate() at 0x7ffff73caa17	
	__cxa_throw() at 0x7ffff73cac79	
	acid::Buffer::FindMemoryType() at Buffer.cpp:98 0x7ffff7d3e1c4	
	acid::Buffer::Buffer() at Buffer.cpp:35 0x7ffff7d3dd2f	
	std::make_unique<acid::Buffer, unsigned long const&, int, int>() at unique_ptr.h:853 0x7ffff7ca403c	
	acid::Model::SetIndices() at Model.cpp:85 0x7ffff7ca3a70	
	acid::Model::Initialize<acid::VertexDefault>() at Model.inl:63 0x7ffff7bdb157	
	acid::ModelRectangle::Load() at ModelRectangle.cpp:75 0x7ffff7cd3fab	
	acid::ModelRectangle::Create() at ModelRectangle.cpp:20 0x7ffff7cd34ab	
	acid::ModelRectangle::Create() at ModelRectangle.cpp:29 0x7ffff7cd35e0	
	acid::Gui::Gui() at Gui.cpp:11 0x7ffff7be5ebd	
	acid::UiStartLogo::UiStartLogo() at UiStartLogo.cpp:19 0x7ffff7e16fdb	
	test::Scene1::Scene1() at Scene1.cpp:16 0x5555555be4cc	
	std::make_unique<test::Scene1>() at unique_ptr.h:853 0x5555555ab841	
	test::MainGame::MainGame() at MainGame.cpp:95 0x5555555a51ac	
	std::make_unique<test::MainGame>() at unique_ptr.h:853 0x5555555aadb0	
	main() at MainGame.cpp:19 0x5555555a4356	

from acid.

mattparks avatar mattparks commented on August 16, 2024

from acid.

consultit avatar consultit commented on August 16, 2024

Just updated the source and TestGUI seems to work.

from acid.

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.