Giter Site home page Giter Site logo

Comments (11)

mattparks avatar mattparks commented on May 21, 2024

Thank you for this issue, I believe a std::vector is used for its size and data for creating a Vulkan object. Oddly on Linux (GCC from my experience) it is destroyed before Vulkan finishes the command resulting in a segfault. I will resolve this issue as soon as I can.

from acid.

Hideman85 avatar Hideman85 commented on May 21, 2024

Thanks in advance for your time.

from acid.

mattparks avatar mattparks commented on May 21, 2024

I believe that seg faults in Linux are fixed, some std::vectors were automatically deleted before Vulkan was finished using them. However, animations produce an assertion failure, and 50% of the time depth formats appear messed up (I will be fixing this soon).

from acid.

Hideman85 avatar Hideman85 commented on May 21, 2024

Hi,

Yes Segfault is solve, I'm really happy in test Physics I have 110FPS but no physics was demonstrated.
Gui has some bugs too, first nothing was displayed in the center area and some overlapping text in left bottom corner.

And when I closed the app (close button of the window) I have Segfault.

I took some screenshots for you:

image

image

Ho second run of physics I have the scene with objects:
image

from acid.

mattparks avatar mattparks commented on May 21, 2024

Can you check if the latest commit fixes the display issue, also what kind of GPU does your computer have? Closing the display will still cause a seg fault, but rendering should be fixed.

from acid.

Hideman85 avatar Hideman85 commented on May 21, 2024

It's worse...

TestGuis -> First run does not response and even if I force kill (kill -9) it doesn't stop...
---> Second run direct Segfault, no display and nothing else.

TestPhysics -> Does not work (Segfault - no display) too but produce logs:

./TestPhysics 
INTEL-MESA: warning: Haswell Vulkan support is incomplete
Working Directory: PARENT_DIR/Acid/Build/bin
Failed to locate: 'Objects/Testing/Albedo.png'
File does not exist: ''
Failed to locate: 'Objects/Testing/Albedo.png'

Directory:

