Skip to content

When loading profile, bookmarks sometimes are not loaded JS Heap out of memory #958

Closed

Description

@koenvb

Extension – Google Chrome Profiles

Author: @frouo

Description

Sometime when loading the profiles it errors out when chosing one of the profiles

Error:

Error: Worker terminated due to reaching memory limit: JS heap out of memory

__node_internal_captureLargerStackTrace:errors:464:5
NodeError:errors:371:5
Worker.[kOnExit]:worker:279:26
Worker.<computed>.onexit:worker:201:20

Steps To Reproduce

1.Show profiles
2. Choose profile
3. load the bookmarks -> then it fails

The current behavior

The expected behavior

Raycast version

Version: 1.28.0

Activity

  1. changed the title [-]When loading profile, bookmarks sometimes are not loaded[/-] [+]When loading profile, bookmarks sometimes are not loaded JS Heap out of memory[/+] on Feb 21, 2022
  2. added
    bug
    extension
    on Feb 21, 2022
  3. frouo commented on Feb 23, 2022

    @frouo
    Contributor

    Hello @koenvb, thanks for your feedback.

    Raycast extensions have a limited amount of memory they can use. Maybe your bookmarks chrome file is big. Can we check that? Here is how to:

    • open the profile that generates this error
    • type in the search bar: chrome://version (note that, for chrome security reason, chrome://... url cannot be launch from external command, so it cannot be launched using google chrome profile raycast extension)
    • copy the "Profile Path"
    • then run the command line : ls -alh "paste-here-the-path"
    • Search for the size (in bytes) of the file named Bookmarks

    Thanks

    image

    image

  4. koenvb commented on Mar 2, 2022

    @koenvb
    Author

    @frouo It feels to me there is some memory leak or so, but hereby the requested info
    Before I was running it as a script-command and that worked ok.

    (love the extension by the way, it is a blessing! thanks for the work on this one!)

    CleanShot 2022-03-02 at 16 53 39@2x

  5. frouo commented on Mar 2, 2022

    @frouo
    Contributor

    Ok. I learnt that once opened a Raycast extension is allowed to 100mo memory. Which seems more than enough given the size of the files.

    An enhancement I should do is to use fs instead AppleScript to browse files. Maybe it could help fixing the issue. I'll do this soon.

    love the extension by the way, it is a blessing! thanks for the work on this one!

    Thank you, it's very nice to read this 🙏🏻

  6. stale commented on Apr 21, 2022

    @stale

    This issue/pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs in the next 7 days to keep our backlog clean. Thanks for your contributions.

  7. added
    wontfix
    on Apr 21, 2022
  8. added a commit that references this issue on Apr 23, 2024
  9. added a commit that references this issue on Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugextensionwontfix

    Type

    No type

    Fields

    Priority

    None yet

    Severity

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions