Wrong place for A/V player (outside of preview pane)

Found a bug in "Everything"? report it here
Post Reply
tnovak
Posts: 15
Joined: Mon Jan 02, 2017 6:30 pm

Wrong place for A/V player (outside of preview pane)

Post by tnovak »

Hi!

first of all I would like to thank you for your great tool! I'm using Everything every day!

But now I noticed weird bug. In Everything beta 1.4.1.867b (x64) the player for audio and video files appears outside the preview pane. It's floating on the left side of the screen:

Image

System W10 x64 1703.

Can you please correct it?

Thank you!
void
Developer
Posts: 16698
Joined: Fri Oct 16, 2009 11:31 pm

Re: Wrong place for A/V player (outside of preview pane)

Post by void »

Thanks for the bug report.

Could you please send some debug information when showing the preview window:
  • In Everything, type in the following search and press ENTER:
    /debug
  • In Everything, select a new video file.
  • What is shown in the debug console?
To close the debug console:
  • In Everything, type in the following search and press ENTER:
    /debug
Does resizing the preview pane correct the position?
tnovak
Posts: 15
Joined: Mon Jan 02, 2017 6:30 pm

Re: Wrong place for A/V player (outside of preview pane)

Post by tnovak »

Hi!

Debug log sent.

Resizing window/preview pane is changing the size of the player, but it's still floating on the left side of screen.

I now tested older versions of Everything and they have also this bug. But some time before it was OK. So I suspecting the new Windows 10 Creators Update may causing it...