.
├── Brdf.png
├── Fonts
│   └── ProximaNova
│       ├── Bold.fnt
│       ├── Bold.otf
│       ├── Bold.png
│       ├── Light.fnt
│       ├── Light.otf
│       ├── Light.png
│       ├── Regular.fnt
│       ├── Regular.otf
│       ├── Regular.png
│       ├── Semibold.fnt
│       ├── Semibold.otf
│       ├── Semibold.png
│       ├── Thin.fnt
│       ├── Thin.otf
│       └── Thin.png
├── Guis
│   ├── Black.png
│   ├── Button.png
│   ├── Cursor.png
│   ├── Gradient.png
│   └── White.png
├── Logos
│   ├── Equilibrium-01.png
│   ├── Equilibrium-02.png
│   ├── Equilibrium-07.png
│   ├── Equilibrium-08.png
│   ├── Flask-02.png
│   ├── Flask.icns
│   ├── Flask.ico
│   ├── Flask.png
│   └── Flask.png.ico
├── Objects
│   ├── Animated
│   │   ├── Diffuse.png
│   │   ├── Model.blend
│   │   ├── Model.blend1
│   │   ├── Model.dae
│   │   └── Model_Test.dae
│   ├── Moon
│   │   └── Moon.xml
│   ├── Player
│   │   ├── Model.dae
│   │   └── Player.xml
│   ├── SkyboxChapel
│   │   ├── Back.png
│   │   ├── Bottom.png
│   │   ├── Front.png
│   │   ├── Left.png
│   │   ├── license.txt
│   │   ├── Right.png
│   │   ├── SkyboxChapel.json
│   │   └── Top.png
│   ├── SkyboxClouds
│   │   ├── Back.png
│   │   ├── Bottom.png
│   │   ├── Front.png
│   │   ├── Left.png
│   │   ├── Right.png
│   │   ├── SkyboxClouds.json
│   │   └── Top.png
│   ├── SkyboxSnowy
│   │   ├── Back.png
│   │   ├── Bottom.png
│   │   ├── Front.png
│   │   ├── Left.png
│   │   ├── license.txt
│   │   ├── Right.png
│   │   ├── SkyboxSnowy.json
│   │   └── Top.png
│   ├── Sun
│   │   └── Sun.xml
│   ├── Testing
│   │   ├── Diffuse.png
│   │   ├── Material.png
│   │   ├── Model_Dragon.obj
│   │   ├── Model_Meta.obj
│   │   ├── Model_Mitsuba.obj
│   │   ├── Model.obj
│   │   ├── Model_Tea.obj
│   │   ├── Normal.png
│   │   └── Testing.json
│   └── TreePine
│       ├── Diffuse.png
│       ├── Model.obj
│       ├── Sway.png
│       └── TreePine.json
├── Particles
│   └── Circular.png
├── Resources
│   ├── Fonts
│   │   └── ProximaNova
│   │       ├── Bold.fnt
│   │       ├── Bold.otf
│   │       ├── Bold.png
│   │       ├── Light.fnt
│   │       ├── Light.otf
│   │       ├── Light.png
│   │       ├── Regular.fnt
│   │       ├── Regular.otf
│   │       ├── Regular.png
│   │       ├── Semibold.fnt
│   │       ├── Semibold.otf
│   │       ├── Semibold.png
│   │       ├── Thin.fnt
│   │       ├── Thin.otf
│   │       └── Thin.png
│   ├── Guis
│   │   ├── Black.png
│   │   ├── Button.png
│   │   ├── Cursor.png
│   │   ├── Gradient.png
│   │   └── White.png
│   ├── Logos
│   │   ├── Equilibrium-01.png
│   │   ├── Equilibrium-02.png
│   │   ├── Equilibrium-07.png
│   │   ├── Equilibrium-08.png
│   │   ├── Flask-02.png
│   │   ├── Flask.icns
│   │   ├── Flask.ico
│   │   ├── Flask.png
│   │   └── Flask.png.ico
│   ├── Objects
│   │   ├── Animated
│   │   │   ├── Albedo.png
│   │   │   ├── Model.blend
│   │   │   ├── Model.blend1
│   │   │   ├── Model.dae
│   │   │   └── Model_Test.dae
│   │   ├── Moon
│   │   │   └── Moon.xml
│   │   ├── Player
│   │   │   ├── Model.dae
│   │   │   └── Player.xml
│   │   ├── SkyboxChapel
│   │   │   ├── Back.png
│   │   │   ├── Bottom.png
│   │   │   ├── Front.png
│   │   │   ├── Left.png
│   │   │   ├── license.txt
│   │   │   ├── Right.png
│   │   │   ├── SkyboxChapel.json
│   │   │   └── Top.png
│   │   ├── SkyboxClouds
│   │   │   ├── Back.png
│   │   │   ├── Bottom.png
│   │   │   ├── Front.png
│   │   │   ├── Left.png
│   │   │   ├── Right.png
│   │   │   ├── SkyboxClouds.json
│   │   │   └── Top.png
│   │   ├── SkyboxSnowy
│   │   │   ├── Back.png
│   │   │   ├── Bottom.png
│   │   │   ├── Front.png
│   │   │   ├── Left.png
│   │   │   ├── license.txt
│   │   │   ├── Right.png
│   │   │   ├── SkyboxSnowy.json
│   │   │   └── Top.png
│   │   ├── Sun
│   │   │   └── Sun.xml
│   │   ├── Testing
│   │   │   ├── Albedo.png
│   │   │   ├── Material.png
│   │   │   ├── Model_Dragon.obj
│   │   │   ├── Model_Meta.obj
│   │   │   ├── Model_Mitsuba.obj
│   │   │   ├── Model.obj
│   │   │   ├── Model_Tea.obj
│   │   │   ├── Normal.png
│   │   │   └── Testing.json
│   │   └── TreePine
│   │       ├── Albedo.png
│   │       ├── Model.obj
│   │       ├── Sway.png
│   │       └── TreePine.json
│   ├── Particles
│   │   └── Circular.png
│   ├── Shaders
│   │   ├── Brdf.comp
│   │   ├── Defaults
│   │   │   ├── Default.frag
│   │   │   └── Default.vert
│   │   ├── Deferred
│   │   │   ├── Deferred.frag
│   │   │   └── Deferred.vert
│   │   ├── Filters
│   │   │   ├── BlurHorizontal.frag
│   │   │   ├── BlurVertical.frag
│   │   │   ├── Crt.frag
│   │   │   ├── Darken.frag
│   │   │   ├── Default.frag
│   │   │   ├── Default.vert
│   │   │   ├── Emboss.frag
│   │   │   ├── Fxaa.frag
│   │   │   ├── Grain.frag
│   │   │   ├── Grey.frag
│   │   │   ├── Lensflare.frag
│   │   │   ├── Negative.frag
│   │   │   ├── Pixel.frag
│   │   │   ├── Sepia.frag
│   │   │   ├── Tiltshift.frag
│   │   │   ├── Tone.frag
│   │   │   └── Wobble.frag
│   │   ├── Fonts
│   │   │   ├── Font.frag
│   │   │   └── Font.vert
│   │   ├── Guis
│   │   │   ├── Gui.frag
│   │   │   └── Gui.vert
│   │   ├── Ibl.comp
│   │   ├── Lighting.glsl
│   │   ├── Noise.glsl
│   │   ├── Particles
│   │   │   ├── Particle.frag
│   │   │   └── Particle.vert
│   │   ├── Shadows
│   │   │   ├── Shadow.frag
│   │   │   └── Shadow.vert
│   │   └── Skyboxes
│   │       ├── Skybox.frag
│   │       └── Skybox.vert
│   ├── Sounds
│   │   ├── Button1.ogg
│   │   ├── Jump.ogg
│   │   ├── Music
│   │   │   ├── Hiitori-Bocchi.ogg
│   │   │   └── Outpost.ogg
│   │   └── Screenshot.ogg
│   ├── Undefined2.png
│   ├── Undefined.obj
│   └── Undefined.png
├── Shaders
│   ├── Brdf.comp
│   ├── Defaults
│   │   ├── Default.frag
│   │   └── Default.vert
│   ├── Deferred
│   │   ├── Deferred.frag
│   │   └── Deferred.vert
│   ├── Filters
│   │   ├── BlurHorizontal.frag
│   │   ├── BlurVertical.frag
│   │   ├── Crt.frag
│   │   ├── Darken.frag
│   │   ├── Default.frag
│   │   ├── Default.vert
│   │   ├── Emboss.frag
│   │   ├── Fxaa.frag
│   │   ├── Grain.frag
│   │   ├── Grey.frag
│   │   ├── Lensflare.frag
│   │   ├── Negative.frag
│   │   ├── Pixel.frag
│   │   ├── Sepia.frag
│   │   ├── Tiltshift.frag
│   │   ├── Tone.frag
│   │   └── Wobble.frag
│   ├── Fonts
│   │   ├── Font.frag
│   │   └── Font.vert
│   ├── Guis
│   │   ├── Gui.frag
│   │   └── Gui.vert
│   ├── Ibl.comp
│   ├── Lighting.glsl
│   ├── Noise.glsl
│   ├── Particles
│   │   ├── Particle.frag
│   │   └── Particle.vert
│   ├── Pipeline.glsl
│   ├── Shadows
│   │   ├── Shadow.frag
│   │   └── Shadow.vert
│   └── Skyboxes
│       ├── Skybox.frag
│       └── Skybox.vert
├── Sounds
│   ├── Button1.ogg
│   ├── Jump.ogg
│   ├── Music
│   │   ├── Hiitori-Bocchi.ogg
│   │   └── Outpost.ogg
│   └── Screenshot.ogg
├── TestGuis
├── TestMaths
├── TestPhysics
├── Undefined2.png
├── Undefined.obj
└── Undefined.png

