deckboard icon indicating copy to clipboard operation
deckboard copied to clipboard

[BUG] A JavaScript error occured in the main process in touch mode after waking up the computer

Open JingshanDu opened this issue 8 months ago • 1 comments

Describe the bug After upgrading to v3, if Deckboard runs in touch mode, there's a good chance the error message below will pop up after Windows wakes up from sleep:

A JavaScript error occurred in the main process

Uncaught Exception:
Error [ERR_INTERNAL_ASSERTION]: This is caused by either a bug in Node.js or incorrect
usage of Node.js internals.
Please open an issue with this stack trace at https://github.com/nodejs/node/issues

at new NodeError (node:internal/errors:406:5)
at assert (node:internal/assert:14:11)
at internalConnectMultiple (node:net:1118:3)
at afterConnectMultiple (node:net:1667:5)

I never saw this error with version 2.x.

To Reproduce Steps to reproduce the behavior:

  1. Run deckboard in touch mode on Windows
  2. Sleep and wake up Windows
  3. See the error at a probability.

Expected behavior No error occurs.

Screenshots Screenshot 2024-06-18 100356

Server App (please complete the following information):

  • OS: Windows 11
  • Version 3.0.0

Client App (please complete the following information): Not applicable

Required files

  • database.db (located in C:\Users%USER%\deckboard)
  • log.log (located in located in C:\Users%USER%\AppData\Roaming\Deckboard) database and log.zip

Additional context Add any other context about the problem here.

JingshanDu avatar Jun 18 '24 17:06 JingshanDu