-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Complex data sets can cause stackoverflow in arcGrowth subroutine in FTM #194
Comments
@CharlesGueunet:
can you look into this once you're done with EGPGV?
cheers
--
Dr Julien Tierny
CNRS Researcher
Sorbonne Universite
http://lip6.fr/Julien.Tierny
…On Saturday, March 2, 2019 11:34:29 PM CET klacansky wrote:
**Describe the bug**
FTM in TTK crashes on a more complicated data set with a stack overflow in the arcGrowth.
**To Reproduce**
Steps to reproduce the behavior:
1. Get data here http://sci.utah.edu/~klacansky/data/ftm/magnetic_reconnection_512x512x512_float32.vti
2. Run `ttkFTMTreeCmd -i magnetic_reconnection_512x512x512_float32.vti -T 1`
3. The code will crash (stack overflow, can be seen with gdb or asan)
**Expected behavior**
A correct computation of a superlevel set merge tree.
**System:**
- OS: CentOS Linux release 7.5.1804 (Core)
- Compiler: GCC 7.3.1
- Boost 1.69, VTK 8.2.0
**Additional context**
Increasing the stack size for OMP worker threads helps (e.g., OMP_STACKSIZE = 128M) and using a separate stack on a heap would probably be more robust.
|
The sort crashes, probably some other overflow as the value of
|
I fixed overflows (ones I found) and tested on a 2k^3 zeros field. The OpenMP stack overflow still needs work. |
note that you'll need to build ttk with TTK_ENABLE_64BIT_IDS=ON (advanced cmake option) to run properly on a 2,048^3 grid (identifiers are likely to overflow the range of the default integers).
thanks for letting us know if that helps.
cheers
--
Dr Julien Tierny
CNRS Researcher
Sorbonne Universite
http://lip6.fr/Julien.Tierny
…On Monday, 8 April 2019 21:56:05 CEST klacansky wrote:
I fixed overflows (ones I found) and tested on a 2k^3 zeros field. The OpenMP stack overflow still needs work.
|
For the OpenMP stack overflow, I was able to solve the issue locally using the |
I was able to run a zero field success fully (64 bits enabled). @CharlesGueunet I would document the need to increase the stack size (or somehow do a check and return error if stack fails to grow, much easier with explicit stack). |
Describe the bug
FTM in TTK crashes on a more complicated data set with a stack overflow in the arcGrowth.
To Reproduce
Steps to reproduce the behavior:
ttkFTMTreeCmd -i magnetic_reconnection_512x512x512_float32.vti -T 1
Expected behavior
A correct computation of a superlevel set merge tree.
System:
Additional context
Increasing the stack size for OMP worker threads helps (e.g., OMP_STACKSIZE = 128M) and using a separate stack on a heap would probably be more robust.
The text was updated successfully, but these errors were encountered: