INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: MC crashes on D3D11 when 3D enable in NVIDIA control panel under FCU [Solved]  (Read 7945 times)

tij

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1563

running MC 23.0.91 on Windows 10 with Fall Creators Update ... when enable 3D in NVIDIA control panel ... MadVR set on Direct 3D 11 crashes MC ... anybody else experiencing this? ... or i am just unlucky :/
Logged
HTPC: Win11 Pro, MC: latest 31(64b), NV Driver: v425.31, CPU: i9-12900K, 32GB RAM, GeForce: 2080ti
Screen: LG 2016 E6
NAS: FreeNAS 11.1, SuperMicro SSG-5048R-E1CR36L, E5-1620v4, 64GB ECC RAM, 18xUltrastar He12-SAS3 drives, 2x240GB SSD (OS)

TheShoe

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 825
Re: MC crashes on D3D11 when 3D enable in NVIDIA control panel under FCU
« Reply #1 on: January 08, 2018, 08:30:06 pm »

yes.  actually i can enable 3d in the nvidia cpl.   playback works as long as full screen exclusive is enabled.   once i stop and try to play non 3d however mc crashes bad.  and only if i play 3d the first time.  is it mc or madvr?  who knows.   there seems little interest in fixing any of this given the niche that is 3d. 

when i watch 3d i enable it in the nvidia cpl and when done i disable it and all is well.

not at the htpc right now but if you PM me as a reminder i will be happy to share all my madvr settings.  i have put quite a lot of effort into getting this far such that 4K+hdr and 3d mvc work with the nvidia drivers, madvr, and jriver...  but with compromises!

this is with a slightly older nvidia driver but using the windows fall creators update

Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10923
Re: MC crashes on D3D11 when 3D enable in NVIDIA control panel under FCU
« Reply #2 on: January 09, 2018, 03:14:22 am »

4K and 3D is incompatible, you probably need to make sure you are at 1080p before 3D is being played, otherwise stuff might go wrong.
Logged
~ nevcairiel
~ Author of LAV Filters

tij

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1563
Re: MC crashes on D3D11 when 3D enable in NVIDIA control panel under FCU
« Reply #3 on: January 09, 2018, 01:29:46 pm »

yup ... I realise that 4K and 3D are incompatible lol

the problem now with latest MC, latest Windows 10 (aka FCU), latest NVIDIA drivers ... automation to switch different profiles in MadVR seems impossible atm

not really ... I can get it working but 2D will be displayed in D3D9 windowed mode ... which I understand is limited to 8 bit ... as I understand 10 bit needs D3D9 exclusive or D3D11 exclusive/windowed

4K exclusive (D3D9 or D3D11) just doesn't work atm ... black screen that puts MC in a state that requires its restart (after movie stops ... last screen shot of movie is stuck on top of MC)

only option is D3D11 windowed ... but it crashes MC if 3D is enabled in NVIDIA control panel

3D on other hand requires exclusive and 3D enabled in NVIDIA control panel

so trick is to set up profiles in MadVR for 2D and 3D ... part i am stuck on is toggling NVIDIA 3D setting from MadVR ... i see 2 ways of doing this (both do not work):

1. madVR->rendering->stereo 3D ... when play 2D content disable os stereo 3d support ... when play 3D content enable os stereo 3d support

in FCU ... this changes Windows [Display setting] 3D display mode ... which should set corresponding value in NVIDIA control panel ... it does turn off NVIDIA 3D setting when needed, BUT it does not (or cannot) turn it on ... so essentially you end up with [Displa setting]->3D "on" and 3D seiiting in NVIDIA control panel "off"

when 3D movie plays on [Display setting] 3D "on" but NVIDIA 3D "off" it plays it in 1080p exclusive D3D11 (3D) ... but no 3D signal is send to TV (when switching TV to 3D it ask if want to convert 2D to 3D ... aka TV receives only 2D signal)

This is obviously problem with NVIDIA driver (I did send a bug report/feedback to them today)

