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

Issue with windows client #951

Closed
Boulderon opened this Issue Jun 26, 2018 · 56 comments

Comments

Projects
None yet
4 participants
@Boulderon

Boulderon commented Jun 26, 2018

Expected behaviour

Run application, application window opens

Actual behaviour

Run application, taskbar show's up briefly and disappears. No process running in task manager

Steps to reproduce

Perform initial setup and run application

Output from the debug section in the settings dialog

Unavailable.

Relevant log output in the Log panel

Application wont open, if I can get you a log another way, I will.

@pbek pbek added the question label Jun 26, 2018

@pbek

This comment has been minimized.

Owner

pbek commented Jun 26, 2018

Which version of QOwnNotes are you running? QOwnNotes.exe --help could tell you this. Did you try to clear your settings with QOwnNotes.exe --clear-settings?

@Boulderon

This comment has been minimized.

Boulderon commented Jun 27, 2018

QOwnNotes 18.06.6
Server version 13.0.4.0
API Version 17.5.0

I did clear the settings and while re-configuring did enable debugging. Log is below, same symptoms.

[Jun 27 08:05:36] [debug]: Set proxy configuration to use NO proxy
[Jun 27 08:05:37] [debug]: initShortcuts - 'menuBarIsVisible': true
[Jun 27 08:05:37] [debug]: initShortcuts - 'menuBarIsVisible': true
[Jun 27 08:05:37] [debug]: setupNoteFolderTables - 'database version': 13
[Jun 27 08:05:37] [debug]: fetchShares - 'url': QUrl("https://-----.com/ocs/v1.php/apps/files_sharing/api/v1/shares")
[Jun 27 08:05:37] [debug]: loadNoteDirectoryList
[Jun 27 08:05:37] [debug]: reloadTagTree
[Jun 27 08:05:37] [debug]: reloadTagTree - 'noteSubFolderIds': (-1)

@pbek

This comment has been minimized.

Owner

pbek commented Jun 27, 2018

So what did you actually configure? Can you please provide the output of the debug settings.

@Boulderon

This comment has been minimized.

Boulderon commented Jun 27, 2018

Location of local storage, server settings and enabled debug logging to file (which is in a previous post). How can I provide you the output of the debug settings?

@pbek

This comment has been minimized.

Owner

pbek commented Jun 27, 2018

In the settings there is a menu entry for debug.
And what happens if you don't configure anything (e.g. no server settings)?

@Boulderon

This comment has been minimized.

Boulderon commented Jun 27, 2018

Sorry, only enabled debugging to a log. I just cleared the settings just now and did not attach it to a server with all defaults and it still only shows the taskbar icon until I hover over it (then it closes).

@pbek

This comment has been minimized.

Owner

pbek commented Jun 27, 2018

So what is the output of the debug settings when you start it for the first time?

@OnlyAMedic

This comment has been minimized.

OnlyAMedic commented Jun 28, 2018

I'm having the exact same issue.

OS: Windows 10 x64

QOwnNotes 18.06.6

@pbek

This comment has been minimized.

Owner

pbek commented Jun 28, 2018

Any output when ran from the command line?

@jdgallag84

This comment has been minimized.

jdgallag84 commented Jun 28, 2018

I have the same issue Windows 10, QOwnNotes 18.06.6

There is no output when run from the command line.

The output to the logfile is:
[Jun 27 22:05:00] [debug]: Set proxy configuration to use NO proxy
[Jun 27 22:05:00] [debug]: initShortcuts - 'menuBarIsVisible': true
[Jun 27 22:05:00] [debug]: initShortcuts - 'menuBarIsVisible': true
[Jun 27 22:05:00] [debug]: setupNoteFolderTables - 'database version': 13
[Jun 27 22:05:00] [debug]: loadNoteDirectoryList
[Jun 27 22:05:00] [debug]: reloadTagTree
[Jun 27 22:05:00] [debug]: reloadTagTree - 'noteSubFolderIds': (-1)

@pbek

This comment has been minimized.

Owner

pbek commented Jun 28, 2018

nothing uncommon here... :/

@pbek

This comment has been minimized.

Owner

pbek commented Jun 28, 2018

I just tried to restart the installation on Windows 8.1 and didn't get the issue. :/

@jdgallag84

This comment has been minimized.

jdgallag84 commented Jun 28, 2018

