blacksmithgu / obsidian-dataview

A data index and query language over Markdown files, for https://obsidian.md/.
https://blacksmithgu.github.io/obsidian-dataview/
MIT License
6.64k stars 394 forks source link

Bug report Obsidian freezes with dataview AND Advanced Slides (solved) #2189

Open pachwi opened 7 months ago

pachwi commented 7 months ago

What happened?

Obsidian version v1.5.2. with dataview 0.5.64. on macOS

all notes with dataview queries: obsidian gets extremely slow or stops working

If I ONLY disable dataview - everything is o.k. and runs as normal. This is only happening when I am opening notes with a dataview query.

Just tested another time:

dataview - causes the problem with v. 1.5.2 I just turned all community plugins off = speed as normal.

I turned community plugins OFF = speed as normal.

dataview ON = system goes down - RAM on Mac is running high. obsidian freezes and needs a re-start

Did not have the problem with obsidian v.1.5.1

DQL

No response

JS

No response

Dataview Version

0.5.64

Obsidian Version

1.5.2

OS

MacOS

AB1908 commented 7 months ago

Can you share your queries? AFAIK there shouldn't have been any memory leaks but do you know which was the last stable version for you?

pachwi commented 7 months ago

my last stable version was 1.5.1

If you could look on discord at the - #insider-desktop-release - there are some other users with the same issue..

The problem is, that I am unable to switch back to the previous version

SCR-20231217-sqiw

pachwi commented 7 months ago

Try to get closer to the problem:
I have rolled-back my complete obsidian installation to 1.4.16 and de-installed dataview.

New installation of dataview with actual version and still have the same issue.

so maybe it is not the 1.5.2 - there must be something else?! Any Idea how I can find out?

the linked mentions with around 400 entries take around 5 seconds to load - If I switch to dataview:

TABLE WITHOUT ID file.link as "", eigenschaft FROM [[]] SORT datentyp DESC

everything is freezing - and need around 5 minutes.

I remember that I had an Update on Mac to macOS Monterey 12.7.2 could this causes such an issue?

20.000 notes in my vault

czr commented 6 months ago

A little bit of info that might be related:

A few days ago I upgraded to Obsidian 1.5.3 from 1.4.x. I'm not sure, but it's possible that I upgraded Dataview to 0.5.64 at the same time, or I might have already been on that version. I'm on a Mid-2015 MacBook Pro with macOS 12.6.2. I have 1,286 notes in my vault.

When I upgraded I noticed that Obsidian's CPU usage jumped from roughly nothing when idle to a consistent 10% or so.

If I turn off Automatic View Refreshing the CPU usage goes down to nothing again. The Refresh Interval is the default 2500 and changing it (either smaller or larger) doesn't seem to change the amount of CPU used.

pachwi commented 6 months ago

@czr can you check if you also have the plugin "Advanced Slides" installed?

czr commented 6 months ago

@czr can you check if you also have the plugin "Advanced Slides" installed?

@pachwi No, I don't have Advanced Slides installed. I don't think I've ever had it.

My enabled plugins are:

Core:

Community:

And I initially isolated the problem by disabling the community plugins until I had narrowed it down to just Dataview.

pachwi commented 6 months ago

@czr thanks for your feedback!

Dataview freezes Obsidian with 20k Notes: SOLVED and now running as normal!

I write this down, perhaps helpful for other users:

I disabled all other community plugins (except Dataview). Activated the other ones step by step and found out that:

Dataview with Advanced Slides is freezing Obsdian!

I am now running all other community plugins running (except Advanced Slides) and Obsidian is running perfect again.

Community plugins here: Breadcrumbs Dataview Excalidraw File Explorer Note Count Full Calendar Minimal Theme Settings ReaditLater Super Simple Time Tracker Task Templater

devinat1 commented 6 months ago

Can confirm I am encountering the same issue.

SansGuidon commented 5 months ago

I've also some latency issues with Dataview installed and Advanced Slides installed, but the trick above didn't help. I have disabled 50 plugins while keeping Dataview active, but that does not resolve the issue. Only if I'm disabling Dataview, Obsidian remains usable. I'm using Obsidian 1.5.3 on Linux Ubuntu, with Dataview 0.5.64