[chimerax-users] Save image error

Zhe Wang anchorwz at googlemail.com
Tue Feb 16 09:18:50 PST 2021


Hi,

I am trying to generate an image for a tomogram (1.6G).
It can run through if I use a value that produces 33651412 triangles. But
if I use my target level value, it will need 825273846 triangles and it
threw the following error:
(I am wondering if this is an edge case and how should that be dealt with
if I want the image at my target level value?)


Many thanks,
Zhe

PS: MacOS 11.01.1 with ChimeraX 0.9

Executing: save image test.map_z.jpeg supersample 3 width 1200 height 1200
Traceback (most recent call last):
  File
"/nfs/public/rw/pdbe/httpd-em/software/chimerax/opt/UCSF/ChimeraX/lib/python3.7/site-packages/ChimeraX_main.py",
line 734, in init
    commands.run(sess, 'open %s' % arg)
  File
"/nfs/public/rw/pdbe/httpd-em/software/chimerax/opt/UCSF/ChimeraX/lib/python3.7/site-packages/chimerax/core/commands/run.py",
line 31, in run
    results = command.run(text, log=log)
  File
"/nfs/public/rw/pdbe/httpd-em/software/chimerax/opt/UCSF/ChimeraX/lib/python3.7/site-packages/chimerax/core/commands/cli.py",
line 2632, in run
    result = ci.function(session, **kw_args)
  File
"/nfs/public/rw/pdbe/httpd-em/software/chimerax/opt/UCSF/ChimeraX/lib/python3.7/site-packages/chimerax/core/commands/open.py",
line 64, in open
    path_models = session.models.open(paths, format=format, name=name, **kw)
  File
"/nfs/public/rw/pdbe/httpd-em/software/chimerax/opt/UCSF/ChimeraX/lib/python3.7/site-packages/chimerax/core/models.py",
line 604, in open
    session, filenames, format=format, name=name, **kw)
  File
"/nfs/public/rw/pdbe/httpd-em/software/chimerax/opt/UCSF/ChimeraX/lib/python3.7/site-packages/chimerax/core/io.py",
line 477, in open_multiple_data
    models, status = open_data(session, fspec, format=format, name=name,
**kw)
  File
"/nfs/public/rw/pdbe/httpd-em/software/chimerax/opt/UCSF/ChimeraX/lib/python3.7/site-packages/chimerax/core/io.py",
line 431, in open_data
    models, status = open_func(*args, **kw)
  File
"/nfs/public/rw/pdbe/httpd-em/software/chimerax/opt/UCSF/ChimeraX/lib/python3.7/site-packages/chimerax/core/scripting.py",
line 115, in open_command_script
    run(session, text)
  File
"/nfs/public/rw/pdbe/httpd-em/software/chimerax/opt/UCSF/ChimeraX/lib/python3.7/site-packages/chimerax/core/commands/run.py",
line 31, in run
    results = command.run(text, log=log)
  File
"/nfs/public/rw/pdbe/httpd-em/software/chimerax/opt/UCSF/ChimeraX/lib/python3.7/site-packages/chimerax/core/commands/cli.py",
line 2632, in run
    result = ci.function(session, **kw_args)
  File
"/nfs/public/rw/pdbe/httpd-em/software/chimerax/opt/UCSF/ChimeraX/lib/python3.7/site-packages/chimerax/core/commands/save.py",
line 61, in save
    fmt.export(session, filename, fmt.nicknames[0], **kw)
  File
"/nfs/public/rw/pdbe/httpd-em/software/chimerax/opt/UCSF/ChimeraX/lib/python3.7/site-packages/chimerax/core/io.py",
line 213, in export
    result = self.export_func(session, path, **kw)
  File
"/nfs/public/rw/pdbe/httpd-em/software/chimerax/opt/UCSF/ChimeraX/lib/python3.7/site-packages/chimerax/core/image.py",
line 150, in save_image
    transparent_background=transparent_background)
  File
"/nfs/public/rw/pdbe/httpd-em/software/chimerax/opt/UCSF/ChimeraX/lib/python3.7/site-packages/chimerax/core/graphics/view.py",
line 434, in image
    self.draw(c, drawings, swap_buffers = False)
  File
"/nfs/public/rw/pdbe/httpd-em/software/chimerax/opt/UCSF/ChimeraX/lib/python3.7/site-packages/chimerax/core/graphics/view.py",
line 162, in draw
    self._draw_scene(camera, drawings)
  File
"/nfs/public/rw/pdbe/httpd-em/software/chimerax/opt/UCSF/ChimeraX/lib/python3.7/site-packages/chimerax/core/graphics/view.py",
line 192, in _draw_scene
    shadow, multishadow = self._compute_shadowmaps(opaque_drawings +
transparent_drawings, camera)
  File
"/nfs/public/rw/pdbe/httpd-em/software/chimerax/opt/UCSF/ChimeraX/lib/python3.7/site-packages/chimerax/core/graphics/view.py",
line 541, in _compute_shadowmaps
    shadow_enabled = r.shadow.use_shadow_map(camera, drawings,
self._shadow_bounds)
  File
"/nfs/public/rw/pdbe/httpd-em/software/chimerax/opt/UCSF/ChimeraX/lib/python3.7/site-packages/chimerax/core/graphics/opengl.py",
line 1272, in use_shadow_map
    draw_depth(r, sdrawings, opaque_only = not
r.material.transparent_cast_shadows)
  File
"/nfs/public/rw/pdbe/httpd-em/software/chimerax/opt/UCSF/ChimeraX/lib/python3.7/site-packages/chimerax/core/graphics/drawing.py",
line 1413, in draw_depth
    draw_opaque(r, drawings)
  File
"/nfs/public/rw/pdbe/httpd-em/software/chimerax/opt/UCSF/ChimeraX/lib/python3.7/site-packages/chimerax/core/graphics/drawing.py",
line 1394, in draw_opaque
    _draw_multiple(drawings, renderer, Drawing.OPAQUE_DRAW_PASS)
  File
"/nfs/public/rw/pdbe/httpd-em/software/chimerax/opt/UCSF/ChimeraX/lib/python3.7/site-packages/chimerax/core/graphics/drawing.py",
line 1405, in _draw_multiple
    d.draw(renderer, draw_pass)
  File
"/nfs/public/rw/pdbe/httpd-em/software/chimerax/opt/UCSF/ChimeraX/lib/python3.7/site-packages/chimerax/core/graphics/drawing.py",
line 698, in draw
    self.draw_self(renderer, draw_pass)
  File
"/nfs/public/rw/pdbe/httpd-em/software/chimerax/opt/UCSF/ChimeraX/lib/python3.7/site-packages/chimerax/core/graphics/drawing.py",
line 705, in draw_self
    self._draw_geometry(renderer, opaque_only = any_transp)
  File
"/nfs/public/rw/pdbe/httpd-em/software/chimerax/opt/UCSF/ChimeraX/lib/python3.7/site-packages/chimerax/core/graphics/drawing.py",
line 770, in _draw_geometry
    ds.draw(self.display_style)
  File
"/nfs/public/rw/pdbe/httpd-em/software/chimerax/opt/UCSF/ChimeraX/lib/python3.7/site-packages/chimerax/core/graphics/drawing.py",
line 1575, in draw
    eb.draw_elements(etype, ni)
  File
"/nfs/public/rw/pdbe/httpd-em/software/chimerax/opt/UCSF/ChimeraX/lib/python3.7/site-packages/chimerax/core/graphics/opengl.py",
line 2483, in draw_elements
    GL.glDrawElementsInstanced(element_type, ne, GL.GL_UNSIGNED_INT, eo,
ninst)
  File "src/latebind.pyx", line 32, in
OpenGL_accelerate.latebind.LateBind.__call__
  File "src/wrapper.pyx", line 318, in
OpenGL_accelerate.wrapper.Wrapper.__call__
  File "src/wrapper.pyx", line 311, in
OpenGL_accelerate.wrapper.Wrapper.__call__
  File
"/nfs/public/rw/pdbe/httpd-em/software/chimerax/opt/UCSF/ChimeraX/lib/python3.7/site-packages/PyOpenGL-3.1.3b2-py3.7.egg/OpenGL/platform/baseplatform.py",
line 409, in __call__
    return self( *args, **named )
  File "src/errorchecker.pyx", line 53, in
OpenGL_accelerate.errorchecker._ErrorChecker.glCheckError
OpenGL.error.GLError: GLError(
err = 1281,
description = b'invalid value',
baseOperation = glDrawElementsInstanced,
pyArgs = (
GL_TRIANGLES,
2475821538,
GL_UNSIGNED_INT,
None,
1,
),
cArgs = (
GL_TRIANGLES,
2475821538,
GL_UNSIGNED_INT,
None,
1,
),
cArguments = (
GL_TRIANGLES,
2475821538,
GL_UNSIGNED_INT,
None,
1,
)
)

ReplyForward
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimerax-users/attachments/20210216/f2d45612/attachment-0001.html>


More information about the ChimeraX-users mailing list