Could it be a library or Windows 10 issue? The only other thing I could try is to build from source.

@pbek

This comment has been minimized.

Owner

pbek commented Jun 28, 2018

I just tried the same on Windows 10, worked flawlessly. :(
What is the content of your note folder? What files are currently in there?

The only other thing I could try is to build from source.

That would be great! Thanks a lot!

@Boulderon

This comment has been minimized.

Boulderon commented Jun 28, 2018

I also tried it on server 2012r2 and got the same behavior as I did on 10, Maybe it is a library issue going on.

@OnlyAMedic

This comment has been minimized.

OnlyAMedic commented Jun 28, 2018

Any output when ran from the command line?

No output when ran from command line. I am going to see if I can debug it.

@Boulderon

This comment has been minimized.

Boulderon commented Jun 28, 2018

Also, the output of the debug file is in the first post, every time I try and start the app it shows the exact log messages

@pbek

This comment has been minimized.

Owner

pbek commented Jun 28, 2018

What is the content of your note folder? What files are currently in there?

@Boulderon

This comment has been minimized.

Boulderon commented Jun 28, 2018

Folder is empty, i've even let the desktop app create the folder

@pbek

This comment has been minimized.

Owner

pbek commented Jun 28, 2018

What happens if you put these notes into your note folder?
Test6.zip

@Boulderon

This comment has been minimized.

Boulderon commented Jun 28, 2018

So i've got good news, I think I found what had happened. I cleared the settings and pointed the "where you store your notes" to my sync'd copy of Notes folder from Nextcloud, connected as usual and it comes up fine with or without the Test6.zip. Nextcloud sync folder also lives on another drive.

@pbek

This comment has been minimized.

Owner

pbek commented Jun 28, 2018

So your QOwnNotes can't initialize the note folder database and copy the demo notes.

@pbek

This comment has been minimized.

Owner

pbek commented Jun 28, 2018

@jdgallag84 it would be really great if you could tell me where the application quits, by single stepping through the code. 😅

@pbek

This comment has been minimized.

Owner

pbek commented Jun 28, 2018

@Boulderon you would need to build the application yourself in QtCreator (see https://www.qownnotes.org/installation#building). There you could debug it with the shortcut F5.

@pbek

This comment has been minimized.

Owner

pbek commented Jul 1, 2018

@jdgallag84 did you have any luck with building and testing QOwnNotes so far?

@pbek

This comment has been minimized.

Owner

pbek commented Jul 1, 2018

@Boulderon what happens if you create a new note folder in the QOwnNotes settings, does the welcome notes get created then?

pbek added a commit that referenced this issue Jul 1, 2018

@pbek

This comment has been minimized.

Owner

pbek commented Jul 1, 2018

18.07.0

  • added some more debug messages for finding a problem under Windows
@pbek

This comment has been minimized.

Owner

pbek commented Jul 1, 2018

There now is a new release, could you please test it and report what debug messages you get?

@Boulderon

This comment has been minimized.

Boulderon commented Jul 2, 2018

Same issue on the server machine, the application is able to startup if I create the folder manually but if the application has to create the folder it wont (running as a domain admin). Log file below.

[Jul 02 09:35:05] [debug]: Set proxy configuration to use NO proxy
[Jul 02 09:35:05] [debug]: initShortcuts - 'menuBarIsVisible': true
[Jul 02 09:35:05] [debug]: initShortcuts - 'menuBarIsVisible': true
[Jul 02 09:35:05] [debug]: buildNotesIndex - 'noteSubFolderId': 0
[Jul 02 09:35:05] [debug]: setupNoteFolderTables - 'database version': 13
[Jul 02 09:35:05] [debug]: fetchShares - 'url': QUrl("https://*****/ocs/v1.php/apps/files_sharing/api/v1/shares")
[Jul 02 09:35:05] [debug]: loadNoteDirectoryList
[Jul 02 09:35:05] [debug]: reloadTagTree
[Jul 02 09:35:05] [debug]: reloadTagTree - 'noteSubFolderIds': (-1)

QOwnNotes Debug Information

General Info

Current Date: Mon Jul 2 09:34:17 2018
Version: 18.07.0
Build date: Jul 1 2018
Build number: 3677
Platform: windows
Operating System: Windows Server 2012 R2 (6.3)
Build architecture: i386
Current architecture: x86_64
Release: AppVeyor
Qt Version (build): 5.10.1
Qt Version (runtime): 5.10.1
Portable mode: no
Settings path / key: \HKEY_CURRENT_USER\Software\PBE\QOwnNotes
Application database path: C:\Users\c.gibson\AppData\Roaming\PBE\QOwnNotes\QOwnNotes.sqlite
Application arguments: qownnotes, --clear-settings
Qt Debug: 0
Locale (system): en_US
Locale (interface): empty
Icon theme: breeze-qownnotes
Notes in current note folder: 0
Enabled scripts: 0

Server Info

serverUrl: *****
appIsValid: yes
notesPathExists: yes
serverVersion: 13.0.4.0
appVersion: 17.5.0

Note folders

currentNoteFolderId: 0

Enabled scripts

There are no enabled scripts.

Settings

Debug/fakeOldVersionNumber: false
Debug/fileLogging: false
Editor/CurrentSchemaKey: EditorColorSchema-6033d61b-cb96-46d5-a3a8-20d5172017eb
Editor/autoBracketClosing: true
Editor/autoBracketRemoval: true
Editor/editorWidthInDFMOnly: true
Editor/highlightCurrentLine: true
MainWindow/mainToolBar.iconSize: 0
MainWindow/noteTextEdit.code.font: Courier New,9,-1,2,50,0,0,0,0,0
MainWindow/noteTextEdit.font: MS Shell Dlg 2,8.25,-1,5,50,0,0,0,0,0
MainWindow/noteTextView.code.font: Courier New,9,-1,2,50,0,0,0,0,0
MainWindow/noteTextView.font: MS Shell Dlg 2,8.25,-1,5,50,0,0,0,0,0
MainWindow/noteTextView.rtl: false
PiwikClientId: <hidden>
SearchEngineId: 2
SettingsDialog/geometry: <binary data>
SettingsDialog/mainSplitterState: <binary data>
ShowSystemTray: false
StartHidden: false
WelcomeDialog/geometry: <binary data>
acceptAllExternalModifications: false
allowDifferentNoteFileName: false
allowOnlyOneAppInstance: false
appMetrics/disableAppHeartbeat: false
appMetrics/disableTracking: false
closeTodoListAfterSave: false
cryptoKey: <hidden>
cursorWidth: 1
customNoteFileExtensionList: empty
darkMode: false
darkModeColors: false
darkModeTrayIcon: false
defaultNoteFileExtension: md
disableAutomaticUpdateDialog: false
externalEditorPath: empty
fullyHighlightedBlockquotes: false
gitCommitInterval: 30
gitExecutablePath: empty
gitLogCommand: empty
ignoreAllExternalModifications: false
ignoreAllExternalNoteFolderChanges: false
imageScaleDown: false
imageScaleDownMaximumHeight: 1024
imageScaleDownMaximumWidth: 1024
insertTimeFormat: empty
interfaceLanguage: empty
internalIconTheme: false
itemHeight: 15
localTrash/autoCleanupDays: 30
localTrash/autoCleanupEnabled: true
localTrash/supportEnabled: true
markdownHighlightingEnabled: true
networking/ignoreSSLErrors: true
networking/proxyType: 2
newNoteAskHeadline: false
noteEditIsCentralWidget: true
noteSaveIntervalTime: 10
noteSubfoldersPanelDisplayAsFullTree: true
noteSubfoldersPanelHideSearch: false
noteSubfoldersPanelOrder: 0
noteSubfoldersPanelShowFullPath: false
noteSubfoldersPanelShowNotesRecursively: false
noteSubfoldersPanelShowRootFolderName: true
noteSubfoldersPanelSort: 0
notesPanelOrder: 0
notesPanelSort: 1
notesPath: C:/Users/c.gibson/Notes
notifyAllExternalModifications: false
ownCloud/password: <hidden>
ownCloud/serverUrl: *****
ownCloud/supportEnabled: true
ownCloud/todoCalendarBackend: 3
ownCloud/todoCalendarCalDAVPassword: <hidden>
ownCloud/todoCalendarCalDAVServerUrl: empty
ownCloud/todoCalendarCalDAVUsername: empty
ownCloud/todoCalendarDisplayNameList: empty
ownCloud/todoCalendarEnabledList: empty
ownCloud/todoCalendarEnabledUrlList: empty
ownCloud/todoCalendarUrlList: empty
ownCloud/userName: boulderon
restoreCursorPosition: true
taggingShowNotesRecursively: false
tagsPanelHideSearch: false
tagsPanelOrder: 0
tagsPanelSort: 0
useUNIXNewline: false

System environment

ALLUSERSPROFILE: C:\ProgramData
APPDATA: C:\Users\c.gibson\AppData\Roaming
CLIENTNAME: PANDORA
CommonProgramFiles: C:\Program Files (x86)\Common Files
CommonProgramFiles(x86): C:\Program Files (x86)\Common Files
CommonProgramW6432: C:\Program Files\Common Files
COMPUTERNAME: TS-V1
ComSpec: C:\Windows\system32\cmd.exe
FP_NO_HOST_CHECK: NO
HOMEDRIVE: C:
HOMEPATH: \Users\c.gibson
LOCALAPPDATA: C:\Users\c.gibson\AppData\Local
LOGONSERVER: \\DC-V1
LTSHARE: L:
NUMBER_OF_PROCESSORS: 4
OS: Windows_NT
Path: C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\PuTTY\;C:\Program Files (x86)\Bitvise SSH Client;C:\Program Files\FileBot\
PATHEXT: .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE: x86
PROCESSOR_ARCHITEW6432: AMD64
PROCESSOR_IDENTIFIER: Intel64 Family 6 Model 44 Stepping 2, GenuineIntel
PROCESSOR_LEVEL: 6
PROCESSOR_REVISION: 2c02
ProgramData: C:\ProgramData
ProgramFiles: C:\Program Files (x86)
ProgramFiles(x86): C:\Program Files (x86)
ProgramW6432: C:\Program Files
PROMPT: $P$G
PSModulePath: C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC: C:\Users\Public
SESSIONNAME: RDP-Tcp#53
SystemDrive: C:
SystemRoot: C:\Windows
TEMP: C:\Users\C5E84~1.GIB\AppData\Local\Temp\2
TMP: C:\Users\C5E84~1.GIB\AppData\Local\Temp\2
USERDNSDOMAIN: INTERNAL.LOCAL
USERDOMAIN: INTERNAL
USERDOMAIN_ROAMINGPROFILE: INTERNAL
USERNAME: c.gibson
USERPROFILE: C:\Users\c.gibson
windir: C:\Windows

@pbek

This comment has been minimized.

Owner

pbek commented Jul 2, 2018

@Boulderon thank you for testing.

if I create the folder manually

what exactly did you do? you created an empty folder and used that in the setup process? or did you use an already existing note folder with notes and notes.sqlite file?

Application arguments: qownnotes, --clear-settings

strange, it says qownnotes, did you rename the executable?

@Boulderon

This comment has been minimized.

Boulderon commented Jul 3, 2018

I had created an empty folder named notes with nothing in it and let the application populate notes.sqlite and it loaded with no issues. If there was not an existing empty notes folder and the application tried to create the folder it would crash.

Also the executable was not renamed, it was straight from the archive

@pbek

This comment has been minimized.

Owner

pbek commented Jul 3, 2018

Thank you, @Boulderon, that's very interesting... So you were able at first start to select a folder that didn't exist? How were you able to do that?

@pbek

This comment has been minimized.

Owner

pbek commented Jul 3, 2018

Also the executable was not renamed, it was straight from the archive

@Boulderon for me the arguments look like this:

Application arguments: C:\Users\patri\Downloads\QOwnNotes (2)\QOwnNotes.exe

QOwnNotes.exe is what's in the archive from https://www.qownnotes.org/installation...

@Boulderon

This comment has been minimized.

Boulderon commented Jul 3, 2018

Sorry, had ran it from command line and didnt add the .exe at the end. The circled below isn't working, if I try and let the application create the folder it fails and crashes even though permissions are elevated. If I manually create the empty folder and point the application to it or use the same default path it works. Does the application need to be pointed to the Nextcloud sync'd copy of Notes by any chance?

image

@pbek

This comment has been minimized.

Owner

pbek commented Jul 3, 2018

Sorry, had ran it from command line and didnt add the .exe at the end.

Ah, seems like a Windows thing to allow to execute it that way

The circled below isn't working, if I try and let the application create the folder it fails and crashes even though permissions are elevated.

I just tried that under Windows 10 Home and it created the folder even with its parent flawlessly.

Does the application need to be pointed to the Nextcloud sync'd copy of Notes by any chance?

no, not at all. all possible ways are supposed to work

@pbek

This comment has been minimized.

Owner

pbek commented Jul 3, 2018

@Boulderon do you get an error message when the note folder can't be created, like stated in:

if (ui->createNoteFolderCheckBox->isChecked()) {
if (dir.mkpath(_notesPath)) {
// everything is all right, the path was now created
_allowFinishButton = true;
} else {
showNoteFolderErrorMessage(tr("Cannot create note path!"));
MetricsService::instance()->sendVisitIfEnabled(
"welcome-dialog/note-folder/cannot-create");
}

@Boulderon

This comment has been minimized.

Boulderon commented Jul 3, 2018

Nothing, just appcrash. Still trying to build and debug it on the server but i'm having some issues getting the build enviroment setup

@pbek

This comment has been minimized.

Owner

pbek commented Jul 3, 2018

Nothing, just appcrash.

so when does it crash? when you hit the "next" button (that you shouldn't be able to click if the note folder doesn't exist)?

are you able to create a note folder in the dialog where you can select a note folder? (and than use this note folder)

Still trying to build and debug it on the server but i'm having some issues getting the build enviroment setup

awesome, that would help a lot!
what are your issues? anything I can help with?

@Boulderon

This comment has been minimized.

Boulderon commented Jul 5, 2018

@pbek

This comment has been minimized.

Owner

pbek commented Jul 5, 2018

The app continues like there's nothing wrong, if I take the defaults and C:\users%username%\Nextcloud\Notes doesnt exist the application doesn't prompt to create it and continues.

I've not the slightest idea how that can happen or what to do about it without (me or someone else) debugging QOwnNotes on a machine where that happens... :(

@Boulderon

This comment has been minimized.

Boulderon commented Jul 5, 2018

@pbek

This comment has been minimized.

Owner

pbek commented Jul 5, 2018

You mean QtCreator crashes? Or QOwnNotes? Are there any errors?

doesnt exist the application doesn't prompt to create it and continues.

I'll try to add some extra checks in log messages to dir.mkpath(_notesPath) in the next release.

pbek added a commit that referenced this issue Jul 6, 2018

@pbek

This comment has been minimized.

Owner

pbek commented Jul 6, 2018

18.07.2

  • added more debug output on the terminal and checks when using the welcome dialog to
    setup the note folder to check for troubles on some Windows machines

pbek added a commit that referenced this issue Jul 6, 2018

pbek added a commit that referenced this issue Jul 6, 2018

@pbek pbek added this to the 18.07.2 milestone Jul 6, 2018

@pbek

This comment has been minimized.

Owner

pbek commented Jul 6, 2018

There now is a new release.

@Boulderon, can you please test this new release on the command line interface (where you should get new debug text) to see if the note folder can be created.

You can run QOwnNotes.exe --session test to start a new session with new settings (so you don't have to remove your settings every time)

pbek added a commit that referenced this issue Jul 6, 2018

@Boulderon

This comment has been minimized.

Boulderon commented Jul 6, 2018

What's the switch to enable debugging? Since the change to the welcome screen I cant click into the menu during initial setup to enable it.

@pbek

This comment has been minimized.

Owner

pbek commented Jul 6, 2018

You should be able to see the text output on the terminal (cmd.exe).

@pbek

This comment has been minimized.

Owner

pbek commented Jul 10, 2018

Any news on this issue?

@Boulderon

This comment has been minimized.

Boulderon commented Jul 10, 2018

@pbek

This comment has been minimized.

Owner

pbek commented Jul 10, 2018

It compiles and runs on the latest version of qt with no issues.

Great news! Did you install Qt Creator? Can you run it in debug mode (menu: Debug / Start debugging, or F5), you should be able to see where it crashes then.

Also running the latest from command line doesn't show any errors in the
command prompt when it crashes.

and the folder is still not created automatically? that's very wired

@Boulderon

This comment has been minimized.

Boulderon commented Jul 11, 2018

@pbek

This comment has been minimized.

Owner

pbek commented Jul 12, 2018

I have no clue what happens on your system, I guess we'll have to wait until you are able to tell me where the crash happens...

@pbek

This comment has been minimized.

Owner

pbek commented Jul 23, 2018

I will close this issue until there is more information.

@pbek pbek closed this Jul 23, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment