[Interest] Quick2 "ShaderEffect: source or provider missing when binding textures"

Sletta Gunnar Gunnar.Sletta at digia.com
Thu Nov 7 18:07:09 CET 2013


The error message has been quite helpful with tracking down errors in the past, but I guess we can at least remove it from release builds and limit it a bit :) Added https://bugreports.qt-project.org/browse/QTBUG-34676 to track this.

But why are you showing ShaderEffects which lack their image data? That is just wasting GPU resources

ShaderEffect {
    property variant source;
    visible: typeof source != 'undefined' && source.status == Ready
    ...
}

Should keep it hidden and also remove the warning...

cheers,
Gunnar

________________________________
Fra: interest-bounces+gunnar.sletta=digia.com at qt-project.org [interest-bounces+gunnar.sletta=digia.com at qt-project.org] på vegne av Ola Røer Thorsen [ola at silentwings.no]
Sendt: 7. november 2013 16:43
To: interest at qt-project.org
Emne: [Interest] Quick2 "ShaderEffect: source or provider missing when binding textures"

Hi all,

if I use a ShaderEffect on an image that is loaded asynchronously, I get the error/debug message on the console:


ShaderEffect: source or provider missing when binding textures

for every frame rendered until the image is completely loaded and the texture is complete.

This means our system logs on the target system (embedded linux device) gets flooded whenever we load new images (a photo viewer). Would it be possible to at least limit the number of times this is written (once instead of every frame)? Or could the message be removed completely? It's not useful at all when ShaderEffect is used this way.

Best regards,
Ola

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20131107/a6671233/attachment.html>


More information about the Interest mailing list