ray: Sending many items at once can freeze Ray

Describe the bug The ray app seems to freeze when ever I launch it. The “+” sign at the top does not come active and my scripts take forever when I have calls to ray() in them. When the scripts finally do run, there is no output in ray and ray becomes unresponsive. I have to force quit it to close it.

I have restarted and updated the app a few times and still it’s the same.

Versions Ray version (you can see this in “About Ray”): Version 1.5.0 (1.5.0)

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

  • spatie/ray package version: 1.6.1
  • spatie/laravel-ray package version (if applicable): 1.4.0

PHP version: 7.4.8 Laravel version (if applicable): 7.30.1

To Reproduce Steps to reproduce the behavior:

  1. put a ray() call in your controller
  2. make a request
  3. Requests takes a very long time and when it is done there is no output on ray. Also ray is frozen

Desktop (please complete the following information):

  • OS: macOS
  • Version 10.15.5

Thanks for a great app.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 2
  • Comments: 21 (15 by maintainers)

Most upvoted comments

In the next minor version we’re adding a setting to disable the autoscroll and we’re virtualizing the log list. This means a lot less items will be rendered at any given point.

We promise we’re still actively working on improving the performance of Ray every week, and we appreciate your feedback!

In my tests, v1.14.7 seems to perform better then previous versions with a large number of payloads on Linux. It’s definitely more responsive.

Hold that thought for a bit, I’ll try doing another version of your idea of not rendering everything, by using react-virtualized or react-window

I experienced this once. It was because I had left a ray() in my code and it had been printing a hell of a lot to the app. Then when I went to the app I couldn’t do anything with the app and had to force close it. Just maybe a thought as possible reason.