[Paraview] [Non-DoD Source] Re: ResetCamera throwing bad_alloc
Utkarsh Ayachit
utkarsh.ayachit at kitware.com
Fri May 12 11:09:49 EDT 2017
Joe,
I suspect there is indeed some data corruption going on. Do you have a
debug build? Or can you share the data with me? Let's see where the
exception is being thrown that will illuminate the problem.
Utkarsh
On Thu, May 11, 2017 at 6:17 PM, Hennessey, Joseph G CTR USARMY RDECOM ARL
(US) <joseph.g.hennessey2.ctr at mail.mil> wrote:
> Utkarsh,
>
> It does not crash when it is commented out.
>
> It is trying to read an ExodusII file
>
> # create a new 'ExodusIIReader
> test_data = ExodusIIReader(FileName=path)
>
> # show data in view
> test_Display = Show(test_data, renderView1)
>
> but does not crash until ResetCamera is called.
>
> So, I guess the problem is with the ExodusIIReader,
> and just doesn't manifest until the ResetCamera,
> triggers an update to the pipeline. I know the data
> is okay as I can read it with another version of ParaView
> 5.3.0 on the same system.
>
> Thanks,
>
> Joe
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Joseph G. Hennessey Ph.D., SAIC
> Team SAIC
> Army Research Lab
> DOD Supercomputing Resource Center
> Aberdeen Proving Ground, MD 21005
> Voice: 410-278-3619
> Fax: 410-278-8799
> Email: joseph.g.hennessey2.ctr at mail.mil
>
>
> -----Original Message-----
> From: Utkarsh Ayachit [mailto:utkarsh.ayachit at kitware.com]
> Sent: Thursday, May 11, 2017 3:44 PM
> To: Hennessey, Joseph G CTR USARMY RDECOM ARL (US)
> <joseph.g.hennessey2.ctr at mail.mil>
> Cc: paraview at paraview.org
> Subject: [Non-DoD Source] Re: [Paraview] ResetCamera throwing bad_alloc
>
> All active links contained in this email were disabled. Please verify the
> identity of the sender, and confirm the authenticity of all links contained
> within the message prior to copying and pasting the address to a Web
> browser.
>
>
> ________________________________
>
>
> Joe,
>
> Do you see the error if you comment out all the "#Show stuff in
> renderView1" part?
>
> Utkarsh
>
> On Thu, May 11, 2017 at 3:13 PM, Hennessey, Joseph G CTR USARMY RDECOM ARL
> (US) <joseph.g.hennessey2.ctr at mail.mil <
> Caution-mailto:joseph.g.hennessey2.ctr at mail.mil > > wrote:
>
>
> 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
>
>
> _______________________________________________
> Powered by Caution-www.kitware.com < Caution-
> http://www.kitware.com >
>
> Visit other Kitware open-source projects at
> Caution-http://www.kitware.com/opensource/opensource.html <
> Caution-http://www.kitware.com/opensource/opensource.html >
>
> Please keep messages on-topic and check the ParaView Wiki at:
> Caution-http://paraview.org/Wiki/ParaView <
> Caution-http://paraview.org/Wiki/ParaView >
>
> Search the list archives at: Caution-http://markmail.org/
> search/?q=ParaView <
> Caution-http://markmail.org/search/?q=ParaView >
>
> Follow this link to subscribe/unsubscribe:
> Caution-http://public.kitware.com/mailman/listinfo/paraview <
> Caution-http://public.kitware.com/mailman/listinfo/paraview >
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20170512/a426f0ec/attachment.html>
More information about the ParaView
mailing list