Comments (2)
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.
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)
- [RN 0.56] example doesn't work on debug remotely HOT 1
- [RN 0.56] API level upgraded to 26 in RN, clean install errors
- canvas.toDataURL() equivalent?
- IOS 12 with Xcode 10 Beta? HOT 8
- [Android] Project cannot be build with latest NDK HOT 14
- Is this project dead? HOT 6
- Not working with latest react-native HOT 32
- Error compiling Execution failed for task ':react-native-webgl:buildRNWebGLLib HOT 3
- Could not find @ReactModule Annotation in fr.greweb.rnwebgl.RNwebGLTextureloader HOT 1
- What's the story between this and expo unimodules? HOT 7
- [Android] Project crashs on RN 0.58 HOT 3
- downloadJSCHeaders not working HOT 2
- META: What happens when OpenGL support is fully removed from iOS
- Can I use canvas 2D API? HOT 1
- React Native 0.60 support HOT 2
- Error on build, react-native 0.60 HOT 9
- 'React/RCTViewManager.h' file not found HOT 5
- Current status of react-native-webgl HOT 11
- RNWebGL context creation failed HOT 2
- Please support version 60 now
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-webgl.