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

An error message when open the page on a web browser #6

Open
zhouliuling opened this issue Aug 25, 2020 · 10 comments
Open

An error message when open the page on a web browser #6

zhouliuling opened this issue Aug 25, 2020 · 10 comments
Assignees

Comments

@zhouliuling
Copy link

zhouliuling commented Aug 25, 2020

When I've configured it, the running code prompts me to open the web page, but when I open page on the Web Server, I get an error message.I want to know how to solve this problem.Thank you very much.

  • Error message:
  • Running on http://0.0.0.0:5555/ (Press CTRL+C to quit)
    121.248.49.86 - - [25/Aug/2020 16:30:53] "GET / HTTP/1.1" 200 -
    Debugging middleware caught exception in streamed response at a point where response headers were already sent.
    Traceback (most recent call last):
    File "/home/anaconda3/lib/python3.7/site-packages/werkzeug/wsgi.py", line 506, in next
    return self._next()
    File "/home/anaconda3/lib/python3.7/site-packages/werkzeug/wrappers/base_response.py", line 45, in _iter_encoded
    for item in iterable:
    File "/root/project/MonoPort/RTL/main.py", line 476, in main_loop
    renderer = AlbedoRender(width=256, height=256, multi_sample_rate=1)
    File "/root/project/MonoPort/monoport/lib/render/gl/Render.py", line 64, in init
    self._init_shader()
    File "/root/project/MonoPort/monoport/lib/render/gl/AlbedoRender.py", line 6, in _init_shader
    self.shader = Shader(vs_file='albedo.vs', fs_file='albedo.fs', gs_file=None)
    File "/root/project/MonoPort/monoport/lib/render/gl/Shader.py", line 35, in init
    shaders.compileShader(vp_code, gl.GL_VERTEX_SHADER),
    File "/home/anaconda3/lib/python3.7/site-packages/OpenGL/GL/shaders.py", line 226, in compileShader
    shaderType,
    RuntimeError: ("Shader compile failure (0): b'0:1(10): error: GLSL 3.30 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.40, 1.00 ES, and 3.00 ES\n'", [b'#version 330 core\nlayout (location = 0) in vec3 a_Position;\nlayout (location = 1) in vec2 a_TextureCoord;\n\nout vec2 TextureCoord;\n\nuniform mat4 ModelMat;\nuniform mat4 PerspMat;\n\nvoid main()\n{\n\tgl_Position = PerspMat * ModelMat * vec4(a_Position, 1.0);\n TextureCoord = a_TextureCoord;\n}'], GL_VERTEX_SHADER)
    The page is always in this state:
    monoport
@YuliangXiu
Copy link
Contributor

Try to use PyOpenGL with a higher version, ours is 3.1.5.

@zhouliuling
Copy link
Author

zhouliuling commented Aug 31, 2020

Try to use PyOpenGL with a higher version, ours is 3.1.5.

I have tried to upgrade the Opengl version to 3.1.5, but this error still exists, I hope to get other guidance. Thank you.

Error:
RuntimeError: ("Shader compile failure (0): b'0:1(10): error: GLSL 3.30 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.40, 1.00 ES, and 3.00 ES\n'", [b'#version 330 core\nlayout (location = 0) in vec3 a_Position;\nlayout (location = 1) in vec2 a_TextureCoord;\n\nout vec2 TextureCoord;\n\nuniform mat4 ModelMat;\nuniform mat4 PerspMat;\n\nvoid main()\n{\n\tgl_Position = PerspMat * ModelMat * vec4(a_Position, 1.0);\n TextureCoord = a_TextureCoord;\n}'], GL_VERTEX_SHADER)

@zhouliuling
Copy link
Author

Try to use PyOpenGL with a higher version, ours is 3.1.5.

Hello, After I tried to add MESA_L_VERSION_OVERRIDE=3.3 in the running line, my page can be opened without error, but the page is still in the state of "waiting for ··". How can I solve this problem?

image

The print log is as follows:

loading networkG from ./data/PIFu/net_G ...
loading networkC from ./data/PIFu/net_C ...
initialize data streamer ...
Using cache found in /root/.cache/torch/hub/NVIDIA_DeepLearningExamples_torchhub
Using cache found in /root/.cache/torch/hub/NVIDIA_DeepLearningExamples_torchhub
***********************************************
 * Serving Flask app "main" (lazy loading)
 * Environment: production
   WARNING: This is a development server. Do not use it in a production deployment.
   Use a production WSGI server instead.
 * Debug mode: on
 * Running on http://0.0.0.0:5555/ (Press CTRL+C to quit)
172.17.0.1 - - [10/Oct/2020 10:36:04] "GET / HTTP/1.1" 200 -
172.17.0.1 - - [10/Oct/2020 10:36:48] "GET /favicon.ico HTTP/1.1" 404 -
0it [00:00, ?it/s]
172.17.0.1 - - [10/Oct/2020 10:36:48] "GET /video_feed HTTP/1.1" 200 -
172.17.0.1 - - [10/Oct/2020 10:40:48] "GET / HTTP/1.1" 200 -
172.17.0.1 - - [10/Oct/2020 10:41:47] "GET /favicon.ico HTTP/1.1" 404 -
0it [00:00, ?it/s]
172.17.0.1 - - [10/Oct/2020 10:41:47] "GET /video_feed HTTP/1.1" 200 -

@jiandandian2
Copy link

jiandandian2 commented Nov 22, 2020

@zhouliuling
i have the same problem, and add MESA_GL_VERSION_OVERRIDE=3.3, the problem was disappeared.
But got another problem:

OpenGL.error.GLError: GLError(
err = 1286,
description = b'invalid framebuffer operation',
baseOperation = glClear,
cArguments = (16640,)

have u worked it recently?
image

@jiandandian2
Copy link

@zhouliuling
I have solve the problem, the point is vnc server OpenGL connot connet to Nvidia, i google so many times but never solve the bug.
so u need to run it on your local host, and everything is OK.
image

@baopingli
Copy link

i run ok, but the web shows nothing, and "my render" windows show nothing

@baopingli baopingli mentioned this issue Mar 19, 2021
@decadeheart
Copy link

@zhouliuling
I have solve the problem, the point is vnc server OpenGL connot connet to Nvidia, i google so many times but never solve the bug.
so u need to run it on your local host, and everything is OK.
image

I also meet the same problem. And I tried it on my local host , it was the same error.Can you tell me how to fix it.
我也遇到了同样的问题。我在我的本地主机上试了一下,还是同样的错误。你能告诉我怎么修理吗?

@baopingli
Copy link

a usb camera is must

@shuodehaoa
Copy link

I also meet this problem,the webpage has nothing...what i can do to solve this problem?
35727437
35766890

@helenacorreia
Copy link

@shuodehaoa Have you managed to solve the problem? It's just that I have the same error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants