WebGL não funciona nem no Firefox nem no Chrome

1

Estou usando o Ubuntu 13.10 e finalmente consegui instalar os drivers corretos para minha placa nVidia (usando bumblebee) e o glxinfo finalmente mostra que eu suporto o OpenGL 4.20. Por fim, para o projeto em que estou trabalhando, preciso que o WebGL seja executado no Chrome ou no Firefox (prefiro usar no Chrome) para testar o programa que estou desenvolvendo. Eu acredito que isso pode ser um conflito com o meu Intel HD5000 on-board, talvez?

Quando tento executar o arquivo .html WebGL no Firefox, recebo isso no terminal:

(process:8315): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
    OpenGL Warning: glFlushVertexArrayRangeNV not found in mesa table
    OpenGL Warning: glVertexArrayRangeNV not found in mesa table
    OpenGL Warning: glCombinerInputNV not found in mesa table
    OpenGL Warning: glCombinerOutputNV not found in mesa table
    OpenGL Warning: glCombinerParameterfNV not found in mesa table
    OpenGL Warning: glCombinerParameterfvNV not found in mesa table
    OpenGL Warning: glCombinerParameteriNV not found in mesa table
    OpenGL Warning: glCombinerParameterivNV not found in mesa table
    OpenGL Warning: glFinalCombinerInputNV not found in mesa table
    OpenGL Warning: glGetCombinerInputParameterfvNV not found in mesa table
    OpenGL Warning: glGetCombinerInputParameterivNV not found in mesa table
    OpenGL Warning: glGetCombinerOutputParameterfvNV not found in mesa table
    OpenGL Warning: glGetCombinerOutputParameterivNV not found in mesa table
    OpenGL Warning: glGetFinalCombinerInputParameterfvNV not found in mesa table
    OpenGL Warning: glGetFinalCombinerInputParameterivNV not found in mesa table
    OpenGL Warning: glDeleteFencesNV not found in mesa table
    OpenGL Warning: glFinishFenceNV not found in mesa table
    OpenGL Warning: glGenFencesNV not found in mesa table
    OpenGL Warning: glGetFenceivNV not found in mesa table
    OpenGL Warning: glIsFenceNV not found in mesa table
    OpenGL Warning: glSetFenceNV not found in mesa table
    OpenGL Warning: glTestFenceNV not found in mesa table
    ATTENTION: default value of option force_s3tc_enable overridden by environment.
    OpenGL Warning: Unimplemented glxMakeCurrent call with GLXPixmap passed, unexpected things might happen.
    OpenGL Warning: Failed to get windows geometry for 0x7ff7e0b8d800, try xwininfo
    OpenGL version detected: 210
    OpenGL Warning: Unknown program 0
    OpenGL version detected: 210
    OpenGL Warning: Unknown program 0
    OpenGL version detected: 210
    OpenGL Warning: Unknown program 0
    OpenGL Warning: Unimplemented glxMakeCurrent call with GLXPixmap passed, unexpected things might happen.
    OpenGL Warning: Failed to get windows geometry for 0x7ff7d14b3800, try xwininfo
    OpenGL version detected: 210
    OpenGL Warning: Unknown program 0
    OpenGL Warning: Unimplemented glxMakeCurrent call with GLXPixmap passed, unexpected things might happen.
    OpenGL Warning: Failed to get windows geometry for 0x7ff7d14b3800, try xwininfo
    OpenGL version detected: 210
    OpenGL Warning: Unknown program 0

E no Chrome, recebo o seguinte:

OpenGL Warning: glFlushVertexArrayRangeNV not found in mesa table
OpenGL Warning: glVertexArrayRangeNV not found in mesa table
OpenGL Warning: glCombinerInputNV not found in mesa table
OpenGL Warning: glCombinerOutputNV not found in mesa table
OpenGL Warning: glCombinerParameterfNV not found in mesa table
OpenGL Warning: glCombinerParameterfvNV not found in mesa table
OpenGL Warning: glCombinerParameteriNV not found in mesa table
OpenGL Warning: glCombinerParameterivNV not found in mesa table
OpenGL Warning: glFinalCombinerInputNV not found in mesa table
OpenGL Warning: glGetCombinerInputParameterfvNV not found in mesa table
OpenGL Warning: glGetCombinerInputParameterivNV not found in mesa table
OpenGL Warning: glGetCombinerOutputParameterfvNV not found in mesa table
OpenGL Warning: glGetCombinerOutputParameterivNV not found in mesa table
OpenGL Warning: glGetFinalCombinerInputParameterfvNV not found in mesa table
OpenGL Warning: glGetFinalCombinerInputParameterivNV not found in mesa table
OpenGL Warning: glDeleteFencesNV not found in mesa table
OpenGL Warning: glFinishFenceNV not found in mesa table
OpenGL Warning: glGenFencesNV not found in mesa table
OpenGL Warning: glGetFenceivNV not found in mesa table
OpenGL Warning: glIsFenceNV not found in mesa table
OpenGL Warning: glSetFenceNV not found in mesa table
OpenGL Warning: glTestFenceNV not found in mesa table
ATTENTION: default value of option force_s3tc_enable overridden by environment.
OpenGL Warning: glXChooseFBConfig returning NULL, due to attrib=0x2, next=0x20
[8501:8501:0119/161214:ERROR:gl_surface_glx.cc(739)] glXChooseFBConfig failed.
[8501:8501:0119/161214:ERROR:gpu_info_collector.cc(27)] gfx::GLContext::CreateOffscreenGLSurface failed
[8501:8501:0119/161214:ERROR:sandbox_linux.cc(142)] InitializeSandbox() called with multiple threads in process gpu-process
OpenGL Warning: glXChooseFBConfig returning NULL, due to attrib=0x2, next=0x20
[8501:8501:0119/161214:ERROR:gl_surface_glx.cc(739)] glXChooseFBConfig failed.
[7:7:0119/161214:ERROR:command_buffer_proxy_impl.cc(164)] Failed to initialize command buffer service.
OpenGL Warning: glXChooseFBConfig returning NULL, due to attrib=0x2, next=0x20
[8501:8501:0119/161214:ERROR:gl_surface_glx.cc(739)] glXChooseFBConfig failed.
[7:7:0119/161214:ERROR:command_buffer_proxy_impl.cc(164)] Failed to initialize command buffer service.

Meu cartão nVidia é um 765GTXM. Quando executo exatamente o mesmo arquivo no Windows, tudo corre bem.

    
por Sasha Fonseca 19.01.2014 / 17:13

1 resposta

0

Eu estava tendo problemas semelhantes com o Chromium (e Chrome quando baixei isso). Acontece que o WebGL ainda é classificado como experimental e, por isso, está desativado por padrão.

Para ativá-lo, digite o seguinte endereço na barra de endereço:

chrome://flags

e pressione enter (ou atualizar).

Em seguida, selecione o link "Ativar" em Substituir lista de renderização de software

É necessário fechar o Chrome (ou o Chromium) para que as alterações entrem em vigor.

Ordenado. =)

    
por Tamsyn Michael 14.09.2014 / 09:12