RESOLVED FIXED47914
Hang when passing array into shader compile
https://bugs.webkit.org/show_bug.cgi?id=47914
Summary Hang when passing array into shader compile
Dean Jackson
Reported 2010-10-19 11:12:02 PDT
See the attached file. Notice that I forgot to make the fragment source into a string (I left off the .join("\n")). I get a hang when trying to compile an array, rather than an error.
Attachments
test case (WILL HANG if WebGL is enabled) (1.17 KB, text/html)
2010-10-19 11:12 PDT, Dean Jackson
no flags
Dean Jackson
Comment 1 2010-10-19 11:12:30 PDT
Created attachment 71188 [details] test case (WILL HANG if WebGL is enabled)
Simon Fraser (smfr)
Comment 2 2010-10-19 11:14:26 PDT
Zhenyao Mo
Comment 3 2010-10-19 13:11:52 PDT
Am I the only one that can't view the test case?
Dean Jackson
Comment 4 2010-10-22 10:38:08 PDT
There isn't anything to view in the test case. It simply hangs on OSX Safari. I have not tried in Chrome or other platforms. I don't know if the hang is in webcore or the driver.
Zhenyao Mo
Comment 5 2010-10-22 10:40:24 PDT
(In reply to comment #4) > There isn't anything to view in the test case. It simply hangs on OSX Safari. > > I have not tried in Chrome or other platforms. I don't know if the hang is in webcore or the driver. I mean it's an empty test case. I couldn't download or see the content.
Dean Jackson
Comment 6 2010-10-22 10:50:42 PDT
Are you saying that when you view source there is nothing there? There is definitely 1.17kb of something :) It sounds to me like Chrome (which I assume you're using) doesn't hang, because in Safari you'd immediately get a beach ball and be forced to kill -9. But yes, there is actually no output. I will update this.
Zhenyao Mo
Comment 7 2010-10-22 11:00:37 PDT
OK, I just figured out how to view the source of the test. I could reproduce the hang in Chromium too. I'll have a look at the issue.
Zhenyao Mo
Comment 8 2010-10-22 15:47:17 PDT
The hang is in ANGLE. I'll dig further to the exact cause. cc Alok on this.
Zhenyao Mo
Comment 9 2010-10-22 15:58:56 PDT
OK, here is the issue, JS/V8 will automatically map string arrays to a string, only that ','s are inserted in between. Somehow the below text cause Angle to halt: #ifdef GL_ES,precision mediump float;,#endif,,void main(),{, gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0);,}
Zhenyao Mo
Comment 10 2010-10-22 16:04:22 PDT
Zhenyao Mo
Comment 11 2011-02-01 10:13:36 PST
It's been fixed in ANGLE r506
Note You need to log in before you can comment on or make changes to this bug.