unlimitedbacon / stl-thumb

Thumbnail generator for STL files
MIT License
1.02k stars 89 forks source link

thread '<unnamed>' panicked #91

Open rowanfr opened 4 days ago

rowanfr commented 4 days ago

When trying to use dolphin I kept getting the error:

thread '<unnamed>' panicked at ~/.cargo/registry/src/index.crates.io-6f17d22bba15001f/glium-0.31.0/src/texture/get_format.rs:135:25:
internal error: entered unreachable code
com.stl-thumb-kde: STL-THUMB :: lib returned error

which I think has to do with the Glium code snippet:

impl InternalFormatType {
    /// Builds the `InternalFormatType` of the GLenum. Panics if the value is not recognized.
    #[inline]
    fn from_glenum(val: gl::types::GLenum) -> InternalFormatType {
        match val {
            gl::SIGNED_NORMALIZED => InternalFormatType::SignedNormalized,
            gl::UNSIGNED_NORMALIZED => InternalFormatType::UnsignedNormalized,
            gl::FLOAT => InternalFormatType::Float,
            gl::INT => InternalFormatType::Int,
            gl::UNSIGNED_INT => InternalFormatType::UnsignedInt,
            gl::NONE => unreachable!(),     // separating this case for easier debugging
            _ => unreachable!(),
        }
    }
}

But honestly this is above my understanding. I use a KDE Plasma desktop environment and have stl-thumb-kde installed. I'm using Manjaro as the OS I'm trying to get this working on. If there is any other information that is necessary to help debug this please let me know.