QOwnNotes icon indicating copy to clipboard operation
QOwnNotes copied to clipboard

[BUG] Slow accessing settings after Nextcloud connection is defined

Open ibahnasy opened this issue 1 year ago • 5 comments
trafficstars

Expected behaviour

The settings window or any other window should be responsive and opens instantly.

Actual behaviour

Settings window takes few seconds to show up as shown in that attached screencast: Screencast from 2024-05-03 14-06-02.webm

Steps to reproduce

  1. Add Nextcloud connection to QOwnNotes.
  2. Try to open Settings window.

Output from the debug section in the settings dialog

Expand ``` QOwnNotes Debug Information ===========================

General Info

Current Date: Fri May 3 14:22:05 2024 Version: 24.5.0 Build date: Apr 30 2024 Build number: 1096 Platform: linux (wayland) Operating System: Ubuntu 24.04 LTS Build architecture: x86_64 Current architecture: x86_64 Release: Launchpad PPA Qt Version (build): 5.15.13 Qt Version (runtime): 5.15.13 Portable mode: no Settings path / key: /home/username/.config/PBE/QOwnNotes.conf Application database path: /home/username/.local/share/PBE/QOwnNotes/QOwnNotes.sqlite Application arguments: /usr/bin/QOwnNotes, /usr/bin/QOwnNotes, /usr/bin/QOwnNotes, --allow-multiple-instances Qt Debug: 0 Locale (system): en_US Locale (interface): empty Primary screen resolution: 1920x1080 Screen resolution(s): 1920x1080, 1920x1080 Icon theme: breeze-dark-qownnotes Notes in current note folder: 38 Calendar items: 4 Enabled scripts: 0 Database drivers: QSQLITE, QSQLCIPHER

Server Info

serverUrl: https://example.com appIsValid: yes notesPathExists: yes serverVersion: 28.0.5.1 appVersion: empty

Spellchecking

Enabled: true Selected language: en_US Language codes: en_AU, en_CA, en_GB, en_US, en_ZA, fr, fr_BE, fr_CA, fr_CH, fr_FR, fr_LU, fr_MC Language names: Australian English (Australia), Canadian English (Canada), British English (United Kingdom), American English (United States), English (South Africa), français, français (Belgique), français canadien (Canada), français suisse (Suisse), français (France), français (Luxembourg), français (Monaco) Application dictionaries path: /home/username/.local/share/PBE/QOwnNotes/dicts

Note folders

currentNoteFolderId: 1

Note folder default

id: 1 isCurrent: yes activeTagId: -2 localPath: /home/username/CC/Nextcloud/Notes remotePath: Notes cloudConnectionId: 1 isShowSubfolders: yes isUseGit: no allowDifferentNoteFileName: yes activeNoteSubFolder name: Personal database file: /home/username/CC/Nextcloud/Notes/notes.sqlite

Note folder Linux

id: 2 isCurrent: no activeTagId: 0 localPath: /home/username/Documents/Notes/QOwnNotes remotePath: Notes cloudConnectionId: 1 isShowSubfolders: no isUseGit: no allowDifferentNoteFileName: no activeNoteSubFolder name: empty database file: /home/username/Documents/Notes/QOwnNotes/notes.sqlite

Cloud connections

Cloud connection Default

id: 1 isCurrent: yes serverUrl: https://example.com username: islam.bahnasy accountId: islam.bahnasy Nextcloud Deck boardId: 0 Nextcloud Deck stackId: 0

Enabled scripts

Settings

ActiveNoteHistoryItem (NoteHistoryItem): <binary data> CloudConnection-1/nextcloudDeckEnabled (QString): true Debug/fakeOldVersionNumber (QString): false Debug/fileLogging (QString): false DistractionFreeMode/isEnabled (QString): false DistractionFreeMode/menuBarGeometry (QByteArray): <binary data> DistractionFreeMode/menuBarHeight (QString): 22 DistractionFreeMode/menuBarVisible (QString): true DistractionFreeMode/windowState (QByteArray): <binary data> Editor/CurrentSchemaKey (QString): EditorColorSchema-cdbf28fc-1ddc-4d13-bb21-6a4043316a2f Editor/autoBracketClosing (QString): true Editor/autoBracketRemoval (QString): true Editor/disableCursorBlinking (QString): false Editor/editorWidthInDFMOnly (QString): true Editor/highlightCurrentLine (QString): true Editor/indentSize (QString): 4 Editor/removeTrailingSpaces (QString): false Editor/showLineNumbers (QString): false Editor/useTabIndent (QString): false Editor/vimMode (QString): false FileDialog/LastPath (QString): /home/username/Pictures FileDialog/LastPath-InsertImage (QString): /home/username/Pictures ImageDialog/disableCopying (QString): false ImageDialog/geometry (QByteArray): <binary data> LastUpdateCheck (QDateTime): 2024-05-03T14:10:17.632 LinkDialog/geometry (QByteArray): <binary data> MainWindow/geometry (QByteArray): <binary data> MainWindow/mainToolBar.iconSize (QString): 26 MainWindow/menuBarGeometry (QByteArray): <binary data> MainWindow/noteSubFolderTreeWidgetExpandState-1 (QStringList): KernelOne MainWindow/noteTextEdit.code.font (QString): DejaVu Sans Mono,13,-1,5,50,0,0,0,0,0 MainWindow/noteTextEdit.font (QString): Ubuntu,13,-1,5,50,0,0,0,0,0 MainWindow/noteTextView.code.font (QString): monospace,11,-1,2,50,0,0,0,0,0 MainWindow/noteTextView.font (QString): Ubuntu,11,-1,5,50,0,0,0,0,0 MainWindow/noteTextView.ignoreCodeFontSize (QString): true MainWindow/noteTextView.refreshDebounceTime (QString): 600 MainWindow/noteTextView.rtl (QString): false MainWindow/noteTextView.underline (QString): true MainWindow/noteTextView.useEditorStyles (QString): true MainWindow/noteTextView.useInternalExportStyling (QString): true MainWindow/showNotesFromAllNoteSubFolders (bool): false NoteDialog/geometry (QByteArray): <binary data> NoteFolder-1/NoteTabNameList (QString): Commands NoteFolder-1/NoteTabStickinessList: empty NoteFolder-1/NoteTabSubFolderPathDataList (QString): Linux NoteFolder-1/allowDifferentNoteFileName (bool): true NoteFolder-2/NoteTabNameList: empty NoteFolder-2/NoteTabStickinessList: empty NoteFolder-2/NoteTabSubFolderPathDataList: empty NoteFolder-2/allowDifferentNoteFileName (QString): false NoteHistory-1 (QVariantList): <variant list with 9 item(s)> NoteHistoryCurrentIndex-1 (QString): 8 PasswordDialog/geometry (QByteArray): <binary data> PiwikClientId (QString): <hidden> ScriptRepositoryDialog/mainSplitterState (QByteArray): <binary data> SearchEngineId (QString): 0 SettingsDialog/geometry (QByteArray): <binary data> SettingsDialog/mainSplitterState (QByteArray): <binary data> ShareDialog/geometry (QByteArray): <binary data> ShowSystemTray (QString): false StartHidden (QString): false TodoDialog/geometry (QByteArray): <binary data> TodoDialog/mainSplitterState (QByteArray): <binary data> TodoDialog/showCompletedItems (QString): 0 TodoDialog/showDueTodayItemsOnly (QString): 0 TodoDialog/todoListSelectorSelectedItem (QString): Murena Tasks WebSocketTokenDialog/geometry (QByteArray): <binary data> WelcomeDialog/geometry (QByteArray): <binary data> acceptAllExternalModifications (QString): false allowNoteEditing (bool): true allowOnlyOneAppInstance (QString): true appMetrics/disableAppHeartbeat (QString): false appMetrics/disableTracking (QString): true appMetrics/notificationShown (QString): true autoReadOnlyMode (QString): false autoReadOnlyModeTimeout (QString): 30 automaticNoteFolderDatabaseClosing (QString): false checkSpelling (bool): true closeTodoListAfterSave (QString): false cryptoKey (QString): <hidden> currentNoteFolderId (QString): 1 currentWorkspace (QString): initial cursorWidth (QString): 1 darkMode (QString): true darkModeColors (QString): true darkModeIconTheme (QString): true darkModeTrayIcon (QString): true defaultNoteFileExtension (QString): md demoNotesCreated (QString): true disableAutomaticUpdateDialog (QString): true disableSavedSearchesAutoCompletion (QString): false dockWasInitializedOnce (QString): true enableNoteTree (QString): false enableSocketServer (QString): true enableWebAppSupport (QString): false externalEditorPath (QString): empty fullyHighlightedBlockquotes (QString): false gitCommitInterval (QString): 30 gitExecutablePath (QString): empty gitLogCommand (QString): empty guiFirstRunInit (bool): true ignoreAllExternalModifications (QString): false ignoreAllExternalNoteFolderChanges (QString): false ignoreNoteSubFolders (QString): ^\. ignoredNoteFiles (QString): empty imageScaleDown (QString): false imageScaleDownMaximumHeight (QString): 1024 imageScaleDownMaximumWidth (QString): 1024 initialLayoutIdentifier (QString): full insertTimeFormat (QString): empty interfaceFontSize (QString): 16 interfaceLanguage (QString): empty internalIconTheme (QString): false itemHeight (QString): 19 legacyLinking (QString): false localTrash/autoCleanupDays (QString): 30 localTrash/autoCleanupEnabled (QString): true localTrash/supportEnabled (QString): true markdownHighlightingEnabled (QString): true navigationPanelAutoSelect (QString): true navigationPanelHideSearch (QString): false networking/ignoreSSLErrors (QString): false networking/proxyType (QString): 2 newNoteAskHeadline (QString): false noteEditIsCentralWidget (QString): true noteFileExtensionList (QStringList): md, txt noteListPreview (QString): false noteSaveIntervalTime (QString): 10 noteSubfoldersPanelDisplayAsFullTree (QString): true noteSubfoldersPanelHideSearch (QString): false noteSubfoldersPanelOrder (QString): 0 noteSubfoldersPanelShowFullPath (QString): false noteSubfoldersPanelShowNotesRecursively (QString): false noteSubfoldersPanelShowRootFolderName (QString): true noteSubfoldersPanelSort (QString): 0 noteSubfoldersPanelTabsUnsetAllNotesSelection (QString): false notesPanelOrder (QString): 0 notesPanelSort (QString): 1 notesPath (QString): /home/username/CC/Nextcloud/Notes notifyAllExternalModifications (QString): false overrideInterfaceFontSize (QString): true ownCloud/supportEnabled (QString): true ownCloud/todoCalendarBackend (QString): 3 ownCloud/todoCalendarCalDAVPassword (QString): <hidden> 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 (bool): true ownCloudInfo/connectionErrorMessage (QString): Unknown error ownCloudInfo/notesPathExistsText (QString): yes ownCloudInfo/serverVersion (QString): 28.0.5.1 previousWorkspace (QString): 1c8bda07-01e1-4fe1-bb04-4dfbc9ee7940 recentNoteFolders (QString): /home/username/Documents/Notes/QOwnNotes restoreCursorPosition (QString): true restoreLastNoteAtStartup (QString): true restoreNoteTabs (QString): true savedSearches/noteFolder-1 (QStringList): Note 2023-04-23T13.04.31, Note 2023-04-23T12.48.56 showMatches (QString): true showMenuBar (bool): true showStatusBar (bool): true spellCheckLanguage (QString): en_US startInReadOnlyMode (QString): false systemIconTheme (QString): false tagWasAddedToNote (QString): true taggingShowNotesRecursively (QString): false tagsPanelHideNoteCount (QString): false tagsPanelHideSearch (QString): false tagsPanelOrder (QString): 0 tagsPanelSort (QString): 0 todoCalendarSupport (QString): true toolbar/1/items (QStringList): action_New_note, action_Find_note, action_Remove_note, action_Open_note_in_external_editor, actionShow_local_trash, actionAllow_note_editing, , action_Back_in_note_history, action_Forward_in_note_history, , action_Find_text_in_note, actionReplace_in_current_note, , actionShow_versions, actionShow_trash, actionShare_note, , actionShow_Todo_List toolbar/1/name (QString): mainToolBar toolbar/1/title (QString): main toolbar toolbar/2/items (QStringList): actionFormat_text_bold, actionFormat_text_italic, actionStrike_out_text, actionInsert_code_block, actionInsert_block_quote toolbar/2/name (QString): formattingToolbar toolbar/2/title (QString): formatting toolbar toolbar/3/items (QStringList): actionInsert_text_link, actionInsert_image, actionInsert_current_time 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 (QString): action_Quit toolbar/6/name (QString): quitToolbar toolbar/6/title (QString): quit toolbar toolbar/size (QString): 6 useNoteFolderButtons (QString): false useUNIXNewline (QString): false webAppClientService/serverUrl (QString): wss://app.qownnotes.org webAppClientService/token (QString): <hidden> webSocketServerService/bookmarksNoteName (QString): Bookmarks webSocketServerService/bookmarksTag (QString): bookmarks webSocketServerService/commandSnippetsNoteName (QString): Commands webSocketServerService/commandSnippetsTag (QString): commands webSocketServerService/port (QString): 22222 webSocketServerService/token (QString): <hidden> workspace-1c8bda07-01e1-4fe1-bb04-4dfbc9ee7940/name (QString): workspace 2 workspace-1c8bda07-01e1-4fe1-bb04-4dfbc9ee7940/noteSubFolderDockWidgetVisible (QString): true workspace-1c8bda07-01e1-4fe1-bb04-4dfbc9ee7940/windowState (QByteArray): <binary data> workspace-initial/name (QString): Minimal workspace-initial/noteSubFolderDockWidgetVisible (QString): true workspace-initial/windowState (QByteArray): <binary data> workspace-sxbWSAtmF87U/name (QString): Full workspace-sxbWSAtmF87U/noteSubFolderDockWidgetVisible (QString): true workspace-sxbWSAtmF87U/windowState (QByteArray): <binary data> workspaces (QStringList): initial, sxbWSAtmF87U, 1c8bda07-01e1-4fe1-bb04-4dfbc9ee7940

System environment

HOME: /home/username LANG: en_US.UTF-8 LOGNAME: username PATH: /home/username/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin SHELL: /bin/bash USER: username XDG_DATA_DIRS: /usr/share/ubuntu:/usr/share/gnome:/home/username/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop XDG_RUNTIME_DIR: /run/user/1000 GTK_MODULES: gail:atk-bridge QT_ACCESSIBILITY: 1 QTWEBENGINE_DICTIONARIES_PATH: /usr/share/hunspell-bdic/ DBUS_SESSION_BUS_ADDRESS: unix:path=/run/user/1000/bus DEBUGINFOD_URLS: https://debuginfod.ubuntu.com DESKTOP_SESSION: ubuntu GDMSESSION: ubuntu GNOME_DESKTOP_SESSION_ID: this-is-deprecated GNOME_SHELL_SESSION_MODE: ubuntu GSM_SKIP_SSH_AGENT_WORKAROUND: true IM_CONFIG_PHASE: 1 LC_ADDRESS: en_US.UTF-8 LC_IDENTIFICATION: en_US.UTF-8 LC_MEASUREMENT: en_US.UTF-8 LC_MONETARY: en_US.UTF-8 LC_NAME: en_US.UTF-8 LC_NUMERIC: en_US.UTF-8 LC_PAPER: en_US.UTF-8 LC_TELEPHONE: en_US.UTF-8 LC_TIME: en_US.UTF-8 MOZ_ENABLE_WAYLAND: 1 OPENAI_KEY: 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 PAPERSIZE: letter PWD: /home/username QT_IM_MODULE: ibus SESSION_MANAGER: local/ZB:@/tmp/.ICE-unix/4272,unix/ZB:/tmp/.ICE-unix/4272 SHLVL: 0 SSH_AUTH_SOCK: /run/user/1000/keyring/ssh USERNAME: username XDG_CONFIG_DIRS: /etc/xdg/xdg-ubuntu:/etc/xdg XDG_CURRENT_DESKTOP: ubuntu:GNOME XDG_MENU_PREFIX: gnome- XDG_SESSION_CLASS: user XDG_SESSION_DESKTOP: ubuntu XDG_SESSION_TYPE: wayland XMODIFIERS: @im=ibus _: /usr/bin/gnome-session MANAGERPID: 4020 INVOCATION_ID: 2ba92b1ee9ed48b5b2aeb6b3e6d863b1 JOURNAL_STREAM: 8:30760 SYSTEMD_EXEC_PID: 4307 MEMORY_PRESSURE_WATCH: /sys/fs/cgroup/user.slice/user-1000.slice/[email protected]/session.slice/[email protected]/memory.pressure MEMORY_PRESSURE_WRITE: c29tZSAyMDAwMDAgMjAwMDAwMAA= GJS_DEBUG_OUTPUT: stderr GJS_DEBUG_TOPICS: JS ERROR;JS LOG GNOME_SETUP_DISPLAY: :1 DISPLAY: :0 XAUTHORITY: /run/user/1000/.mutter-Xwaylandauth.9T36M2 WAYLAND_DISPLAY: wayland-0 GIO_LAUNCHED_DESKTOP_FILE: /usr/share/applications/PBE.QOwnNotes.desktop XDG_ACTIVATION_TOKEN: gnome-shell/QOwnNotes/4307-10-ZB_TIME16459836 GIO_LAUNCHED_DESKTOP_FILE_PID: 37053 XCURSOR_SIZE: 24 XCURSOR_THEME: Yaru

</details>

ibahnasy avatar May 03 '24 11:05 ibahnasy

Usually it takes as long as it takes to access configured network resources... Do you have the same issue when you test in a fresh session (see https://www.qownnotes.org/getting-started/cli-parameters.html)?

pbek avatar May 03 '24 12:05 pbek

No, with a fresh session it loads almost instantly.

ibahnasy avatar May 03 '24 12:05 ibahnasy

And if you add your Nextcloud server in the settings? And do you get any errors in your nextcloud server logs? I wait under a second for the settings dialog with lots of connections, scripts and so on...

pbek avatar May 03 '24 13:05 pbek

There is no errors in the server logs. Also sometimes QOwnNotes crashes after opening the settings; it hands for a second, then terminates.

ibahnasy avatar May 03 '24 14:05 ibahnasy

There is no errors in the server logs.

Maybe the Nextcloud API just responds very slow...

Also sometimes QOwnNotes crashes after opening the settings; it hands for a second, then terminates.

I haven't seen that yet anywhere. 🤔

Is there any useful log output in QOwnNotes if you enable the log panel (see Window / Panels)? Please make sure you also enable debug logging in the log panel by right-clicking on the panel and selecting Debug in Options.

pbek avatar May 03 '24 18:05 pbek

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Jun 03 '24 01:06 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Jun 17 '24 01:06 github-actions[bot]