Open Bug 1682036 Opened 4 years ago Updated 1 year ago

WebRender capture isn't working on Windows 10

Categories

(Core :: Graphics: WebRender, defect)

defect

Tracking

()

People

(Reporter: jimm, Unassigned)

References

(Blocks 1 open bug)

Details

I was experimenting around with this to try and get a log. The feature doesn't appear to be writing anything out. It does seem to be attempting to open a file but fails at some point. Process monitor shows the following disk activity however no directory is created in my root. Also, if I pre-create a wr-capture folder, Firefox will attempt to open a different folder, e.g. 'wr-capture.1' with the same type of activity.

Dzmitry, any idea here? I can attempt to debug this in visual studio with a little help.

1:27:35.8297007 PM firefox.exe 20580 CreateFile C:\Users\James Mathies\wr-capture NAME NOT FOUND Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
1:27:35.8301976 PM firefox.exe 20580 CreateFile C:\Users\James Mathies SUCCESS Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
1:27:35.8302519 PM firefox.exe 20580 QueryBasicInformationFile C:\Users\James Mathies SUCCESS CreationTime: 9/13/2020 1:56:03 PM, LastAccessTime: 12/11/2020 1:27:35 PM, LastWriteTime: 12/11/2020 1:26:10 PM, ChangeTime: 12/11/2020 1:26:10 PM, FileAttributes: D
1:27:35.8302841 PM firefox.exe 20580 CloseFile C:\Users\James Mathies SUCCESS
1:27:35.8303864 PM firefox.exe 20580 CreateFile C:\ SUCCESS Desired Access: Read Data/List Directory, Synchronize, Disposition: Open, Options: Directory, Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
1:27:35.8304616 PM firefox.exe 20580 QueryDirectory C:\Users SUCCESS Filter: Users, 1: Users
1:27:35.8305289 PM firefox.exe 20580 CloseFile C:\ SUCCESS
1:27:35.8308018 PM firefox.exe 20580 CreateFile C:\Users\James Mathies\wr-capture NAME NOT FOUND Desired Access: Read Attributes, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: n/a, ShareMode: Read, Write, AllocationSize: n/a
1:27:35.8311604 PM firefox.exe 20580 CreateFile C:\Users\James Mathies\wr-capture NAME NOT FOUND Desired Access: Read Attributes, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, AllocationSize: n/a
1:27:35.8314439 PM firefox.exe 20580 CreateFile C:\Users\James Mathies\wr-capture NAME NOT FOUND Desired Access: Read Attributes, Synchronize, Disposition: Open, Options: Synchronous IO Alert, Attributes: n/a, ShareMode: Read, Write, AllocationSize: n/a
1:27:35.8317214 PM firefox.exe 20580 CreateFile C:\Users\James Mathies\wr-capture NAME NOT FOUND Desired Access: Read Attributes, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Open Reparse Point, Attributes: N, ShareMode: Read, Write, AllocationSize: n/a
1:27:35.8319826 PM firefox.exe 20580 CreateFile C:\Users\James Mathies IS DIRECTORY Desired Access: Read Attributes, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: n/a, ShareMode: Read, Write, AllocationSize: n/a
1:27:35.8322297 PM firefox.exe 20580 CreateFile C:\Users\James Mathies SUCCESS Desired Access: Read Attributes, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Open Reparse Point, Attributes: N, ShareMode: Read, Write, AllocationSize: n/a, OpenResult: Opened
1:27:35.8323049 PM firefox.exe 20580 FileSystemControl C:\Users\James Mathies NOT REPARSE POINT Control: FSCTL_GET_REPARSE_POINT
1:27:35.8323615 PM firefox.exe 20580 CloseFile C:\Users\James Mathies SUCCESS
1:27:35.8326036 PM firefox.exe 20580 CreateFile C:\Users\James Mathies SUCCESS Desired Access: Read Attributes, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, AllocationSize: n/a, OpenResult: Opened
1:27:35.8326658 PM firefox.exe 20580 CloseFile C:\Users\James Mathies SUCCESS
1:27:35.8329053 PM firefox.exe 20580 CreateFile C:\Users\James Mathies SUCCESS Desired Access: Read Attributes, Synchronize, Disposition: Open, Options: Synchronous IO Alert, Attributes: n/a, ShareMode: Read, Write, AllocationSize: n/a, OpenResult: Opened
1:27:35.8329991 PM firefox.exe 20580 DeviceIoControl C:\Users\James Mathies INVALID PARAMETER Control: IOCTL_MOUNTDEV_QUERY_DEVICE_NAME
1:27:35.8330517 PM firefox.exe 20580 CloseFile C:\Users\James Mathies SUCCESS
1:27:35.8333397 PM firefox.exe 20580 CreateFile C:\Users\James Mathies SUCCESS Desired Access: Read Attributes, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Open Reparse Point, Attributes: N, ShareMode: Read, Write, AllocationSize: n/a, OpenResult: Opened
1:27:35.8334008 PM firefox.exe 20580 FileSystemControl C:\Users\James Mathies NOT REPARSE POINT Control: FSCTL_GET_REPARSE_POINT
1:27:35.8334460 PM firefox.exe 20580 CloseFile C:\Users\James Mathies SUCCESS
1:27:35.8336802 PM firefox.exe 20580 CreateFile C:\Users IS DIRECTORY Desired Access: Read Attributes, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: n/a, ShareMode: Read, Write, AllocationSize: n/a
1:27:35.8339052 PM firefox.exe 20580 CreateFile C:\Users SUCCESS Desired Access: Read Attributes, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Open Reparse Point, Attributes: N, ShareMode: Read, Write, AllocationSize: n/a, OpenResult: Opened
1:27:35.8339655 PM firefox.exe 20580 FileSystemControl C:\Users NOT REPARSE POINT Control: FSCTL_GET_REPARSE_POINT
1:27:35.8340101 PM firefox.exe 20580 CloseFile C:\Users SUCCESS
1:27:35.8342429 PM firefox.exe 20580 CreateFile C:\Users SUCCESS Desired Access: Read Attributes, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, AllocationSize: n/a, OpenResult: Opened
1:27:35.8342937 PM firefox.exe 20580 CloseFile C:\Users SUCCESS
1:27:35.8345167 PM firefox.exe 20580 CreateFile C:\Users SUCCESS Desired Access: Read Attributes, Synchronize, Disposition: Open, Options: Synchronous IO Alert, Attributes: n/a, ShareMode: Read, Write, AllocationSize: n/a, OpenResult: Opened
1:27:35.8345991 PM firefox.exe 20580 DeviceIoControl C:\Users INVALID PARAMETER Control: IOCTL_MOUNTDEV_QUERY_DEVICE_NAME
1:27:35.8346380 PM firefox.exe 20580 CloseFile C:\Users SUCCESS
1:27:35.8348665 PM firefox.exe 20580 CreateFile C:\Users SUCCESS Desired Access: Read Attributes, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Open Reparse Point, Attributes: N, ShareMode: Read, Write, AllocationSize: n/a, OpenResult: Opened
1:27:35.8349227 PM firefox.exe 20580 FileSystemControl C:\Users NOT REPARSE POINT Control: FSCTL_GET_REPARSE_POINT
1:27:35.8349717 PM firefox.exe 20580 CloseFile C:\Users SUCCESS

