zadam / trilium

Build your personal knowledge base with Trilium Notes
GNU Affero General Public License v3.0
27.3k stars 1.91k forks source link

Can't import Evernote #344

Closed jsaaby closed 5 years ago

jsaaby commented 5 years ago

Hi.

Tried to import an ENEX file. Seemed like nothing happened at first. Then I just got an error message saying it couldn't import.

When I tried to recreate that just now, Trilium just didn't do anything. But I couldn't go into Options. I exited without problems. But nothing was imported.

Relatively small ENEX file. Just a couple of folders I use for test importing.

zadam commented 5 years ago

Hello, thank you for the report! Could you please submit the content of trilium-data/log/*.log files here? Where this trilium-data directory is depends on the platform:

Also I'm not sure I understand - you say the app doesn't work at all now after the failed import? Is that correct?

jsaaby commented 5 years ago

Sure. Here you go. This was done using one folder, containing 32 notes which are clips from various sites. A bit much with a 32Mb logfile for that ;)

I can use the app. It takes a little while for it to start (like 15-20 seconds, and I'm not on a particularly slow pc, it's a 1 year old Lenovo X1 Carbon).

But, when I try to import, if I click the options button afterwards, Trilium just freezes. The Option button has a blue box around it, and then nothing more happens. I have to close it, then open it.

zadam commented 5 years ago

@jsaaby thank you! I deleted the link since the log actually leaked some of your document data (that's why it was so large). I will fix that issue.

Otherwise it looks like something is wrong from the performance perspective because all the DB queries are taking very long (they are at least ten times slower than they should be). And they aren't even complex queries. I'll investigate further.

jsaaby commented 5 years ago

It's ok regarding the document data, but thanks anyway :) I specifically exported that folder because the contents were not sensitive in any way ;)

zadam commented 5 years ago

Hello, I studied the log and I think the problem has been fixed in 0.27.4 (it looks like exactly the same issue as in #288). However I can't explain the extreme slowness of the app on your laptop. I think the app froze after the import as a result of this slowness.

BTW, if your ENEX import doesn't have sensitive data, would it be possible to send it to me / attach it here? It would help me a lot since I have very few real world ENEX samples to test with. With a bit of luck it might even be possible to reproduce your performance issue (if it was connected in some way to the export file).

jsaaby commented 5 years ago

Sure, here you go.

Artikler.zip

jsaaby commented 5 years ago

Tried starting Trilium just now. Just over 6 seconds. I find that fine. That was just after startup, so nothing else was really running by then.

There may have been something impacting performance yesterday, I think, without me having been aware of it.

Let's park that part here, and I'll write again if things get slow :)