Cannot read properties of undefined (reading 'segmentIndex')

When adding the gateway on the no path before the label, the tool stops working. It keeps on holding the gateway and nothing can be changed anymore.diagram (5).bpmn (14.2 KB)

unhandled error in event listener TypeError: Cannot read properties of undefined (reading 'segmentIndex')
    at LabelLayoutUtil.js:116
    at LabelBehavior.js:205
    at LabelBehavior.js:232
    at EventBus.js:519
    at Bn._invokeListener (EventBus.js:371)
    at Bn._invokeListeners (EventBus.js:352)
    at Bn.fire (EventBus.js:313)
    at Kd._fire (CommandStack.js:356)
    at Kd._internalExecute (CommandStack.js:425)
    at Kd.execute (CommandStack.js:153)
    at Uf.Cf.layoutConnection (Modeling.js:206)
    at sf.postExecute (ReconnectConnectionHandler.js:76)
    at Kd._internalExecute (CommandStack.js:428)
    at Kd.execute (CommandStack.js:153)
    at Uf.Cf.reconnect (Modeling.js:479)
    at Uf.Cf.reconnectEnd (Modeling.js:497)
    at i (DropOnFlowBehavior.js:78)
    at DropOnFlowBehavior.js:182
    at CommandInterceptor.js:43
    at EventBus.js:519
    at Bn._invokeListener (EventBus.js:371)
    at Bn._invokeListeners (EventBus.js:352)
    at Bn.fire (EventBus.js:313)
    at Kd._fire (CommandStack.js:356)
    at Kd._internalExecute (CommandStack.js:431)
    at Kd.execute (CommandStack.js:153)
    at Uf.Cf.createShape (Modeling.js:291)
    at zh.preExecute (AppendShapeHandler.js:44)
    at Kd._internalExecute (CommandStack.js:401)
    at Kd.execute (CommandStack.js:153)
    at Uf.Cf.appendShape (Modeling.js:371)
    at Create.js:208
    at EventBus.js:519
    at Bn._invokeListener (EventBus.js:371)
    at Bn._invokeListeners (EventBus.js:352)
    at Bn.fire (EventBus.js:313)
    at s (Dragging.js:169)
    at l (Dragging.js:265)
    at HTMLDocument.u (Dragging.js:314)
    at HTMLDocument.i (helpers.ts:87)
(anonymous) @ instrument.ts:129
Bn._invokeListener @ EventBus.js:385
Bn._invokeListeners @ EventBus.js:352
Bn.fire @ EventBus.js:313
s @ Dragging.js:169
l @ Dragging.js:265
u @ Dragging.js:314
i @ helpers.ts:87
LabelLayoutUtil.js:116 Uncaught TypeError: Cannot read properties of undefined (reading 'segmentIndex')
    at LabelLayoutUtil.js:116
    at LabelBehavior.js:205
    at LabelBehavior.js:232
    at EventBus.js:519
    at Bn._invokeListener (EventBus.js:371)
    at Bn._invokeListeners (EventBus.js:352)
    at Bn.fire (EventBus.js:313)
    at Kd._fire (CommandStack.js:356)
    at Kd._internalExecute (CommandStack.js:425)
    at Kd.execute (CommandStack.js:153)
    at Uf.Cf.layoutConnection (Modeling.js:206)
    at sf.postExecute (ReconnectConnectionHandler.js:76)
    at Kd._internalExecute (CommandStack.js:428)
    at Kd.execute (CommandStack.js:153)
    at Uf.Cf.reconnect (Modeling.js:479)
    at Uf.Cf.reconnectEnd (Modeling.js:497)
    at i (DropOnFlowBehavior.js:78)
    at DropOnFlowBehavior.js:182
    at CommandInterceptor.js:43
    at EventBus.js:519
    at Bn._invokeListener (EventBus.js:371)
    at Bn._invokeListeners (EventBus.js:352)
    at Bn.fire (EventBus.js:313)
    at Kd._fire (CommandStack.js:356)
    at Kd._internalExecute (CommandStack.js:431)
    at Kd.execute (CommandStack.js:153)
    at Uf.Cf.createShape (Modeling.js:291)
    at zh.preExecute (AppendShapeHandler.js:44)
    at Kd._internalExecute (CommandStack.js:401)
    at Kd.execute (CommandStack.js:153)
    at Uf.Cf.appendShape (Modeling.js:371)
    at Create.js:208
    at EventBus.js:519
    at Bn._invokeListener (EventBus.js:371)
    at Bn._invokeListeners (EventBus.js:352)
    at Bn.fire (EventBus.js:313)
    at s (Dragging.js:169)
    at l (Dragging.js:265)
    at HTMLDocument.u (Dragging.js:314)
    at HTMLDocument.i (helpers.ts:87)

Screen capture of the issue:

capture.zTuwVn_optimized

Could you please provide us with a diagram that allows us to reproduce the issue? Also, just to make yourself understood better, consider including a screenshot or capture to establish the context.

Never mind my previous comment. I was able to revert the change on your diagram to come up with the original that allows me to reproduce what you’ve reported. Cf. screencapture attached :arrow_up:.

Thanks for reporting this issue.

1 Like

Fixed with v8.8.3.

1 Like