Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lightyear.fm - WebGL crash. #1458

Closed
webcompat-bot opened this issue Jul 23, 2015 · 2 comments
Closed

lightyear.fm - WebGL crash. #1458

webcompat-bot opened this issue Jul 23, 2015 · 2 comments

Comments

@webcompat-bot
Copy link

URL: http://lightyear.fm/
Browser / Version: Firefox for Android 39.0
Operating System: Android 4.4.4
Problem type: Something else - I'll add details below

Steps to Reproduce

  1. Navigate to: http://lightyear.fm/
  2. Look at the warning about having trouble running it on mobile
  3. Press Try It anyway
  4. Wait til it is loaded
  5. Press Play Button

Expected Behavior:

Everything but crashing Firefox.

Actual Behavior:

It crashes firefox.

@miketaylr
Copy link
Member

So, they do give a fair warning. ^_^

If I just let it play, it's a little slow but doesn't crash. To get a crash, once it's playing if you click on the timeline/year-scale thingy anywhere it goes boom:

From logcat:

I/Gecko   (22240): [GFX1]: CreateDataSourceSurfaceWithStride failed to initialize Size(1080,1701), SurfaceFormat::R8G8B8A8, 4320, false
I/Gecko   (22240): WebGL(0x6ce22400)::ForceLoseContext
W/GeckoConsole(22240): [JavaScript Warning: "THREE.WebGLShader: gl.getShaderInfoLog() null 1: precision highp float;
W/GeckoConsole(22240): 2: precision highp int;
W/GeckoConsole(22240): 3: 
W/GeckoConsole(22240): 4: #define VERTEX_TEXTURES
W/GeckoConsole(22240): 5: 
W/GeckoConsole(22240): 6: 
W/GeckoConsole(22240): 7: #define GAMMA_FACTOR 2
W/GeckoConsole(22240): 8: #define MAX_DIR_LIGHTS 2
W/GeckoConsole(22240): 9: #define MAX_POINT_LIGHTS 1
W/GeckoConsole(22240): 10: #define MAX_SPOT_LIGHTS 0
W/GeckoConsole(22240): 11: #define MAX_HEMI_LIGHTS 1
W/GeckoConsole(22240): 12: #define MAX_SHADOWS 0
W/GeckoConsole(22240): 13: #define MAX_BONES -5
W/GeckoConsole(22240): 14: #define USE_MAP
W/GeckoConsole(22240): 15: 
W/GeckoConsole(22240): 16: 
W/GeckoConsole(22240): 17: 
W/GeckoConsole(22240): 18: 
W/GeckoConsole(22240): 19: 
W/GeckoConsole(22240): 20: 
W/GeckoConsole(22240): 21: 
W/GeckoConsole(22240): 22: 
W/GeckoConsole(22240): 23: 
W/GeckoConsole(22240): 24: 
W/GeckoConsole(22240): 25: 
W/GeckoConsole(22240): 26: 
W/GeckoConsole(22240): 27: 
W/GeckoConsole(22240): 28: 
W/GeckoConsole(22240): 29: 
W/GeckoConsole(22240): 30: 
W/GeckoConsole(22240): 31: 
W/GeckoConsole(22240): 32: 
W/GeckoConsole(22240): 33: 
W/GeckoConsole(22240): 34: 
W/GeckoConsole(22240): 35: 
W/GeckoConsole(22240): 36: 
W/GeckoConsole(22240): 37: uniform mat4 modelMatrix;
W/GeckoConsole(22240): 38: uniform mat4 modelViewMatrix;
W/GeckoConsole(22240): 39: uniform mat4 projectionMatrix;
W/GeckoConsole(22240): 40: uniform mat4 viewMatrix;
W/GeckoConsole(22240): 41: uniform mat3 normalMatrix;
W/GeckoConsole(22240): 42: uniform vec3 cameraPosition;
W/GeckoConsole(22240): 43: attribute vec3 position;
W/GeckoConsole(22240): 44: attribute vec3 normal;
W/GeckoConsole(22240): 45: attribute vec2 uv;
W/GeckoConsole(22240): 46: attribute vec2 uv2;
W/GeckoConsole(22240): 47: #ifdef USE_COLOR
W/GeckoConsole(22240): 48:  attribute vec3 color;
W/GeckoConsole(22240): 49: #endif
W/GeckoConsole(22240): 50: #ifdef USE_MORPHTARGETS
W/GeckoConsole(22240): 51:  attribute vec3 morphTarget0;
W/GeckoConsole(22240): 52:  attribute vec3 morphTarget1;
W/GeckoConsole(22240): 53:  attribute vec3 morphTarget2;
W/GeckoConsole(22240): 54:  attribute vec3 morphTarget3;
W/GeckoConsole(22240): 55:  #ifdef USE_MORPHNO
W/GeckoConsole(22240): [JavaScript Warning: "THREE.WebGLShader: gl.getShaderInfoLog() null 1: precision highp float;
W/GeckoConsole(22240): 2: precision highp int;
W/GeckoConsole(22240): 3: 
W/GeckoConsole(22240): 4: 
W/GeckoConsole(22240): 5: #define MAX_DIR_LIGHTS 2
W/GeckoConsole(22240): 6: #define MAX_POINT_LIGHTS 1
W/GeckoConsole(22240): 7: #define MAX_SPOT_LIGHTS 0
W/GeckoConsole(22240): 8: #define MAX_HEMI_LIGHTS 1
W/GeckoConsole(22240): 9: #define MAX_SHADOWS 0
W/GeckoConsole(22240): 10: 
W/GeckoConsole(22240): 11: 
W/GeckoConsole(22240): 12: 
W/GeckoConsole(22240): 13: #define GAMMA_FACTOR 2
W/GeckoConsole(22240): 14: 
W/GeckoConsole(22240): 15: 
W/GeckoConsole(22240): 16: #define USE_MAP
W/GeckoConsole(22240): 17: 
W/GeckoConsole(22240): 18: 
W/GeckoConsole(22240): 19: 
W/GeckoConsole(22240): 20: 
W/GeckoConsole(22240): 21: 
W/GeckoConsole(22240): 22: 
W/GeckoConsole(22240): 23: 
W/GeckoConsole(22240): 24: 
W/GeckoConsole(22240): 25: 
W/GeckoConsole(22240): 26: 
W/GeckoConsole(22240): 27: 
W/GeckoConsole(22240): 28: 
W/GeckoConsole(22240): 29: 
W/GeckoConsole(22240): 30: 
W/GeckoConsole(22240): 31: 
W/GeckoConsole(22240): 32: 
W/GeckoConsole(22240): 33: 
W/GeckoConsole(22240): 34: 
W/GeckoConsole(22240): 35: 
W/GeckoConsole(22240): 36: 
W/GeckoConsole(22240): 37: uniform mat4 viewMatrix;
W/GeckoConsole(22240): 38: uniform vec3 cameraPosition;
W/GeckoConsole(22240): 39: uniform vec3 diffuse;
W/GeckoConsole(22240): 40: uniform float opacity;
W/GeckoConsole(22240): 41: #define PI 3.14159
W/GeckoConsole(22240): 42: #define PI2 6.28318
W/GeckoConsole(22240): 43: #define RECIPROCAL_PI2 0.15915494
W/GeckoConsole(22240): 44: #define LOG2 1.442695
W/GeckoConsole(22240): 45: #define EPSILON 1e-6
W/GeckoConsole(22240): 46: 
W/GeckoConsole(22240): 47: float square( in float a ) { return a*a; }
W/GeckoConsole(22240): 48: vec2  square( in vec2 a )  { return vec2( a.x*a.x, a.y*a.y ); }
W/GeckoConsole(22240): 49: vec3  square( in vec3 a )  { return vec3( a.x*a.x, a.y*a.y, a.z*a.z ); }
W/GeckoConsole(22240): 50: vec4  square( in vec4 a )  { return vec4( a.x*a.x, a.y*a.y, a.z*a.z, a.w*a.w ); }
W/GeckoConsole(22240): 51: float saturate( in float a ) { return clamp( a
E/GeckoConsole(22240): [JavaScript Error: "TypeError: Argument 2 of WebGLRenderingContext.attachShader does not implement interface WebGLShader." {file: "http://lightyear.fm/js_ly/build/production.min.js" line: 11}]
D/GeckoHealthRec(22240): Recording session end: P
V/GeckoHealthRec(22240): Recorded session entry for env 3, current is 3
D/GeckoSessInfo(22240): Recording session done: 1437663874105
D/GeckoBrowserProvider(22240): Expiring history.
D/GeckoBrowserProvider(22240): Expiring thumbnails.
I/GeckoHealth(22240): fennec :: HealthReportBroadcastService :: Registering HealthReportPruneService.
I/GeckoHealth(22240): fennec :: BackgroundService :: Setting inexact repeating alarm for interval 86400000
I/GeckoCrashReporter(23505): moving /data/data/org.mozilla.fennec/files/mozilla/nrfz7zlg.default/minidumps/2005312b-52ae-c40f-1b43ce07-4a33807d.dmp to /data/data/org.mozilla.fennec/files/mozilla/Crash Reports/pending/2005312b-52ae-c40f-1b43ce07-4a33807d.dmp
I/GeckoCrashReporter(23505): moving /data/data/org.mozilla.fennec/files/mozilla/nrfz7zlg.default/minidumps/2005312b-52ae-c40f-1b43ce07-4a33807d.extra to /data/data/org.mozilla.fennec/files/mozilla/Crash Reports/pending/2005312b-52ae-c40f-1b43ce07-4a33807d.extra
D/GeckoSharedPrefs(23505): Current version = 1, prefs version = 1
D/GeckoHardwareUtils(23564): HardwareUtils already inited.

@miketaylr
Copy link
Member

It seems to crash @ E/GeckoConsole(22240): [JavaScript Error: "TypeError: Argument 2 of WebGLRenderingContext.attachShader does not implement interface WebGLShader." {file: "http://lightyear.fm/js_ly/build/production.min.js" line: 11}]. That said, we should move this over to Bugzilla: https://bugzilla.mozilla.org/show_bug.cgi?id=1186926.

You can follow along there.

@miketaylr miketaylr changed the title lightyear.fm - see bug description lightyear.fm - WebGL crash. Jul 23, 2015
@karlcow karlcow added this to the duplicate milestone Oct 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants