WebGL inverted in Chrome Canary on Angle DX11

208 views
Skip to first unread message

Alecazam

unread,
Jul 27, 2016, 11:01:27 AM7/27/16
to WebGL Dev List
We are now seeing an inverted canvas in our app in the latest Chrome Canary.  Chrome does not exhibit this.  In both cases, (Nvidia and Intel) the Angle DX11 path was taken.  I have a Nvidia GTX 950, and a user is on Intel HD Graphics (again we need the vendor/card id in the string).  These are latest graphics.

That includes scroll bars, rulers, and the canvas itself.  Were there recent changes that would have caused this?  I ran some other WebGL examples, and they look fine, but they're not using glCopyTexSubImage2D like our editor does. 

Alecazam

unread,
Jul 27, 2016, 11:06:49 AM7/27/16
to WebGL Dev List
So Chrome, Firefox Nightly, and Edge on the same system are fine.

Miao, Qiankun

unread,
Jul 27, 2016, 11:11:32 AM7/27/16
to webgl-d...@googlegroups.com

Do you have a small test case to reproduce this issue?

--
You received this message because you are subscribed to the Google Groups "WebGL Dev List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webgl-dev-lis...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Alecazam

unread,
Jul 27, 2016, 11:38:26 AM7/27/16
to WebGL Dev List
No, we just had reports about it from users today and yesterday (on Linux).  I've given account access to Figma with Ken and other WebGL members.   Given this and the DX9 bugs that I suspect with glCopyTexSubImage2D, I'm leaning towards just not calling that function.  I should be able to emulate it with a shader.

Alecazam

unread,
Jul 28, 2016, 11:12:42 AM7/28/16
to WebGL Dev List
We have even more people reporting this as of yesterday (probably the lastest Chrome Canary update).  

On Linux, we're seeing the following on Ubuntu 16.0.4 on a users system on app startup with existing Chrome.  "WebGL hit a snag" message and the following error.  This isn't something we call, so it's an internal issue.  This is with the default open source GPU driver (Noveau), so you might see more reports on this.  The same system and driver works with Firefox.  The same driver and Chrome work on Linux Fedora.  I'll file these on the Chrome bug channel, but thought the info might be useful.

vendor:"NVIDIA Corporation" renderer:"NVS 4200M/PCIe/SSE2"

GL_INVALID_OPERATION : glGenSyncTokenCHROMIUM: fence sync must be flushed before generating sync token

WebGL: CONTEXT_LOST_WEBGL: loseContext: context lost

Andre Weissflog

unread,
Jul 29, 2016, 3:14:51 AM7/29/16
to WebGL Dev List
FYI, the current Chrome Canary (54.0.2811.0 canary 64-bit) is completely borked for me on Windows7, it cannot even open basic webpages, but goes directly into Aw-Snap pages (with or without WebGL, doesn't matter), looks to me like a badly broken build made it through.

Zhenyao Mo

unread,
Jul 29, 2016, 2:44:57 PM7/29/16
to webgl-d...@googlegroups.com
Folks,

Thanks for bring this to our attention. Please file a chrome bug at
crbug.com with repro steps and about:gpu content, so we could look
into this.

Mo

Alecazam

unread,
Aug 1, 2016, 3:59:06 PM8/1/16
to WebGL Dev List
So I replaced copyTexSubImage2D with a copy shader that fixes all of our D3D9 bugs with that routine.   It still doesn't fix the flipped canvas in Canary though.  We render upside down due to GL's goofy lower left origin, and then flip the canvas when we copy to the backbuffer.  All of our content - scroll bars, etc are upside down now in Canary on Windows (and no other browser).  It doesn't matter about the DX9 vs. DX11 backend.  Both seem to be broken now.  We've had reports from about 5 users since last Tuesday.

Andre Weissflog

unread,
Aug 2, 2016, 3:13:36 AM8/2/16
to WebGL Dev List
Here's a bug report for inverted colors I'm seeing in Windows7 on current Chrome Canary, note however that the problem does not occur in WASM, PNaCl, or in asm.js on OSX:


And a crash-bug where I'm not sure whether it's related to the JS engine or WebGL (this particular asm.js application has been triggering at least one JS engine error in the past, the current crash happens across platforms):


Cheers,
-Floh.
Reply all
Reply to author
Forward
0 new messages