JavaScript Alert - Could not get WebGL context
조회 수: 8 (최근 30일)
이전 댓글 표시
I'm trying to create simple app with App Designer. Adding any Axes causes an error dialog to appear when app is run. Axes are not rendered after the dialog appears. Sometimes app is successfully started at first, but restarting app causes the dialog to appear. Dialog will even appear with only one Axes added to a new app.
Dialog text: "Could not get WebGL context"
I can not resize dialog to see any hidden content.
How can I get more information, why app could not get WebGL context? From where can I configure WebGL for Matlab R2016a or App Designer? Can I use something else than WebGL to render Axes?
I'm using Ubuntu 15.10 with graphic driver '4.2.0 NVIDIA 304.131'.
Resulting page from:
>> ww = matlab.internal.webwindow('http://webglreport.com');
>> ww.show();
indicates that WebGL1 is supported, but WebGL2 is not.
I tried enabling WebGL2 support for firefox, chrome and chromium, and switching preferences->System Web Browser->command. Now each browser indicates support for both WebGL versions, when http://webglreport.com is visited. Still visiting the site from Matlab indicates the same than before.
"opengl info" return:
Version: '4.2.0 NVIDIA 304.131'
Vendor: 'NVIDIA Corporation'
Renderer: 'GeForce GTX 460/PCIe/SSE2'
MaxTextureSize: 16384
Visual: 'Visual 0x27, (RGBA 32 bits (8 8 8 8), Z depth 16 bits, Hardware acceleration, Double buffer, Antialias 8 samples)
Software: 'false'
HardwareSupportLevel: 'full'
SupportsGraphicsSmoothing: 1
SupportsDepthPeelTransparency: 1
SupportsAlignVertexCenters: 1
Extensions: {273x1 cell}
MaxFrameBufferSize: 16384
댓글 수: 3
Marjolein
2017년 1월 4일
Is your problem fixed? If yes, how did you do it? I am experiencing the same issue.
Many thanks!
Jakob Michael Krieger
2017년 2월 27일
Hello, I have the same problem. The output of Mr. Tarkowskis code, is that OpenGL isn´t working right ... But when I start MatLab with the Terminal then comes:
MATLAB is selecting SOFTWARE OPENGL rendering.
and then
>> opengl info
Version: '2.1 Mesa 10.5.2'
Vendor: 'Brian Paul'
Renderer: 'Mesa X11'
MaxTextureSize: 16384
Visual: 'Visual 0x6d, (RGBA 32 bits (8 8 8 8), Z depth 16 bits, Hardware acceleration, Double …'
Software: 'true'
HardwareSupportLevel: 'none'
SupportsGraphicsSmoothing: 0
SupportsDepthPeelTransparency: 1
SupportsAlignVertexCenters: 0
Extensions: {156×1 cell}
MaxFrameBufferSize: 16384
But it doesn't working at all time, too when I start MatLab through
/usr/local/MATLAB/R2016b/bin/glnxa64/MATLAB -desktop
with the Application starter the stringh of opengl info Software is 'false'. What is the problem? I have a Nvidia GTX 970M and for Ubuntu 16.10 the latest nivida-driver (version 370.28) for me ...
I hope you can help me!
Jakob Krieger
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Graphics Performance에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!