Wont Run After Update to 4.4.1

315 views
Skip to first unread message

Eug

unread,
Oct 30, 2021, 12:59:45 PM10/30/21
to TV Rename
Just updated to v4.4.1 and now the program crashes just after the splash screen loads. Extract from log File below. Please can somebody help?

2021-10-30 18:53:57|FATAL| UNHANDLED ERROR - Application.ThreadException System.Exception: The ChromiumWebBrowser instance creates the underlying Chromium Embedded Framework (CEF) browser instance in an async fashion. The undelying CefBrowser instance is not yet initialized. Use the IsBrowserInitializedChanged event and check the IsBrowserInitialized property to determine when the browser has been initialized.
   at CefSharp.WinForms.ChromiumWebBrowser.ThrowExceptionIfBrowserNotInitialized()
   at CefSharp.WinForms.ChromiumWebBrowser.GetBrowser()
   at CefSharp.WinForms.ChromiumWebBrowser.OnHandleDestroyedInternal()
   at CefSharp.WinForms.ChromiumWebBrowser.OnHandleDestroyed(EventArgs e)
   at System.Windows.Forms.Control.WmDestroy(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Steven K

unread,
Oct 30, 2021, 9:14:07 PM10/30/21
to TV Rename
If you know where TVR keeps its settings file, back it up and try a fresh xml file to see if the problem goes away.  If it does, restore the settings file you backed up and look for <StartupTab2>MyShows</StartupTab2> .  Remove the MyShows and save.

Tom Snyder

unread,
Oct 31, 2021, 1:43:40 AM10/31/21
to TV Rename
I believe that if you run the Browser Test in the Help section it will tell you if have all the dependencies needed to run TVrename.  Mine says "Dependencies all found" so I don't know what it tells you if you don't have everything and how to fix it.

Sparky53

unread,
Nov 1, 2021, 2:16:44 AM11/1/21
to TV Rename
Try installing https://docs.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-160 for your system - may make the difference?

Sparky53

unread,
Nov 1, 2021, 10:28:16 PM11/1/21
to TV Rename

Alister Voltaire

unread,
Nov 2, 2021, 9:31:20 AM11/2/21
to TV Rename
Just installed 4.4.4 and having issues 

first item in log is this -  

Files are referenced at C:\Program Files (x86)\TVRename\ but exist at C:\Program Files (x86)\TVRename\x86 and C:\Program Files (x86)\TVRename\x64

copied files from C:\Program Files (x86)\TVRename\x86 - 4 duplicates found 

now get

Missing:
Missing:CefSharp.BrowserSubprocess.Core.dll
Missing:CefSharp.dll
Missing:icudtl.dat
Missing:libcef.dll

copied files from C:\Program Files (x86)\TVRename\x64 now get

021-11-02 13:12:28|ERROR| Can't initialise CEF Settings C:\Users\Alister\AppData\Roaming\TVRename\cache, C:\Users\Alister\AppData\Roaming\TVRename\log\cef-debug.log System.IO.FileNotFoundException: Could not load file or assembly 'CefSharp.Core.Runtime.dll' or one of its dependencies. The specified module could not be found.
File name: 'CefSharp.Core.Runtime.dll'
   at CefSharp.CefSettingsBase..ctor()
   at TVRename.CefWrapper.InitialiseBrowserFramework()


2021-11-02 13:12:29|ERROR| Can't initialise CEF with settings C:\Users\Alister\AppData\Roaming\TVRename\cache, C:\Users\Alister\AppData\Roaming\TVRename\log\cef-debug.log, , ,  System.IO.FileNotFoundException: Could not load file or assembly 'CefSharp.Core.Runtime.dll' or one of its dependencies. The specified module could not be found.
File name: 'CefSharp.Core.Runtime.dll'
   at CefSharp.Cef.Initialize(CefSettingsBase settings)
   at TVRename.CefWrapper.InitialiseBrowserFramework()


2021-11-02 13:12:29|ERROR| Missing Cef Dependencies System.Exception: Unable to locate required Cef/CefSharp dependencies:
Missing:
Missing:CefSharp.BrowserSubprocess.Core.dll
Missing:CefSharp.dll
Missing:icudtl.dat
Missing:libcef.dll
Executing Assembly Path:C:\Program Files (x86)\TVRename

   at CefSharp.DependencyChecker.AssertAllDependenciesPresent(String locale, String localesDirPath, String resourcesDirPath, Boolean packLoadingDisabled, String browserSubProcessPath)
   at TVRename.CefWrapper.CheckForBroswerDependencies(Boolean showUi)


Uninstalled & no change 

recopied the files from x86 no change

Alister Voltaire

unread,
Nov 2, 2021, 10:17:05 AM11/2/21
to TV Rename
Uninstalled and cleaned out the folders in <program files> and <roaming> 

installed all the c++ redist modules - now passes browser check.

Sparky53

unread,
Nov 2, 2021, 10:56:49 AM11/2/21
to TV Rename
Thanks v much - looks like the c++ redist is the key thing. This pain will really help others to resolve their issues 

Sparky53

unread,
Nov 3, 2021, 11:01:58 AM11/3/21
to TV Rename
Eugene - are you still seeing problems?

Eug

unread,
Nov 4, 2021, 1:53:40 PM11/4/21
to TV Rename
Hi Sparky53

Apologies but didn't get a chance to attempt any of the solutions until now. Looks like removing MyShows from  <StartupTab2>MyShows</StartupTab2> in the settings file has done the trick. Testing now, but it will take a while. Seems it now has to redownload all the shows' info, banners etc. Will post an update as soon as i can confirm.

Almost forgot to mention, before i tried anything now, i did update to 4.4.6, but this did nothing for the problem I had

Eug

unread,
Nov 4, 2021, 3:27:44 PM11/4/21
to TV Rename
So  removing MyShows from  <StartupTab2>MyShows</StartupTab2> in the settings file has done the trick. Runs perfectly. The only funny was that it had to update show info and banners. Thank you Steven K

Steven K

unread,
Nov 5, 2021, 1:16:29 PM11/5/21
to TV Rename
Glad to help!

Sparky53

unread,
Nov 7, 2021, 10:30:34 AM11/7/21
to TV Rename
4.4.7 should have stopped the need for this and  <StartupTab2>MyShows</StartupTab2> should work again

TheObo

unread,
Nov 10, 2021, 5:55:33 AM11/10/21
to TV Rename
I installed the C++ redist and TVRename now works when run interactively
But when I run it as a scheduled Task using:
"C:\Program Files (x86)\TVRename\TVRename.exe" /scan /doall /createmissing /hide /quit

Then I get this error in the Log:

|FATAL| UNHANDLED ERROR - Application.ThreadException System.Exception: The ChromiumWebBrowser instance creates the underlying Chromium Embedded Framework (CEF) browser instance in an async fashion. The undelying CefBrowser instance is not yet initialized. Use the IsBrowserInitializedChanged event and check the IsBrowserInitialized property to determine when the browser has been initialized.
   at CefSharp.WinForms.ChromiumWebBrowser.ThrowExceptionIfBrowserNotInitialized()
   at CefSharp.WinForms.ChromiumWebBrowser.GetBrowser()
   at CefSharp.WinForms.ChromiumWebBrowser.OnHandleDestroyedInternal()
   at CefSharp.WinForms.ChromiumWebBrowser.OnHandleDestroyed(EventArgs e)
   at System.Windows.Forms.Control.WmDestroy(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

This is the same for all versions after 4.4.2

TheObo

unread,
Nov 10, 2021, 7:10:53 AM11/10/21
to TV Rename
It seems to be the "/hide" that is the cause - if I take this out it works - but I'd like to run it in the background as I always have before (and to stop the popups about new versions, etc)

Sparky53

unread,
Nov 10, 2021, 10:51:36 PM11/10/21
to TV Rename
Thanks v much for investigating. Have a fix in place for the next version that should resolve it

TheObo

unread,
Nov 15, 2021, 6:31:07 AM11/15/21
to TV Rename
Which new version is this?
I have upgraded to 4.48. but the /hide still doesn't work - I now get this error:

FATAL| UNHANDLED ERROR - Application.ThreadException System.Exception: The ChromiumWebBrowser instance creates the underlying Chromium Embedded Framework (CEF) browser instance in an async fashion. The undelying CefBrowser instance is not yet initialized. Use the IsBrowserInitializedChanged event and check the IsBrowserInitialized property to determine when the browser has been initialized.

Sparky53

unread,
Nov 15, 2021, 11:19:39 AM11/15/21
to TV Rename
4.4.9 (not out yet)

TheObo

unread,
Nov 19, 2021, 7:14:43 AM11/19/21
to TV Rename
4.4.9 installed and /hide still doesn't work unfortunately...
The logs show it running the scan and then just stops with no error...

Sparky53

unread,
Nov 21, 2021, 6:45:39 PM11/21/21
to TV Rename
Hmm - unusual. Looks like we solved the prior problem (but have encountered another). Does it do the same each time? What's the last bits in the log?

TheObo

unread,
Nov 22, 2021, 6:52:12 AM11/22/21
to TV Rename
2021-11-22 11:45:17|INFO| ******************************* 
2021-11-22 11:45:17|INFO| Starting unattended Quick TV Shows and Movies Scan for all shows and all movies... 
2021-11-22 11:45:17|INFO| TV Rename is about to be busy doing Scan Quick since 22/11/2021 11:45:17 
2021-11-22 11:45:17|INFO| TV Rename is about to be busy doing Do all actions since 22/11/2021 11:45:17 
2021-11-22 11:45:17|INFO| ********************** 
2021-11-22 11:45:17|INFO| Saving Cache to: C:\Users\shawn\AppData\Roaming\TVRename\TVRename\2.1\TheTVDB.xml 
2021-11-22 11:45:17|INFO| Doing Selected Actions.... (0 items detected, 0 actions to be completed ) 
2021-11-22 11:45:17|INFO| Processing 0 files for shows that need to be scanned 
2021-11-22 11:45:17|INFO| Setting up 'Move/Copy' worker, with 1 threads. 
2021-11-22 11:45:17|INFO| Setting up 'Rename/Delete' worker, with 1 threads. 
2021-11-22 11:45:17|INFO| Setting up 'Write Metadata' worker, with 4 threads. 
2021-11-22 11:45:17|INFO| Setting up 'Download' worker, with 8 threads. 
2021-11-22 11:45:17|INFO| Completed Selected Actions 
2021-11-22 11:45:17|INFO| ************************** 
2021-11-22 11:45:17|INFO| TV Rename free again (busy since 22/11/2021 11:45:17) 
2021-11-22 11:45:17|INFO| Processing 0 directories for shows that need to be scanned 
2021-11-22 11:45:17|INFO| Processing 20 files for shows that need to be scanned 
2021-11-22 11:45:17|INFO| Checking to see whether \\xxx\Kids\New Downloads\Mr Bean\Season 1\Mr Bean s01e01 - Mr Bean.mkv is a file for a show that needs to be scanned 
2021-11-22 11:45:18|INFO| Application exiting 
2021-11-22 11:45:19|INFO| Saving Cache to: C:\Users\shawn\AppData\Roaming\TVRename\TVRename\2.1\TVmaze.xml 
2021-11-22 11:45:19|INFO| Saving Cache to: C:\Users\shawn\AppData\Roaming\TVRename\TVRename\2.1\TMDB.xml 
2021-11-22 11:45:19|INFO| Checking to see whether \\xxx\Kids\New Downloads\Mr Bean\Season 1\Mr Bean s01e02 - The Return Of Mr Bean.mkv is a file for a show that needs to be scanned 
2021-11-22 11:45:19|INFO| Checking to see whether \\xxx\Kids\New Downloads\Mr Bean\Season 1\Mr Bean s01e03 - The Curse Of Mr Bean.mkv is a file for a show that needs to be scanned 

Sparky53

unread,
Nov 22, 2021, 7:08:03 AM11/22/21
to TV Rename
2021-11-22 11:45:18|INFO| Application exiting 

Looks like the app is auto-closing early?

Sparky53

unread,
Nov 22, 2021, 12:02:58 PM11/22/21
to TV Rename
OK - found the issue - will be fixed in the next release
Reply all
Reply to author
Forward
0 new messages