# ParaView crashes，if loading compiled sample PropertyWidgets

**URL:** https://discourse.paraview.org/t/paraview-crashes-if-loading-compiled-sample-propertywidgets/1488
**Category:** ParaView Support
**Created:** [March 19, 2019, 3:22am UTC](https://discourse.paraview.org/t/paraview-crashes-if-loading-compiled-sample-propertywidgets/1488 "2019-03-19T03:22:22Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![InsightJing](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/i/b782af/32.png) [@InsightJing](https://discourse.paraview.org/u/InsightJing)
#### Post date: [March 19, 2019, 3:22am UTC](https://discourse.paraview.org/t/paraview-crashes-if-loading-compiled-sample-propertywidgets/1488/1 "2019-03-19T03:22:22Z")

</div>

Hi all,

I found a problem that examples\Plugins\PropertyWidgets result in crash for paraview release x64 version.  
Below is my steps to reproduce the problem.

- Compile ParaView with CMAKE and vs2015 for release x64 version. All features are OK.
- Compile sample located in examples\Plugins\PropertyWidgets for release x64 version.
- Startup compiled paraview, then loading the ExamplesPropertyWidgets.dll, paraview crashing. (Both paraview and ExamplesPropertyWidgets.dll are release version.)
- It is confusing that debug version works fine when loading debug ExamplesPropertyWidgets.dll.

My environment is as follows:

- ParaView version: 5.5.2 and 5.6.0
- Qt version: 5.9.6
- CMake version: 3.13.0
- Compiler: VS2015

regards.

---

<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: [March 20, 2019, 9:10am UTC](https://discourse.paraview.org/t/paraview-crashes-if-loading-compiled-sample-propertywidgets/1488/2 "2019-03-20T09:10:34Z")

</div>

Hello, welcome to the community.

are you able to build and load the following default plugins:  
LagrangianParticleTracker  
StreamLinesRepresentation

Thanks,

---

<div class="post-metadata">

### Author: ![InsightJing](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/i/b782af/32.png) [@InsightJing](https://discourse.paraview.org/u/InsightJing)
#### Post date: [March 21, 2019, 2:14am UTC](https://discourse.paraview.org/t/paraview-crashes-if-loading-compiled-sample-propertywidgets/1488/3 "2019-03-21T02:14:00Z")

</div>

Hi, Thank you for your reply.

The plugins LagrangianParticleTracker and StreamLinesRepresentation can be loaded normally in both Debug and Release modes, as shown below:  
 ![image](https://discourse.paraview.org/uploads/default/original/2X/3/346c78347855d7507af64f5ee1680901ebfd5ba2.png)

THanks!

---

<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: [March 21, 2019, 8:16am UTC](https://discourse.paraview.org/t/paraview-crashes-if-loading-compiled-sample-propertywidgets/1488/4 "2019-03-21T08:16:06Z")

</div>

These plugins are based on the same architecture as the example plugin.

What errors are you having ?

---

<div class="post-metadata">

### Author: ![InsightJing](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/i/b782af/32.png) [@InsightJing](https://discourse.paraview.org/u/InsightJing)
#### Post date: [March 21, 2019, 9:26am UTC](https://discourse.paraview.org/t/paraview-crashes-if-loading-compiled-sample-propertywidgets/1488/5 "2019-03-21T09:26:17Z")

</div>

For the **Debug** version of ParaView, select the **Debug** version of PropertyWidgets via Tools-\>Manage Plugins, and the loading is **successful** ;  
For the **Release** version of ParaView, select the **Release** version of PropertyWidgets via Tools-\>Manage Plugins, and ParaView **crashes** and exits.

THanks!

---

<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: [March 21, 2019, 9:27am UTC](https://discourse.paraview.org/t/paraview-crashes-if-loading-compiled-sample-propertywidgets/1488/6 "2019-03-21T09:27:27Z")

</div>

can you try building with ninja instead of visual studio ?

---

<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: [April 11, 2019, 12:32pm UTC](https://discourse.paraview.org/t/paraview-crashes-if-loading-compiled-sample-propertywidgets/1488/8 "2019-04-11T12:32:28Z")

</div>

I have not been able to reproduce your issue. Release plugin on release ParaView works great.