Flags: needinfo?(dmalyshau)

gpu process sandbox?

(In reply to Jeff Muizelaar [:jrmuizel] from comment #1)

gpu process sandbox?

We don't have a gpu sandbox for Windows yet.

Severity: N/A → S3

I just tested it on Win10 and Nightly, the wr-capture folder appeared right away upon hitting Ctrl+Shift+3, as expected. So it must have something to do with permissions, although it's weird that you'd not be permitted to write in the very home folder of yours... I wonder if the space " " in your user name is involved here as well. Here is a log I got:

"3:31:23.1198656 PM","firefox.exe","1864","CreateFile","C:\Users\dzmitry\wr-capture","SUCCESS","Desired Access: Read Attributes, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened"
"3:31:23.1199107 PM","firefox.exe","1864","QueryInformationVolume","C:\Users\dzmitry\wr-capture","BUFFER OVERFLOW","VolumeCreationTime: 12/31/1969 7:00:00 PM, VolumeSerialNumber: 0246-9FF7, SupportsObjects: True, VolumeLabel: BOOက"
"3:31:23.1199266 PM","firefox.exe","1864","QueryAllInformationFile","C:\Users\dzmitry\wr-capture","BUFFER OVERFLOW","CreationTime: 1/5/2021 3:19:10 PM, LastAccessTime: 1/5/2021 3:19:27 PM, LastWriteTime: 1/5/2021 3:19:12 PM, ChangeTime: 1/5/2021 3:19:12 PM, FileAttributes: D, AllocationSize: 8,192, EndOfFile: 8,192, NumberOfLinks: 1, DeletePending: False, Directory: True, IndexNumber: 0x15000000000b74, EaSize: 0, Access: Read Attributes, Synchronize, Position: 0, Mode: Synchronous IO Non-Alert, AlignmentRequirement: Long"
"3:31:23.1199428 PM","firefox.exe","1864","CloseFile","C:\Users\dzmitry\wr-capture","SUCCESS",""
"3:31:23.1200500 PM","firefox.exe","1864","CreateFile","C:\Users\dzmitry\wr-capture.1","NAME NOT FOUND","Desired Access: Read Attributes, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a"
"3:31:23.1202201 PM","firefox.exe","1864","CreateFile","C:\Users\dzmitry\wr-capture.1","SUCCESS","Desired Access: Read Data/List Directory, Synchronize, Disposition: Create, Options: Directory, Synchronous IO Non-Alert, Open Reparse Point, Attributes: N, ShareMode: Read, Write, AllocationSize: 0, OpenResult: Created"
"3:31:23.1203972 PM","firefox.exe","1864","CloseFile","C:\Users\dzmitry\wr-capture.1","SUCCESS",""
"3:31:23.1204127 PM","SearchIndexer.exe","6928","FileSystemControl","C:","SUCCESS","Control: FSCTL_QUERY_USN_JOURNAL"
"3:31:23.1204452 PM","SearchIndexer.exe","6928","FileSystemControl","C:","SUCCESS","Control: FSCTL_READ_USN_JOURNAL"
"3:31:23.1205676 PM","firefox.exe","1864","CreateFile","C:\Users\dzmitry\wr-capture.1\wr.txt","SUCCESS","Desired Access: Generic Write, Read Attributes, Disposition: OverwriteIf, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: 0, OpenResult: Created"
"3:31:23.1207594 PM","firefox.exe","1864","WriteFile","C:\Users\dzmitry\wr-capture.1\wr.txt","SUCCESS","Offset: 0, Length: 16, Priority: Normal"
"3:31:23.1208614 PM","firefox.exe","1864","WriteFile","C:\Users\dzmitry\wr-capture.1\wr.txt","SUCCESS","Offset: 16, Length: 40, Priority: Normal"
"3:31:23.1209059 PM","SearchIndexer.exe","6928","CreateFile","C:\Users\dzmitry\wr-capture.1","SUCCESS","Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened"
"3:31:23.1209108 PM","firefox.exe","1864","WriteFile","C:\Users\dzmitry\wr-capture.1\wr.txt","SUCCESS","Offset: 56, Length: 1, Priority: Normal"
"3:31:23.1209249 PM","SearchIndexer.exe","6928","QueryBasicInformationFile","C:\Users\dzmitry\wr-capture.1","SUCCESS","CreationTime: 1/5/2021 3:31:23 PM, LastAccessTime: 1/5/2021 3:31:23 PM, LastWriteTime: 1/5/2021 3:31:23 PM, ChangeTime: 1/5/2021 3:31:23 PM, FileAttributes: D"
"3:31:23.1209356 PM","SearchIndexer.exe","6928","CloseFile","C:\Users\dzmitry\wr-capture.1","SUCCESS",""
"3:31:23.1209378 PM","firefox.exe","1864","CloseFile","C:\Users\dzmitry\wr-capture.1\wr.txt","SUCCESS",""
"3:31:23.1211625 PM","SearchIndexer.exe","6928","FileSystemControl","C:","SUCCESS","Control: FSCTL_READ_USN_JOURNAL"
"3:31:23.1211848 PM","SearchIndexer.exe","6928","FileSystemControl","C:","SUCCESS","Control: FSCTL_QUERY_USN_JOURNAL"
"3:31:23.1212378 PM","MsMpEng.exe","5756","QueryNameInformationFile","C:\Users\dzmitry\AppData\Local\Nightly\firefox.exe","SUCCESS","Name: \Users\dzmitry\AppData\Local\Nightly\firefox.exe"
"3:31:23.1213784 PM","MsMpEng.exe","5756","CreateFileMapping","C:\Users\dzmitry\wr-capture.1\wr.txt","FILE LOCKED WITH WRITERS","SyncType: SyncTypeCreateSection, PageProtection: PAGE_EXECUTE|PAGE_NOCACHE"
"3:31:23.1213937 PM","MsMpEng.exe","5756","QueryStandardInformationFile","C:\Users\dzmitry\wr-capture.1\wr.txt","SUCCESS","AllocationSize: 64, EndOfFile: 57, NumberOfLinks: 1, DeletePending: False, Directory: False"
Flags: needinfo?(dmalyshau)
Blocks: wr-todos
You need to log in before you can comment on or make changes to this bug.