Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal Crash "Position 1325 is out of range for changeset of length 1324" after strange Cursor behaviour #11710

Open
Noctran opened this issue Jan 23, 2025 · 2 comments · May be fixed by #11714
Labels
bug It's a bug

Comments

@Noctran
Copy link

Noctran commented Jan 23, 2025

Operating system

Windows

Joplin version

3.2.11

Desktop version info

Joplin 3.2.11 (prod, win32)

Client ID: ***
Sync Version: 3
Profile Version: 47
Keychain Supported: Yes

Revision: 2fba101

Backstage: 1.0.0
Backup: 1.4.2
Combine notes: 1.2.2
Conflict Resolution: 1.2.3
Convert Text To New Note: 1.5.1
Copy Code Blocks: 1.1.2
Cursor Sync: 2.1.0
Diff view: 0.1.1
Email Note: 1.2.2
Folding in Code Mirror Editor: 2.0.1
Freehand Drawing: 2.14.0
Hotfolder: 1.2.1
Jarvis: 0.9.1
Joplin Disk Usage: 1.3.1
LanguageTool integration: 0.1.0
Math Mode: 0.7.1
Note Tabs: 1.4.0
Note Variables: 2.0.0
OCR: 0.3.2
Pseudocode Support: 0.1.0
Reset Checkboxes: 1.0.3
Table Formatter Plugin: 1.2.1
Templates: 2.4.0
ToWebSearchEngine: 1.0.2

Current behaviour

While writing on the Note, without utilizing any Plugin actively, Joplin sometimes just randomly (without any specific action or Button or User Behavior besides just writing) bugs out the text cursor, it stays in a fixed Spot while the tipped Text gets written beyond that like Overwrite Mode but without that Mode being active.
It then starts to randomly delete some of the most recently written Text and add random snippets elsewhere.
Even if I manually sync Joplin and then kill it fully after it says it successfully synced, when I reopen Joplin some of the text that was there during the Sync is gone.

Some time after this behavior starts, and I have given up on using Joplin, it crashes fully with the Error message below

Expected behaviour

Not Crash

Logs

Message
Position 1325 is out of range for changeset of length 1324

Version info
Joplin for Desktop

Copyright © 2016-2025 Laurent Cozic
Joplin 3.2.11 (prod, win32)

Client ID: ***
Sync Version: 3
Profile Version: 47
Keychain Supported: Yes

Revision: 2fba101

Backstage: 1.0.0
Backup: 1.4.2
Combine notes: 1.2.2
Conflict Resolution: 1.2.3
Convert Text To New Note: 1.5.1
Copy Code Blocks: 1.1.2
Cursor Sync: 2.1.0
Diff view: 0.1.1
Email Note: 1.2.2
Folding in Code Mirror Editor: 2.0.1
Freehand Drawing: 2.14.0
Hotfolder: 1.2.1
Jarvis: 0.9.1
Joplin Disk Usage: 1.3.1
LanguageTool integration: 0.1.0
Math Mode: 0.7.1
Note Tabs: 1.4.0
Note Variables: 2.0.0
OCR: 0.3.2
Pseudocode Support: 0.1.0
...
Plugins
[
{
"id": "io.github.jackgruber.backup",
"name": "Backup",
"enabled": true,
"version": "1.4.2"
},
{
"id": "aa.asrient.backstage",
"name": "Backstage",
"enabled": true,
"version": "1.0.0"
},
{
"id": "io.github.jackgruber.combine-notes",
"name": "Combine notes",
"enabled": true,
"version": "1.2.2"
},
{
"id": "io.github.jackgruber.hotfolder",
"name": "Hotfolder",
"enabled": true,
"version": "1.2.1"
},
{
"id": "joplin.plugin.alondmnt.jarvis",
"name": "Jarvis",
"enabled": true,
"version": "0.9.1"
},
{
"id": "joplin.plugin.templates",
"name": "Templates",
"enabled": true,
"version": "2.4.0"
},
{
"id": "plugin.calebjohn.MathMode",
"name": "Math Mode",
"enabled": true,
"version": "0.7.1"
},
{
"id": "joplin.plugin.note.tabs",
"name": "Note Tabs",
"enabled": true,
"version": "1.4.0"
},
{
"id": "com.joplin.copy.codeBlocks",
"name": "Copy Code Blocks",
"enabled": true,
"version": "1.1.2"
},
{
"id": "io.github.personalizedrefrigerator.diff-view",
"name": "Diff view",
"enabled": true,
"version": "0.1.1"
},
{
"id": "ylc395.joplinOcr",
"name": "OCR",
"enabled": true,
"version": "0.3.2"
},
{
"id": "com.asdibiase.joplin-languagetool",
"name": "LanguageTool integration",
"enabled": true,
"version": "0.1.0"
},
{
"id": "joplin.plugin.ambrt.fold-cm",
"name": "Folding in Code Mirror Editor",
"enabled": true,
"version": "2.0.1"
},
{
"id": "ylc395.betterMarkdownViewer",
"name": "Cursor Sync",
"enabled": true,
"version": "2.1.0"
},
{
"id": "com.eliasvsimon.email-note",
"name": "Email Note",
"enabled": true,
"version": "1.2.2"
},
{
"id": "joplin.plugin.ambrt.convertToNewNote",
"name": "Convert Text To New Note",
"enabled": true,
"version": "1.5.1"
},
{
"id": "org.otherware.joplin-du",
"name": "Joplin Disk Usage",
"enabled": true,
"version": "1.3.1"
},
{
"id": "com.DanteCoder.NoteVariables",
"name": "Note Variables",
"enabled": true,
"version": "2.0.0"
},
{
"id": "dev.kamer.reset-checkboxes",
"name": "Reset Checkboxes",
"enabled": true,
"version": "1.0.3"
},
{
"id": "org.yangby.joplin.plugins.pseudocode-support",
"name": "Pseudocode Support",
"enabled": true,
"version": "0.1.0"
},
{
"id": "com.Plugin.ToWebSearchEngine",
"name": "ToWebSearchEngine",
"enabled": true,
"version": "1.0.2"
},
{
"id": "io.github.personalizedrefrigerator.js-draw",
"name": "Freehand Drawing",
"enabled": true,
"version": "2.14.0"
},
{
"id": "net.rmusin.joplin-table-formatter",
"name": "Table Formatter Plugin",
"enabled": true,
"version": "1.2.1"
},
{
"id": "joplin-plugin-conflict-resolution",
"name": "Conflict Resolution",
"enabled": true,
"version": "1.2.3"
}
]
Stack trace
RangeError: Position 1325 is out of range for changeset of length 1324
at ChangeSet.mapPos (C:\Users%username%\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\editor\node_modules@codemirror\state\dist\index.cjs:819:19)
at Chunk.map (C:\Users%username%\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\editor\node_modules@codemirror\state\dist\index.cjs:3149:33)
at RangeSet.map (C:\Users%username%\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\editor\node_modules@codemirror\state\dist\index.cjs:3284:45)
at Decorator.updateEffectDecorations (C:\Users%username%\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\editor\CodeMirror\CodeMirror5Emulation\Decorator.js:116:39)
at StateField.update [as updateF] (C:\Users%username%\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\editor\CodeMirror\CodeMirror5Emulation\Decorator.js:86:54)
at Object.update (C:\Users%username%\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\editor\node_modules@codemirror\state\dist\index.cjs:1828:34)
at EditorState.computeSlot (C:\Users%username%\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\editor\node_modules@codemirror\state\dist\index.cjs:2665:88)
at ensureAddr (C:\Users%username%\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\editor\node_modules@codemirror\state\dist\index.cjs:2064:25)
at new EditorState (C:\Users%username%\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\editor\node_modules@codemirror\state\dist\index.cjs:2601:13)
at EditorState.applyTransaction (C:\Users%username%\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\editor\node_modules@codemirror\state\dist\index.cjs:2665:9)
Component stack

at CodeMirror (C:\Users\%username%\AppData\Local\Programs\Joplin\resources\app.asar\gui\NoteEditor\NoteBody\CodeMirror\v6\CodeMirror.js:44:44)
at div
at div
at div
at NoteEditorContent (C:\Users\%username%\AppData\Local\Programs\Joplin\resources\app.asar\gui\NoteEditor\NoteEditor.js:78:68)
at ConnectFunction (C:\Users\%username%\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\react-redux\lib\components\connect.js:246:74)
at div
at div
at I (C:\Users\%username%\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\styled-components\dist\styled-components.cjs.js:1:19269)
at div
at div
at ResizableLayout (C:\Users\%username%\AppData\Local\Programs\Joplin\resources\app.asar\gui\ResizableLayout\ResizableLayout.js:54:45)
at div
at MainScreenComponent (C:\Users\%username%\AppData\Local\Programs\Joplin\resources\app.asar\gui\MainScreen.js:61:9)
at ConnectFunction (C:\Users\%username%\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\react-redux\lib\components\connect.js:246:74)
at div
at NavigatorComponent (C:\Users\%username%\AppData\Local\Programs\Joplin\resources\app.asar\gui\Navigator.js:10:45)
at ConnectFunction (C:\Users\%username%\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\react-redux\lib\components\connect.js:246:74)
at exports.ThemeProvider (C:\Users\%username%\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\styled-components\dist\styled-components.cjs.js:1:25001)
at ae (C:\Users\%username%\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\styled-components\dist\styled-components.cjs.js:1:13440)
at RootComponent (C:\Users\%username%\AppData\Local\Programs\Joplin\resources\app.asar\gui\Root.js:73:1)
at ConnectFunction (C:\Users\%username%\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\react-redux\lib\components\connect.js:246:74)
at ErrorBoundary (C:\Users\%username%\AppData\Local\Programs\Joplin\resources\app.asar\gui\ErrorBoundary.js:12:9)
at Provider (C:\Users\%username%\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\react-redux\lib\components\Provider.js:19:3)
@Noctran Noctran added the bug It's a bug label Jan 23, 2025
@personalizedrefrigerator
Copy link
Collaborator

personalizedrefrigerator commented Jan 23, 2025

without utilizing any Plugin actively

If plugins are not in use, but still enabled in settings > plugins: Disabling plugins not actively in use (then restarting Joplin) might help — LanguageTool integration is known to cause crashes in recent versions of Joplin.

@Noctran
Copy link
Author

Noctran commented Jan 24, 2025

I didn't convey my meaning correctly, sorry, I meant that the appearance of the Bug did not seem to depend on using some tool from a plugin at that moment, I use the plugins I have installed and some of them are just passive changes to Joplin so in that sense they were in use at that moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug It's a bug
Projects
None yet
2 participants