MantisBT - Community
View Issue Details
0024049Community[OCCT] OCCT:Modeling Datapublic2013-06-26 20:012013-06-26 23:45
dc 
ifv 
normalcrash 
newopen 
ALL
[OCCT] 6.6.0 
 
0024049: Crash in BRepOffsetAPI_MakePipe (calls BrepFill_Sweep.cxx L2465 calls TopoDS_Shape.lxx L142)
Good day,

find attached a csv with points which will crash.

BRepOffsetAPI_MakePipe(spine, profile) calls BrepFill_Sweep.cxx at line 2465:
  if ((ipath <= NbPath) && (isec <= NbLaw) &&
  (myFaces->Value(isec, IPath).ShapeType() == TopAbs_FACE))

this calls TopoDS_Shape.lxx at line 142:
  return myTShape->ShapeType();

it works sometimes if you instead use:
BRepOffsetAPI_MakePipe(spine, profile, GeomFill_Trihedron.GeomFill_IsDiscreteTrihedron)

Actually it crashes the jvm which i use to access occ.
My c++ code is surrounded witch a try/catch(Standard_Failure)
but the catch block is never reached.

# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000007feea31c4c7, pid=6772, tid=2612
#
# JRE version: 7.0_21-b11
# Java VM: Java HotSpot(TM) 64-Bit Server VM (23.21-b01 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C [TKBoold.dll+0x1c4c7] TopoDS_Shape::ShapeType+0x37
Create spline from points.csv:
GeomAPI_Interpolate repSpline = new GeomAPI_Interpolate(points, false, 1.E-4);
load tangents for first and last point
first point: 0,0,-1, last point: 0,0,1
perform

create circle with first point and first direction.
as radius use: 6.349999904632568

make wire from spline
make edge from circle

BRepOffsetAPI apiPipe = new BRepOffsetAPI_MakePipe(wireSpline, edgeCircle)


Debug Output on console:
Sngl(1) = 499.833 Length = 2.3448e-007
Sngl(2) = 868.662 Length = 9.78004e-007
Sngl(3) = 885.486 Length = 3.64727e-006
Sngl(4) = 902.313 Length = 1e-005
Sngl(5) = 919.142 Length = 1e-005
Sngl(6) = 935.966 Length = 1e-005
Sngl(7) = 952.793 Length = 1e-005
Sngl(8) = 969.622 Length = 1e-005
Sngl(9) = 986.446 Length = 1e-005
Sngl(10) = 1003.27 Length = 1e-005
Sngl(11) = 1020.1 Length = 1e-005
Sngl(12) = 1036.92 Length = 1e-005
Sngl(13) = 1040.48 Length = 1e-005
Sngl(14) = 1053.75 Length = 1e-005
Sngl(15) = 1057.3 Length = 1e-005
Sngl(16) = 1070.58 Length = 1e-005
Sngl(17) = 1074.13 Length = 1e-005
Sngl(18) = 6189.23 Length = 1e-005
Sngl(19) = 6192.79 Length = 1e-005
Sngl(20) = 6209.61 Length = 1e-005
Sngl(21) = 6226.44 Length = 1e-005
Sngl(22) = 6243.26 Length = 1e-005
Sngl(23) = 6260.09 Length = 1e-005
Sngl(24) = 6276.91 Length = 1e-005
Sngl(25) = 6293.74 Length = 1e-005
Sngl(26) = 6310.56 Length = 1e-005
Sngl(27) = 6327.39 Length = 1e-005
Sngl(28) = 6344.22 Length = 1e-005
Sngl(29) = 6361.04 Length = 7.76884e-006
Sngl(30) = 6377.87 Length = 2.08319e-006
Sngl(31) = 6394.69 Length = 5.57775e-007
Sngl(32) = 6411.52 Length = 1.49566e-007
Sngl(33) = 6482.62 Length = 3.31809e-010
Sngl(34) = 6505.54 Length = 2.73828e-010
Sngl(35) = 6520.51 Length = 5.37284e-010
Sngl(36) = 6568.51 Length = 2.30052e-009
Sngl(37) = 6592.15 Length = 1.67039e-008
Sngl(38) = 6618.75 Length = 2.62684e-009
Sngl(39) = 6667.48 Length = 5.37634e-010
Sngl(40) = 6682.47 Length = 2.73567e-010
Sngl(41) = 6705.35 Length = 3.30448e-010
Sngl(42) = 6776.48 Length = 3.4624e-007
Sngl(43) = 6793.31 Length = 1.29323e-006
Sngl(44) = 6810.14 Length = 4.82606e-006
Sngl(45) = 6826.96 Length = 1e-005
Sngl(46) = 6843.79 Length = 1e-005
Sngl(47) = 6860.62 Length = 1e-005
Sngl(48) = 6877.44 Length = 1e-005
Sngl(49) = 6894.27 Length = 1e-005
Sngl(50) = 6911.09 Length = 1e-005
Sngl(51) = 6927.92 Length = 1e-005
Sngl(52) = 6944.74 Length = 1e-005
Sngl(53) = 6961.57 Length = 1e-005
Sngl(54) = 6978.4 Length = 1e-005
Sngl(55) = 6995.23 Length = 1e-005
Sngl(56) = 6998.78 Length = 1e-005
Sngl(57) = 7469.91 Length = 1e-005
Sngl(58) = 7473.46 Length = 1e-005
Sngl(59) = 7490.29 Length = 1e-005
Sngl(60) = 7507.12 Length = 1e-005
Sngl(61) = 7523.95 Length = 1e-005
Sngl(62) = 7540.77 Length = 1e-005
Sngl(63) = 7557.6 Length = 1e-005
Sngl(64) = 7574.42 Length = 1e-005
Sngl(65) = 7591.25 Length = 1e-005
Sngl(66) = 7608.07 Length = 1e-005
Sngl(67) = 7624.9 Length = 1e-005
Sngl(68) = 7641.73 Length = 9.25871e-006
Sngl(69) = 7658.55 Length = 2.47886e-006
Sngl(70) = 7675.38 Length = 6.647e-007
Sngl(71) = 7692.21 Length = 1.78118e-007
Sngl(72) = 8230.52 Length = 1.37788e-007
Sngl(73) = 8247.35 Length = 5.13853e-007
Sngl(74) = 8264.17 Length = 1.91927e-006
Sngl(75) = 8281 Length = 7.16233e-006
Sngl(76) = 8297.83 Length = 1e-005
Sngl(77) = 8314.65 Length = 1e-005
Sngl(78) = 8331.48 Length = 1e-005
Sngl(79) = 8348.3 Length = 1e-005
Sngl(80) = 8365.13 Length = 1e-005
Sngl(81) = 8422.72 Length = 1e-005
Sngl(82) = 8439.55 Length = 1e-005
Sngl(83) = 8456.37 Length = 1e-005
Sngl(84) = 8473.2 Length = 1e-005
Sngl(85) = 8490.02 Length = 1e-005
Sngl(86) = 8506.85 Length = 1e-005
Sngl(87) = 8523.68 Length = 5.74195e-006
Sngl(88) = 8540.5 Length = 1.53731e-006
Sngl(89) = 8557.33 Length = 4.12225e-007
Sngl(90) = 8629.44 Length = 4.52496e-010
Sngl(91) = 8652.38 Length = 4.25154e-010
Sngl(92) = 8663.39 Length = 5.45514e-010
Sngl(93) = 8794.48 Length = 5.36324e-010
Sngl(94) = 8805.63 Length = 4.19626e-010
Sngl(95) = 8828.53 Length = 4.49806e-010
Sngl(96) = 8886.01 Length = 2.02538e-008
Sngl(97) = 8948.79 Length = 8.29166e-010
Sngl(98) = 9082.38 Length = 4.64014e-010
Sngl(99) = 9152.06 Length = 2.75286e-010
Sngl(100) = 9268.7 Length = 6.93072e-010
Sngl(101) = 9342.55 Length = 2.13677e-007
Sngl(102) = 9358.59 Length = 7.32108e-007
Sngl(103) = 9370.7 Length = 1.27551e-006
Sngl(104) = 9383.88 Length = 5.65691e-007
Sngl(105) = 9400.25 Length = 1.59054e-007
Sngl(106) = 9472.26 Length = 4.52947e-010
Sngl(107) = 9495.2 Length = 4.20529e-010
Sngl(108) = 9506.35 Length = 5.38164e-010
Sngl(109) = 9637.41 Length = 5.50893e-010
Sngl(110) = 9648.43 Length = 4.26067e-010
Sngl(111) = 9671.39 Length = 4.52717e-010
Sngl(112) = 9743.5 Length = 4.11153e-007
Sngl(113) = 9760.33 Length = 1.53434e-006
Sngl(114) = 9777.15 Length = 5.72197e-006
Sngl(115) = 9793.98 Length = 1e-005
Sngl(116) = 9810.8 Length = 1e-005
Sngl(117) = 9827.63 Length = 1e-005
Sngl(118) = 9844.45 Length = 1e-005
Sngl(119) = 9861.28 Length = 1e-005
Sngl(120) = 9878.1 Length = 1e-005
Sngl(121) = 9894.93 Length = 1e-005
Sngl(122) = 9911.75 Length = 1e-005
Sngl(123) = 9928.58 Length = 1e-005
Sngl(124) = 9932.14 Length = 1e-005
Sngl(125) = 9945.41 Length = 1e-005
Sngl(126) = 9948.97 Length = 1e-005
Sngl(127) = 9962.24 Length = 1e-005
Sngl(128) = 9965.8 Length = 1e-005
Sngl(129) = 13852.6 Length = 1e-005
Sngl(130) = 13856.2 Length = 1e-005
Sngl(131) = 13873 Length = 1e-005
Sngl(132) = 13886.2 Length = 1e-005
Sngl(133) = 13889.8 Length = 1e-005
Sngl(134) = 13906.6 Length = 1e-005
Sngl(135) = 13923.5 Length = 1e-005
Sngl(136) = 13940.3 Length = 1e-005
Sngl(137) = 13957.1 Length = 1e-005
Sngl(138) = 13973.9 Length = 1e-005
Sngl(139) = 13990.8 Length = 1e-005
Sngl(140) = 14007.6 Length = 1e-005
Sngl(141) = 14024.4 Length = 1e-005
Sngl(142) = 14041.2 Length = 6.01583e-006
Sngl(143) = 14058.1 Length = 1.61074e-006
Sngl(144) = 14074.9 Length = 4.31917e-007
Sngl(145) = 14091.7 Length = 1.1574e-007
Sngl(146) = 14108.5 Length = 3.09873e-008
Sngl(147) = 14893.6 Length = 4.1211e-010
Sngl(148) = 14905.4 Length = 3.66592e-010
Sngl(149) = 14923.8 Length = 3.35594e-010
Sngl(150) = 14939.3 Length = 3.29109e-010
Sngl(151) = 14969.4 Length = 9.96131e-010
Sngl(152) = 14999.2 Length = 1.14342e-009
Sngl(153) = 15012.1 Length = 1.02733e-008
Sngl(154) = 15033.5 Length = 3.21173e-008
Sngl(155) = 15047.4 Length = 6.84174e-007
Sngl(156) = 15064.3 Length = 2.55147e-006
Sngl(157) = 15081.1 Length = 9.52923e-006
Sngl(158) = 15097.9 Length = 1e-005
Sngl(159) = 15114.7 Length = 1e-005
Sngl(160) = 15131.3 Length = 1e-005
Sngl(161) = 15145.9 Length = 1e-005
Sngl(162) = 15157.2 Length = 1e-005
Sngl(163) = 15172.5 Length = 1e-005
Sngl(164) = 15189.2 Length = 1e-005
Sngl(165) = 15206 Length = 1e-005
Sngl(166) = 15222.8 Length = 7.38232e-006
Sngl(167) = 15239.6 Length = 1.97956e-006
Sngl(168) = 15256.5 Length = 5.30027e-007
Sngl(169) = 15273.3 Length = 1.42126e-007
Sngl(170) = 15360.6 Length = 4.53196e-010
After merging
Sngl(1) = 499.833 Length = 2.3448e-007
Sngl(2) = 868.662 Length = 9.78004e-007
Sngl(3) = 885.486 Length = 3.64727e-006
Sngl(4) = 902.313 Length = 1e-005
Sngl(5) = 919.142 Length = 1e-005
Sngl(6) = 935.966 Length = 1e-005
Sngl(7) = 952.793 Length = 1e-005
Sngl(8) = 969.622 Length = 1e-005
Sngl(9) = 986.446 Length = 1e-005
Sngl(10) = 1003.27 Length = 1e-005
Sngl(11) = 1020.1 Length = 1e-005
Sngl(12) = 1036.92 Length = 1e-005
Sngl(13) = 1040.48 Length = 1e-005
Sngl(14) = 1053.75 Length = 1e-005
Sngl(15) = 1057.3 Length = 1e-005
Sngl(16) = 1070.58 Length = 1e-005
Sngl(17) = 1074.13 Length = 1e-005
Sngl(18) = 6189.23 Length = 1e-005
Sngl(19) = 6192.79 Length = 1e-005
Sngl(20) = 6209.61 Length = 1e-005
Sngl(21) = 6226.44 Length = 1e-005
Sngl(22) = 6243.26 Length = 1e-005
Sngl(23) = 6260.09 Length = 1e-005
Sngl(24) = 6276.91 Length = 1e-005
Sngl(25) = 6293.74 Length = 1e-005
Sngl(26) = 6310.56 Length = 1e-005
Sngl(27) = 6327.39 Length = 1e-005
Sngl(28) = 6344.22 Length = 1e-005
Sngl(29) = 6361.04 Length = 7.76884e-006
Sngl(30) = 6377.87 Length = 2.08319e-006
Sngl(31) = 6394.69 Length = 5.57775e-007
Sngl(32) = 6411.52 Length = 1.49566e-007
Sngl(33) = 6482.62 Length = 3.31809e-010
Sngl(34) = 6505.54 Length = 2.73828e-010
Sngl(35) = 6520.51 Length = 5.37284e-010
Sngl(36) = 6568.51 Length = 2.30052e-009
Sngl(37) = 6592.15 Length = 1.67039e-008
Sngl(38) = 6618.75 Length = 2.62684e-009
Sngl(39) = 6667.48 Length = 5.37634e-010
Sngl(40) = 6682.47 Length = 2.73567e-010
Sngl(41) = 6705.35 Length = 3.30448e-010
Sngl(42) = 6776.48 Length = 3.4624e-007
Sngl(43) = 6793.31 Length = 1.29323e-006
Sngl(44) = 6810.14 Length = 4.82606e-006
Sngl(45) = 6826.96 Length = 1e-005
Sngl(46) = 6843.79 Length = 1e-005
Sngl(47) = 6860.62 Length = 1e-005
Sngl(48) = 6877.44 Length = 1e-005
Sngl(49) = 6894.27 Length = 1e-005
Sngl(50) = 6911.09 Length = 1e-005
Sngl(51) = 6927.92 Length = 1e-005
Sngl(52) = 6944.74 Length = 1e-005
Sngl(53) = 6961.57 Length = 1e-005
Sngl(54) = 6978.4 Length = 1e-005
Sngl(55) = 6995.23 Length = 1e-005
Sngl(56) = 6998.78 Length = 1e-005
Sngl(57) = 7469.91 Length = 1e-005
Sngl(58) = 7473.46 Length = 1e-005
Sngl(59) = 7490.29 Length = 1e-005
Sngl(60) = 7507.12 Length = 1e-005
Sngl(61) = 7523.95 Length = 1e-005
Sngl(62) = 7540.77 Length = 1e-005
Sngl(63) = 7557.6 Length = 1e-005
Sngl(64) = 7574.42 Length = 1e-005
Sngl(65) = 7591.25 Length = 1e-005
Sngl(66) = 7608.07 Length = 1e-005
Sngl(67) = 7624.9 Length = 1e-005
Sngl(68) = 7641.73 Length = 9.25871e-006
Sngl(69) = 7658.55 Length = 2.47886e-006
Sngl(70) = 7675.38 Length = 6.647e-007
Sngl(71) = 7692.21 Length = 1.78118e-007
Sngl(72) = 8230.52 Length = 1.37788e-007
Sngl(73) = 8247.35 Length = 5.13853e-007
Sngl(74) = 8264.17 Length = 1.91927e-006
Sngl(75) = 8281 Length = 7.16233e-006
Sngl(76) = 8297.83 Length = 1e-005
Sngl(77) = 8314.65 Length = 1e-005
Sngl(78) = 8331.48 Length = 1e-005
Sngl(79) = 8348.3 Length = 1e-005
Sngl(80) = 8365.13 Length = 1e-005
Sngl(81) = 8422.72 Length = 1e-005
Sngl(82) = 8439.55 Length = 1e-005
Sngl(83) = 8456.37 Length = 1e-005
Sngl(84) = 8473.2 Length = 1e-005
Sngl(85) = 8490.02 Length = 1e-005
Sngl(86) = 8506.85 Length = 1e-005
Sngl(87) = 8523.68 Length = 5.74195e-006
Sngl(88) = 8540.5 Length = 1.53731e-006
Sngl(89) = 8557.33 Length = 4.12225e-007
Sngl(90) = 8629.44 Length = 4.52496e-010
Sngl(91) = 8652.38 Length = 4.25154e-010
Sngl(92) = 8663.39 Length = 5.45514e-010
Sngl(93) = 8794.48 Length = 5.36324e-010
Sngl(94) = 8805.63 Length = 4.19626e-010
Sngl(95) = 8828.53 Length = 4.49806e-010
Sngl(96) = 8886.01 Length = 2.02538e-008
Sngl(97) = 8948.79 Length = 8.29166e-010
Sngl(98) = 9082.38 Length = 4.64014e-010
Sngl(99) = 9152.06 Length = 2.75286e-010
Sngl(100) = 9268.7 Length = 6.93072e-010
Sngl(101) = 9342.55 Length = 2.13677e-007
Sngl(102) = 9358.59 Length = 7.32108e-007
Sngl(103) = 9370.7 Length = 1.27551e-006
Sngl(104) = 9383.88 Length = 5.65691e-007
Sngl(105) = 9400.25 Length = 1.59054e-007
Sngl(106) = 9472.26 Length = 4.52947e-010
Sngl(107) = 9495.2 Length = 4.20529e-010
Sngl(108) = 9506.35 Length = 5.38164e-010
Sngl(109) = 9637.41 Length = 5.50893e-010
Sngl(110) = 9648.43 Length = 4.26067e-010
Sngl(111) = 9671.39 Length = 4.52717e-010
Sngl(112) = 9743.5 Length = 4.11153e-007
Sngl(113) = 9760.33 Length = 1.53434e-006
Sngl(114) = 9777.15 Length = 5.72197e-006
Sngl(115) = 9793.98 Length = 1e-005
Sngl(116) = 9810.8 Length = 1e-005
Sngl(117) = 9827.63 Length = 1e-005
Sngl(118) = 9844.45 Length = 1e-005
Sngl(119) = 9861.28 Length = 1e-005
Sngl(120) = 9878.1 Length = 1e-005
Sngl(121) = 9894.93 Length = 1e-005
Sngl(122) = 9911.75 Length = 1e-005
Sngl(123) = 9928.58 Length = 1e-005
Sngl(124) = 9932.14 Length = 1e-005
Sngl(125) = 9945.41 Length = 1e-005
Sngl(126) = 9948.97 Length = 1e-005
Sngl(127) = 9962.24 Length = 1e-005
Sngl(128) = 9965.8 Length = 1e-005
Sngl(129) = 13852.6 Length = 1e-005
Sngl(130) = 13856.2 Length = 1e-005
Sngl(131) = 13873 Length = 1e-005
Sngl(132) = 13886.2 Length = 1e-005
Sngl(133) = 13889.8 Length = 1e-005
Sngl(134) = 13906.6 Length = 1e-005
Sngl(135) = 13923.5 Length = 1e-005
Sngl(136) = 13940.3 Length = 1e-005
Sngl(137) = 13957.1 Length = 1e-005
Sngl(138) = 13973.9 Length = 1e-005
Sngl(139) = 13990.8 Length = 1e-005
Sngl(140) = 14007.6 Length = 1e-005
Sngl(141) = 14024.4 Length = 1e-005
Sngl(142) = 14041.2 Length = 6.01583e-006
Sngl(143) = 14058.1 Length = 1.61074e-006
Sngl(144) = 14074.9 Length = 4.31917e-007
Sngl(145) = 14091.7 Length = 1.1574e-007
Sngl(146) = 14108.5 Length = 3.09873e-008
Sngl(147) = 14893.6 Length = 4.1211e-010
Sngl(148) = 14905.4 Length = 3.66592e-010
Sngl(149) = 14923.8 Length = 3.35594e-010
Sngl(150) = 14939.3 Length = 3.29109e-010
Sngl(151) = 14969.4 Length = 9.96131e-010
Sngl(152) = 14999.2 Length = 1.14342e-009
Sngl(153) = 15012.1 Length = 1.02733e-008
Sngl(154) = 15033.5 Length = 3.21173e-008
Sngl(155) = 15047.4 Length = 6.84174e-007
Sngl(156) = 15064.3 Length = 2.55147e-006
Sngl(157) = 15081.1 Length = 9.52923e-006
Sngl(158) = 15097.9 Length = 1e-005
Sngl(159) = 15114.7 Length = 1e-005
Sngl(160) = 15131.3 Length = 1e-005
Sngl(161) = 15145.9 Length = 1e-005
Sngl(162) = 15157.2 Length = 1e-005
Sngl(163) = 15172.5 Length = 1e-005
Sngl(164) = 15189.2 Length = 1e-005
Sngl(165) = 15206 Length = 1e-005
Sngl(166) = 15222.8 Length = 7.38232e-006
Sngl(167) = 15239.6 Length = 1.97956e-006
Sngl(168) = 15256.5 Length = 5.30027e-007
Sngl(169) = 15273.3 Length = 1.42126e-007
Sngl(170) = 15360.6 Length = 4.53196e-010
Dump of SweepApproximation
Error 3d = 11357.7
959 Segment(s) of degree 11
Sweep : Degenerated case
No tags attached.
csv points.csv (49,895) 2013-06-26 20:01
https://tracker.dev.opencascade.org/
Issue History
2013-06-26 20:01dcNew Issue
2013-06-26 20:01dcAssigned To => ifv
2013-06-26 20:01dcFile Added: points.csv
2013-06-26 23:45abvSummaryCrash in BRepOffsetAPI_MakePipe (calls BrepFill_Sweep.cxx #2465 calls TopoDS_Shape.lxx #142) => Crash in BRepOffsetAPI_MakePipe (calls BrepFill_Sweep.cxx L2465 calls TopoDS_Shape.lxx L142)

There are no notes attached to this issue.