[Paraview] ResetCamera throwing bad_alloc

Hennessey, Joseph G CTR USARMY RDECOM ARL (US) joseph.g.hennessey2.ctr at mail.mil
Thu May 11 15:13:45 EDT 2017


Hello,

I am getting an error on running a python script with pvpython and ParaView
5.3.0 on linux.

# get active view
renderView1 = GetActiveViewOrCreate('RenderView')

# uncomment following to set a specific view size
renderView1.ViewSize = [1200, 600]

# Properties modified on renderView1
renderView1.Background = [1.0, 1.0, 1.0]

#Show stuff in renderView1
.
.
.

# reset view to fit data
renderView1.ResetCamera()

ResetCamera() is throwing an error

terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc

Has anyone seen this particular error before with just calling ResetCamera()
on a renderView?

Thanks,

Joe

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Joseph G. Hennessey Ph.D., SAIC
Team SAIC
Army Research Lab
DOD Supercomputing Resource Center

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5615 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/paraview/attachments/20170511/85caa568/attachment.bin>


More information about the ParaView mailing list