camunda-modeler
camunda-modeler copied to clipboard
Error: EPIPE: broken pipe, write
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
We could attempt to upgrade to electron@latest and see if that fixes the issue.
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.
Moving to review for the moment.
Issue still reproducible in nightly.
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. 🤔
This should be fixed via https://github.com/camunda/camunda-modeler/pull/3314. We suppress EPIPE errors now.