pbek / QOwnNotes

QOwnNotes is a plain-text file notepad and todo-list manager with Markdown support and Nextcloud / ownCloud integration.
https://www.qownnotes.org/
GNU General Public License v2.0
4.66k stars 411 forks source link

[I] QOwnNotes gets down with some weird code block. #2288

Closed butty2017 closed 2 years ago

butty2017 commented 2 years ago

Expected behaviour

Code blocks are shown in the editor and preview panes.

Actual behaviour

QON gets down with Segmentation fault.

Steps to reproduce

  1. Open the note in problem (sample shown below).
  2. Replace "..." with three back-quotes (backticks) to make a code block.
  3. Enter some text in the note.

Sample note in problem: ... /home/butty/misc/Downloads/QOwnNotes-develop/src/mainwindow.cpp:62: error: QJSEngine: No such file or directory ../src/mainwindow.cpp:62:10: fatal error: QJSEngine: No such file or directory 62 | #include | ^~~ ...

Additional info. and comments.

Relevant log output in the Log panel

Expand ``` (Taken from console) [Nov 02 16:07:55] [debug]: reloadTagTree - 'noteSubFolderIds': QVector() [Nov 02 16:08:03] [debug]: Code block of lang detected: "" 0 [Nov 02 16:08:03] [debug]: Code block of lang detected: "" 0 [Nov 02 16:08:03] [debug]: Code block of lang detected: "" 0 : Segmentation fault ```

Information about the application, settings and environment

Expand QOwnNotes Debug Information =========================== ## General Info **Current Date**: `Tue Nov 2 17:05:37 2021` **Version**: `21.11.1` **Build date**: `Nov 1 2021` **Build number**: `908` **Platform**: `linux` **Operating System**: `Linux Mint 20.2` **Build architecture**: `x86_64` **Current architecture**: `x86_64` **Release**: `Launchpad PPA` **Qt Version (build)**: `5.12.8` **Qt Version (runtime)**: `5.12.8` **Portable mode**: `no` **Settings path / key**: `/home/butty/.config/PBE/QOwnNotes.conf` **Application database path**: `/home/butty/.local/share/PBE/QOwnNotes/QOwnNotes.sqlite` **Application arguments**: `QOwnNotes` **Qt Debug**: `0` **Locale (system)**: `en_US` **Locale (interface)**: *empty* **Primary screen resolution**: `1920x1200` **Screen resolution(s)**: `1920x1200, 1280x1024` **Icon theme**: `Adwaita` **Notes in current note folder**: `9` **Calendar items**: `0` **Enabled scripts**: `0` ## Server Info **serverUrl**: *empty* **appIsValid**: `yes` **notesPathExists**: *empty* **serverVersion**: *empty* **appVersion**: *empty* ## Spellchecking **Enabled**: `false` **Selected language**: `en_US` **Language codes**: `en_US` **Language names**: `American English (United States)` **Application dictionaries path**: `/home/butty/.local/share/PBE/QOwnNotes/dicts` ## Note folders **currentNoteFolderId**: `3` ### Note folder `NC` **id**: `1` **isCurrent**: `no` **activeTagId**: `0` **localPath**: `/home/butty/Documents/QOwnNotes/Notes` **remotePath**: `Documents/QOwnNotes` **cloudConnectionId**: `1` **isShowSubfolders**: `yes` **isUseGit**: `yes` **activeNoteSubFolder name**: *empty* **database file**: `/home/butty/Documents/QOwnNotes/Notes/notes.sqlite` ### Note folder `Joplin work` **id**: `2` **isCurrent**: `no` **activeTagId**: `-1` **localPath**: `/home/butty/tmp/jop-qon-tmp` **remotePath**: *empty* **cloudConnectionId**: `1` **isShowSubfolders**: `no` **isUseGit**: `no` **activeNoteSubFolder name**: *empty* **database file**: `/home/butty/tmp/jop-qon-tmp/notes.sqlite` ### Note folder `Notes` **id**: `3` **isCurrent**: `yes` **activeTagId**: `0` **localPath**: `/home/butty/Documents/QOwnNotes/Notes` **remotePath**: *empty* **cloudConnectionId**: `1` **isShowSubfolders**: `no` **isUseGit**: `no` **activeNoteSubFolder name**: *empty* **database file**: `/home/butty/Documents/QOwnNotes/Notes/notes.sqlite` ## Cloud connections ### Cloud connection `` **id**: `1` **isCurrent**: `yes` **serverUrl**: *empty* **username**: *empty* ## Enabled scripts ## Settings **AboutDialog/geometry** (QByteArray): `` **ActiveNoteHistoryItem** (NoteHistoryItem): `` **Debug/fakeOldVersionNumber** (QString): `false` **Debug/fileLogging** (QString): `false` **Editor/ColorSchemes** (QString): `EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb` **Editor/CurrentSchemaKey** (QString): `EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb` **Editor/autoBracketClosing** (QString): `false` **Editor/autoBracketRemoval** (QString): `true` **Editor/disableCursorBlinking** (QString): `true` **Editor/editorWidthInDFMOnly** (QString): `true` **Editor/highlightCurrentLine** (QString): `false` **Editor/indentSize** (QString): `4` **Editor/removeTrailingSpaces** (QString): `false` **Editor/showLineNumbers** (QString): `false` **Editor/useTabIndent** (QString): `false` **Editor/vimMode** (QString): `false` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColorEnabled_-1** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColorEnabled_0** (QString): `false` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColorEnabled_1** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColorEnabled_1000** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColorEnabled_1001** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColorEnabled_1002** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColorEnabled_1003** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColorEnabled_1004** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColorEnabled_1005** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColorEnabled_1006** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColorEnabled_11** (QString): `false` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColorEnabled_12** (QString): `false` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColorEnabled_13** (QString): `false` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColorEnabled_14** (QString): `false` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColorEnabled_15** (QString): `false` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColorEnabled_16** (QString): `false` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColorEnabled_17** (QString): `false` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColorEnabled_18** (QString): `false` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColorEnabled_19** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColorEnabled_2** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColorEnabled_21** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColorEnabled_22** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColorEnabled_23** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColorEnabled_25** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColorEnabled_28** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColorEnabled_3** (QString): `false` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColorEnabled_4** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColorEnabled_8** (QString): `false` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColor_-1** (QColor): `#f8f8f8` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColor_0** (QColor): `#fff8ef` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColor_1** (QColor): `#fff2e4` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColor_1000** (QColor): `#f2f2f2` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColor_1001** (QColor): `#f2f2f2` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColor_1002** (QColor): `#f2f2f2` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColor_1003** (QColor): `#f2f2f2` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColor_1004** (QColor): `#f2f2f2` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColor_1005** (QColor): `#f2f2f2` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColor_1006** (QColor): `#f2f2f2` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColor_11** (QColor): `#aaf7ff` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColor_12** (QColor): `#f1f1f4` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColor_13** (QColor): `#f1f1f4` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColor_14** (QColor): `#f1f1f4` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColor_15** (QColor): `#f1f1f4` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColor_16** (QColor): `#f1f1f4` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColor_17** (QColor): `#f1f1f4` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColor_18** (QColor): `#f5f9d8` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColor_19** (QColor): `#e2e7e2` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColor_2** (QColor): `#fff2e4` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColor_21** (QColor): `#f3f3f3` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColor_22** (QColor): `#f7f6ff` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColor_23** (QColor): `#f2f2f2` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColor_25** (QColor): `#f0f0f0` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColor_28** (QColor): `#f0f0f0` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColor_3** (QColor): `#f4f4f4` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColor_4** (QColor): `#f2f2f2` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/BackgroundColor_8** (QColor): `#dbf9e5` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/Bold_12** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/Bold_13** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/Bold_14** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/Bold_15** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/Bold_16** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/Bold_17** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/Bold_8** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/FontSizeAdaption_-1** (QString): `95` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/FontSizeAdaption_12** (QString): `175` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/FontSizeAdaption_13** (QString): `150` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/FontSizeAdaption_14** (QString): `125` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/FontSizeAdaption_15** (QString): `100` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/FontSizeAdaption_16** (QString): `95` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/FontSizeAdaption_17** (QString): `87` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/FontSizeAdaption_24** (QString): `90` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/FontSizeAdaption_8** (QString): `100` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColorEnabled_-1** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColorEnabled_0** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColorEnabled_1** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColorEnabled_10** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColorEnabled_1000** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColorEnabled_1001** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColorEnabled_1002** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColorEnabled_1003** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColorEnabled_1004** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColorEnabled_1005** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColorEnabled_1006** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColorEnabled_11** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColorEnabled_12** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColorEnabled_13** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColorEnabled_14** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColorEnabled_15** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColorEnabled_16** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColorEnabled_17** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColorEnabled_18** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColorEnabled_19** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColorEnabled_2** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColorEnabled_20** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColorEnabled_21** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColorEnabled_22** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColorEnabled_23** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColorEnabled_24** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColorEnabled_26** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColorEnabled_29** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColorEnabled_3** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColorEnabled_30** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColorEnabled_4** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColorEnabled_5** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColorEnabled_6** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColorEnabled_7** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColorEnabled_8** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColorEnabled_9** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColor_-1** (QColor): `#000000` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColor_0** (QColor): `#7f4417` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColor_1** (QColor): `#fc7e00` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColor_10** (QColor): `#a3007b` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColor_1000** (QColor): `#b66068` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColor_1001** (QColor): `#616161` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColor_1002** (QColor): `#7a7662` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColor_1003** (QColor): `#5059c1` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColor_1004** (QColor): `#8e5c36` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColor_1005** (QColor): `#4b4b92` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColor_1006** (QColor): `#b54c76` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColor_11** (QColor): `#a3a3a3` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColor_12** (QColor): `#00316e` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColor_13** (QColor): `#003a82` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColor_14** (QColor): `#004396` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColor_15** (QColor): `#0051b4` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColor_16** (QColor): `#0055be` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColor_17** (QColor): `#0055be` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColor_18** (QColor): `#703a3a` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColor_19** (QColor): `#008000` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColor_2** (QColor): `#fc7e00` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColor_20** (QColor): `#3d3d3d` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColor_21** (QColor): `#393939` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColor_22** (QColor): `#724215` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColor_23** (QColor): `#484848` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColor_24** (QColor): `#969696` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColor_26** (QColor): `#f6976b` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColor_29** (QColor): `#bc6742` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColor_3** (QColor): `#50731c` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColor_30** (QColor): `#9a874c` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColor_4** (QColor): `#484848` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColor_5** (QColor): `#3d3d3d` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColor_6** (QColor): `#3d3d3d` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColor_7** (QColor): `#0057ae` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColor_8** (QColor): `#1d528a` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/ForegroundColor_9** (QColor): `#842969` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/Italic_7** (QString): `true` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/Name** (QString): `Light (Butty)` **EditorColorSchema-db18b092-471f-4de0-ae70-6d67fd5986fb/Underline_26** (QString): `true` **FileDialog/LastPath** (QString): `/home/butty/Documents/QOwnNotes/scripts/image-preview` **FileDialog/LastPath-ImportTextFiles** (QString): `/home/butty/tmp/Zettlr-test/PC・スマフォ・オーディオ` **FileDialog/LastPath-ScriptPath** (QString): `/home/butty/Documents/QOwnNotes/scripts/image-preview` **IssueAssistantDialog/geometry** (QByteArray): `` **LastUpdateCheck** (QDateTime): `2021-11-02T16:54:49.913` **LinkDialog/geometry** (QByteArray): `` **LogWidget/criticalLog** (bool): `true` **LogWidget/debugLog** (bool): `true` **LogWidget/fatalLog** (bool): `true` **LogWidget/infoLog** (bool): `true` **LogWidget/scriptingLog** (bool): `true` **LogWidget/statusLog** (bool): `true` **LogWidget/warningLog** (bool): `true` **MainWindow/geometry** (QByteArray): `` **MainWindow/mainToolBar.iconSize** (QString): `24` **MainWindow/menuBarGeometry** (QByteArray): `` **MainWindow/noteTextEdit.code.font** (QString): `Noto Mono,12,-1,5,50,0,0,0,0,0,Regular` **MainWindow/noteTextEdit.font** (QString): `源真ゴシックP,12,-1,5,25,0,0,0,0,0,Normal` **MainWindow/noteTextView.code.font** (QString): `Liberation Mono,13,-1,5,50,0,0,0,0,0,Regular` **MainWindow/noteTextView.font** (QString): `源真ゴシックP,13,-1,5,25,0,0,0,0,0,Normal` **MainWindow/noteTextView.ignoreCodeFontSize** (QString): `true` **MainWindow/noteTextView.rtl** (QString): `false` **MainWindow/noteTextView.underline** (QString): `true` **MainWindow/noteTextView.useEditorStyles** (QString): `true` **MainWindow/noteTextView.useInternalExportStyling** (QString): `true` **MainWindow/showNotesFromAllNoteSubFolders** (bool): `true` **MessageBoxOverride/restore-note** (QString): `65536` **NoteDiffDialog/geometry** (QByteArray): `` **NoteFolder-1/NoteTabNameList** (QStringList): `edit-7b66e787e7844c4dbff86614f9b7c3a7, aaa` **NoteFolder-1/NoteTabStickinessList**: *empty* **NoteFolder-1/NoteTabSubFolderPathDataList** (QStringList): `, ` **NoteFolder-1/allowDifferentNoteFileName** (QString): `true` **NoteFolder-2/NoteTabNameList** (QString): `PC・スマフォ・オーディオメモ (22) - 2-2-1 (d766981926444739934ce0deb0ab66f0)` **NoteFolder-2/NoteTabStickinessList**: *empty* **NoteFolder-2/NoteTabSubFolderPathDataList** (QString): *empty* **NoteFolder-2/allowDifferentNoteFileName** (QString): `true` **NoteFolder-3/NoteTabNameList** (QString): `QONテスト` **NoteFolder-3/NoteTabStickinessList**: *empty* **NoteFolder-3/NoteTabSubFolderPathDataList** (QString): *empty* **NoteFolder-3/allowDifferentNoteFileName** (QString): `false` **NoteHistory-1** (QVariantList): `` **NoteHistory-2** (QVariantList): `` **NoteHistory-3** (QVariantList): `` **NoteHistoryCurrentIndex-1** (QString): `13` **NoteHistoryCurrentIndex-2** (QString): `49` **NoteHistoryCurrentIndex-3** (QString): `4` **PasswordDialog/geometry** (QByteArray): `` **PiwikClientId** (QString): `` **ScriptRepositoryDialog/geometry** (QByteArray): `` **ScriptRepositoryDialog/mainSplitterState** (QByteArray): `` **SearchEngineId** (QString): `0` **SettingsDialog/geometry** (QByteArray): `` **SettingsDialog/mainSplitterState** (QByteArray): `` **ShowSystemTray** (QString): `false` **StartHidden** (QString): `false` **TableDialog/geometry** (QByteArray): `` **TodoDialog/geometry** (QByteArray): `` **TodoDialog/mainSplitterState** (QByteArray): `` **TodoDialog/showCompletedItems** (QString): `0` **TodoDialog/todoListSelectorSelectedItem** (QString): `個人` **UpdateDialog/geometry** (QByteArray): `` **WelcomeDialog/geometry** (QByteArray): `` **acceptAllExternalModifications** (QString): `false` **allowNoteEditing** (bool): `true` **allowOnlyOneAppInstance** (QString): `true` **appMetrics/disableAppHeartbeat** (QString): `true` **appMetrics/disableTracking** (QString): `false` **appMetrics/notificationShown** (QString): `true` **automaticNoteFolderDatabaseClosing** (QString): `false` **checkSpelling** (QString): `false` **closeTodoListAfterSave** (QString): `false` **cryptoKey** (QString): `` **currentNoteFolderId** (QString): `3` **currentWorkspace** (QString): `7TtNzmGZxDHt` **cursorWidth** (QString): `2` **customNoteFileExtensionList** (QStringList): `md, txt` **darkMode** (QString): `false` **darkModeColors** (QString): `false` **darkModeIconTheme** (QString): `false` **darkModeTrayIcon** (QString): `false` **defaultNoteFileExtension** (QString): `md` **demoNotesCreated** (QString): `true` **disableAutomaticUpdateDialog** (QString): `true` **disableSavedSearchesAutoCompletion** (QString): `false` **dockWasInitializedOnce** (QString): `true` **enableNoteTree** (QString): `false` **enableSocketServer** (QString): `false` **enableWebAppSupport** (QString): `false` **externalEditorPath** (QString): *empty* **fullyHighlightedBlockquotes** (QString): `true` **gitCommitInterval** (QString): `30` **gitExecutablePath** (QString): *empty* **gitLogCommand** (QString): *empty* **guiFirstRunInit** (bool): `true` **ignoreAllExternalModifications** (QString): `false` **ignoreAllExternalNoteFolderChanges** (QString): `false` **ignoreNoteSubFolders** (QString): `^\.` **imageScaleDown** (QString): `true` **imageScaleDownMaximumHeight** (QString): `1026` **imageScaleDownMaximumWidth** (QString): `1024` **initialLayoutIdentifier** (QString): `full` **insertTimeFormat** (QString): `yyyy/M/d h:mm` **interfaceFontSize** (QString): `14` **interfaceLanguage** (QString): *empty* **internalIconTheme** (QString): `false` **itemHeight** (QString): `14` **legacyLinking** (QString): `false` **localTrash/autoCleanupDays** (QString): `30` **localTrash/autoCleanupEnabled** (QString): `true` **localTrash/supportEnabled** (QString): `true` **markdownHighlightingEnabled** (QString): `true` **navigationPanelHideSearch** (QString): `false` **networking/ignoreSSLErrors** (QString): `false` **networking/proxyType** (QString): `2` **newNoteAskHeadline** (QString): `false` **noteEditIsCentralWidget** (QString): `true` **noteListPreview** (QString): `false` **noteSaveIntervalTime** (QString): `30` **noteSubfoldersPanelDisplayAsFullTree** (QString): `true` **noteSubfoldersPanelHideSearch** (QString): `false` **noteSubfoldersPanelOrder** (QString): `0` **noteSubfoldersPanelShowFullPath** (QString): `false` **noteSubfoldersPanelShowNotesRecursively** (QString): `false` **noteSubfoldersPanelShowRootFolderName** (QString): `true` **noteSubfoldersPanelSort** (QString): `0` **notesPanelOrder** (QString): `0` **notesPanelSort** (QString): `1` **notesPath** (QString): `/home/butty/Documents/QOwnNotes/Notes` **notifyAllExternalModifications** (QString): `true` **overrideInterfaceFontSize** (QString): `true` **ownCloud/supportEnabled** (QString): `true` **ownCloud/todoCalendarBackend** (QString): `3` **ownCloud/todoCalendarCalDAVPassword** (QString): `` **ownCloud/todoCalendarCalDAVServerUrl** (QString): *empty* **ownCloud/todoCalendarCalDAVUsername** (QString): *empty* **ownCloud/todoCalendarCloudConnectionId** (QString): `1` **ownCloud/todoCalendarDisplayNameList**: *empty* **ownCloud/todoCalendarEnabledList**: *empty* **ownCloud/todoCalendarEnabledUrlList**: *empty* **ownCloud/todoCalendarUrlList**: *empty* **ownCloudInfo/appIsValid** (QString): `true` **ownCloudInfo/connectionErrorMessage** (QString): *empty* **ownCloudInfo/notesPathExistsText** (QString): *empty* **ownCloudInfo/serverVersion** (QString): *empty* **recentNoteFolders** (QStringList): `/home/butty/tmp/jop-qon-tmp, /home/butty/.config/joplin-desktop` **restoreCursorPosition** (QString): `true` **restoreLastNoteAtStartup** (QString): `true` **restoreNoteTabs** (QString): `true` **savedSearches/noteFolder-1** (QStringList): `Note 2021-10-30T14.10.14, Copy of 47fa2f5f8f484049a542360759dd83fa, Note 2020-11-04T08.58.55` **savedSearches/noteFolder-2** (QStringList): `Note 2021-11-02T05.06.26, Note 2021-11-02T05.01.13, Note 2021-11-02T05.01.07, Note 09605c65-6622-45bb-9855-4eab1a8e87d2, buggles` **showMatches** (QString): `true` **showMenuBar** (bool): `true` **showStatusBar** (bool): `true` **spellCheckLanguage** (QString): `en_US` **systemIconTheme** (QString): `true` **tagWasAddedToNote** (QString): `true` **taggingShowNotesRecursively** (QString): `false` **tagsPanelHideNoteCount** (QString): `false` **tagsPanelHideSearch** (QString): `false` **tagsPanelOrder** (QString): `0` **tagsPanelSort** (QString): `0` **todoCalendarSupport** (QString): `false` **toolbar/1/items** (QStringList): `action_Reload_note_folder, actionSet_ownCloud_Folder, actionFind_notes_in_all_subfolders, actionSave_modified_notes, , action_Back_in_note_history, action_Forward_in_note_history` **toolbar/1/name** (QString): `mainToolBar` **toolbar/1/title** (QString): `main toolbar` **toolbar/2/items** (QStringList): `actionStrike_out_text, actionFormat_text_bold, actionInsert_code_block, actionInsert_block_quote` **toolbar/2/name** (QString): `formattingToolbar` **toolbar/2/title** (QString): `formatting toolbar` **toolbar/3/items** (QStringList): `actionInsert_current_time, actionInsert_text_link, actionInsert_note_link, actionInsert_image, actionCheck_spelling` **toolbar/3/name** (QString): `insertingToolbar` **toolbar/3/title** (QString): `inserting toolbar` **toolbar/4/items** (QStringList): `action_Encrypt_note, actionEdit_encrypted_note, actionDecrypt_note` **toolbar/4/name** (QString): `encryptionToolbar` **toolbar/4/title** (QString): `encryption toolbar` **toolbar/5/items** (QStringList): `actionWorkspaceComboBox, actionStore_as_new_workspace, actionRemove_current_workspace, actionRename_current_workspace, actionSwitch_to_previous_workspace, actionUnlock_panels, , actionToggle_distraction_free_mode, action_Increase_note_text_size, action_Decrease_note_text_size, action_Reset_note_text_size` **toolbar/5/name** (QString): `windowToolbar` **toolbar/5/title** (QString): `window toolbar` **toolbar/6/items**: *empty* **toolbar/6/name** (QString): `quitToolbar` **toolbar/6/title** (QString): `quit toolbar` **toolbar/7/items**: *empty* **toolbar/7/name** (QString): `custom_toolbar_1` **toolbar/7/title** (QString): `custom_toolbar_1` **toolbar/size** (QString): `6` **useNoteFolderButtons** (QString): `false` **useSoftWrapInNoteEditor** (QString): `true` **useUNIXNewline** (QString): `false` **webAppClientService/serverUrl** (QString): `wss://app.qownnotes.org` **webAppClientService/token** (QString): `` **webSocketServerService/bookmarksNoteName** (QString): `Bookmarks` **webSocketServerService/bookmarksTag** (QString): `bookmarks` **webSocketServerService/port** (QString): `22222` **workspace-7TtNzmGZxDHt/name** (QString): `Full` **workspace-7TtNzmGZxDHt/noteSubFolderDockWidgetVisible** (QString): `true` **workspace-7TtNzmGZxDHt/windowState** (QByteArray): `` **workspace-initial/name** (QString): `Minimal` **workspace-initial/noteSubFolderDockWidgetVisible** (QString): `true` **workspace-initial/windowState** (QByteArray): `` **workspaces** (QStringList): `initial, 7TtNzmGZxDHt` ## System environment **SHELL**: `/bin/bash` **SESSION_MANAGER**: `local/moz:@/tmp/.ICE-unix/1377,unix/moz:/tmp/.ICE-unix/1377` **WINDOWID**: `136314883` **QT_ACCESSIBILITY**: `1` **COLORTERM**: `truecolor` **XDG_CONFIG_DIRS**: `/etc/xdg/xdg-xfce:/usr/share/kxstudio/menu:/etc/xdg:/etc/xdg` **XDG_SESSION_PATH**: `/org/freedesktop/DisplayManager/Session0` **XDG_MENU_PREFIX**: `xfce-` **GTK_IM_MODULE**: `fcitx` **CLUTTER_BACKEND**: `x11` **LANGUAGE**: `en_US` **QT4_IM_MODULE**: `fcitx` **MANDATORY_PATH**: `/usr/share/gconf/xfce.mandatory.path` **LC_ADDRESS**: `ja_JP.UTF-8` **LC_NAME**: `ja_JP.UTF-8` **SSH_AUTH_SOCK**: `/tmp/ssh-GgKF9s47Zf6D/agent.1377` **XMODIFIERS**: `@im=fcitx` **DESKTOP_SESSION**: `xfce` **LC_MONETARY**: `ja_JP.UTF-8` **SSH_AGENT_PID**: `1472` **GTK_MODULES**: `appmenu-gtk-module:gail:atk-bridge` **XDG_SEAT**: `seat0` **PWD**: `/home/butty` **XDG_SESSION_DESKTOP**: `xfce` **LOGNAME**: `butty` **XDG_SESSION_TYPE**: `x11` **DSSI_PATH**: `/home/butty/.dssi:/usr/lib/dssi:/usr/local/lib/dssi` **PANEL_GDK_CORE_DEVICE_EVENTS**: `0` **XAUTHORITY**: `/home/butty/.Xauthority` **ftp_proxy**: *empty* **XDG_GREETER_DATA_DIR**: `/var/lib/lightdm-data/butty` **GDM_LANG**: `en_US` **VIRTUALENVWRAPPER_SCRIPT**: `/usr/share/virtualenvwrapper/virtualenvwrapper.sh` **HOME**: `/home/butty` **LC_PAPER**: `ja_JP.UTF-8` **LANG**: `en_US.UTF-8` **VST_PATH**: `/home/butty/.vst:/usr/lib/vst:/usr/local/lib/vst` **LS_COLORS**: `rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:` **_VIRTUALENVWRAPPER_API**: ` mkvirtualenv rmvirtualenv lsvirtualenv showvirtualenv workon add2virtualenv cdsitepackages cdvirtualenv lssitepackages toggleglobalsitepackages cpvirtualenv setvirtualenvproject mkproject cdproject mktmpenv wipeenv allvirtualenv` **XDG_CURRENT_DESKTOP**: `XFCE` **VTE_VERSION**: `6003` **SUIL_MODULE_DIR**: `/opt/kxstudio/lib/suil-0` **XDG_SEAT_PATH**: `/org/freedesktop/DisplayManager/Seat0` **https_proxy**: *empty* **PERL5LIB**: `/home/butty/perl5/lib/perl5` **socks_proxy**: *empty* **CLUTTER_IM_MODULE**: `fcitx` **LESSCLOSE**: `/usr/bin/lesspipe %s %s` **XDG_SESSION_CLASS**: `user` **TERM**: `xterm-256color` **LC_IDENTIFICATION**: `en_US.UTF-8` **DEFAULTS_PATH**: `/usr/share/gconf/xfce.default.path` **PERL_MB_OPT**: `--install_base "/home/butty/perl5"` **LESSOPEN**: `| /usr/bin/lesspipe %s` **USER**: `butty` **PERL_MM_OPT**: `INSTALL_BASE=/home/butty/perl5` **DISPLAY**: `:0.0` **SHLVL**: `0` **LC_TELEPHONE**: `ja_JP.UTF-8` **QT_IM_MODULE**: `fcitx` **LC_MEASUREMENT**: `ja_JP.UTF-8` **XDG_VTNR**: `7` **UBUNTU_MENUPROXY**: `1` **XDG_SESSION_ID**: `c1` **PAPERSIZE**: `a4` **http_proxy**: *empty* **LC_CTYPE**: `ja_JP.UTF-8` **XDG_RUNTIME_DIR**: `/run/user/1000` **COMPIZ_CONFIG_PROFILE**: `mint` **NODE_PATH**: `/usr/lib/nodejs:/usr/lib/node_modules:/usr/share/javascript` **QUOTING_STYLE**: `literal` **LC_TIME**: `POSIX` **LC_COLLATE**: `ja_JP.UTF-8` **GTK3_MODULES**: `xapp-gtk3-module` **XDG_DATA_DIRS**: `/usr/share/xfce4:/usr/local/share/:/usr/share/:/usr/share` **PERL_LOCAL_LIB_ROOT**: `/home/butty/perl5` **PATH**: `/home/butty/perl5/bin:/home/butty/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin` **GDMSESSION**: `xfce` **DBUS_SESSION_BUS_ADDRESS**: `unix:abstract=/tmp/dbus-XmTNA5nCeY,guid=05f9543f8506dca4db1ce8f261752668` **LV2_PATH**: `/home/butty/.lv2:/usr/lib/lv2:/usr/local/lib/lv2` **XDT_LOCKF_BASE**: `/tmp/xdt-lock` **LC_NUMERIC**: `ja_JP.UTF-8` **OLDPWD**: `/usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts` **LADSPA_PATH**: `/home/butty/.ladspa:/usr/lib/ladspa:/usr/local/lib/ladspa` **CADENCE_AUTO_STARTED**: `true` **_**: `/usr/bin/QOwnNotes`
pbek commented 2 years ago

I cannot reproduce your seqmentation fault with this note:

Preview Issue
===========

```
/home/butty/misc/Downloads/QOwnNotes-develop/src/mainwindow.cpp:62: error: QJSEngine: No such file or directory
../src/mainwindow.cpp:62:10: fatal error: QJSEngine: No such file or directory
62 | #include
| ^~~~~~~~~~~
```

Do you get a segmentation fault with above note, @butty2017?

But I get a preview issue, @Waqar144...

image

butty2017 commented 2 years ago

Yes, SegV occured with the note.

I think you have to replace two "..."s in the note (top and bottom) with code block mark (three `s). But, if you did so and no SegV, I would like to send you another note (maybe the real one).

pbek commented 2 years ago

Yes, please post a note that actually crashes QOwnNotes. Even better, make that note as small as you can by removing data that doesn't crash for you.

pbek commented 2 years ago

@Waqar144, I was able to trim the note down to this:

Preview Issue
===========

```
~~~~~~
```

6 tilde characters in a code block with a newline at the end of the note. If there is no newline then there is a different preview error. 😁

Waqar144 commented 2 years ago

fixed, though we can just check for "nested code blocks" more carefully and avoid such issues.

pbek commented 2 years ago

Awesome! Thanks a lot!

pbek commented 2 years ago

21.11.2

pbek commented 2 years ago

There now is a new release, could you please test it and report if it works for you?

butty2017 commented 2 years ago

Yes. Now, QON does not get down with the note any more.

Thank you very much!

pbek commented 2 years ago

Great, thank you for testing!