slint-ui / cargo-ui

GUI for Cargo
Apache License 2.0
271 stars 23 forks source link

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

Open ZhangHanDong opened 2 years ago

ZhangHanDong commented 2 years ago

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
tronical commented 2 years ago

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?

yhorm-giant commented 2 years ago

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

wenh-zhang commented 2 years ago

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?

brezhart commented 1 year ago

any updates?

tronical commented 1 year ago

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

FloVanGH commented 1 year ago

@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 commented 1 year ago

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

brezhart commented 1 year ago

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

tronical commented 1 year ago

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?