HandBrake crashes during startup

HandBrake for Windows support
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
tristanbay
Posts: 2
Joined: Thu Sep 05, 2019 8:59 am

HandBrake crashes during startup

Post by tristanbay » Thu Sep 05, 2019 9:13 am

Description of problem or question:
Get an error message when I try to start up HandBrake. This only started today/end of yesterday and did not change my version of HandBrake or Windows. I tried restarting my PC and reinstalling HandBrake and these did not make the problem go away. HandBrake crashes before it starts creating the Activity Log in AppData, so I don't have one here.


HandBrake version:
1.2.2


Operating system and version
Windows 10 Home v1809


HandBrake Error Message
An Unknown Error has occurred.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for 'HandBrake.Interop.Interop.HandBrakeUtils' threw an exception. ---> System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at HandBrake.Interop.Interop.HbLib.HBFunctions.hb_global_init()
at HandBrake.Interop.Interop.HandBrakeUtils.TryInit() in D:\Development\HandBrake\handbrake-release\win\CS\HandBrake.Interop\Interop\HandBrakeUtils.cs:line 97
at HandBrake.Interop.Interop.HandBrakeUtils..cctor() in D:\Development\HandBrake\handbrake-release\win\CS\HandBrake.Interop\Interop\HandBrakeUtils.cs:line 68
--- End of inner exception stack trace ---
at HandBrake.Interop.Interop.HandBrakeUtils.add_MessageLogged(EventHandler`1 value)
at HandBrakeWPF.Services.Logging.LogService..ctor() in D:\Development\HandBrake\handbrake-release\win\CS\HandBrakeWPF\Services\Logging\LogService.cs:line 57
at HandBrakeWPF.Services.Logging.LogService.GetLogger() in D:\Development\HandBrake\handbrake-release\win\CS\HandBrakeWPF\Services\Logging\LogService.cs:line 158
at HandBrakeWPF.Services.Scan.LibScan..ctor() in D:\Development\HandBrake\handbrake-release\win\CS\HandBrakeWPF\Services\Scan\LibScan.cs:line 47
--- End of inner exception stack trace ---
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)
at Caliburn.Micro.SimpleContainer.ActivateInstance(Type type, Object[] args)
at Caliburn.Micro.SimpleContainer.<>c__DisplayClass7_0.<RegisterSingleton>b__0(SimpleContainer container)
at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
at Caliburn.Micro.SimpleContainer.DetermineConstructorArgs(Type implementation)
at Caliburn.Micro.SimpleContainer.<>c__DisplayClass7_0.<RegisterSingleton>b__0(SimpleContainer container)
at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
at Caliburn.Micro.SimpleContainer.DetermineConstructorArgs(Type implementation)
at Caliburn.Micro.SimpleContainer.<>c__DisplayClass7_0.<RegisterSingleton>b__0(SimpleContainer container)
at HandBrakeWPF.Startup.AppBootstrapper.GetInstance(Type service, String key) in D:\Development\HandBrake\handbrake-release\win\CS\HandBrakeWPF\Startup\AppBootstrapper.cs:line 130
at Caliburn.Micro.BootstrapperBase.DisplayRootViewFor(Type viewModelType, IDictionary`2 settings)
at HandBrakeWPF.Startup.AppBootstrapper.OnStartup(Object sender, StartupEventArgs e) in D:\Development\HandBrake\handbrake-release\win\CS\HandBrakeWPF\Startup\AppBootstrapper.cs:line 113
at System.Windows.Application.OnStartup(StartupEventArgs e)
at HandBrakeWPF.App.OnStartup(StartupEventArgs e) in D:\Development\HandBrake\handbrake-release\win\CS\HandBrakeWPF\App.xaml.cs:line 121
at System.Windows.Application.<.ctor>b__1_0(Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Woodstock
Veteran User
Posts: 3219
Joined: Tue Aug 27, 2013 6:39 am

Re: HandBrake crashes during startup

Post by Woodstock » Thu Sep 05, 2019 1:27 pm

Did you read the "Notice" message, NOTICE: Read Me if HandBrake won't start?

tristanbay
Posts: 2
Joined: Thu Sep 05, 2019 8:59 am

Re: HandBrake crashes during startup

Post by tristanbay » Thu Sep 05, 2019 11:08 pm

Woodstock wrote:
Thu Sep 05, 2019 1:27 pm
Did you read the "Notice" message, NOTICE: Read Me if HandBrake won't start?
I went and checked it out, now. I've installed the 2019083001 nightly build and seems to be working fine, now.

Here's the activity log after I imported a video (when I start up HandBrake, it just creates a blank file to start with first):
[15:58:52] hb_init: starting libhb thread

# Starting Scan ...

[15:58:52] CPU: Intel(R) Core(TM) i5-7300HQ CPU @ 2.50GHz
[15:58:52] - Intel microarchitecture Kaby Lake
[15:58:52] - logical processor count: 4
[15:58:52] hb_scan: path=C:\Users\trist\OneDrive\Desktop\orenco_vid.mp4, title_index=0
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image C:\Users\trist\OneDrive\Desktop\orenco_vid.mp4
src/libbluray/disc/disc.c:424: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:424: error opening file BDMV\BACKUP\index.bdmv
[15:58:52] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.0
libdvdread: Encrypted DVD support unavailable.
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[15:58:52] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\trist\OneDrive\Desktop\orenco_vid.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.25.100
Duration: 00:02:52.90, start: 0.000000, bitrate: 11257 kb/s
Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080, 11057 kb/s, SAR 1:1 DAR 16:9, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 195 kb/s (default)
Metadata:
handler_name : SoundHandler
[15:58:52] scan: decoding previews for title 1
[15:58:52] scan: audio 0x1: aac, rate=48000Hz, bitrate=195416 Unknown (AAC LC) (2.0 ch) (195 kbps)
[15:58:53] scan: 10 previews, 1920x1080, 30.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[15:58:53] libhb: scan thread found 1 valid title(s)

# Processing Scan Information ...


# Scan Finished ...

Post Reply