Skip to content
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

PoissonReconClient segfault with --multi 32 and default --pDepth 5 #282

Open
nh2 opened this issue Nov 2, 2023 · 0 comments
Open

PoissonReconClient segfault with --multi 32 and default --pDepth 5 #282

nh2 opened this issue Nov 2, 2023 · 0 comments

Comments

@nh2
Copy link

nh2 commented Nov 2, 2023

Are there some unenforced requirements on the sizes of --multi and --pDepth?

I notice that --multi 32 --pDepth 5 crashes with a segfault, but the problem goes away with --multi 32 --pDepth 6.

--multi 31 also crashes, --multi 30 does not.

Details:

Bin/Linux/PoissonReconServer --in cloud.ply --out niklas-mesh-2.ply --verbose 3 --density --depth 8 --samplesPerNode 1 --parallel 3 --tempDir ~/tmp/niklas-poisson-server-tmp2 --port 1234 --count 32

Bin/Linux/PoissonReconClient --port 1234 --parallel 3 --multi 32 --localTempDir /tmp/niklas-tmp2
[RECEIVE 1]    2 KiB: 0.0 (s)
[PROCESS 1]         : 102.0 (s), 76.0 (MB) / 76.7 (MB)
[SEND    1]  768   B: 0.0 (s)
[CACHE   1]         : 0.4 (s) , 501 (MB)
# Set interpolation constraints: 0.0 (s)
All Nodes / Active Nodes / Ghost Nodes: 60689 / 60640 / 49
#                Finalized tree: 0.0 (s)
#  Set interior FEM constraints: 0.0 (s)
#Set interior point constraints: 0.0 (s)
Command terminated by signal 11
141.30user 11.25system 2:37.59elapsed 96%CPU (0avgtext+0avgdata 78588maxresident)k
(gdb) 
#0  0x000000000059418e in SparseNodeData<ProjectiveData<Point<float>, float>, UIntPack<0u, 0u, 0u> >::_trim (endIndex=57184, this=0x9f7868) at Src/FEMTree.h:440
#1  FEMTree<3u, float>::trimToDepth<ProjectiveData<Point<float>, float>, 0u, 0u, 0u> (this=this@entry=0x9f7718, data=warning: RTTI symbol not found for class 'SparseNodeData<ProjectiveData<Point<float>, float>, UIntPack<0u, 0u, 0u> >'
..., coarseDepth=<optimized out>) at Src/FEMTree.inl:767
#2  0x0000000000747779 in PoissonReconClientServer::Client<float, 3u, (BoundaryType)2, 1u>::_process3 (this=this@entry=0x9f76b0, clientReconInfo=..., cumulativePointWeight=..., state3=..., 
    profiler=...) at Src/PoissonRecon.client.inl:885
#3  0x000000000084c413 in PoissonReconClientServer::Client<float, 3u, (BoundaryType)2, 1u>::_phase3 (profiler=..., state3=..., clientReconInfo=..., this=0x9f76b0)
    at Src/PoissonRecon.client.inl:716
#4  PoissonReconClientServer::RunClient<float, 3u, (BoundaryType)2, 1u> (serverSockets=std::vector of length 32, capacity 32 = {...}, sampleMS=<optimized out>, 
    localTempDir="/tmp/niklas-tmp2") at Src/PoissonRecon.client.inl:255
#5  0x000000000086e5e0 in Reconstruct<float, 3u, (BoundaryType)2, 1u> (serverSockets=std::vector of length 32, capacity 32 = {...}) at Src/PoissonReconClient.cpp:108
#6  Reconstruct<float, 3u, (BoundaryType)2> (degree=<optimized out>, serverSockets=std::vector of length 32, capacity 32 = {...}) at Src/PoissonReconClient.cpp:128
#7  0x00000000008775a0 in Reconstruct<float, 3u> (serverSockets=std::vector of length 32, capacity 32 = {...}, degree=<optimized out>, bType=<optimized out>)
    at Src/PoissonReconClient.cpp:140
#8  Reconstruct<float, 3u> (serverSockets=std::vector of length 32, capacity 32 = {...}) at Src/PoissonReconClient.cpp:156
#9  0x000000000041bb58 in main (argc=<optimized out>, argv=<optimized out>) at Src/PoissonReconClient.cpp:196

(gdb) p endIndex 
$1 = 57184

(gdb) p _indices
$3 = {static _BlockSize = 1024, static _Mask = 1023, _defaultValue = 0, _allocatedBlocks = 0, _reservedBlocks = 10, _size = 0, _blocks = 0x9f2fb0}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant