{"action":"created","issue":{"url":"https://api.github.com/repos/dokan-dev/dokany/issues/264","repository_url":"https://api.github.com/repos/dokan-dev/dokany","labels_url":"https://api.github.com/repos/dokan-dev/dokany/issues/264/labels{/name}","comments_url":"https://api.github.com/repos/dokan-dev/dokany/issues/264/comments","events_url":"https://api.github.com/repos/dokan-dev/dokany/issues/264/events","html_url":"https://github.com/dokan-dev/dokany/issues/264","id":160615533,"number":264,"title":"Visual Studio cannot create browsing database file when opening project on mirrored drive","user":{"login":"bailey27","id":17813578,"avatar_url":"https://avatars.githubusercontent.com/u/17813578?v=3","gravatar_id":"","url":"https://api.github.com/users/bailey27","html_url":"https://github.com/bailey27","followers_url":"https://api.github.com/users/bailey27/followers","following_url":"https://api.github.com/users/bailey27/following{/other_user}","gists_url":"https://api.github.com/users/bailey27/gists{/gist_id}","starred_url":"https://api.github.com/users/bailey27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bailey27/subscriptions","organizations_url":"https://api.github.com/users/bailey27/orgs","repos_url":"https://api.github.com/users/bailey27/repos","events_url":"https://api.github.com/users/bailey27/events{/privacy}","received_events_url":"https://api.github.com/users/bailey27/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-16T09:20:39Z","updated_at":"2016-06-17T09:16:38Z","closed_at":null,"body":"\r\n# Environment\r\n * Windows version: Windows 10 64-bit\r\n * Processor architecture:  Intel Haswell (i5-4200U)\r\n * Dokany version: 1.0.0-RC3\r\n * Library type (Dokany/FUSE): Dokany\r\n \r\n# Check List\r\n  - [x ] I checked my issue [doesn't exist yet](https://github.com/dokan-dev/dokany/issues?utf8=%E2%9C%93&q=is%3Aissue)\r\n  - [x ] My issue is valid with mirror default sample and not specific to my user-mode driver implementation\r\n  - [x ] I can always reproduce the issue with the provided description below.\r\n  - [ x] I have updated Dokany to the latest version (https://github.com/dokan-dev/dokany/releases) and have reboot my computer after.\r\n\r\n# Description\r\n\r\nIt seems that Visual Studio cannot create the browsing database on a mirrored drive.\r\n\r\nSteps to reproduce\r\n\r\nc:\r\ncd \\\r\nmkdir c:\\tmp\\mirror \r\ncd tmp\\mirror\r\ngit clone https://github.com/bailey27/cppcryptfs.git\r\n\r\n[set up for Dokany debugging and reboot]\r\n\r\n[ cd to C:\\Program Files\\Dokan\\Dokan Library-1.0.0\\sample\\mirror]\r\n\r\n[run as administrator]\r\n\r\n.\\mirror.exe /t 1 /d /s /r c:\\tmp\\mirror /l m 2> c:\\tmp\\mirror_vs.log\r\n\r\nOpen M:\\cppcryptfs\\cppcryptfs.sln in Visual Studio 2015 Community Edition\r\n\r\nVisual Studio displays a dialog that says \r\n\r\n\"An error occurred while creating or opening the C++ browsing database file M:\\cppcryptfs\\cppcryptfs.sdf. IntelliSense and browsing information will not be available for C++ projects.\r\n\r\nEnsure that Microsoft SQL Server Compact 4.0 is installed and that no other applications are accessing the file.  If this problem persists, delete this file and reopen the solution.\"\r\n\r\nI looked in the mirror log, and I couldn't figure out what VS tried to do that failed that caused this to happen. \r\n\r\nIf I try to create a new project on the mirrored drive, the same error happens.\r\n\r\n# Logs\r\nHere are the logs.  I'm not sure what the \"library logs\" are.  If it's logging from the dll, I think there weren't any instructions for obtaining them.  I seem to have had only kernel driver output in dbgview.  I logged it to a file. I logged mirror to stderr and redirected to a file.\r\n\r\nHere are the logs in this zip file.\r\n\r\n[dokan_vs_logs.zip](https://github.com/dokan-dev/dokany/files/318023/dokan_vs_logs.zip)"},"comment":{"url":"https://api.github.com/repos/dokan-dev/dokany/issues/comments/226721240","html_url":"https://github.com/dokan-dev/dokany/issues/264#issuecomment-226721240","issue_url":"https://api.github.com/repos/dokan-dev/dokany/issues/264","id":226721240,"user":{"login":"bailey27","id":17813578,"avatar_url":"https://avatars.githubusercontent.com/u/17813578?v=3","gravatar_id":"","url":"https://api.github.com/users/bailey27","html_url":"https://github.com/bailey27","followers_url":"https://api.github.com/users/bailey27/followers","following_url":"https://api.github.com/users/bailey27/following{/other_user}","gists_url":"https://api.github.com/users/bailey27/gists{/gist_id}","starred_url":"https://api.github.com/users/bailey27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bailey27/subscriptions","organizations_url":"https://api.github.com/users/bailey27/orgs","repos_url":"https://api.github.com/users/bailey27/repos","events_url":"https://api.github.com/users/bailey27/events{/privacy}","received_events_url":"https://api.github.com/users/bailey27/received_events","type":"User","site_admin":false},"created_at":"2016-06-17T09:16:38Z","updated_at":"2016-06-17T09:16:38Z","body":"I didn't get very far, but I did notice this.\r\n\r\nRight after Visual Studio actually creates the .sdf file, and before it deletes it, there two GetFileInfo that fail \r\n\r\ne.g.\r\n###GetFileInfo 0093\r\n\tresult =  0\r\n\tFileAllInformation\r\n\tDispatchQueryInformation result =  2147483653\r\n\r\n2147483653 is 0x80000005 STATUS_BUFFER_OVERFLOW\r\n\r\nMaybe that's not supposed to happen, and maybe that's why Visual Studio gives up and deletes the file?\r\n\r\nI was thinking that maybe the problem is that the buffer is too small because there's only enough space in it to hold M:\\cppcryptfs\\cppcryptfs.sdf and not C:\\tmp\\mirror\\cppcryptfs\\cppcryptfs.sdf\r\n\r\nI tried it with  mirror /r d:\\ (so the path length wouldn't be different) and it still failed.\r\n\r\n\r\n"}}
{"actor":{"display_login":"bailey27"}}