Graphic cards:
Integrated Intel HD graphics
Amd Radeon HD8500M / M230

Currently use both.

from acid.

mattparks avatar mattparks commented on May 21, 2024

In the readme contains a resources section that describes how to create symblinks for engine resources, resources are searched for in the binary location. If it is already linked the working directory found might be broken: https://github.com/Equilibrium-Games/Acid/blob/411d00ed36700933d9abd2b5783d0d809a7f2883/Sources/Helpers/FileSystem.cpp#L125. There are still depth buffer issues in Linux, and lighting is slightly broken in the engine.

from acid.

Hideman85 avatar Hideman85 commented on May 21, 2024

Your script is not update...

#!/usr/bin/env bash
cd ../

SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
mkdir "${SCRIPTPATH}/Build/Debug/bin/Resources"
mkdir "${SCRIPTPATH}/Build/Release/bin/Resources"
ln -s "${SCRIPTPATH}/Resources" "${SCRIPTPATH}/Build/Debug/bin/Resources/Engine"
ln -s "${SCRIPTPATH}/Resources" "${SCRIPTPATH}/Build/Release/bin/Resources/Engine"
ln -s "${SCRIPTPATH}/Resources" "${SCRIPTPATH}/Build/RelWithDebInfo/bin/Resources/Engine"

I don't have Debug / Realease / RelWithDebInfo in Build dir, I just have bin and lib dirs.
So I just do:

mkdir Build/bin/Resources
cd Build/bin/Resources
ln -s ../../../Resources/ Engine

Test can be launch with no problem but I don't have the scene and nothing in the center white box in TestGuis

from acid.

Hideman85 avatar Hideman85 commented on May 21, 2024

I read CMakeLists.txt and find the way to active debug mode so I ran it on debug mode, there is logs:
https://pastebin.com/WSjBgPD0

Staktrace:
image

from acid.

mattparks avatar mattparks commented on May 21, 2024

I think I may have this fixed now, it is strange that some object lifetimes in Vulkan last longer on Windows and shorter on Linux.

from acid.

Hideman85 avatar Hideman85 commented on May 21, 2024

Yes works, some strange light but scene was rendered fine.

image

I also note that my FPS was decrease but I think it's normal because I have some objects to render ;)

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.