2. when creating profile for rendering 2D (Direct 3D 11) and 3D (exclusive) ... there is option in madVR to execute command line when profile is enabled

and NVIDIA provides command line to switch its 3D mode ... C:\Program Files (x86)\NVIDIA Corporation\3D Vision\nvstlink.exe /enable (/disable) ... it works like a champ setting corrently 3D setting in NVIDIA and in Windows [Display settings]

BUT unfortunately this MadVR feature does not work ... and seems from some time too (http://bugs.madshi.net/view.php?id=210)

... so atm no 10 bit 4K for me ... its properly working 3D and 8bit 2D (windowed D3D9) ... :(
Logged
HTPC: Win11 Pro, MC: latest 31(64b), NV Driver: v425.31, CPU: i9-12900K, 32GB RAM, GeForce: 2080ti
Screen: LG 2016 E6
NAS: FreeNAS 11.1, SuperMicro SSG-5048R-E1CR36L, E5-1620v4, 64GB ECC RAM, 18xUltrastar He12-SAS3 drives, 2x240GB SSD (OS)

tij

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1563
Re: MC crashes on D3D11 when 3D enable in NVIDIA control panel under FCU
« Reply #4 on: January 10, 2018, 12:18:09 pm »

HAHAHAHAHA ... finally got it working ... automatically switch between 3D (exclusive) and 4K (D3D11 windowed 10bit)

my set up: Windows 10 (version 1705 ... build 16299.125 ... aka latest Fall Creators Update) ... GTX1070 (latest 390.65 driver) ... MC 23.0.91 64 bit

as mentioned before i failed to switch on 3D in NVIDIA control panel from MC/MadVR cuase MC/MadVR was switching OS 3D setting that failed to propogate change to NVIDIA

solution was simple ... if start Windows in 4K (non 3D resolution), above problem presents itself even if you change resoltion to 1080p23 (supported 3D resolution)

so the trick is to make sure windows start in 1080p23 ... then it works like a charm even after changing resolution to 4K

after that its simply creating profiles in MadVR for 3D to display in exclusive and 2D to use Direct3D 11

So madVR setting i use for this

rendering -> stereo 3d
enable stereo 3d playback: check
when playing 2D content: disable os stereo 3d support for all displays
when playing 3d content: enable
retore os stereo 3d setting when media player is closed: uncheck (dont think this part matter ... just personal preference)

create profile for rendering -> general setting

one for 3D ... check enable automatic fullscreen exclusive mode and delay playback start until rendere queue is full
one for 2D ... check use Direct3D 11/present frame for every VSync and delay playback start until rendere queue is full

my 3D files have extension mk3d ... so profile switching logic is simple

if (fileExt = "mk3d") "name of 3D profile" else "name of 2D profile"

PS. its shame that 3D is dying ... on passive 3D LG OLED it is beatiful and no strain on eyes ... i started 3D with 65" Samsung 8000 series that used active 3D and it was crappy

PSS. nice thing about frame packed 3D ... when you dont want to watch in 3D ... just press 3D button on TV remote control and it switches the movie to 2D.
Logged
HTPC: Win11 Pro, MC: latest 31(64b), NV Driver: v425.31, CPU: i9-12900K, 32GB RAM, GeForce: 2080ti
Screen: LG 2016 E6
NAS: FreeNAS 11.1, SuperMicro SSG-5048R-E1CR36L, E5-1620v4, 64GB ECC RAM, 18xUltrastar He12-SAS3 drives, 2x240GB SSD (OS)

TheShoe

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 825
Re: MC crashes on D3D11 when 3D enable in NVIDIA control panel under FCU
« Reply #5 on: January 10, 2018, 06:33:26 pm »

hmmm.  yet another permutation i have to try

when you start windows in 1080p23 is the 3d checkbox on or off in the nvidia cpl?  what about windows displa cpl?

what nvidia driver are you using?

Logged

tij

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1563

using NVIDIA driver 390.65

(1)in nvidia cpl i set 1080p23 with 3d off
in windows cpl 3d off too (hdr off too)
   
(2)close both cpl and then restart computer ... once restarted i wait till everything loads (not sure if thats necessary)

then i open both windows and nvidia cpl

in windows cpl, turn on 3D ... nvidia cpl will automatically on 3D too

(3) then in nvidia cpl change resolution to 4k 60Hz 32 bit RGB 8bpc fulldynamic

(4) then in windows cpl turn 3D off ... nvidia cpl will automatically update 3D off

(5) then in windows cpl turn 3D on... nvidia cpl will automatically update 3D on ...

now it is working ... and can change resolution to any and windows cpl will trigger 3D setting in nvidia cpl

Let me know if that works ... this have to be done everytime computer restarts to lock windows cpl 3D to nvidia 3D (not sure if this can be automated with .bat at start up)

i did it 5 times ... works 4 times ... and one time did not work (was not paying attension .. so do not remember what i did wrong)

i think Windows intended 3D switching to work only for resolution supported by 3D ... 1080p and 720p ... and think Microsoft did not expect users to change resolution and 3d back and forth ... so i think above steps tricks Windows and locks its 3D to NVIDIA 3D no matter the resolution
Logged
HTPC: Win11 Pro, MC: latest 31(64b), NV Driver: v425.31, CPU: i9-12900K, 32GB RAM, GeForce: 2080ti
Screen: LG 2016 E6
NAS: FreeNAS 11.1, SuperMicro SSG-5048R-E1CR36L, E5-1620v4, 64GB ECC RAM, 18xUltrastar He12-SAS3 drives, 2x240GB SSD (OS)

mparade

  • Recent member
  • *
  • Posts: 39

Here 4K HDR play is dropping frames in a very rude way.
Everyone is succeeded in playing back HDR without dropping frames?

Upscaling SD and HD is excellent but 4K HDR seems to be too much for my rig, but I don't believe it.
Logged

TheShoe

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 825

using NVIDIA driver 390.65

(1)in nvidia cpl i set 1080p23 with 3d off
in windows cpl 3d off too (hdr off too)
   
(2)close both cpl and then restart computer ... once restarted i wait till everything loads (not sure if thats necessary)

then i open both windows and nvidia cpl

in windows cpl, turn on 3D ... nvidia cpl will automatically on 3D too

(3) then in nvidia cpl change resolution to 4k 60Hz 32 bit RGB 8bpc fulldynamic

(4) then in windows cpl turn 3D off ... nvidia cpl will automatically update 3D off

(5) then in windows cpl turn 3D on... nvidia cpl will automatically update 3D on ...

now it is working ... and can change resolution to any and windows cpl will trigger 3D setting in nvidia cpl

Let me know if that works ... this have to be done everytime computer restarts to lock windows cpl 3D to nvidia 3D (not sure if this can be automated with .bat at start up)

i did it 5 times ... works 4 times ... and one time did not work (was not paying attension .. so do not remember what i did wrong)

i think Windows intended 3D switching to work only for resolution supported by 3D ... 1080p and 720p ... and think Microsoft did not expect users to change resolution and 3d back and forth ... so i think above steps tricks Windows and locks its 3D to NVIDIA 3D no matter the resolution

thanks for the steps.  will try this tonight.

i am on a different (older) driver version, so I'll let you know how it works with that version.

I am hesitant to upgrade my nVidia drivers until I have a compelling reason to do so (likely for a game) as I have things *almost* right where I want them.

--

Logged

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7758
  • Autumn shade...

I am hesitant to upgrade my nVidia drivers until I have a compelling reason to do so (likely for a game) as I have things *almost* right where I want them.

IMO, I'd upgrade to at least 390.65 regardless, due to the Spectre v2 mitigation being included.
Logged
I don't work for JRiver... I help keep the forums safe from "male enhancements" and other sources of sketchy pharmaceuticals.

Windows 11 24H2 Update 64-bit + Ubuntu 24.10 Oracular Oriole 64-bit | Windows 11 24H2 Update 64-bit (Intel N305 Fanless NUC 16GB RAM/500GB M.2 NVMe SSD)
JRiver Media Center 33 (Windows + Linux) | iFi ZEN DAC 3 | JBL 306P MkII Studio Monitors | Audio-Technica ATH-M50x Headphones

mparade

  • Recent member
  • *
  • Posts: 39


This trick is not working stable here. It is definitely working until the 6th-7th switching between 2D, 3D, 4K sources in JRiver within two reset of Windows.
Then OS cpl is no longer locked to Nvidia cpl anymore and "messing up" starts over again.

The solution would be to use the NVIDIA command line to switch its 3D mode. The question still is how because command line options inside madVR seem to be not working here, either.
Logged

tij

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1563

I have not tested that many times ... maybe 4 or 5 switching between 3D and 2D sources ... will do more extensive testing tonight

I don't think madVR command line will be fixed ... the issue existed long time ... and was probably created to automate stuff like masking of projector screens ... since ppl who needs these have tons of cash, likely they pay ppl like Creston to do that for them ... normal ppl are more interested in quality and performance of madVR, so that's probably where developers are focusing

this issue with switching 3D is likely Windows issue than NVIDIA driver issue (NVIDIA command line seems to able to trigger this function flawlessly) ... and since 3D users move from critically endangered to extinct in the wild cause of TV manufacturers abandoning 3D, I do not think 3D is a high priority for anybody

regarding your unstable HDR ... did you set HDR passthrough in MadVR ... mine HDR works fine ... press ctrl+J when watching HDR stuff and note rendering times  it should be less than 40ms for 23Hz stuff
Logged
HTPC: Win11 Pro, MC: latest 31(64b), NV Driver: v425.31, CPU: i9-12900K, 32GB RAM, GeForce: 2080ti
Screen: LG 2016 E6
NAS: FreeNAS 11.1, SuperMicro SSG-5048R-E1CR36L, E5-1620v4, 64GB ECC RAM, 18xUltrastar He12-SAS3 drives, 2x240GB SSD (OS)

mparade

  • Recent member
  • *
  • Posts: 39

Thanks for the answer. In command prompt calling the "Nvidia 3D switch" command line is working just fine.
HDR seems to be solved by using one of Asmodian's profile so it must have been some madVR set up problem from my side.

P.S.: Still getting dropped frames but only when there is an abrupt scene change to "black background with subtitle" e.g. in Dunkirk 4K there are some of them at the beginning to check.
While watching 4K my average rendering time is ~30-32 ms for 23Hz using "Max. Quality", anyway. 

P.SS: Using Kodi + MPC-BE/HC this 3D switch problem supposed to be avoided using an xml file which triggers switching between 2D and 3D and the player using madVR but I am a JRiver user, so...:)
Logged

tij

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1563

can you point me to website that talks about this xml and kodi 3D setup
Logged
HTPC: Win11 Pro, MC: latest 31(64b), NV Driver: v425.31, CPU: i9-12900K, 32GB RAM, GeForce: 2080ti
Screen: LG 2016 E6
NAS: FreeNAS 11.1, SuperMicro SSG-5048R-E1CR36L, E5-1620v4, 64GB ECC RAM, 18xUltrastar He12-SAS3 drives, 2x240GB SSD (OS)

tij

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1563

did some testing (I seriously doubted MC/MadVR could have cause breaking link between windows cpl 3D and NVidia cpl 3D ... as it was not the cause of the problem in first place)

so what i found:

1. if you switch TV off (in may case LG E6) no matter if 3D setting was on or off ... and resolution was 4K ... 3D link between cpl gets brocken

2. if you switch TV off no matter if 3D setting was on or off ... and resolution was 1080p23 ... 3D link remains

(if anybody could confirm this)

so one of the solution to keep the system stable is to run Windows and MC in 1080p23 ... and let MC switch to 4k when desplaying 2D movies but revert back to 1080p23 for user interface ... should keep 3D link alive (have not tested it)

interface will not look as flashy (doubt most ppl will able to see difference between 4K and HD insterface if run in Theatre View) ... but movies will run properly in 3D and 4K (native and upscaled)
Logged
HTPC: Win11 Pro, MC: latest 31(64b), NV Driver: v425.31, CPU: i9-12900K, 32GB RAM, GeForce: 2080ti
Screen: LG 2016 E6
NAS: FreeNAS 11.1, SuperMicro SSG-5048R-E1CR36L, E5-1620v4, 64GB ECC RAM, 18xUltrastar He12-SAS3 drives, 2x240GB SSD (OS)

mparade

  • Recent member
  • *
  • Posts: 39

I don't really understand now because here is everything working as it should after checking the combinations two times....Did you manage to make the system work by you?

Logged

tij

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1563

mine is stable now ... 2 days PC is running ... 3D link between Windows and NVIDIA still active

solution as I mentioned before ... restart windows in 1080p23 do some 3D switching to lock 3D between Windows and NVIDIA

then switch back to 1080p23 and run MC in that resolution (to prevent switching TV off to break 3D link between Window and NVIDIA)
Logged
HTPC: Win11 Pro, MC: latest 31(64b), NV Driver: v425.31, CPU: i9-12900K, 32GB RAM, GeForce: 2080ti
Screen: LG 2016 E6
NAS: FreeNAS 11.1, SuperMicro SSG-5048R-E1CR36L, E5-1620v4, 64GB ECC RAM, 18xUltrastar He12-SAS3 drives, 2x240GB SSD (OS)

mparade

  • Recent member
  • *
  • Posts: 39

I see, but I meant automatic switching is working here between 2D (Direct 3D 11) and 3D (exclusive) without MC's crashing and with Nvidia 3D setting turned on permanently and res. set to 4K in cpls.
Logged

tij

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1563

Just for reference ... I am still running following: Windows 10 (version 1705 ... build 16299.125 ... aka latest Fall Creators Update) ... GTX1070 (latest 390.65 driver) ... MC 23.0.91 64 bit

So with 3D setting on in NVIDIA running 2D content in 4K

(1) D3D11 crashes MC in both exclusive and windowed mode
(2) D3D9 causese black screen in exclusive

so i still need swithcing 3D in cpls when playing 4K stuff in order to run it D3D11 windowed mode

only setting that works for me with 3D on in NVIDIA cpl is D3D9 windowed which i understand is limited to 8bit ... so no good for me

PS. not to rain on your parade ... but try to press CTR+J to confirm that your 2D is running in D3D11 while your 3D setting on in NVIDIA cpl (misspelling profile names in MadVR can cause incorrect profile selection and you might be running 2D in D3D9 windowed ... run into this problem while setting madVR upscaling for my HD stuff lol)
Logged
HTPC: Win11 Pro, MC: latest 31(64b), NV Driver: v425.31, CPU: i9-12900K, 32GB RAM, GeForce: 2080ti
Screen: LG 2016 E6
NAS: FreeNAS 11.1, SuperMicro SSG-5048R-E1CR36L, E5-1620v4, 64GB ECC RAM, 18xUltrastar He12-SAS3 drives, 2x240GB SSD (OS)

mparade

  • Recent member
  • *
  • Posts: 39
Logged

tij

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1563

lol ... lucky you ... if I do not start windows in 1080p23 and do tricks I described earlier ... or I turn off TV while windows in 4k ... 3D setting in NVIDIA get unstuck from 3D setting in Windows (see attached)

if I try running D3D11 with 3D setting turn on in NVIDIA, I get error (see attached)

so it was much harder for me to get it working on my setup, but I glad it worked so easy for you ... always strange to see one thing working on one PC while not working on the other
Logged
HTPC: Win11 Pro, MC: latest 31(64b), NV Driver: v425.31, CPU: i9-12900K, 32GB RAM, GeForce: 2080ti
Screen: LG 2016 E6
NAS: FreeNAS 11.1, SuperMicro SSG-5048R-E1CR36L, E5-1620v4, 64GB ECC RAM, 18xUltrastar He12-SAS3 drives, 2x240GB SSD (OS)
Pages: [1]   Go Up