Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mem error bug #240

Open
remi75 opened this issue Sep 20, 2024 · 3 comments
Open

mem error bug #240

remi75 opened this issue Sep 20, 2024 · 3 comments

Comments

@remi75
Copy link

remi75 commented Sep 20, 2024

Hello

I have vkbasalt working on a Linux machine really good,
but with one shader I have bad:mem error:
"std::bad_alloc"
and instant crash/halt of the program, like glxgears or vkcube etc

the problematic shader is: https://github.com/BlueSkyDefender/Depth3D/tree/master/Shaders .

ps: I have contacted the dev of the shader, in case the issue could be on "his" side ...
regards

@remi75
Copy link
Author

remi75 commented Sep 23, 2024

hello, I am pasting here the exact log:

user@unit03:~$ ENABLE_VKBASALT=1 vkgears [ENTER]
vkBasalt info: config file: /etc/vkBasalt.conf
vkBasalt info: toggleKey = Pause
vkBasalt info: effects = SBS
vkBasalt info: SBS = /home/user/Téléchargements/Depth3D-master/Shaders/SuperDepth3D.fx
vkBasalt info: reshadeIncludePath = /home/user/Téléchargements/Depth3D-master/Shaders
vkBasalt info: reshadeTexturePath = /home/user/Téléchargements/Depth3D-master/Textures/
vkBasalt err: /home/user/Téléchargements/Depth3D-master/Shaders/SuperDepth3D.fx(5147, 1): warning X4576: 'InfoOut': input parameter 'texcoord' semantic does not match vertex shader one
vkBasalt err: /home/user/Téléchargements/Depth3D-master/Shaders/SuperDepth3D.fx(5173, 1): warning X4576: 'Average_Info': input parameter 'texcoord' semantic does not match vertex shader one
vkBasalt err: /home/user/Téléchargements/Depth3D-master/Shaders/SuperDepth3D.fx(5183, 1): warning X4576: 'zBuffer_Blur': input parameter 'texcoord' semantic does not match vertex shader one
vkBasalt err: /home/user/Téléchargements/Depth3D-master/Shaders/SuperDepth3D.fx(5189, 1): warning X4576: 'DepthMap': input parameter 'texcoord' semantic does not match vertex shader one
vkBasalt err: /home/user/Téléchargements/Depth3D-master/Shaders/SuperDepth3D.fx(5196, 1): warning X4576: 'Mod_Z': input parameter 'texcoord' semantic does not match vertex shader one
vkBasalt err: /home/user/Téléchargements/Depth3D-master/Shaders/SuperDepth3D.fx(5203, 1): warning X4576: 'Mix_Z': input parameter 'texcoord' semantic does not match vertex shader one

terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc

Abandon (core dumped)

134 user@unit03:~$

regards

@birdspider
Copy link

@remi75

hi, I hunted a similar issue and this was my workaround, the (TSMAA2.fx) shader specs I used had a uniform with anotation but without actual value;

that is also the case in the shader you mentioned:

uniform int SuperDepth3D <
   # ... long list of stuff, for reshade-ui I think
> ;

from the shaders point of view this is:

uniform int SuperDepth3D ;

it seems vkBasalt has trouble parsing that format, so what I did was to set a default value (and delete the "annotation"), like so: (but be sure to check what value makes sense)

uniform int SuperDepth3D = 0;

@remi75
Copy link
Author

remi75 commented Oct 10, 2024

I have tried a few values, no luck yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants