Marktext: Exception while selecting math formula "Failed to execute 'setStart' on 'Range'"

Created on 16 Nov 2019  路  3Comments  路  Source: marktext/marktext

Description

An unexpected error occurred in the renderer process.

I tried to mark LaTeX code with the cursor. The code was injected into markdown with $$

Stack Trace

Error: Failed to execute 'setStart' on 'Range': There is no child at offset 60.
    at Object.select (file:///opt/Mark%20Text/resources/app.asar/dist/electron/renderer.js:20:3266686)
    at Object.setCursorRange (file:///opt/Mark%20Text/resources/app.asar/dist/electron/renderer.js:20:3268189)
    at Ps.setCursor (file:///opt/Mark%20Text/resources/app.asar/dist/electron/renderer.js:20:3432934)
    at Ps.partialRender (file:///opt/Mark%20Text/resources/app.asar/dist/electron/renderer.js:20:3433810)
    at Ps.Ss.A.clickHandler (file:///opt/Mark%20Text/resources/app.asar/dist/electron/renderer.js:20:3422060)
    at HTMLDivElement.<anonymous> (file:///opt/Mark%20Text/resources/app.asar/dist/electron/renderer.js:20:3456801)

Version

Mark Text: v0.15.1 (a32c2c0)
Operating system: Linux x64 4.19.84-1-MANJARO (linux)

math block 馃悰 bug 馃敪 aremuya

All 3 comments

Thank @CeroProgramming for taking the time to report this issue. We cannot reproduce the issue without steps to reproduce, please provide some steps like an example document.

I wasn't able to reproduce it at the moment, sorry :( . If it ever occurs again I will send you the code.

So, it happend again :O

Snippet:

$\cap\,\mathfrak{U}$

Steps to reproduce:
Make sure the snippet is not selected (so you only see the rendered version) and try to mark the rendered equation with the cursor from the left to right with the cursor. It may not happen every time (I think it happend about two third of the time for me.

GIF not loading?

Error:

An unexpected error occurred in the renderer process
Error: Failed to execute 'setStart' on 'Range': There is no child at offset 41.
    at Object.select (file:///opt/Mark%20Text/resources/app.asar/dist/electron/renderer.js:20:3266686)
    at Object.setCursorRange (file:///opt/Mark%20Text/resources/app.asar/dist/electron/renderer.js:20:3268189)
    at Ps.setCursor (file:///opt/Mark%20Text/resources/app.asar/dist/electron/renderer.js:20:3432934)
    at Ps.partialRender (file:///opt/Mark%20Text/resources/app.asar/dist/electron/renderer.js:20:3433810)
    at Ps.Ss.A.clickHandler (file:///opt/Mark%20Text/resources/app.asar/dist/electron/renderer.js:20:3422060)
    at HTMLDivElement.<anonymous> (file:///opt/Mark%20Text/resources/app.asar/dist/electron/renderer.js:20:3456801)
Was this page helpful?
0 / 5 - 0 ratings

Related issues

ccconnor picture ccconnor  路  4Comments

AsierRF picture AsierRF  路  3Comments

1dancook picture 1dancook  路  4Comments

umi-neko picture umi-neko  路  4Comments

stefnotch picture stefnotch  路  4Comments