camunda-modeler icon indicating copy to clipboard operation
camunda-modeler copied to clipboard

Error: EPIPE: broken pipe, write

Open marstamm opened this issue 2 years ago • 5 comments

Describe the bug

Multiple users are experiencing he Modeler crashing randomly during usage.

The events seem to originate only from the combination "Modeler 5.0.0" and windows. I suspect this is caused by the electron update.

While the Sentry issues mostly show win32, we have at least 1 support case wich uses the 64 bit version: https://jira.camunda.com/browse/SUPPORT-13882

Steps to reproduce

Sentry Issue: CAMUNDA-MODELER-8XS

Error: EPIPE: broken pipe, write
  File "~/build/console.js", line 75, in console.info
    originalConsoleMethod.apply(this, arguments);
  File "~/build/console.js", line 14, in ConsoleTransport.log
    console[type](type.toUpperCase(), message);
  File "~/build/console.js", line 18, in ConsoleTransport.info
    this.log('info', message);
  File "~/build/log.js", line 33, in null.<anonymous>
    transport[type](`${this.namespace} ${message}`);
...
(5 additional frame(s) were not displayed)

Expected behavior

The modeler can be used on Windows

Environment

  • OS: Windows 32bit
  • Camunda Modeler Version: 5.0.0
  • Execution Platform: backend error
  • Installed plug-ins: none

Additional context

No response


Tracked in SUPPORT-13882

marstamm avatar Jun 13 '22 11:06 marstamm

We could attempt to upgrade to electron@latest and see if that fixes the issue.

nikku avatar Jun 20 '22 14:06 nikku

We hope to address this via https://github.com/camunda/camunda-modeler/pull/2998.

Once the nightly is out we can ask affected users to give that one a try.

nikku avatar Jun 22 '22 13:06 nikku

Moving to review for the moment.

nikku avatar Jun 22 '22 13:06 nikku

Issue still reproducible in nightly.

nikku avatar Jun 27 '22 11:06 nikku

The issue seems to be caused by this line: https://github.com/camunda/camunda-modeler/blob/v5.0.0/app/lib/log/transports/console.js#L18 (called by https://github.com/camunda/camunda-modeler/blob/v5.0.0/app/lib/log/log.js#L33). So, calling console.info on the main process sometimes crashes the app. Seems to be quite a low-level issue. This feature hasn't caused any issues for years so something else must have changed (probably Electron/Node) that now causes the app to crash. Not quite sure about this and how to go about fixing it. 🤔

philippfromme avatar Jun 30 '22 14:06 philippfromme

This should be fixed via https://github.com/camunda/camunda-modeler/pull/3314. We suppress EPIPE errors now.

barmac avatar Dec 09 '22 12:12 barmac