Can you still correct it on the Everything side (if it's really Win issue)?

Thank you!

EDIT: Just a little observation: when I kill the wmprph.exe (Windows Media Player Rich Preview Handler) process and re-enable the preview pane (or close the preview pane so the process closes itself), the player is then in correct position. But only until I close the Everything window. After re-opening it's floating again :(

EDIT 2: It's the audio preview only! The video preview is in correct position! But it's only a picture, not the player... So the video preview has different issue :(

EDIT 3: Yes, I can now confirm, that's the Creators Update issue :( I have some virtual PCs and those with CU has the same issues (except they are showing the floating player for videos too). But these with build 1607 are OK. Can you make some workaround for this incompatibility?
therube
Posts: 4967
Joined: Thu Sep 03, 2009 6:48 pm

Re: Wrong place for A/V player (outside of preview pane)

Post by therube »

EDIT 2: It's the audio preview only! The video preview is in correct position! But it's only a picture, not the player... So the video preview has different issue
I get that picture on a format that my end cannot handle (.flv).
void
Developer
Posts: 16698
Joined: Fri Oct 16, 2009 11:31 pm

Re: Wrong place for A/V player (outside of preview pane)

Post by void »

Thanks for the debug log.

The log shows no errors from the iPreviewHandler interface, all calls are successful.

I've added some additional debugging information to Everything 868b.

Could you please send the debug logs when showing a preview window with this version of Everything?

What version of Windows Media Player are you using?
Open Windows Media Player (You may need to click the library button), In Windows Media Player, from the Help menu, click About Windows Media Player.

What version of Windows 10 are you using?
tnovak
Posts: 15
Joined: Mon Jan 02, 2017 6:30 pm

Re: Wrong place for A/V player (outside of preview pane)

Post by tnovak »

Hi!

New log sent!

With this version the audio and video previews didn't show at all.

The video is still only the picture.<- EDIT: NOT Everything issue - FIXED

WMP is version 12.0.15063.0.

Windows 10 Pro 1703 build 15063.138 Czech.

Thanks!

EDIT: I just found the culprit for my "video preview showing just the picture" issue: it's was Potplayer. It somehow changed the preview handler in registry (\HKEY_CLASSES_ROOT\.mp4 etc..). I reset the association and now the video is again showing in preview player, but like the preview for audio, it's floating outside the preview pane.

But I discovered new issue with ver 1.4.1.868b - this version doesn't show preview for txt files correctly. It just shortly flashes in preview pane and disappears. When I tried 867b, it's OK here. So it seems that the debug version added one new bug :D
But nevermind, I still know you can fix it like always :lol:

BTW: I sent two new debug logs for video and text.
void
Developer
Posts: 16698
Joined: Fri Oct 16, 2009 11:31 pm

Re: Wrong place for A/V player (outside of preview pane)

Post by void »

Thanks for the debug logs.
SetWindow 00000000
SetRect 0 0 386 594
Looks like Everything is attempting to place the window in the correct position.
I just found the culprit for my "video preview showing just the picture"
glad to hear the issue is sorted.
But I discovered new issue with ver 1.4.1.868b - this version doesn't show
preview for txt files correctly. It just shortly flashes in preview pane
and disappears. When I tried 867b, it's OK here. So it seems that the
debug version added one new bug :D
Fixed for the next beta release.
tnovak
Posts: 15
Joined: Mon Jan 02, 2017 6:30 pm

Re: Wrong place for A/V player (outside of preview pane)

Post by tnovak »

Hi!

I just tried 1.4.1.869b (x64). Txt preview is now OK. Thanks! The video and audio still floating.

Do you need new debug logs?

This is a part about previews:

Code: Select all

request 0000007f
request 0000007f
got preview handler from class
request 0000007f
SetRect 0 0 0 0
request 0000007f
got preview handler 0.016453 seconds
got iwf
iwf initialized
SetWindow 00000000
SetRect 0 0 386 594
setup 0.034357 seconds
DoPreview ok
SetRect 0 0 386 594
DoPreview ok: 1, 0.037317 seconds
request 0000007f
request 0000007f
EDIT:
Just for reference, here is part of log from virtual machine with Windows 10 without Creators Update, where preview is OK:

Code: Select all

got preview handler from class
got ntfs file record b00000001c95a 6784 3
SetRect 0 0 0 0
got ntfs file record f000000019f78 18446744073709551615 1
updated C: in 0.065981 seconds
request 00000025
got preview handler 0.029351 seconds
got iwf
iwf initialized
SetWindow 00000000
SetRect 0 0 257 555
setup 0.022475 seconds
DoPreview ok
SetRect 0 0 257 555
DoPreview ok: 1, 0.619298 seconds
processed usn records in 0.000355 seconds
DB_WAIT: db_itemref_get waiting...
DB_WAIT: db_itemref_get waited 0.001020 seconds
got preview handler from class
SetRect 0 0 0 0
request 00000025
got preview handler 0.041090 seconds
got iwf
iwf initialized
SetWindow 00000000
SetRect 0 0 257 555
setup 0.060898 seconds
DoPreview ok
SetRect 0 0 257 555
DoPreview ok: 1, 0.012341 seconds
got preview handler from class
SetRect 0 0 0 0
request 00000025
got preview handler 0.021223 seconds
got iwf
iwf initialized
SetWindow 00000000
SetRect 0 0 257 555
setup 0.027510 seconds
DoPreview ok
SetRect 0 0 257 555
DoPreview ok: 1, 0.009220 seconds
got preview handler from class
SetRect 0 0 0 0
request 00000025
got preview handler 0.034548 seconds
got iwf
iwf initialized
SetWindow 00000000
SetRect 0 0 257 555
setup 0.110907 seconds
DoPreview ok
SetRect 0 0 257 555
DoPreview ok: 1, 0.004657 seconds
WM_ACTIVATE 0000000000000000 0000000000000000, lastfocus 0000000000030378, current focus 0000000000030378
request 00000025
And here from VM with CU where is preview incorrect:

Code: Select all

got preview handler from class
SetRect 0 0 0 0
request 00000025
got preview handler 0.011902 seconds
got iwf
iwf initialized
SetWindow 00000000
SetRect 0 0 290 555
setup 0.015087 seconds
DoPreview ok
SetRect 0 0 290 555
DoPreview ok: 1, 0.026428 seconds
when ready 8 0000000000000000 0000000000000000
got preview handler from class
SetRect 0 0 0 0
request 00000025
got preview handler 0.008012 seconds
got iwf
iwf initialized
SetWindow 00000000
SetRect 0 0 290 555
setup 0.014732 seconds
DoPreview ok
SetRect 0 0 290 555
DoPreview ok: 1, 0.024860 seconds
EDIT 2:
Definitely CU bug :-( :
https://answers.microsoft.com/ru-ru/win ... 30716700f7

I found only way how to override it:
I open Everything with preview pane closed (or close it manually and wait for a moment so the preview handler program closes itself).
Then, when I enable preview pane, the previews are correct (until I close Everything window).

Is it possible to bypass this annoying Windows error in Everything program code? Pretty please :-))))

Thanks!
void
Developer
Posts: 16698
Joined: Fri Oct 16, 2009 11:31 pm

Re: Wrong place for A/V player (outside of preview pane)

Post by void »

Thanks for the logs, they all look normal.

Does selecting another result fix the position? or is the position always incorrect when selecting a different result?
tnovak
Posts: 15
Joined: Mon Jan 02, 2017 6:30 pm

Re: Wrong place for A/V player (outside of preview pane)

Post by tnovak »

Hi!

Selecting another result, new search, changing filters, size or position of Everything window or preview pane - nothing fix the position of the preview player.

Only way, as I wrote, is closing the preview pane, waiting for preview process to terminate itself and then reopening preview pane. Then the position stays correct. You can then select another result, make new search or change a position or size of Everything window - still stays correct.
But closing Everything window (to tray) will cause the floating previews again.

Thanks!
void
Developer
Posts: 16698
Joined: Fri Oct 16, 2009 11:31 pm

Re: Wrong place for A/V player (outside of preview pane)

Post by void »

Please try enabling 'preview_set_window_after_dopreview' with the latest nightly build 870b

In Everything 870b, type in the following search and press ENTER:
/preview_set_window_after_dopreview=1
Does the preview show in the correct position now?
tnovak
Posts: 15
Joined: Mon Jan 02, 2017 6:30 pm

Re: Wrong place for A/V player (outside of preview pane)

Post by tnovak »

Hi!

