Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when trying to import xml on bpmnjs #586

Closed
juanferrari opened this issue Nov 5, 2021 · 3 comments
Closed

Error when trying to import xml on bpmnjs #586

juanferrari opened this issue Nov 5, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@juanferrari
Copy link

juanferrari commented Nov 5, 2021

Describe the Bug

I am using bpmn-js (8.8.2) and I noticed that after the last upgrade of diagram-js: 7.6.0 -> 7.6.1, diagrams didn't render anymore when trying to import a xml on the Modeler.
Downgrading to 7.6.0 fixes the issue.

I am getting the following error on my console:


Uncaught (in promise) Error: layer <base> already created at index <-10>
    at Canvas.getLayer (Canvas.js?c639:294)
    at Canvas.createPlane (Canvas.js?c639:370)
    at Canvas.setRootElement (Canvas.js?c639:608)
    at BpmnImporter.add (BpmnImporter.js?6491:112)
    at Object.root (Importer.js?e00c:53)
    at visitRoot (BpmnTreeWalker.js?896b:83)
    at Object.handleDefinitions (BpmnTreeWalker.js?896b:215)
    at render (Importer.js?e00c:69)
    at eval (Importer.js?e00c:80)
    at new Promise (<anonymous>)

Steps to Reproduce

Import XML using BPMN Modeler.

  • Browser: [Chrome 95]
  • OS: [ Windows 10]
  • Library version: [7.6.1]
@juanferrari juanferrari added the bug Something isn't working label Nov 5, 2021
@nikku nikku added the in progress Currently worked on label Nov 5, 2021
@nikku
Copy link
Member

nikku commented Nov 5, 2021

Thanks for reporting. We can reproduce it and will look into a fix as soon as possible.

@nikku
Copy link
Member

nikku commented Nov 5, 2021

To be tackled next week. CC @marstamm

@bpmn-io-tasks bpmn-io-tasks bot removed the in progress Currently worked on label Nov 5, 2021
@nikku
Copy link
Member

nikku commented Nov 5, 2021

Fixed with v7.6.2 (reverted the broken feature).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants