Getting maximum call stack size exceeded

When I select any particular node and drag it then the cursor changes to hand sign and I get following error in console.

import AutoResize from 'diagram-js/lib/features/auto-resize/AutoResize';

import inherits from 'inherits';

import { is } from '../../util/ModelUtil';


/**
 * Sub class of the AutoResize module which implements a BPMN
 * specific resize function.
 */
export default function BpmnAutoResize(injector) {

  injector.invoke(AutoResize, this);
}

BpmnAutoResize.$inject = [
  'injector'
];

inherits(BpmnAutoResize, AutoResize);


/**
 * Resize shapes and lanes.
 *
 * @param {djs.model.Shape} target
 * @param {Bounds} newBounds
 * @param {Object} hints
 */
BpmnAutoResize.prototype.resize = function(target, newBounds, hints) {

  if (is(target, 'bpmn:Participant')) {
    this._modeling.resizeLane(target, newBounds, null, hints);
  } else {
    this._modeling.resizeShape(target, newBounds, null, hints);
  }
};

This is the code for bpmn auto resize which is in bpmn-js->lib->features->auto-resize folder

For further assistance, please share a CodeSandbox that reproduces your issue in a way that we can inspect it.

we have created many custom attributes and updated the ui design as well, bit hard to create a sandbox for that, any clue or hint will work!!

Iā€™d suggest to debug your code, and see where the infinite loop can be observed. Or you can place a couple of logpoints/console.logs here and there.

1 Like
// on dragging the flow blue color copy of the flow is created which
// causes the flow to gets hanged on screen on diagram page
// we hide that mirror image of the flow but we can drag the flow
.djs-dragging {
	display: none !important;
}

this fixed the issue

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.