ls1intum / Apollon

UML Modeling Editor written in React
https://apollon-library.readthedocs.io
MIT License
65 stars 22 forks source link

Can't export anymore and after I try I can't load other files #233

Closed id-kas closed 2 years ago

id-kas commented 2 years ago

Describe the bug

After using Apollon for a lengthy period of time, export didn't work anymore for a certain class diagram (I tried png, pdf and json). I couldn't load other files either. I closed Apollon and opened it again. Loading was possible again and I was able to export other diagrams, but as soon as I tried to export the class diagram I was originally working on again, loading became impossible once more and, of course, the diagram wasn't downloaded.

To Reproduce

Link to the diagram: https://apollon.ase.in.tum.de/XS5umkUDDD2rQh07WiiI?view=GIVE_FEEDBACK

  1. Work several hours on class diagram
  2. try to export (doesn't work)
  3. try to load other file (doesn't work)
  4. reload Apollon (2. & 3. persist)
  5. restart Browser, reopen Apollon (2. & 3. persist)
  6. I don't know what the initial cause was, sorry

Expected behavior

Export downloads file and doesn't impact other functionality

Screenshots

image

Environment

 - OS: [e.g. iOS]
 - Browser [e.g. chrome, safari]
 - Version [e.g. 22]

Windows; Google Chrome, 101.0.4951.67

Additional context

Output in Web Console

  [REPLACE THIS WITH YOUR INFORMATION]
krusche commented 2 years ago

Can you provide a screenshot of the diagram and a link to it so we can experience the issue as well?

id-kas commented 2 years ago

Can you provide a screenshot of the diagram and a link to it so we can experience the issue as well?

I wanted to, actually, but this is work for the EIST project homework, so I don't know if it's technically allowed. I have sent it to you via Zulip now, I hope that's all right.

bensofficial commented 2 years ago

I can reproduce the problem. It does not work with the link provided by @CamelotMacaw nor with another example (also shared with me). At least for me it works fine when I create a new diagram.

As shown in the screencast, everything works until I download the diagram as a png file (there is an uncaught error). After that, the downloads (even those that worked before) and the import no longer work.

But after a reload it works again.

https://user-images.githubusercontent.com/66966223/172542388-fe87ebf3-8ca8-42ce-93f0-00af34024f6a.mp4