Obsidian_to_Anki icon indicating copy to clipboard operation
Obsidian_to_Anki copied to clipboard

Memory overload causes Crash - getDefaultDeck

Open mw9982 opened this issue 1 year ago • 6 comments

Hello,

I'm having an issue with Obsidian_To_Anki in which Obsidian goes black and needs to be closed out about two minutes after I start the sync.

The problem: When I sync with the console open, it eventually enters debugging mode to evade a "memory crash." It specifically calls out line 30611, which is:

getDefaultDeck(file, folder_path_list) { 30611--> let folder_decks = this.data.folder_decks; for (let folder of folder_path_list) { // Loops over them from innermost folder if (folder_decks[folder.path]) { return folder_decks[folder.path];

When I close out the debugging mode, it takes 10 seconds for the screen to go black. I have to then close out of the application.

I've tried:

  1. reinstalling both Obsidian and the plugin
  2. removing the default target decks.

What could be causing this?

Thank you

mw9982 avatar Jul 08 '23 18:07 mw9982

Just popping in to say I have the same issue, to a T.

vervitee avatar Dec 03 '23 11:12 vervitee

@vervitee , did you ever figure this out?

mw9982 avatar Dec 23 '23 16:12 mw9982

@vervitee , this program is now working! I didn't do anything but wait for an update. I hope that's the case for you too.

mw9982 avatar Dec 23 '23 16:12 mw9982

@vervitee , this program is now working! I didn't do anything but wait for an update. I hope that's the case for you too.

Still have the same error. I don't think there's been an update? Are you using a fork?

vervitee avatar Dec 23 '23 17:12 vervitee

Still having this issue with 7k notes on Mac. Interestingly, I didn't have the issue when syncing my vault of similar size on Windows.

timfarkas avatar Apr 10 '24 18:04 timfarkas

bump, still having this issue

timfarkas avatar Jul 16 '24 16:07 timfarkas