camunda / camunda-modeler

An integrated modeling solution for BPMN, DMN and Forms based on bpmn.io.
https://camunda.com/products/modeler
MIT License
1.5k stars 481 forks source link

Diagram fails to open in application (breaks it) #4473

Closed nikku closed 1 month ago

nikku commented 2 months ago

Describe the bug

I try to open the following BPMN diagram and it breaks the application.

I only see a blank screen, and cannot to use the app. Due to the fact that "last opened diagrams" is remembered, I cannot easily recover from this, too.

Steps to reproduce

  1. open test diagram
  2. observe crash (blank screen)

Expected behavior

Environment

Additional context

Questions:

nikku commented 2 months ago

Root cause:

nikku commented 2 months ago

Moving to ready due to impact.

jarekdanielak commented 1 month ago

The root cause is fixed in https://github.com/camunda/camunda-modeler/pull/4518

The error is actually caught in componentDidCatch of App component, but it goes into an infinite loop. My idea would be to have the bottom panel container closed in its own error boundary so that if it crashes, it doesn't take the whole app with it. Not sure if we want to investigate it now tough.

nikku commented 1 month ago

Closed via https://github.com/camunda/camunda-modeler/pull/4518