cargo-ui icon indicating copy to clipboard operation
cargo-ui copied to clipboard

UNSUPPORTED (log once): POSSIBLE ISSUE: unit 0 GLD_TEXTURE_INDEX_2D is unloadable and bound to sampler type (Float)

Open ZhangHanDong opened this issue 3 years ago • 9 comments

Execute cargo ui on macbook m1(stable-aarch64-apple-darwin):


UNSUPPORTED (log once): POSSIBLE ISSUE: unit 0 GLD_TEXTURE_INDEX_2D is unloadable and bound to sampler type (Float) - using zero texture because texture unloadable

ZhangHanDong avatar Feb 23 '22 03:02 ZhangHanDong

I haven't seen this particular message before, but I've seen similar messages sometimes. When I've seen them though they were a warning merely, sometimes the result of drawing "zero" geometries.

Are you seeing this as an error message or is this just output but otherwise cargo-ui works fine?

tronical avatar Feb 23 '22 07:02 tronical

I came across the same issue today, as I was using the SOIL to load texture, still don't know how to solve it

yhorm-giant avatar Jul 31 '22 09:07 yhorm-giant

I came across the same issue today, as I was using the SOIL to load texture, still don't know how to solve it

do you know how to solve it now?

wenh-zhang avatar Aug 08 '22 08:08 wenh-zhang

any updates?

brezhart avatar Mar 19 '23 11:03 brezhart

@FloVanGH can you reproduce this on your Apple silicon machine? (Using the femtovg renderer, not Qt)

tronical avatar Mar 21 '23 07:03 tronical

@tronical

not that but I cannot build it.

   Compiling libssh2-sys v0.2.23
error[E0277]: `<<I as IvarType>::Type as InnerIvarType>::Output` is not an iterator
   --> /Users/flovansl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.3.0-beta.3.patch-leaks.2/src/declare/ivar_forwarding_impls.rs:165:5
    |
165 |     fn nth(&mut self, n: usize) -> Option<<<Self as Deref>::Target as Iterator>::Item> {
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `<<I as IvarType>::Type as InnerIvarType>::Output` is not an iterator
    |
    = help: the trait `Iterator` is not implemented for `<<I as IvarType>::Type as InnerIvarType>::Output`
note: required for `ivar::Ivar<I>` to implement `Iterator`
   --> /Users/flovansl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.3.0-beta.3.patch-leaks.2/src/declare/ivar_forwarding_impls.rs:154:19
    |
154 | impl<I: IvarType> Iterator for Ivar<I>
    |                   ^^^^^^^^     ^^^^^^^
155 | where
156 |     <Self as Deref>::Target: Iterator,
    |                              -------- unsatisfied trait bound introduced here
help: consider further restricting the associated type
    |
165 |     fn nth(&mut self, n: usize) -> Option<<<Self as Deref>::Target as Iterator>::Item> where <<I as IvarType>::Type as InnerIvarType>::Output: Iterator {
    |                                                                                        ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

error[E0277]: `<<I as IvarType>::Type as InnerIvarType>::Output` is not an iterator
   --> /Users/flovansl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.3.0-beta.3.patch-leaks.2/src/declare/ivar_forwarding_impls.rs:165:5
    |
165 |     fn nth(&mut self, n: usize) -> Option<<<Self as Deref>::Target as Iterator>::Item> {
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `<<I as IvarType>::Type as InnerIvarType>::Output` is not an iterator
    |
    = help: the trait `Iterator` is not implemented for `<<I as IvarType>::Type as InnerIvarType>::Output`
help: consider further restricting the associated type
    |
165 |     fn nth(&mut self, n: usize) -> Option<<<Self as Deref>::Target as Iterator>::Item> where <<I as IvarType>::Type as InnerIvarType>::Output: Iterator {
    |                                                                                        ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

   Compiling winit v0.27.5
   Compiling dark-light v1.0.0
   Compiling qttypes v0.2.8

FloVanGH avatar Mar 21 '23 07:03 FloVanGH

With stable I can build and cannot reproduce the error of the issue.

FloVanGH avatar Mar 21 '23 11:03 FloVanGH

This error also happening when am trying passing texture using sf::Shader::setUniform. Can be related to that.

brezhart avatar Mar 21 '23 11:03 brezhart

This error also happening when am trying passing texture using sf::Shader::setUniform. Can be related to that.

Could you elaborate what sf::Shader::setUniform is?

tronical avatar Mar 21 '23 17:03 tronical