# OSPRay crash on startup.

**URL:** https://discourse.paraview.org/t/ospray-crash-on-startup/6501
**Category:** ParaView Support
**Created:** [February 18, 2021, 4:52pm UTC](https://discourse.paraview.org/t/ospray-crash-on-startup/6501 "2021-02-18T16:52:16Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![wascott](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/w/8e8cbc/32.png) [@wascott](https://discourse.paraview.org/u/wascott)
#### Post date: [February 18, 2021, 4:52pm UTC](https://discourse.paraview.org/t/ospray-crash-on-startup/6501/1 "2021-02-18T16:52:16Z")

</div>

I am having OSPRay/ possible VisRTD crashes on a new workstation. This is Linux. ParaView 5.9.0, [paraview.org](http://paraview.org) download. Crashes on initial startup.

This issue does disappear when using the disable Catalyst and VisRTD environment variables.

Would it be possible to enable OSPRay/ VisRTD when used, rather than initial startup?

Dave, email me directly if you want more specific information on this machine.

Thanks,

Alan

VisRTX 0.1.6, using devices:  
0: GRID V100S-4Q (Total: 4.3 GB, Available: 3.1 GB)

Loguru caught a signal: SIGABRT

…

18 0x7f96b5ca597b vtkSMSessionProxyManager::NewProxy(char const\*, char const\*, char const\*) + 203  
17 0x7f96b5ca56d1 vtkSMSessionProxyManager::NewProxy(vtkPVXMLElement\*, char const\*, char const\*, char const\*) + 369  
16 0x7f96abcd7315 vtkSMViewProxy::ReadXMLAttributes(vtkSMSessionProxyManager\*, vtkPVXMLElement\*) + 21  
15 0x7f96b5c6639a vtkSMProxy::ReadXMLAttributes(vtkSMSessionProxyManager\*, vtkPVXMLElement\*) + 666  
14 0x7f96b5c67e77 vtkSMProxy::CreateSubProxiesAndProperties(vtkSMSessionProxyManager\*, vtkPVXMLElement\*) + 343  
13 0x7f96b5c65b2e vtkSMProxy::NewProperty(char const\*, vtkPVXMLElement\*) + 462  
12 0x7f96b5cd8409 vtkSMStringVectorProperty::ReadXMLAttributes(vtkSMProxy\*, vtkPVXMLElement\*) + 25  
11 0x7f96b5ce3497 vtkSMVectorProperty::ReadXMLAttributes(vtkSMProxy\*, vtkPVXMLElement\*) + 23  
10 0x7f96b5c508e4 vtkSMProperty::ReadXMLAttributes(vtkSMProxy\*, vtkPVXMLElement\*) + 6708  
9 0x7f96abc940ae vtkSMRendererDomain::ReadXMLAttributes(vtkSMProperty\*, vtkPVXMLElement\*) + 30  
8 0x7f96abc93c4b vtkSMRendererDomain::Update(vtkSMProperty\*) + 43  
7 0x7f96aa84d948 vtkOSPRayPass::IsBackendAvailable(char const\*) + 24  
6 0x7f96aa81c97f /projects/viz/paraview/ParaView/5.9.0-kw/Linux-cee-rhel7-x86\_64/bin/…/lib/libvtkRenderingRayTracing-pv5.9.so.1(+0x2097f) [0x7f96aa81c97f]  
5 0x7f96aa37e1e3 ospInit + 4067  
4 0x7f964b9bdcf1 ospray::api::ISPCDevice::commit() + 145  
3 0x7f964b4d2864 ISPCDevice\_programCount + 52  
2 0x7f96b9451a68 abort + 328  
1 0x7f96b9450377 gsignal + 55  
0 0x7f96b94503f0 /lib64/libc.so.6(+0x363f0) [0x7f96b94503f0]  
( 3.615s) [paraview] :0 FATL| Signal: SIGABRT  
error: exception occurred: Child aborted

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [February 18, 2021, 4:59pm UTC](https://discourse.paraview.org/t/ospray-crash-on-startup/6501/2 "2021-02-18T16:59:42Z")

</div>

@Dave_DeMarle

---

<div class="post-metadata">

### Author: ![jourdain](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jourdain/32/11_2.png) [@jourdain](https://discourse.paraview.org/u/jourdain)
#### Post date: [February 18, 2021, 5:32pm UTC](https://discourse.paraview.org/t/ospray-crash-on-startup/6501/3 "2021-02-18T17:32:11Z")

</div>

Were you using the following

```auto
$ export VTK_DISABLE_VISRTX=1
$ export VTK_DISABLE_OSPRAY=1

```

Or the one in the doc? Those needs to be fixed. @vbolea

---

<div class="post-metadata">

### Author: ![vbolea](https://discourse.paraview.org/user_avatar/discourse.paraview.org/vbolea/32/4121_2.png) [@vbolea](https://discourse.paraview.org/u/vbolea)
#### Post date: [February 18, 2021, 6:28pm UTC](https://discourse.paraview.org/t/ospray-crash-on-startup/6501/4 "2021-02-18T18:28:12Z")

</div>

Yep, the environmental variable list in the docs was outdated, it was recently updated in master, unfortunately it did not come with the 5.9 release.

I think that Alan was not referring about the env vars not working rather than only initialize those backend when we use them, not when we start ParaView.

I spent sometime in that part of VTK, IMO lazy initialization sounds like a good solution for this, we can survey to see if its possible.

---

<div class="post-metadata">

### Author: ![wascott](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/w/8e8cbc/32.png) [@wascott](https://discourse.paraview.org/u/wascott)
#### Post date: [February 18, 2021, 7:14pm UTC](https://discourse.paraview.org/t/ospray-crash-on-startup/6501/5 "2021-02-18T19:14:16Z")

</div>

Vicente, you are correct. The environment vars work as advertised. BEFORE setting the environment vars, ParaView should not crash on startup.

---

<div class="post-metadata">

### Author: ![Dave\_DeMarle](https://discourse.paraview.org/user_avatar/discourse.paraview.org/dave_demarle/32/27_2.png) [@Dave\_DeMarle](https://discourse.paraview.org/u/Dave_DeMarle)
#### Post date: [February 22, 2021, 3:35pm UTC](https://discourse.paraview.org/t/ospray-crash-on-startup/6501/6 "2021-02-22T15:35:49Z")

</div>

Yes Alan, please do pass along more info to help me diagnose. It would also help to know if 5.8.x starts up and if enabling ray tracing works there. Furthermore it would be good to see if the nightly build crashes on startup. Ben added a change there to avoid the problem in another way. If that doesn’t work I’ll submit an MR to construct the vtkOSPRayPass on demand as you suggest. It should be as simple as changing the vtkNew in vtkPVRenderView to a smartpointer that is assigned on first use.

---

<div class="post-metadata">

### Author: ![Dave\_DeMarle](https://discourse.paraview.org/user_avatar/discourse.paraview.org/dave_demarle/32/27_2.png) [@Dave\_DeMarle](https://discourse.paraview.org/u/Dave_DeMarle)
#### Post date: [February 22, 2021, 3:36pm UTC](https://discourse.paraview.org/t/ospray-crash-on-startup/6501/7 "2021-02-22T15:36:45Z")

</div>

Ben’s change is mac specific, so it is unlikely to help, I’ll work on the patch.

---

<div class="post-metadata">

### Author: ![Dave\_DeMarle](https://discourse.paraview.org/user_avatar/discourse.paraview.org/dave_demarle/32/27_2.png) [@Dave\_DeMarle](https://discourse.paraview.org/u/Dave_DeMarle)
#### Post date: [February 22, 2021, 4:47pm UTC](https://discourse.paraview.org/t/ospray-crash-on-startup/6501/8 "2021-02-22T16:47:51Z")

</div>

[https://gitlab.kitware.com/paraview/paraview/-/merge\_requests/4743](https://gitlab.kitware.com/paraview/paraview/-/merge_requests/4743)

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [October 28, 2021, 8:35am UTC](https://discourse.paraview.org/t/ospray-crash-on-startup/6501/9 "2021-10-28T08:35:55Z")

</div>

I still have this issue on a specific machine: [https://gitlab.kitware.com/paraview/paraview-superbuild/-/issues/201](https://gitlab.kitware.com/paraview/paraview-superbuild/-/issues/201)
