Giter Site home page Giter Site logo

Attempt to invoke virtual method 'boolean fr.greweb.rnwebgl.RNWebGLTexture.listenAttached(java.lang.Runnable)' on a null object reference about react-native-webgl HOT 2 CLOSED

rnc-archive avatar rnc-archive commented on June 27, 2024
Attempt to invoke virtual method 'boolean fr.greweb.rnwebgl.RNWebGLTexture.listenAttached(java.lang.Runnable)' on a null object reference

from react-native-webgl.

Comments (2)

vliedel avatar vliedel commented on June 27, 2024

Found out what caused this error: I called loadTexture() with image: uri: '/storage/emulated/...jpg instead of uri: 'file:///storage/emulated/...jpg.
Maybe the error message could be a bit more helpful than this?

from react-native-webgl.

bcgilliom avatar bcgilliom commented on June 27, 2024

I'm getting this error on a Nexus 5, android 6.0.1, rn-webgl v0.8.0 when I try to load a texture via const myImage = require('./path./to/myImage.png');

This seems to work fine on a 5x with android 8

here's the stack trace:

03-30 23:39:25.989 21366-21454/com.fractical.cemenemba D/SoLoader: About to load: librnwebgl.so
    librnwebgl.so not found on /data/data/com.fractical.cemenemba/lib-main
03-30 23:39:25.990 21366-21454/com.fractical.cemenemba D/SoLoader: librnwebgl.so found on /data/app/com.fractical.cemenemba-2/lib/arm
    Not resolving dependencies for librnwebgl.so
03-30 23:39:26.026 21366-21454/com.fractical.cemenemba D/SoLoader: Loaded: librnwebgl.so
03-30 23:39:26.528 21366-21828/com.fractical.cemenemba E/AndroidRuntime: FATAL EXCEPTION: FrescoDecodeExecutor-4
    Process: com.fractical.cemenemba, PID: 21366
    java.lang.NullPointerException: Attempt to invoke virtual method 'boolean fr.greweb.rnwebgl.RNWebGLTexture.listenAttached(java.lang.Runnable)' on a null object reference
        at fr.greweb.rnwebgl.RNWebGLTextureLoader$2.call(RNWebGLTextureLoader.java:67)
        at fr.greweb.rnwebgl.RNWebGLTextureLoader$1.call(RNWebGLTextureLoader.java:57)
        at fr.greweb.rnwebgl.RNWebGLTextureImageLoader$1.onFailureImpl(RNWebGLTextureImageLoader.java:71)
        at com.facebook.datasource.BaseDataSubscriber.onFailure(BaseDataSubscriber.java:57)
        at com.facebook.datasource.AbstractDataSource$1.run(AbstractDataSource.java:172)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
        at com.facebook.imagepipeline.core.PriorityThreadFactory$1.run(PriorityThreadFactory.java:51)
        at java.lang.Thread.run(Thread.java:818)

Any thoughts?

from react-native-webgl.

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.