Forum

Author Topic: renderer_qgl.cpp out of memory error during densification  (Read 4523 times)

khedar012

  • Newbie
  • *
  • Posts: 11
    • View Profile
renderer_qgl.cpp out of memory error during densification
« on: August 20, 2019, 01:57:22 PM »
Hi Agisoft Team,
     We have the following error continuosly during densification when we run our dataset. The densification completes successfully though. We did not get this error on our previous datasets. The only thing which changed was the software update(1.5.4 build 8885) recently. The dataset contains 700 numbers of 100MP images with 80/70 Overlap/Sidelap. We used almost the same dataset before the update but had not this problem. The System has 384 GB of RAM, 2 RTX 2080 Ti GPUs. The system RAM usage never goes over 175 GB also we dont see over usage of GPU RAM. I have attached a log of the processing. Could you please help us.


Code: [Select]
renderer_qgl.cpp line 539: glDrawArrays(encodePrimitiveType(type), (GLsizei) offset, (GLsizei) countElements(type, count)) failed: Out of memory
renderer_qgl.cpp line 731: glDisableVertexAttribArray(program_shaded_a_vertex) failed: Out of memory
renderer_qgl.cpp line 732: glDisableVertexAttribArray(program_shaded_a_normal) failed: Out of memory
renderer_qgl.cpp line 733: glDisableVertexAttribArray(program_shaded_a_color) failed: Out of memory
renderer_qgl.cpp line 618: glVertexAttribPointer(program_shaded_a_vertex, 3, 0x1406, 0, stride, (float *) vertices + 1) failed: Out of memory
renderer_qgl.cpp line 619: glEnableVertexAttribArray(program_shaded_a_vertex) failed: Out of memory
renderer_qgl.cpp line 621: glVertexAttrib3f(program_shaded_a_normal, 0, 0, 0) failed: Out of memory
renderer_qgl.cpp line 622: glDisableVertexAttribArray(program_shaded_a_normal) failed: Out of memory
renderer_qgl.cpp line 625: glVertexAttribPointer(program_shaded_a_color, 4, 0x1401, 1, stride, (float *) vertices) failed: Out of memory
renderer_qgl.cpp line 626: glEnableVertexAttribArray(program_shaded_a_color) failed: Out of memory
renderer_qgl.cpp line 707: glUniformMatrix4fv(program_u_mvp_matrix, 1, 0, (GLfloat *) mvp_matrix.ptr()) failed: Out of memory
renderer_qgl.cpp line 712: glUniformMatrix3fv(program_u_normal_matrix, 1, 0, (GLfloat *) normal_matrix.ptr()) failed: Out of memory
renderer_qgl.cpp line 720: glUniform1f(program_u_point_size, point_size_) failed: Out of memory
renderer_qgl.cpp line 539: glDrawArrays(encodePrimitiveType(type), (GLsizei) offset, (GLsizei) countElements(type, count)) failed: Out of memory
renderer_qgl.cpp line 731: glDisableVertexAttribArray(program_shaded_a_vertex) failed: Out of memory
renderer_qgl.cpp line 732: glDisableVertexAttribArray(program_shaded_a_normal) failed: Out of memory
renderer_qgl.cpp line 733: glDisableVertexAttribArray(program_shaded_a_color) failed: Out of memory
renderer_qgl.cpp line 264: glDisable(0x0BE2) failed: Out of memory
renderer_qgl.cpp line 273: glDisable(0x0B44) failed: Out of memory
renderer_qgl.cpp line 289: glEnable(0x0B71) failed: Out of memory
renderer_qgl.cpp line 290: glDepthFunc(0x0201) failed: Out of memory
renderer_qgl.cpp line 384: glViewport(x, y, width, height) failed: Out of memory
renderer_qgl.cpp line 282: glDisable(0x0C11) failed: Out of memory
renderer_qgl.cpp line 242: glClearColor((color & 0xFF) / 255.f, ((color >> 8) & 0xFF) / 255.f, ((color >> 16) & 0xFF) / 255.f, ((color >> 24) & 0xFF) / 255.f) failed: Out of memory
renderer_qgl.cpp line 243: glClear(0x00004000 | 0x00000100) failed: Out of memory
renderer_qgl.cpp line 289: glEnable(0x0B71) failed: Out of memory
renderer_qgl.cpp line 290: glDepthFunc(0x0201) failed: Out of memory
renderer_qgl.cpp line 414: glBindTexture(0x0DE1, 0) failed: Out of memory
renderer_qgl.cpp line 618: glVertexAttribPointer(program_shaded_a_vertex, 3, 0x1406, 0, stride, (float *) vertices + 1) failed: Out of memory
renderer_qgl.cpp line 619: glEnableVertexAttribArray(program_shaded_a_vertex) failed: Out of memory
renderer_qgl.cpp line 621: glVertexAttrib3f(program_shaded_a_normal, 0, 0, 0) failed: Out of memory
renderer_qgl.cpp line 622: glDisableVertexAttribArray(program_shaded_a_normal) failed: Out of memory
renderer_qgl.cpp line 625: glVertexAttribPointer(program_shaded_a_color, 4, 0x1401, 1, stride, (float *) vertices) failed: Out of memory
renderer_qgl.cpp line 626: glEnableVertexAttribArray(program_shaded_a_color) failed: Out of memory
renderer_qgl.cpp line 707: glUniformMatrix4fv(program_u_mvp_matrix, 1, 0, (GLfloat *) mvp_matrix.ptr()) failed: Out of memory
renderer_qgl.cpp line 712: glUniformMatrix3fv(program_u_normal_matrix, 1, 0, (GLfloat *) normal_matrix.ptr()) failed: Out of memory
renderer_qgl.cpp line 720: glUniform1f(program_u_point_size, point_size_) failed: Out of memory
renderer_qgl.cpp line 539: glDrawArrays(encodePrimitiveType(type), (GLsizei) offset, (GLsizei) countElements(type, count)) failed: Out of memory
renderer_qgl.cpp line 731: glDisableVertexAttribArray(program_shaded_a_vertex) failed: Out of memory
renderer_qgl.cpp line 732: glDisableVertexAttribArray(program_shaded_a_normal) failed: Out of memory
renderer_qgl.cpp line 733: glDisableVertexAttribArray(program_shaded_a_color) failed: Out of memory
renderer_qgl.cpp line 414: glBindTexture(0x0DE1, 0) failed: Out of memory
renderer_qgl.cpp line 289: glEnable(0x0B71) failed: Out of memory
renderer_qgl.cpp line 290: glDepthFunc(0x0201) failed: Out of memory
renderer_qgl.cpp line 292: glDisable(0x0B71) failed: Out of memory
renderer_qgl.cpp line 293: glDepthFunc(0x0207) failed: Out of memory
renderer_qgl.cpp line 349: glLineWidth(w) failed: Out of memory

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15177
    • View Profile
