RandomEngy / VidCoder

A Blu-ray, DVD and video file transcoder for Windows.
http://vidcoder.net
GNU General Public License v2.0
693 stars 42 forks source link

VidCoder 6.30 beta #800

Closed leninmejia39 closed 3 years ago

leninmejia39 commented 3 years ago

it gives me error in window 7 64 bits System.TypeInitializationException: The type initializer for 'HandBrake.Interop.Interop.HandBrakeEncoderHelpers' threw an exception. ---> System.Exception: Please Initialise with HandBrakeUtils.EnsureGlobalInit before using! at HandBrake.Interop.Interop.HandBrakeEncoderHelpers..cctor() in C:\git\HandBrake\win\CS\HandBrake.Interop\Interop\HandBrakeEncoderHelpers.cs:line 39 --- End of inner exception stack trace --- at HandBrake.Interop.Interop.HandBrakeEncoderHelpers.GetContainer(String shortName) at VidCoder.Services.OutputPathService.GetExtensionForProfile(VCProfile profile, Boolean includeDot) in C:\git\VidCoder\VidCoder\Services\OutputPathService.cs:line 301 at VidCoder.Services.OutputPathService.GetOutputExtension(Boolean includeDot) in C:\git\VidCoder\VidCoder\Services\OutputPathService.cs:line 295 at VidCoder.Services.OutputPathService.GenerateOutputFileName() in C:\git\VidCoder\VidCoder\Services\OutputPathService.cs:line 411 at VidCoder.Services.PresetsService.NotifySelectedPresetChanged() in C:\git\VidCoder\VidCoder\Services\PresetsService.cs:line 782 at VidCoder.Services.PresetsService.TryUpdateSelectedPreset(PresetViewModel value) in C:\git\VidCoder\VidCoder\Services\PresetsService.cs:line 296 at VidCoder.Controls.PresetTreeViewContainer.<>cDisplayClass6_0.b0() in C:\git\VidCoder\VidCoder\Controls\PresetTreeViewContainer.xaml.cs:line 87 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

leninmejia39 commented 3 years ago

Crashes When Opening the settings https://imgur.com/i3sA1kP

leninmejia39 commented 3 years ago

https://ibb.co/Nr2vfdQ

RandomEngy commented 3 years ago

Figured it out. Initialization with hardware encoding support can sometimes fail due to bad drivers, and this is what's happening to you. Someone added some code to the HandBrake interop library that was trying to fallback to a no-hardware initialization, but they missed setting a flag, so it blows up at some other point that is checking for the "initialized" flag. I have a PR out to fix:

https://github.com/HandBrake/HandBrake/pull/3508

I'll include the fix in the next VidCoder beta.

RandomEngy commented 3 years ago

Should be fixed in 6.31 Beta.

leninmejia39 commented 3 years ago

yes thankyou

El sáb, 27 de mar. de 2021 a la(s) 12:05, David Rickard ( @.***) escribió:

Should be fixed in 6.31 Beta.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/RandomEngy/VidCoder/issues/800#issuecomment-808771558, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFUKZRV4HKWMDRLYYO5XUJ3TFYM6VANCNFSM4ZVSIFXQ .