raycast / extensions

Everything you need to extend Raycast.
https://developers.raycast.com
MIT License
5.23k stars 2.92k forks source link

[Anki] ...Error: Worker terminated due to reaching memory limit: JS heap out of memory [kOnExit]:worker:313:26 Worker.<computed>.onexit:worker:229:20 #14150

Open fwends opened 3 weeks ago

fwends commented 3 weeks ago

Extension

https://www.raycast.com/anton-suprun/anki

Raycast Version

1.81.2

macOS Version

14.5 (23F79)

Description

Error:

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

[kOnExit]:worker:313:26
Worker.<computed>.onexit:worker:229:20

Steps To Reproduce

browse cards

Current Behaviour

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

Worker..onexit:worker:229:20

Expected Behaviour

for it to work

raycastbot commented 3 weeks ago

Thank you for opening this issue!

🔔 @anton-suprun you might want to have a look.

💡 Author and Contributors commands The author and contributors of `anton-suprun/anki` can trigger bot actions by commenting: - `@raycastbot close this issue` Closes the issue. - `@raycastbot close as not planned` Closes the issue as not planned. - `@raycastbot rename this issue to "Awesome new title"` Renames the issue. - `@raycastbot reopen this issue` Reopens the issue. - `@raycastbot assign me` Assigns yourself to the issue. - `@raycastbot good first issue` Adds the "Good first issue" label to the issue. - `@raycastbot keep this issue open` Make sure the issue won't go stale and will be kept open by the bot.
anton-suprun commented 3 weeks ago

Hi 👋

Thanks for raising the issue!

I'm aware of the problem (someone else created this issue recently on my GitHub repo).

We have a fix in progress.

Cause of issue:

When browsing cards ( Browse Cards command) for large collections we exceed the memory limit. In order to fix this I have a fix to add pagination to the cards browser!

Expect a resolve within the week :)

Sorry for the delay

(@raycastbot assign me)

anton-suprun commented 3 weeks ago

@fwends to confirm my theory, could you share (roughly) how many cards you have in total in your collection ?

fwends commented 3 weeks ago

I don't see anywhere that gives me that info, but i would say 1-2k

anton-suprun commented 2 weeks ago

I don't see anywhere that gives me that info, but i would say 1-2k

Thanks for checking!

I'll work on a fix in the next couple days! Thanks again for bringing this to my attention

anton-suprun commented 2 days ago

Hi,

Just wanted to provide an update; didn't have time to work on it last two weeks but have time tomorrow 👍 Sorry for the delay

anton-suprun commented 1 day ago

Hi @fwends 👋

Have a PR #14424 with a fix ready; thanks again for helping me debug this :)