INTERACT FORUM

Please login or register.

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

Author Topic: Microsoft Edge (Webview2) Stopped Working - Only in MC [Solved]  (Read 1935 times)

whoareyou

  • Galactic Citizen
  • ****
  • Posts: 438
Microsoft Edge (Webview2) Stopped Working - Only in MC [Solved]
« on: February 06, 2023, 06:07:53 pm »

Hi,
Not sure when this happened exactly, but any Edge dependent UI's do not load. 
Edit: Webview2 was updated a couple of days ago.  This seems to coincide with the issue.

Edge related UI's just display "loading..." message and go no further.
I switched to Chromium and that seems to work.

No issues with Edge in the OS (in case that's relevant)

Any suggestions as to what to look for to resolve this?  Would anything in logging point to what the issue is?



Thanks
Logged

whoareyou

  • Galactic Citizen
  • ****
  • Posts: 438
Re: Microsoft Edge (Webview2) Stopped Working - Only in MC
« Reply #1 on: February 10, 2023, 12:08:48 pm »

A bit more looking into this.
Starting up JRiver in admin mode and webview2 works as expected

webview2 instantiates properly with other apps on this PC

There seems to be some permissions issue only with JRiver and only on this machine. 
Anyone have an idea as to what permissions may be missing for this user?


Thanks

Logged

whoareyou

  • Galactic Citizen
  • ****
  • Posts: 438
Re: Microsoft Edge (Webview2) Stopped Working - Only in MC
« Reply #2 on: February 11, 2023, 09:22:39 am »

This line is in the log when failure occurs:

General: CEdgeWebView::OnCreateControllerCompleted: Failed: 0x8007139F

Perhaps one of the devs can help out with exactly what the error code can mean in this context, or perhaps a future build can add some additional logging information to provide more detailed reason for when browser creation fails?

The browser instantiates correctly if I run JRiver with admin rights. 
I've checked (best I can), comparing access rights for all of the directories being accessed (per process explorer against a working machine), and access rights all look the same between the two.

I've also reinstalled MC30 back to version 48, and still have issue. 
Don't see how this can be a firewall issue, since it works for admin (I also configure defender rules for JRiver). 
Nothing sticks out as a corrupted OS - SFC /scannow comes back without issues found. 
Are there any webview2 version requirements for JRiver?  My version is currently at 110.0.1587.41

For now, I've switched to chromium, which doesn't make difference for me but this is really frustrating.

This one has me baffled. 

Thanks
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72438
  • Where did I put my teeth?
Re: Microsoft Edge (Webview2) Stopped Working - Only in MC
« Reply #3 on: February 11, 2023, 09:51:51 am »

MC installs and uses its own browser engines for Chrome and OS.  Installing the actual browsers won't affect MC unless you tried to overwrite what MC installed.
Logged

whoareyou

  • Galactic Citizen
  • ****
  • Posts: 438
Re: Microsoft Edge (Webview2) Stopped Working - Only in MC
« Reply #4 on: February 11, 2023, 10:32:06 am »

Yes, I understand that. I'm not installing anything, only changing MC option to choose which browser to use.
Edge or chromium. 

Isn't MC loading up webview2 when selecting Edge?

When Edge option is selected, MC only starts the browser window i.e. cloudplay when MC is running in administrator mode.  Starting as normal user and browser window only displays "loading...." and the error message is in the log file.

Everything I've done simply revolves around changing the browser option within MC.
It used to work.  I have no idea why it stopped working
Logged

whoareyou

  • Galactic Citizen
  • ****
  • Posts: 438
Re: Microsoft Edge (Webview2) Stopped Working - Only in MC
« Reply #5 on: February 12, 2023, 10:13:04 am »

One more bit of information.

I reinstalled final version of last release, 29.0.87, and with that version the browser i.e. for cloudplay loads up correctly.

Correct me if I'm wrong, but doesn't version 29.0.87 use the same underlying MS runtime as version 30 for web views?
If true....
1) What could be different between versions 29 and 30?
2) The runtime works for other applications on my computer, including version 29.0.87 of MC.

So, how to troubleshoot issue?  I'm out of ideas. 

I've also uninstalled and reinstalled version 30 and this doesn't correct issue.

Logged

whoareyou

  • Galactic Citizen
  • ****
  • Posts: 438
