Forum

Author Topic: 'context mismatch in svga_sampler_view_destroy' Error.  (Read 5181 times)

March Castle

  • Newbie
  • *
  • Posts: 24
    • View Profile
'context mismatch in svga_sampler_view_destroy' Error.
« on: March 20, 2020, 04:55:12 PM »
Hello,

One of my copies of Metashapes frequently freezes between workflow processing steps and I am forced to close the program.
When I do, the console prints the following: 'context mismatch in svga_sampler_view_destroy' - see attachment for screenshot.

I think this is related to the graphics card, but i'm not sure which steps to take to avoid this happening.
Has anyone else had this come up?

Thanks for your help, March.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15067
    • View Profile
Re: 'context mismatch in svga_sampler_view_destroy' Error.
« Reply #1 on: March 20, 2020, 08:14:15 PM »
Hello March,

Can you please provide a copy of the starting lines from the Console pane of the newly opened Metashape application?

Also please specify, if you are working on the machine remotely or working in the virtual environment?
Best regards,
Alexey Pasumansky,
Agisoft LLC

March Castle

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: 'context mismatch in svga_sampler_view_destroy' Error.
« Reply #2 on: March 24, 2020, 01:41:47 PM »
Hello Alexey,

Here is the console output upon starting the program:

2020-03-24 10:36:43 Agisoft Metashape Professional Version: 1.6.1 build 10009 (64 bit)
2020-03-24 10:36:43 Platform: Windows
2020-03-24 10:36:43 CPU: Intel(R) Xeon(R) Gold 6134 CPU @ 3.20GHz (server)
2020-03-24 10:36:43 CPU family: 6 model: 85 signature: 50654h
2020-03-24 10:36:43 RAM: 72.0 GB
2020-03-24 10:36:43 OpenGL Vendor: VMware, Inc.
2020-03-24 10:36:43 OpenGL Renderer: SVGA3D; build: RELEASE;  LLVM;
2020-03-24 10:36:43 OpenGL Version: 3.0 Mesa 18.0.0 (git-6949e96035)
2020-03-24 10:36:43 Maximum Texture Size: 8192
2020-03-24 10:36:43 Quad Buffered Stereo: not enabled
2020-03-24 10:36:43 ARB_vertex_buffer_object: supported
2020-03-24 10:36:43 ARB_texture_non_power_of_two: supported
2020-03-24 10:36:43 Using simple console. Rich console can be enabled in Preferences dialog.

Yes - I am operating Metashapes remotely in a virtual environment.

Thanks for your help.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15067
    • View Profile
Re: 'context mismatch in svga_sampler_view_destroy' Error.
« Reply #3 on: March 24, 2020, 03:25:23 PM »
Hello March,

Is there any GPU installed on the remote machine?

And whether running Metashape in ANGLE compatibility mode solves the problem:
Code: [Select]
metashape.exe --opengl angle
Best regards,
Alexey Pasumansky,
Agisoft LLC

March Castle

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: 'context mismatch in svga_sampler_view_destroy' Error.
« Reply #4 on: March 24, 2020, 04:27:15 PM »
Yes a GPU is installed.
How do I run Metashape in ANGLE compatibility mode using the code included in your previous reply?

March Castle

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: 'context mismatch in svga_sampler_view_destroy' Error.
« Reply #5 on: March 24, 2020, 05:00:02 PM »
Found the article on your site about how to run in ANGLE mode. Now I get this error:

renderer_qgl.cpp line 615: glDrawArrays(encodePrimitiveType(type), (GLsizei) offset, (GLsizei) countElements(type, count)) failed: Out of memory

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15067
    • View Profile
Re: 'context mismatch in svga_sampler_view_destroy' Error.
« Reply #6 on: March 24, 2020, 05:14:31 PM »
Hello March,

Which GPU is installed on the remote machine and what is the driver version?
Best regards,
Alexey Pasumansky,
Agisoft LLC

March Castle

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: 'context mismatch in svga_sampler_view_destroy' Error.
« Reply #7 on: March 24, 2020, 05:26:10 PM »
NVIDIA Tesla M60 with Driver ver. 26.21.14.4122 (released 07/11/2019)

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15067
    • View Profile
Re: 'context mismatch in svga_sampler_view_destroy' Error.
« Reply #8 on: March 24, 2020, 08:12:06 PM »
So do you observe OpenGL errors in the Console right after starting the application without loading any project or if they start to appear when you open some project and switch to mesh view mode, for example?

If there's a possibility I suggest to install the newer driver version, looks like there is driver released this March.
Best regards,
Alexey Pasumansky,
Agisoft LLC