Re: renderer_qgl.cpp out of memory error during densification
« Reply #1 on: August 20, 2019, 02:01:11 PM »
Hello khedar012,

The errors are related to OpenGL rendering, not to the processing.

Are you using remote connection to the computer or if the machine is operated locally? In case of remote connection, which tool is used for remote access?
Best regards,
Alexey Pasumansky,
Agisoft LLC

khedar012

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: renderer_qgl.cpp out of memory error during densification
« Reply #2 on: August 20, 2019, 02:33:34 PM »
Hi Alexey, thanks for the quick response. Indeed we use Microsoft Remote Desktop since the Workstation is put in a room with Air Conditioning to keep it from crashing. But we did not have this problem before even though we used Remote Desktop.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15177
    • View Profile
Re: renderer_qgl.cpp out of memory error during densification
« Reply #3 on: August 20, 2019, 06:55:30 PM »
Hello khedar012,

Do you remember, which version of PhotoScan/Metashape has been used, where the issue has not been observed?

You can try to consider other remote connection options, like TeamViewer or VNC.
Best regards,
Alexey Pasumansky,
Agisoft LLC

khedar012

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: renderer_qgl.cpp out of memory error during densification
« Reply #4 on: August 21, 2019, 12:25:25 PM »
Hi Alexey, thanks for your response. I don't remember the version number but normally we update the software as soon as we get an update notification. So it might most probably the previous version.

Thanks again.

conrado

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: renderer_qgl.cpp out of memory error during densification
« Reply #5 on: September 15, 2019, 10:55:41 AM »
Hi khear012 and Alexey.
I'm having exactly the same problem. Usually this problem has been happening to me when I have performed operations with relatively complex drawing (like textured mesh).
But it seems that with last update (version 1.5.5 build 9097 64 bits), problem increases. I had never suffered this problem before during photo alignment but now I have.
Like khedar012 I am using Microsoft Remote Desktop. I agree that is a problem of rendering of MRD. But I feel comfortable with this application and I wish I could continue using it.
Could someone give me some clue on how to configure MRD to solve this problem?
Otherwise, what would be the best remote control application to solve this problem?
I include a log text file with the problem. As you can see alignment process ends well, but fails as soon as the application tries to redraw.

conrado

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: renderer_qgl.cpp out of memory error during densification
« Reply #6 on: September 21, 2019, 09:23:52 AM »
I managed to solve the problem.
The computer had no updated NVidia driver.
Updating driver version from 416.81 to 436.30 the problem seems to have been resolved. Now I am not having rendering problems even if I use Windows remote desktop.