Skip to content

Bug: Cannot read property '32' or '69' of undefined. Uncaught TypeError: Cannot read property 'querySelector' of null #277

@ganesh-sankey

Description

@ganesh-sankey

Application got crashed and received bunch of errors and warnings i.e.

  • Uncaught TypeError: Cannot read property '32' or '69' of undefined
  • Uncaught TypeError: Cannot read property 'querySelector' of null
  • Warning: Can't call setState (or forceUpdate) on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method

Step to reproduce the bug:

  1. Clone the project to local
  2. Run the command 'yarn run storybook'
  3. Go to file /demos/demo-drag-and-drop/components/BodyWidget.tsx and enable the smart routing for DiagramWidget i.e. line no 66 -> <DiagramWidget smartRouting={true} className="srd-demo-canvas" diagramEngine={this.props.app.getDiagramEngine()} />
  4. Go to localhost:9001 -> Select Advance Techniques ->Large Application
  5. Drag one node to top such that it will not be visible to user, then scroll down and drag other node to down side immediately. At this point application will get crashed

Step to reproduce the bug(visual):
screen recording 2018-08-29 at 05 51 54 17 pm

Error and warning screenshots:
undefined_32

undefined_32_2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions