Skip to content

Commit

Permalink
Merge pull request #1 from bmw-software-engineering/main
Browse files Browse the repository at this point in the history
[BUGFIX] State Transitions panel is crashing with "RPC Terminated" er…
  • Loading branch information
Essarelle authored Jun 23, 2024
2 parents 36abb8b + 0f83366 commit 04f6f97
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "foxbox",
"version": "1.0.4",
"version": "1.0.5",
"license": "MPL-2.0",
"private": true,
"productName": "Foxbox",
Expand Down
8 changes: 5 additions & 3 deletions packages/studio-base/src/components/Chart/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -351,10 +351,12 @@ function Chart(props: Props): JSX.Element {
return;
}

// Temporarily remove setUpdateError to avoid displaying the error caused by re-rendering,
// which results in the component crashing. The crash happens because a message is sent to a
// closed RPC, causing some panels to become unusable. This approach ignores the error to
// keep the component functional. Revisit this once the underlying issue is resolved.
updateChart(newUpdate).catch((err: Error) => {
if (isMounted()) {
setUpdateError(err);
}
console.error(err);
});
}, [getNewUpdateMessage, isMounted, updateChart]);

Expand Down
2 changes: 1 addition & 1 deletion packages/studio/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@foxglove/studio",
"version": "1.0.4",
"version": "1.0.5",
"license": "MPL-2.0",
"repository": {
"type": "git",
Expand Down

0 comments on commit 04f6f97

Please sign in to comment.