Thank you for your effort, but unfortunately, it did not help. Preview still floating :(

Damn Windows Update...

Log:

Code: Select all

Everything
Version 1.4.1.870b (x64)
Windows NT 6.2
Processors 8
IsAdmin 1
AppData 1
Service 0
cmdline "C:\Program Files\Everything\Everything.exe" -isrunas
WM_ACTIVATE 0000000000000000 0000000000000000, lastfocus 00000000000209e8, current focus 00000000000209e8
WM_ACTIVATE 0000000000000002 0000000000000000, lastfocus 00000000000209e8, current focus 0000000000000000
update index C:
USN CREATE storage-3.json
USN CREATE CLOSE storage-3.json
USN DATA_TRUNCATION storage-3.json
USN DATA_EXTEND DATA_TRUNCATION storage-3.json
updated C: in 0.002912 seconds
processed usn records in 0.001590 seconds
DB_WAIT: _db_ready_proc waiting...
DB_WAIT: _db_ready_proc waited 0.000103 seconds
search '/preview_set_window_after_dopreview=1' filter 'ext:aac;ac3;aif;aifc;aiff;au;cda;dts;fla;flac;it;m1a;m2a;m3u;m4a;mid;midi;mka;mod;mp2;mp3;mpa;ogg;ra;rmi;spc;rmi;snd;umx;voc;wav;wma;xm' sort 2
term 000000000051e090, flags: 1140, next: 00000000005532a0, notnext: 0000000000000000
folderop: 2, fileop: 2, term: /preview_set_window_after_dopreview=1
term 00000000005532a0, flags: 3148, next: 0000000000000000, notnext: 0000000000000000
folderop: 1, fileop: 170, term: ext:aac;ac3;aif;aifc;aiff;au;cda;dts;fla;flac;it;m1a;m2a;m3u;m4a;mid;midi;mka;mod;mp2;mp3;mpa;ogg;ra;rmi;spc;rmi;snd;umx;voc;wav;wma;xm
SET SORT 2
found 0 folders, size 0, db search time taken: 0.001769 seconds
no search history hwn
found 0 files, size 0, db search time taken: 0.016501 seconds
total size 0, calculated in 0.000000 seconds
set sort 2 1
already sorted
finished sort, time taken 0.000235 seconds
update selection 0.000001 seconds
DB_WAIT: _db_ready_proc waiting...
DB_WAIT: _db_ready_proc waited 0.000063 seconds
new results
update index C:
USN DATA_EXTEND DATA_TRUNCATION CLOSE storage-3.json
USN DELETE CLOSE storage.json
USN RENAME_OLD_NAME storage-3.json
USN RENAME_NEW_NAME storage.json
USN RENAME_NEW_NAME CLOSE storage.json
USN CREATE storage-3.json
USN CREATE CLOSE storage-3.json
USN DATA_TRUNCATION storage-3.json
USN DATA_EXTEND DATA_TRUNCATION storage-3.json
USN DATA_EXTEND DATA_TRUNCATION CLOSE storage-3.json
USN DELETE CLOSE storage.json
USN RENAME_OLD_NAME storage-3.json
USN RENAME_NEW_NAME storage.json
USN RENAME_NEW_NAME CLOSE storage.json
updated C: in 0.031670 seconds
processed usn records in 0.005082 seconds
DB_WAIT: _db_ready_proc waiting...
DB_WAIT: _db_ready_proc waited 0.000349 seconds
update index C:
USN CREATE storage-3.json
USN CREATE CLOSE storage-3.json
USN DATA_TRUNCATION storage-3.json
USN DATA_EXTEND DATA_TRUNCATION storage-3.json
USN DATA_EXTEND DATA_TRUNCATION CLOSE storage-3.json
USN DELETE CLOSE storage.json
USN RENAME_OLD_NAME storage-3.json
USN RENAME_NEW_NAME storage.json
USN RENAME_NEW_NAME CLOSE storage.json
updated C: in 0.007664 seconds
processed usn records in 0.002421 seconds
DB_WAIT: _db_ready_proc waiting...
DB_WAIT: _db_ready_proc waited 0.000448 seconds
when ready 11 000000000000002d 0000000000000000
search 'foo bar' filter 'ext:aac;ac3;aif;aifc;aiff;au;cda;dts;fla;flac;it;m1a;m2a;m3u;m4a;mid;midi;mka;mod;mp2;mp3;mpa;ogg;ra;rmi;spc;rmi;snd;umx;voc;wav;wma;xm' sort 2
term 00000000123e6a10, flags: 1140, next: 00000000123e65d0, notnext: 0000000000000000
folderop: 2, fileop: 2, term: foo
term 00000000123e65d0, flags: 3140, next: 00000000005519e0, notnext: 0000000000000000
folderop: 2, fileop: 2, term: bar
term 00000000005519e0, flags: 3148, next: 0000000000000000, notnext: 0000000000000000
folderop: 1, fileop: 170, term: ext:aac;ac3;aif;aifc;aiff;au;cda;dts;fla;flac;it;m1a;m2a;m3u;m4a;mid;midi;mka;mod;mp2;mp3;mpa;ogg;ra;rmi;spc;rmi;snd;umx;voc;wav;wma;xm
SET SORT 2
search 'foo bar' filter 'ext:aac;ac3;aif;aifc;aiff;au;cda;dts;fla;flac;it;m1a;m2a;m3u;m4a;mid;midi;mka;mod;mp2;mp3;mpa;ogg;ra;rmi;spc;rmi;snd;umx;voc;wav;wma;xm' sort 2
DB_WAIT: db_query_search waiting...
found 0 folders, size 0, db search time taken: 0.001546 seconds
DB_WAIT: db_query_search waited 0.000418 seconds
term 00000000123e71d0, flags: 1140, next: 00000000123e7310, notnext: 0000000000000000
folderop: 2, fileop: 2, term: foo
term 00000000123e7310, flags: 3140, next: 0000000000551da0, notnext: 0000000000000000
folderop: 2, fileop: 2, term: bar
term 0000000000551da0, flags: 3148, next: 0000000000000000, notnext: 0000000000000000
folderop: 1, fileop: 170, term: ext:aac;ac3;aif;aifc;aiff;au;cda;dts;fla;flac;it;m1a;m2a;m3u;m4a;mid;midi;mka;mod;mp2;mp3;mpa;ogg;ra;rmi;spc;rmi;snd;umx;voc;wav;wma;xm
SET SORT 2
no search history hwn
found 0 folders, size 0, db search time taken: 0.003146 seconds
found 4 files, size 65544, db search time taken: 0.042168 seconds
total size 26969154, calculated in 0.000001 seconds
set sort 2 1
already sorted
finished sort, time taken 0.000722 seconds
update selection 0.000000 seconds
DB_WAIT: _db_ready_proc waiting...
unblock 0 0000000000000000 0000000000000000
got preview handler from class
DB_WAIT: _db_ready_proc waited 0.000761 seconds
got preview handler 0.000002 seconds
got iwf
iwf initialized
setup 0.008063 seconds
DoPreview ok
DoPreview ok: 1, 0.003967 seconds
when ready 0 0000000000000000 0000000000000000
new results
update index C:
USN CREATE storage-3.json
USN CREATE CLOSE storage-3.json
USN DATA_TRUNCATION storage-3.json
USN DATA_EXTEND DATA_TRUNCATION storage-3.json
USN DATA_EXTEND DATA_TRUNCATION CLOSE storage-3.json
USN DELETE CLOSE storage.json
USN RENAME_OLD_NAME storage-3.json
USN RENAME_NEW_NAME storage.json
USN RENAME_NEW_NAME CLOSE storage.json
updated C: in 0.011522 seconds
processed usn records in 0.001827 seconds
DB_WAIT: _db_ready_proc waiting...
DB_WAIT: _db_ready_proc waited 0.000520 seconds
got preview handler from class
got preview handler 0.008445 seconds
got iwf
iwf initialized
setup 0.018221 seconds
DoPreview ok
DoPreview ok: 1, 0.010018 seconds
got preview handler from class
got preview handler 0.015913 seconds
got iwf
iwf initialized
setup 0.027449 seconds
DoPreview ok
DoPreview ok: 1, 0.013736 seconds
update index C:
USN DATA_TRUNCATION CONHOST.EXE-1F3E9D7E.pf
USN DATA_EXTEND DATA_TRUNCATION CONHOST.EXE-1F3E9D7E.pf
USN DATA_EXTEND DATA_TRUNCATION CLOSE CONHOST.EXE-1F3E9D7E.pf
updated C: in 0.007311 seconds
processed usn records in 0.000549 seconds
DB_WAIT: _db_ready_proc waiting...
DB_WAIT: _db_ready_proc waited 0.001085 seconds
got preview handler from class
got preview handler 0.013937 seconds
got iwf
iwf initialized
setup 0.032156 seconds
DoPreview ok
DoPreview ok: 1, 0.014803 seconds
got preview handler from class
got preview handler 0.014149 seconds
got iwf
iwf initialized
setup 0.030043 seconds
DoPreview ok
DoPreview ok: 1, 0.012803 seconds
got preview handler from class
got preview handler 0.014993 seconds
got iwf
iwf initialized
setup 0.026521 seconds
DoPreview ok
DoPreview ok: 1, 0.009270 seconds
update index C:
USN DATA_OVERWRITE ACCOUNT.M_R
USN DATA_OVERWRITE CLOSE ACCOUNT.M_R
USN DATA_OVERWRITE ACCOUNT.M_D
USN DATA_OVERWRITE CLOSE ACCOUNT.M_D
updated C: in 0.002443 seconds
processed usn records in 0.000235 seconds
DB_WAIT: _db_ready_proc waiting...
DB_WAIT: _db_ready_proc waited 0.000039 seconds
WM_ACTIVATE 0000000000000000 0000000000000000, lastfocus 00000000000209ea, current focus 00000000000209ea
void
Developer
Posts: 16698
Joined: Fri Oct 16, 2009 11:31 pm

Re: Wrong place for A/V player (outside of preview pane)

Post by void »

I've installed Windows 10 x64 1703 15063 Czech and was able to reproduce the preview window position issue.

However, I haven't found a solution yet..
The preview window appears to always be on the top left of the primary display, no matter what parent window or position I set.
inthevoid
Posts: 13
Joined: Thu May 05, 2016 1:04 pm

Re: Wrong place for A/V player (outside of preview pane)

Post by inthevoid »

Hi, thanks again for the incredible program.

Has the media player appearing on he top left of the Window been resolved in any of the Beta releases?

Is there any way to autoplay or auto preview audio files as soon as selected instead of having to hit play each time a new file is selected, or perhaps there is a shortcut I am not aware of? I am on Windows 10.

Thanks!
void
Developer
Posts: 16698
Joined: Fri Oct 16, 2009 11:31 pm

Re: Wrong place for A/V player (outside of preview pane)

Post by void »

I did try fixing this again for Everything 895.
However, I was unable to find a solution.

I will be rewriting the preview pane for Everything 1.5, hopefully a solution will be found..
inthevoid
Posts: 13
Joined: Thu May 05, 2016 1:04 pm

Re: Wrong place for A/V player (outside of preview pane)

Post by inthevoid »

Thank you for the update.

Please consider an auto-play feature also, if it will not hinder performance.

One last question, should wmp play the selected file once I hit spacebar or enter or some other key?
Post Reply