GithubHelp home page GithubHelp logo

vsgClip crashes about vsgexamples HOT 6 CLOSED

vsg-dev avatar vsg-dev commented on September 27, 2024
vsgClip crashes

from vsgexamples.

Comments (6)

shujaatak avatar shujaatak commented on September 27, 2024

I was too much in hurry and didn't read full instructions.

I had missed this step:

export PATH="$PATH:/path/to/vsgExamples/bin"
export VSG_FILE_PATH=/path/to/vsgExamples/data

from vsgexamples.

robertosfield avatar robertosfield commented on September 27, 2024

Even without the VSG_FILE_PATH and PATH settings I wouldn't have expected a crash. Could you provide a stack trace for the condition that caused the crash?

I've tried to reproduce a crash at my end, but even with an invalid model path or no model path the lack of model is picked up and reported and the application exits gracefully.

from vsgexamples.

shujaatak avatar shujaatak commented on September 27, 2024

I have Ubuntu 20.04.2 LTS 64-bit and Intel HD Graphics 5500.

I have built and make installed latest VulkanSceneGraph , vsgXchange, vsgImGui and vsgGIS, with vulkansdk-linux-x86_64-1.2.162.1.

I have built examples using this:

git clone https://github.com/vsg-dev/vsgExamples.git
cd vsgExamples
cmake .
make -j 8

Now in the current terminal, if I don't set paths like this:

export PATH="$PATH:/path/to/vsgExamples/bin"
export VSG_FILE_PATH=/path/to/vsgExamples/data

then if I run vsgclip example like this ./bin/vsgclip then I simply get this error in the terminal while a window appears and close instantly:

shujaat@shujaat:~/Downloads/vsgExamples$ ./bin/vsgclip 
windowTraits->swapchainPreferences.imageCount = 3
availableFeatures.samplerAnisotropy = 1, limits.maxSamplerAnisotropy = 16
availableFeatures.shaderClipDistance = 1, limits.maxClipDistances = 8
availableFeatures.shaderCullDistance = 1, limits.maxCullDistances = 8
limits.maxCombinedClipAndCullDistances = 8
Could not create shaders.

from vsgexamples.

shujaatak avatar shujaatak commented on September 27, 2024

Could you provide a stack trace for the condition that caused the crash?

Hopefully the previous comment will help, if not then please let me know. If there is any other way to produce/provide stack trace then please let me know how to do that so that I can help.

from vsgexamples.

robertosfield avatar robertosfield commented on September 27, 2024

from vsgexamples.

robertosfield avatar robertosfield commented on September 27, 2024

My best guess as to the cause of the problem is not build vsgExamples against vsgXchange, so the attempt to read the .vert and .frag shader files fails as vsgXchange provides the GLSL loader.

I've checked in a change to vsgExamples/state/CMakeLists.txt to ensure it's only built when vsgXchange is found. This should prevent this example from compiling without vsgXchange.

I may move the GLSL loader into the core VSG to avoid this issue, but this is clunky solution as well.

from vsgexamples.

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.