Re: Microsoft Edge (Webview2) Stopped Working - Only in MC
« Reply #6 on: February 14, 2023, 04:12:59 pm »

Ok, I've completed some more troubleshooting, and still no fix. Did a little digging with procmon to see if the load failure could be identified, but nothing stands out, and it's like needle in haystack.

To summarize:

The edge option loads for MC30, but only if I launch MC30 with "Run as Administrator"

I've reinstalled MC30 several times.  Makes no difference
I've reloaded prior version of MC30.  Doesn't work with any of the prior versions.

The edge option works with prior version of MC 29

I've repaired the webview2 runtime installation (which I thought MC is using).  One of the repairs updated runtime to a newer version.  Still broken in MC30.

OS is completely updated

Otherwise I am out of luck trying to configure MC to use edge as its default browser

Is there any error message in the MC logfile that can give a clue as to what caused the load failure ?

Looks like I'm stuck with the chromium option. 
Logged

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2033
Re: Microsoft Edge (Webview2) Stopped Working - Only in MC
« Reply #7 on: February 14, 2023, 04:18:44 pm »

I think a friend of mine had issues with edge engine not working at all and it turned out (if my memory serves me) that he had disabled network access to some related component in the windows firewall settings.

Not sure if it is helpful but thought that could be mentioned
Logged

whoareyou

  • Galactic Citizen
  • ****
  • Posts: 438
Re: Microsoft Edge (Webview2) Stopped Working - Only in MC
« Reply #8 on: February 14, 2023, 05:36:33 pm »

@lepa Thanks.  I'll check it out next time I troubleshoot.
 Thing that gets me is that runtime works in every other app on my machine, including MC29 and also MC30 but only if I start it with elevated privileges.  It's bizarre.  Seems like some weird permissions issue, but this one has me stumped.
Luckily, I can substitute Chromium, but this edge thing really annoys me. 

Logged

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 9139
Re: Microsoft Edge (Webview2) Stopped Working - Only in MC
« Reply #9 on: February 14, 2023, 10:40:51 pm »

I've repaired the webview2 runtime installation (which I thought MC is using).  One of the repairs updated runtime to a newer version.  Still broken in MC30.
How did you do that?
I couldn't even tell you where mine is. My "AppData\Roaming\J River\Media Center 30" folder contains a 500 Mb folder named "Web" which I presumed was "MC Edge". Aside from that, some major builds back, there was a looong pause in MC installation whilst it downloaded the Edge stuff it needed, and since then, it's 'just worked'. I couldn't find any repair option in MC?

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7804
  • Autumn shade...
Re: Microsoft Edge (Webview2) Stopped Working - Only in MC
« Reply #10 on: February 15, 2023, 03:24:01 am »

The Web folder is for the Chromium Embedded Framework (CEF) which is for the Chromium engine that Media Center can use after it downloads the components. And you're right, Media Center also relies on WebView2 for the Microsoft Edge engine which is the default web browser engine in Media Center because it's the only one that works with DRM and whatnot, at least it did at the time when Hendrik added support for it, if I recall correctly. The Internet Explorer engine option is still there, but as of yesterday Microsoft has fully killed all support for Internet Explorer so it *may* be time to remove that option, even though it likely still works. It's probably a security risk keeping it around and using it, IMO.

Now the question is, why is WebView2 not working for you and why does it only work if you start Media Center as an admin? Perhaps it's some sort of permissions issue? What version of Windows are you using? Are you up-to-date on Windows updates? Do you have a second PC or anything to test it on? If I had to guess, something's broken with your WebView2 on your machine, because I haven't seen anyone else report anything like this here... yet.

Anyone else using WebView2 via the Microsoft Edge engine in Media Center having similar issues?

