Inkdrop breaks after switching to a different notebook

Bug report

After opening inkdrop and switching to a different notebook the preview becomes “pinkish” and some features are freezed

  • like switching to another notebook. Switching to another note changes the title but the preview is still the same (and pink). This happens while switching from a specific note.
    The are errors in developers console.
/Applications/Inkdrop.app/Contents/Resources/app.asar/node_modules/debug/src/debug.js:114 Failed to render preview: Error: Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.
    at invariant (/Applications/Inkdrop.app/Contents/Resources/app.asar/node_modules/react/node_modules/fbjs/lib/invariant.js:35:15)
    at Object.processUpdates (/Applications/Inkdrop.app/Contents/Resources/app.asar/node_modules/react/lib/DOMChildrenOperations.js:75:473)
    at Object.dangerouslyProcessChildrenUpdates [as processChildrenUpdates] (/Applications/Inkdrop.app/Contents/Resources/app.asar/node_modules/react/lib/ReactDOMIDOperations.js:85:27)


debug @ /Applications/Inkdrop.app/Contents/Resources/app.asar/node_modules/debug/src/debug.js:114
/Applications/Inkdrop.app/Contents/Resources/app.asar/node_modules/react/node_modules/fbjs/lib/invariant.js:35 Uncaught (in promise) Error: Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.
    at invariant (/Applications/Inkdrop.app/Contents/Resources/app.asar/node_modules/react/node_modules/fbjs/lib/invariant.js:35:15)
    at Object.processUpdates (/Applications/Inkdrop.app/Contents/Resources/app.asar/node_modules/react/lib/DOMChildrenOperations.js:75:473)
    at Object.dangerouslyProcessChildrenUpdates [as processChildrenUpdates] (/Applications/Inkdrop.app/Contents/Resources/app.asar/node_modules/react/lib/ReactDOMIDOperations.js:85:27)

Info

  • Platform: macOS
  • Platform version: 10.12.6
  • App Version: 3.10.4

Reproduce

  1. Create a note with the contents from the following gist (use the raw version)
    https://gist.github.com/iskeld/9c3f9dd06993ba6aa20ea6ede926ec83

  2. Go to preview, switch to a different notebook.

Hi, Maciej,
Thanks for the report.

It seems like line 9 is invalid Markdown expression.

* [ ] * [x] xxxxx://xxxxxxxxxx.xxxxxxxxx.xxx/xxxxxx/xxxx-4914

It causes following error in my development environment:

Warning: validateDOMNesting(...): <li> cannot appear as a descendant of <li>. See li > ... > li.

Please fix as following:

* [x] xxxxx://xxxxxxxxxx.xxxxxxxxx.xxx/xxxxxx/xxxx-4914

The pinkish issue is weird, I guess the error handling went wrong for some reason. I’ll look into it!