# Stream tracer with custom source seeding bug

**URL:** https://discourse.paraview.org/t/stream-tracer-with-custom-source-seeding-bug/6816
**Category:** ParaView Support
**Created:** [March 29, 2021, 9:52am UTC](https://discourse.paraview.org/t/stream-tracer-with-custom-source-seeding-bug/6816 "2021-03-29T09:52:46Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![nopech](https://discourse.paraview.org/user_avatar/discourse.paraview.org/nopech/32/2137_2.png) [@nopech](https://discourse.paraview.org/u/nopech)
#### Post date: [March 29, 2021, 9:52am UTC](https://discourse.paraview.org/t/stream-tracer-with-custom-source-seeding-bug/6816/1 "2021-03-29T09:52:46Z")

</div>

I heavily rely on the filter “Stream Tracer With Custom Source” and have been using it for a while now. However there seems to be an annoying bug with the seeding. I use the “Mask Points” filter for the seeding. If there are multiple stream tracer with custom source in the pipeline on the same dataset but with different seedings, ParaView seems to be confused. For one stream tracer the streamlines starts to seed from the other (hidden) stream tracer.

 ![paraview_stream_tracer_bug](https://discourse.paraview.org/uploads/default/original/2X/7/773e4076b27a5f33664e3166a6c49daaaacb3c47.png)  
In the attached picture is an example. The stream tracer 2 uses the black dots as seeding. But there are some streamlines generated from the seeding of stream tracer 1. If I play with the settings (e.g. max. streamline length, vectors), the behavior changes and sometimes i manage to make it look right but then the streamlines are too short etc.

I’m using ParaView v5.7.0 in parallel (server/client, osmesa). I don’t know if this behavior is the same with newer versions. I would have to upgrade the server. If somebody could confirm this is known and solved in later releases, i would upgrade.

---

<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 29, 2021, 9:54am UTC](https://discourse.paraview.org/t/stream-tracer-with-custom-source-seeding-bug/6816/2 "2021-03-29T09:54:46Z")

</div>

Not a known issues. Please share data and a state file if possible.

---

<div class="post-metadata">

### Author: ![nopech](https://discourse.paraview.org/user_avatar/discourse.paraview.org/nopech/32/2137_2.png) [@nopech](https://discourse.paraview.org/u/nopech)
#### Post date: [March 29, 2021, 11:01am UTC](https://discourse.paraview.org/t/stream-tracer-with-custom-source-seeding-bug/6816/3 "2021-03-29T11:01:54Z")

</div>

Thanks for your reply. Unfortunately I can’t share the date showed in the picture.

If I have time i’ll try to reproduce this behavior with a smaller data set that I can share.

---

<div class="post-metadata">

### Author: ![nopech](https://discourse.paraview.org/user_avatar/discourse.paraview.org/nopech/32/2137_2.png) [@nopech](https://discourse.paraview.org/u/nopech)
#### Post date: [August 12, 2021, 10:18am UTC](https://discourse.paraview.org/t/stream-tracer-with-custom-source-seeding-bug/6816/4 "2021-08-12T10:18:49Z")

</div>

Hi Mathieu

The behavior is totally reproducible. I made a smaller example i can share. Also I updated to v.5.9.0 but nothing changed.  
It happens if multiple StreamTracerWithCustomSource are present in the pipeline. The first few stream tracers are fine then suddenly the weird behavior appears not only on the newly added stream tracers: (picture with just one stream tracer visible)

 ![streamline_test_wrong_source](https://discourse.paraview.org/uploads/default/original/2X/4/4ee92ac687530956bf942be9d267349a5b1450fb.png)

I uploaded the case (more or less a (decomposed) OpenFOAM structure) here. It is also a state included. I did use ParaView 5.9.0 in server/client (osmesa) with 60 cores.  
[https://1drv.ms/u/s!AgwmahYOeg1ygrod1-eoV8rX7wDD3Q?e=lkzxQB](https://1drv.ms/u/s!AgwmahYOeg1ygrod1-eoV8rX7wDD3Q?e=lkzxQB)

Let me know what’s going on  
Thank you!

---

<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: [August 12, 2021, 12:29pm UTC](https://discourse.paraview.org/t/stream-tracer-with-custom-source-seeding-bug/6816/5 "2021-08-12T12:29:28Z")

</div>

Unable to reproduce in client/server with 2 cores with ParaView 5.9.1.

Could you try on your side ?

---

<div class="post-metadata">

### Author: ![nopech](https://discourse.paraview.org/user_avatar/discourse.paraview.org/nopech/32/2137_2.png) [@nopech](https://discourse.paraview.org/u/nopech)
#### Post date: [August 12, 2021, 1:51pm UTC](https://discourse.paraview.org/t/stream-tracer-with-custom-source-seeding-bug/6816/6 "2021-08-12T13:51:11Z")

</div>

Updating the server to 5.9.1 is currently not possible. I tried using only 2 cores as you did and it also did not reproduce the behavior.

I noticed the StreamTracerWithCustomSource works a lot better if the dataset is reconstructed. I was using the built-in OpenFOAM reader and my data was still decomposed. I find the option to load a decomposed case very nice but it seems to cause problems.  
Reconstructing the case and load the reconstructed case with 60 cores seems to fix the problems. Also no crashes anymore. Before I had frequent crashes with the StreamTracerWithCustomSource filter.

Is there any chance to find out what’s wrong with the decomposed reader?

---

<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: [August 12, 2021, 1:59pm UTC](https://discourse.paraview.org/t/stream-tracer-with-custom-source-seeding-bug/6816/7 "2021-08-12T13:59:14Z")

</div>

> [@nopech](#):
>
> Is there any chance to find out what’s wrong with the decomposed reader?

I’d first need to be able to reproduce the issue. Let me know if you find a setup to reproduce the issue with 8 pvserver max.

---

<div class="post-metadata">

### Author: ![nopech](https://discourse.paraview.org/user_avatar/discourse.paraview.org/nopech/32/2137_2.png) [@nopech](https://discourse.paraview.org/u/nopech)
#### Post date: [August 12, 2021, 2:59pm UTC](https://discourse.paraview.org/t/stream-tracer-with-custom-source-seeding-bug/6816/8 "2021-08-12T14:59:21Z")

</div>

I’m afraid I can’t give you a state file that will show you the behavior right away. However I’m sure you can provoke it on your side:  
Start 8 pvservers, load the attached state file (uses the data from previous post). The state has just one StreamTracerWithCustomSource filter and it will probably load without problems. Keep adding more StreamTracerWithCustomSource filters to the pipeline by using the MaskPoints2…8 as seeding elements. At some point you will notice streamlines which are broken/interrupted, the previously shown wrong seeding location or what always happens on my side at some point: ParaView will crash even there is plenty of memory left on both sides, server and client.

Let me know if this works for you.  
[state\_streamlines.pvsm](https://discourse.paraview.org/uploads/short-url/nvCQHHMUY5v7hUAw3fGOnimWiOW.pvsm) (2.6 MB)

---

<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: [November 26, 2021, 11:01am UTC](https://discourse.paraview.org/t/stream-tracer-with-custom-source-seeding-bug/6816/9 "2021-11-26T11:01:57Z")

</div>

@timothee.chabat : I believe you fixed that, right ?

---

<div class="post-metadata">

### Author: ![timothee.chabat](https://discourse.paraview.org/user_avatar/discourse.paraview.org/timothee.chabat/32/5729_2.png) [@timothee.chabat](https://discourse.paraview.org/u/timothee.chabat)
#### Post date: [November 26, 2021, 12:08pm UTC](https://discourse.paraview.org/t/stream-tracer-with-custom-source-seeding-bug/6816/10 "2021-11-26T12:08:00Z")

</div>

Yes it should be fixed on ParaView master. I don’t think it will be available on ParaView 5.10 though, maybe in 5.10.1.

---

<div class="post-metadata">

### Author: ![nopech](https://discourse.paraview.org/user_avatar/discourse.paraview.org/nopech/32/2137_2.png) [@nopech](https://discourse.paraview.org/u/nopech)
#### Post date: [November 29, 2021, 2:49pm UTC](https://discourse.paraview.org/t/stream-tracer-with-custom-source-seeding-bug/6816/11 "2021-11-29T14:49:00Z")

</div>

Was an issue created based on my post? Is there a link to the issue tracking where I can find some deteails what happened?  
Thank you very much!

---

<div class="post-metadata">

### Author: ![timothee.chabat](https://discourse.paraview.org/user_avatar/discourse.paraview.org/timothee.chabat/32/5729_2.png) [@timothee.chabat](https://discourse.paraview.org/u/timothee.chabat)
#### Post date: [November 29, 2021, 3:26pm UTC](https://discourse.paraview.org/t/stream-tracer-with-custom-source-seeding-bug/6816/12 "2021-11-29T15:26:45Z")

</div>

Yes of course, my bad for not linking them ! It was actually not based on your post but here are the links :

- issue : [https://gitlab.kitware.com/paraview/paraview/-/issues/21056](https://gitlab.kitware.com/paraview/paraview/-/issues/21056)
- VTK actual fix MR : [https://gitlab.kitware.com/vtk/vtk/-/merge\_requests/8469](https://gitlab.kitware.com/vtk/vtk/-/merge_requests/8469)
- ParaView porting : [https://gitlab.kitware.com/paraview/paraview/-/merge\_requests/5249](https://gitlab.kitware.com/paraview/paraview/-/merge_requests/5249)

---

<div class="post-metadata">

### Author: ![nopech](https://discourse.paraview.org/user_avatar/discourse.paraview.org/nopech/32/2137_2.png) [@nopech](https://discourse.paraview.org/u/nopech)
#### Post date: [May 19, 2022, 7:31am UTC](https://discourse.paraview.org/t/stream-tracer-with-custom-source-seeding-bug/6816/13 "2022-05-19T07:31:36Z")

</div>

Pardon my ignorance, how can I check if the fix made it into a release?  
I’m wondering if this is fixed in v5.10.1

Thanks!

---

<div class="post-metadata">

### Author: ![timothee.chabat](https://discourse.paraview.org/user_avatar/discourse.paraview.org/timothee.chabat/32/5729_2.png) [@timothee.chabat](https://discourse.paraview.org/u/timothee.chabat)
#### Post date: [May 19, 2022, 9:06am UTC](https://discourse.paraview.org/t/stream-tracer-with-custom-source-seeding-bug/6816/14 "2022-05-19T09:06:41Z")

</div>

Well you can test it by hand but there is no easy way of knowing if a fix has been backported to the release branch afaik. Although you can check the MR and see if it has been mentioned in another MR, but this is not the case here (although it may have been forgotten).

[EDIT] ParaView 5.11 should be out in around 2 months if you want

---

<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: [May 19, 2022, 10:25am UTC](https://discourse.paraview.org/t/stream-tracer-with-custom-source-seeding-bug/6816/15 "2022-05-19T10:25:12Z")

</div>

There is two ways to know if something is in the release.

1. Check the release notes.

While not exhaustive, the release notes contains many information:  
[https://www.kitware.com/paraview-5-10-1-release-notes/](https://www.kitware.com/paraview-5-10-1-release-notes/)

1. Check the git repoistory

If you know which file has been fixed, you can check in the git repository.

Using both techniques shows that this fix is not present in 5.10.1.

As @timothee.chabat remarked, this fix will be present in 5.11.
