laurent22 / joplin

Joplin - the privacy-focused note taking app with sync capabilities for Windows, macOS, Linux, Android and iOS.
https://joplinapp.org
Other
45.46k stars 4.94k forks source link

WYSIWYG editor extremely laggy when trying to edit a specific Web clipped page #6736

Closed tomasz1986 closed 1 year ago

tomasz1986 commented 2 years ago

Environment

Joplin version: 2.8.8 Platform: Windows 10 OS specifics: x64

Steps to reproduce

  1. Use the Web Clipper to save the article from https://tomshardware.com/reviews/gpu-hierarchy,4388.html to Joplin.
  2. Open the clipped site in Joplin using the WYSIWYG/RichText editor (not Markdown editor).
  3. Try to edit anything in the editor, e.g. add a H1 element.
  4. The whole Joplin GUI stalls for several seconds and only becomes responsive later (e.g. on my Ryzen 4350G computer every action usually 5-10 seconds).

Describe what you expected to happen

The WYSIWYG editor should respond to commands immediately and apply the user changes to the note.

Logfile

15:43:45: Loaded note: {id: 'bf8f648ec1784be3837e2d66cbdc77bb', parent_id: '6d3ce875f8e84b0fb00fd2428d813eb8', title: 'GPU Benchmarks and Hierarchy 2022: Graphics Cards Ranked', body: '# GPU Benchmarks and Hierarchy 2022: Graphics Card…/tomshardware.com/reviews/gpu-hierarchy,4388.html', created_time: 1660212348649, …}altitude: "0.0000"application_data: ""author: ""body: "# GPU Benchmarks and Hierarchy 2022: Graphics Carconflict_original_id: ""created_time: 1660212348649encryption_applied: 0encryption_cipher_text: ""id: "bf8f648ec1784be3837e2d66cbdc77bb"is_conflict: 0is_shared: 0is_todo: 1latitude: "0.00000000"longitude: "0.00000000"markup_language: 1master_key_id: ""order: 1660212348649parent_id: "6d3ce875f8e84b0fb00fd2428d813eb8"share_id: ""source: "joplin-desktop"source_application: "net.cozic.joplin-desktop"source_url: "https://tomshardware.com/reviews/gpu-hierarchy,4388.html"title: "GPU Benchmarks and Hierarchy 2022: Graphics Cards Ranked"todo_completed: 0todo_due: 0type_: 1updated_time: 1660214795949user_created_time: 1660212300000user_updated_time: 1660214795949[[Prototype]]: Object
Joplin\app\resources\app.asar\gui\NoteEditor\utils\useMessageHandler.js:25 Got ipc-message: noteRenderComplete null
Joplin\app\resources\app.asar\gui\NoteEditor\utils\useMessageHandler.js:25 Got ipc-message: noteRenderComplete null
Joplin\app\resources\app.asar\node_modules\@joplin\lib\Logger.js:190 15:43:46: SearchEngine: Updating FTS table...
Joplin\app\resources\app.asar\node_modules\@joplin\lib\Logger.js:190 15:43:47: SearchEngine: Updated FTS table in 1ms. Inserted: 0. Deleted: 0
Joplin\app\resources\app.asar\node_modules\@joplin\lib\Logger.js:190 15:43:56: Saving note... {id: 'bf8f648ec1784be3837e2d66cbdc77bb', parent_id: '6d3ce875f8e84b0fb00fd2428d813eb8', title: 'GPU Benchmarks and Hierarchy 2022: Graphics Cards Ranked', body: '# GPU Benchmarks and Hierarchy 2022: Graphics Card…/tomshardware.com/reviews/gpu-hierarchy,4388.html'}
Joplin\app\resources\app.asar\node_modules\@joplin\lib\Logger.js:190 15:43:56: Scheduling sync operation... 30000
Joplin\app\resources\app.asar\gui\NoteEditor\utils\useMessageHandler.js:25 Got ipc-message: noteRenderComplete null
Joplin\app\resources\app.asar\node_modules\@joplin\lib\Logger.js:190 15:44:07: SearchEngine: Updating FTS table...
Joplin\app\resources\app.asar\node_modules\@joplin\lib\Logger.js:190 15:44:07: ResourceService::indexNoteResources: Start
Joplin\app\resources\app.asar\node_modules\@joplin\lib\Logger.js:190 15:44:07: models/Setting: Saving settings...
Joplin\app\resources\app.asar\node_modules\@joplin\lib\Logger.js:190 15:44:07: models/Setting: Settings have been saved.
Joplin\app\resources\app.asar\node_modules\@joplin\lib\Logger.js:190 15:44:07: SearchEngine: Updated FTS table in 198ms. Inserted: 1. Deleted: 0
Joplin\app\resources\app.asar\node_modules\@joplin\lib\Logger.js:190 15:44:07: Saving note... {id: 'bf8f648ec1784be3837e2d66cbdc77bb', parent_id: '6d3ce875f8e84b0fb00fd2428d813eb8', title: 'GPU Benchmarks and Hierarchy 2022: Graphics Cards Ranked', body: '# GPU Benchmarks and Hierarchy 2022: Graphics Card…/tomshardware.com/reviews/gpu-hierarchy,4388.html'}
Joplin\app\resources\app.asar\node_modules\@joplin\lib\Logger.js:190 15:44:07: Scheduling sync operation... 30000
Joplin\app\resources\app.asar\node_modules\@joplin\lib\Logger.js:190 15:44:07: models/Setting: Saving settings...
Joplin\app\resources\app.asar\node_modules\@joplin\lib\Logger.js:190 15:44:07: models/Setting: Settings have been saved.
Joplin\app\resources\app.asar\node_modules\@joplin\lib\Logger.js:190 15:44:07: ResourceService::indexNoteResources: Completed
Joplin\app\resources\app.asar\node_modules\@joplin\lib\Logger.js:190 15:44:07: ResourceService::deleteOrphanResources:
laurent22 commented 2 years ago

I cannot replicate this on macOS. Do you have any plugin running?

tomasz1986 commented 2 years ago

This happens in a completely clean installation of Joplin with no plugins. Basically, trying to make any changes in the note using the RichText editor is extremely laggy.

Just in case, I've managed to upload the problematic JEX file below.

GPU Benchmarks and Hierarchy 2022_ Graphics Cards Ranked.jex

shivamsingha commented 2 years ago

Was able to reproduce this. Screenshot from 2022-10-05 10-27-28 Profile-20221005T102814.tar.gz