P.S. As far as I know it should be included with Windows (as I'm not sure if MC will download it if missing) but you can manually download and install WebView2 from here: https://developer.microsoft.com/en-us/microsoft-edge/webview2/ and Windows should keep it updated in the background via Windows Update.
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

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10933
Re: Microsoft Edge (Webview2) Stopped Working - Only in MC
« Reply #11 on: February 15, 2023, 04:51:39 am »

The "Web" folder under "%APPDATA%\J River\Media Center 30" is used for both chromium and Edge (WebView2). It's only temporary data, so you should be fine to delete it as a debugging step.

Otherwise I wouldn't know what might have happened that would cause this issue, especially since no one else is reporting anything similar.

I'm updating to the latest WebView2 runtime in a future build, but the changelog also doesn't suggest anything related.
Logged
~ nevcairiel
~ Author of LAV Filters

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72438
  • Where did I put my teeth?
Re: Microsoft Edge (Webview2) Stopped Working - Only in MC
« Reply #12 on: February 15, 2023, 05:44:35 am »

Something possibly related happening with MS web browsers right now.  I read that the new Edge release disables or removes IE on Windows 10. 
Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10933
Re: Microsoft Edge (Webview2) Stopped Working - Only in MC
« Reply #13 on: February 15, 2023, 07:46:11 am »

IE was officially discontinued mid 2022, and completely killed off this week for any stragglers. Noone should be using IE anymore for a long time.
Logged
~ nevcairiel
~ Author of LAV Filters

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72438
  • Where did I put my teeth?
Re: Microsoft Edge (Webview2) Stopped Working - Only in MC
« Reply #14 on: February 15, 2023, 08:46:28 am »

We still should consider the possibility that the change will have side effects.
Logged

whoareyou

  • Galactic Citizen
  • ****
  • Posts: 438
Re: Microsoft Edge (Webview2) Stopped Working - Only in MC
« Reply #15 on: February 15, 2023, 08:48:57 am »

Thanks Hendrik and Jim

For now, I think my best bet is to wait for Hendrik to update browser version and see what happens.  Any chance that as part of this upgrade, you can also add a bit more logging for any load failures?

I forgot to mention I had already tried deleting the temp Web directory, and it made no difference.

What seems most odd is that when I run MC30 with the elevated permissions the edge browser loads.  This makes no sense to me as it seems backwards from MS (nothing to do with JRiver) security perspective i.e elevated permissions should prevent the browser from running. 

As far as Internet Explorer, I see that it's deactivated in my Windows 11 install, but JRiver is still able to load browser when configured for IE in the option setting.   I suppose that could change as MS goes on their merry way of changing things.


Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10933
Re: Microsoft Edge (Webview2) Stopped Working - Only in MC
« Reply #16 on: February 15, 2023, 09:38:27 am »

We are already logging all the startup steps of loading the WebView with error codes and whatnot. At least on any failures they should show up, and quietly pass-by as success.
Logged
~ nevcairiel
~ Author of LAV Filters

whoareyou

  • Galactic Citizen
  • ****
  • Posts: 438
Re: Microsoft Edge (Webview2) Stopped Working - Only in MC
« Reply #17 on: February 15, 2023, 09:41:30 am »

ok, so obviously I don't know what to look for.  Regardless, since you are going to upgrade runtime, I don't want to take up any more of your time with this for now.  Let's see what happens after you release the version with the upgrade and if I'm still having issues then I can send log over to you?

Thanks
Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10933
Re: Microsoft Edge (Webview2) Stopped Working - Only in MC
« Reply #18 on: February 15, 2023, 09:53:21 am »

The error from your log earlier is ERROR_INVALID_STATE, but there is only a few cases documented where this should occur, and not a very exhaustive list.
Logged
~ nevcairiel
~ Author of LAV Filters

whoareyou

  • Galactic Citizen
  • ****
  • Posts: 438
Re: Microsoft Edge (Webview2) Stopped Working - Only in MC (SOLVED)
« Reply #19 on: February 15, 2023, 10:34:05 am »

That did it!  Quick google search found the following related to high DPI mode and ERROR_INVALID_STATE
https://github.com/MicrosoftEdge/WebView2Feedback/issues/1213

I remembered I was troubleshooting issues with one of my VST add-ins AND I had been changing the high dpi compatiblity settings (I thought only for MC's main executable). 
I don't know why, but I changed settings for JRWeb's high DPI compatibility mode accidentally.
Removing this compatibility mode fixed my problem.

I don't know if you want to add this to your weird error problem thread or chalk it up to stupid user error.  The choice is yours, but I feel pretty stupid.

But the key was knowing what that error code translated to, which for some reason I couldn't figure out. 
Maybe doubly stupid user :)

Anyway, thanks very much for helping me sort this out.




Logged
Pages: [1]   Go Up