rivafarabi / deckboard

Control your PC with your phone in easy way possible. News and updates on @DeckboardApp.
https://deckboard.app/
560 stars 30 forks source link

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

Open JingshanDu opened 3 months ago

JingshanDu commented 3 months ago

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):

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

Required files

Additional context Add any other context about the problem here.

hexandcube commented 3 months ago

This also seems to happen after the graphics driver crashes