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

ElsaStudio (Blazor Server) error when trying to view a workflow instance #4709

Open
Icidis opened this issue Dec 14, 2023 · 7 comments
Open

Comments

@Icidis
Copy link

Icidis commented Dec 14, 2023

Hi,

When trying to view the workflow definition instance I'm getting the following error and the designer disappears:

image

JSException: Cannot read properties of null (reading 'getBoundingClientRect') TypeError: Cannot read properties of null (reading 'getBoundingClientRect') at Module.getVisibleHeight (https://localhost:7130/_content/Elsa.Studio.DomInterop/dom.entry.js:74:26) at https://localhost:7130/_framework/blazor.server.js:1:3506 at new Promise (<anonymous>) at Ft.beginInvokeJSFromDotNet (https://localhost:7130/_framework/blazor.server.js:1:3480) at Ft._invokeClientMethod (https://localhost:7130/_framework/blazor.server.js:1:75072) at Ft._processIncomingData (https://localhost:7130/_framework/blazor.server.js:1:72696) at Ft.connection.onreceive (https://localhost:7130/_framework/blazor.server.js:1:67009) at i.onmessage (https://localhost:7130/_framework/blazor.server.js:1:51322)

Definition: example_-user-task-workflow-definition.json

Workflow Instance: d02621bfc80f4ff3.json

Also note:
When doing this for a different workflow definition that only does write-lines and no suspending state it works perfectly.

image

If anyone has an idea why the cause could be it would be helpful.

@Icidis Icidis changed the title ElsaStudio Server Error when trying to view a workflow instance ElsaStudio (Blazor Server) error when trying to view a workflow instance Dec 14, 2023
@hpposch
Copy link

hpposch commented Dec 19, 2023

Hi, i see the same error on my side.
Any news on that issue?

@sfmskywalker sfmskywalker moved this to Triage in ELSA 3 Jan 6, 2024
@sfmskywalker
Copy link
Member

Thanks for providing the workflow definition and instance JSON exports.

I am not able to reproduce this issue with the latest version and will close the issue as such. However, please feel free to reopen if you can still reproduce this issue with the latest version. Thank you.

@sfmskywalker sfmskywalker closed this as not planned Won't fix, can't repro, duplicate, stale Jan 6, 2024
@github-project-automation github-project-automation bot moved this from Triage to Done in ELSA 3 Jan 6, 2024
@TimNguyenVN
Copy link

TimNguyenVN commented Aug 30, 2024

Hi @sfmskywalker, Sometimes, I encounter the same error with Elsa 3.2.0-rc3 on my end (around three times), but I haven't been able to reliably reproduce it. It usually happens when navigating between screens. cc @Icidis
image

@tienpham-quantalytix
Copy link

hello @sfmskywalker, i have same problem in elsa 3 !!!!

@sfmskywalker sfmskywalker reopened this Sep 9, 2024
@sfmskywalker sfmskywalker moved this from Done to Todo in ELSA 3 Sep 9, 2024
@sfmskywalker sfmskywalker moved this from Todo to Triage in ELSA 3 Sep 9, 2024
@sfmskywalker
Copy link
Member

Reopened for another round of triage.

@sfmskywalker sfmskywalker added this to the Elsa 3.3 milestone Sep 9, 2024
@TimNguyenVN
Copy link

Hi @sfmskywalker,
I was able to reproduce the issue with the following steps:
Note this is not the only way the error occurs, it's just one case.

  • Create a workflow and use it as an activity in another workflow (consuming workflow).
  • Modify the parameters of the activity workflow (e.g., remove an input or modify it).
  • Republic the activity workflow
  • Open the consuming workflow where the modified workflow is used as an activity.
  • Attempting to run the consuming workflow results in an error.
  • Error occur

This issue doesn't always occur on the first attempt, so if you're unable to reproduce it initially, please try it again.
This is the video when I try to reproduce it.

Reproduce.mp4

Let me know if you need further details or clarification!

@sfmskywalker
Copy link
Member

@TimNguyenVN Thank you for the additional details and video. I have tried to reproduce the issue accordingly with the current version of the main branch, with no avail. However, when switching between two tabs (1 tab for the sub workflow and another tab for the consuming workflow), I do notice that, without refreshing the consuming workflow tab before executing the activity, the activity dissapears. I suspect that this has something to do with the activity registry getting out of sync, which would be a separate issue.

When you get a chance, it would be interesting to see if you can still reproduce the issue with the 3.3 release happening later this year.

@sfmskywalker sfmskywalker removed this from the Elsa 3.3 milestone Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Triage
Development

No branches or pull requests

5 participants