Code Monkey home page Code Monkey logo

Comments (4)

markusfisch avatar markusfisch commented on June 12, 2024

Hm, strange, thanks for filing an issue 👍 And thanks for the logcat! Unfortunately, there wasn't any related error or exception captured - but that's interesting because there really should be something when the app is crashing 🤔

Because the app keeps on crashing after the failed import, I doubt it to be a permission issue. Images are copied into the database, and if that fails (or throws an exception), there's no reason why the app should crash on a fresh startup. This sounds rather like the database got corrupted somehow by the failed import, but I have no idea how that could happen and I would really expect to see a couple of exceptions in that case 🤔

I also don't quite understand why picking from "Images" in the file picker works, while picking from "TB128FU" leads to this crash.

from shadereditor.

RenaKunisaki avatar RenaKunisaki commented on June 12, 2024

Actually it seems to be certain images, not their location. Here's one that does it. Curiously, this is resized from a larger image that also causes the same problem.

IMG_20210306_204531-ouka_1

I assumed the file size was the issue, but larger files are working. (Also this happens after cropping into a square, so that would be odd.)

Sometimes, if I reopen the app, the sampler2D line won't be added to the shader, and it won't crash. Other times, it will crash immediately. When it doesn't crash, the image may or may not appear in the list of samplers.

I don't know Android very well. How can I get a better log that isn't flooded with irrelevant messages?

from shadereditor.

markusfisch avatar markusfisch commented on June 12, 2024

It's the image format! The color space of this image is scRGB-nl, but it must be sRGB for OpenGL to load it.

Of course, the app should handle this better and I'm already working on a fix. Thanks for posting the image! 👍

from shadereditor.

markusfisch avatar markusfisch commented on June 12, 2024

Fixed in 330c97d and 7309faf

There will be a new version soon.

from shadereditor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.