spatie / ray

Debug with Ray to fix problems faster
https://myray.app
MIT License
554 stars 102 forks source link

v2.8.0: JavaScript error after waking computer from sleep #916

Closed cornelRaiu closed 1 month ago

cornelRaiu commented 1 month ago

Describe the bug After waking my computer up, I started getting this error since v2.8.0:

A JavaScript error occurred in the main process

Uncaught Exception:
TypeError: Object has been destroyed
at ct (/Applications/Ray.app/Contents/Resources/app.asar/dist/main.js:8:100911)
at Screen.<anonymous> (/Applications/Ray.app/Contents/Resources/app.asar/dist/main.js:8:100825)
at Screen.emit (node:events:402:35)

It's multiple instances of the same error. For example I got 4 after the computer went to sleep for about 20 minutes. But accumulated 40+ overnight.

Versions Ray version (you can see this in "About Ray"): 2.8.0

You can use composer show to get the version numbers of:

PHP version: Laravel version (if applicable): irrelevant

To Reproduce Steps to reproduce the behavior:

  1. Open the Ray app
  2. Connect it to a server. In my case it's a Parallels machine with Vagrant and Homestead on top
  3. Allow the computer to go into sleep mode for 10+ minutes
  4. On wake up you will get the same error as above.
  5. After closing the error, depending on how long the computer was asleep, it will pop up more more instances of the same error.

Expected behavior Obviously would expect this to not happen

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

I will also add a screenshot of the error next time I see it. Also, I will try to disconnect it from the server before going to sleep and see if it still occurs then.

cornelRaiu commented 1 month ago

Here is a screenshot of the error.

image

Also, I can confirm it's happening both when being connected to a server and when not connected.

wkhayrattee commented 1 month ago

I was getting this same error on the free-version - like a dozen of them on each call. It went away after I activated Ray with a license. Haven't had it since.

I tested on two different macbooks (M3 & Intel with latest macOS version to-date), same behaviour.

cornelRaiu commented 1 month ago

On my end it was activated since day 1.

I just tried to remove the license and reactivate. No luck. Then I tried to uninstall the app and reinstall. No luck.

cornelRaiu commented 1 month ago

v2.8.1 fixed it.