DadSchoorse / vkBasalt

a vulkan post processing layer for linux
zlib License
1.24k stars 52 forks source link

Crashes when using LUT #91

Closed xolophreny closed 4 years ago

xolophreny commented 4 years ago

Upgraded from 0.3.1 to 0.3.2.1, now games crash immidiately on launch if lut is enabled, other effects seem to work fine. lutFile is a .png. Tried RocketLeague with Proton and Overwatch with Lutris, weirdly enough in the latter's logs Dxgi complains about being out-of-memory, which didn't happen before

xolophreny commented 4 years ago

vkcube with VKBASALT_LOG_LEVEL=trace:

vkBasalt info:  config file: /home/xolophreny/.config/vkBasalt/vkBasalt.conf
vkBasalt info:  effects = lut
vkBasalt info:  depthCapture = off
vkBasalt info:  toggleKey = KP_Multiply
vkBasalt info:  casSharpness = 0.5
vkBasalt info:  dlsSharpness = 0.5
vkBasalt info:  dlsDenoise = 0.17
vkBasalt info:  fxaaQualitySubpix = 0.75
vkBasalt info:  fxaaQualityEdgeThreshold = 0.125
vkBasalt info:  fxaaQualityEdgeThresholdMin = 0.0312
vkBasalt info:  smaaEdgeDetection = luma
vkBasalt info:  smaaThreshold = 0.05
vkBasalt info:  smaaMaxSearchSteps = 32
vkBasalt info:  smaaMaxSearchStepsDiag = 16
vkBasalt info:  smaaCornerRounding = 25
vkBasalt info:  lutFile = /home/xolophreny/lut.png
vkBasalt trace: vkCreateInstance
vkBasalt trace: vkCreateDevice
vkBasalt debug: device supports VK_KHR_swapchain_mutable_format
vkBasalt debug: activating mutable_format
vkBasalt trace: vkGetDeviceQueue
vkBasalt debug: found graphic capable queue
vkBasalt trace: vkCreateSwapchainKHR
vkBasalt debug: 50 44
vkBasalt debug: format 44
vkBasalt trace: vkGetSwapchainImagesKHR 0
vkBasalt trace: vkGetSwapchainImagesKHR 3
vkBasalt debug: fake image size: 5111808
vkBasalt debug: fake image alignment: 1024
vkBasalt debug: created fake swapchain images
vkBasalt debug: current effectString lut
vkBasalt debug: 3 images in firstImages
vkBasalt debug: using swapchain images as second images
vkBasalt debug: 3 images in secondImages
terminate called after throwing an instance of 'std::invalid_argument'
  what():  stof
Aborted
xolophreny commented 4 years ago

Downgraded to 0.3.1, still crashes... No idea what I messed up

vkBasalt info:  config file: /home/xolophreny/.config/vkBasalt/vkBasalt.conf
vkBasalt info:  effects = cas:lut
vkBasalt info:  depthCapture = off
vkBasalt info:  toggleKey = KP_Multiply
vkBasalt info:  casSharpness = 0.5
vkBasalt info:  dlsSharpness = 0.5
vkBasalt info:  dlsDenoise = 0.17
vkBasalt info:  fxaaQualitySubpix = 0.75
vkBasalt info:  fxaaQualityEdgeThreshold = 0.125
vkBasalt info:  fxaaQualityEdgeThresholdMin = 0.0312
vkBasalt info:  smaaEdgeDetection = luma
vkBasalt info:  smaaThreshold = 0.05
vkBasalt info:  smaaMaxSearchSteps = 32
vkBasalt info:  smaaMaxSearchStepsDiag = 16
vkBasalt info:  smaaCornerRounding = 25
vkBasalt info:  lutFile = "/home/xolophreny/lut.png"
vkBasalt trace: vkCreateInstance
vkBasalt trace: vkCreateDevice
vkBasalt debug: device supports VK_KHR_swapchain_mutable_format
vkBasalt debug: activating mutable_format
vkBasalt trace: vkGetDeviceQueue
vkBasalt trace: vkGetDeviceQueue
vkBasalt debug: found graphic capable queue
vkBasalt trace: vkCreateSwapchainKHR
vkBasalt debug: 50 44
vkBasalt debug: format 44
vkBasalt trace: vkGetSwapchainImagesKHR 0
vkBasalt trace: vkGetSwapchainImagesKHR 2
vkBasalt debug: fake image size: 1310720
vkBasalt debug: fake image alignment: 1024
vkBasalt debug: created fake swapchain images
vkBasalt debug: current effectString cas
vkBasalt debug: 2 images in firstImages
vkBasalt debug: not using swapchain images as second images
vkBasalt debug: 2 images in secondImages
vkBasalt info:  shader directory: /home/xolophreny/.local/share/vkBasalt/shader
vkBasalt debug: in creating SimpleEffect
vkBasalt debug: created input ImageViews
vkBasalt debug: created ImageViews
vkBasalt debug: created sampler
vkBasalt debug: created descriptorSetLayouts
vkBasalt debug: created descriptorPool
vkBasalt debug: before allocating descriptor Sets
vkBasalt debug: before writing descriptor Sets
vkBasalt debug: before writing descriptor Sets
vkBasalt debug: created CasEffect
vkBasalt debug: current effectString lut
vkBasalt debug: 2 images in firstImages
vkBasalt debug: using swapchain images as second images
vkBasalt debug: 2 images in secondImages
vkBasalt err:   ASSERT_VULKAN failed in buffer.cpp : 33; -2
vkBasalt err:   ASSERT_VULKAN failed in buffer.cpp : 36; -1000011001
DadSchoorse commented 4 years ago

Yeah, that was a stupid mistake. 🐸 Anyway, fixed.