100% CPU on MacOS

Again some news about this issue :

I have deleted all 3 resources that were with OCR_status=0 with a good mime type with the Web Clipper DELETE API

And as soon as the one with no Note attached was deleted, the log said :

and the cpu stopped raising.

I hope it can help you fixing that issue

Hmm, not really unfortunately. What would have been useful is a copy of the pdf that makes ocr run at 100%. Do you happen to have a copy of it? You should be able to find it by searching for the id

It was not a PDF but all 3 resources that were “blocked” were image/jpg ..

Unfortunately as i have deleted the resources, i don’t have the filename anymore .. when we make a DELETE of a resource via API does it keep data somewhere ?

I think i remember the beginning of the file i had checked while i was investigating and it seems to be the one i’m attaching right now.

But i have created a note with it and the OCR worked perfectly on it.(if needed i can send it to you by mail if you need the perfect file as it was on my desktop)

I think what happens is that it processes the resources in a specific order, always the same, and it got stuck on one of the resources, which means it also couldn't process the following ones. If you go in your profile folder, in the "resources" folder, is there a file with this name f2d7...?

Hello,

yes I have this file : it was a pdf i had added to a note to test if OCR was still working and Joplin instantly managed to extract data from it. This one worked, but after this one, it got blocked on something else. Based on the sources i can see, I don’t think there is a “process successful” log after each process. So I presume based on this screenshot from yesterday :

3 resources were still pending. I have added this pdf, it started the ocr engine and said

Processing resource 1/4 with this good pdf. It worked but before even saying “Processing resource 2/4” it was blocked and causing 100% cpu. Maybe it’s not even OCR service but the way it tries to get the next resource ?

Sorry to have deleted resources before trying to debug more


And just to check, I have tried to add this pdf to a new note right now and it worked again :

1 Like

Ok thanks for checking, and if it happens again please let us know. Hopefully that was a one off on a specific file

1 Like

Hello @Laurent, i think i have found a way to reproduce my issue.

I discovered this morning that it was the same behaviour as before : 100%cpu on Mac desktop. There were 11 resources to process and nothing moved. I have listed and deleted all of them with API. Nothing seemed wrong with them (png files). But I had a clue : all these png had been added through copy on my mobile. As soon as all of them were deleted, it said that the Process was finished.

I have found the way to reproduce it :

I have iOS version and Mac Desktop version.

On the iOS i have created a note and i have copied a screenshot to it. (not a file but i have made a screenshot then Copy and Delete)

Then i have synchronized with iOS then with Desktop. As soon as the note was synchronized to the desktop it started the OCR process and now CPU is 100% and nothing changes.

I

I have deleted the resource and it became ok

I have done the same process with a photo attached instead of a copy and it’s the same, the OCR process starts but never finishes.

It seems the resources added by my iOS block the OCR service of my desktop when synchronized :frowning:

Any chance you could create an issue and this on GitHub?

Yes I can try to do it. The issue seems so easy to reproduce : just add an image on mobile and synchronize and the desktop OCR becomes blocked .. There is probably a strange thing on my config that causes that issue (E2EE / Joplin Cloud)

done, with logs .. maybe it has something to do with encryption/decryption and E2EE .. the OCR process seems to start just before decryption logs..

1 Like

Merci !

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.