Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handbrake crashes as soon as it's launched. #1302

Closed
JediRhymeTrix opened this issue Apr 21, 2018 · 12 comments
Closed

Handbrake crashes as soon as it's launched. #1302

JediRhymeTrix opened this issue Apr 21, 2018 · 12 comments

Comments

@JediRhymeTrix
Copy link

JediRhymeTrix commented Apr 21, 2018

Description of problem or feature request

Handbrake crashes as soon as it is launched with a blank screen but the stack trace gets copied fine when 'copy to clipboard' is clicked.

Steps to reproduce the problem

Launch the program via the exe

HandBrake version (e.g., 1.0.0)

1.1.0

Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.3 High Sierra, Windows 10 Creators Update)

Windows 10 x64 (pre-anniversary update version)

Error message text or screenshot

Stack Trace:

An Unknown Error has occurred.
System.NullReferenceException: Object reference not set to an instance of an object.
at HandBrakeWPF.Utilities.EnumHelper`1.GetDisplay(T value) in D:\HandBrake\win\CS\HandBrakeWPF\Utilities\EnumHelper.cs:line 55
at System.Windows.Data.BindingExpression.TransferValue(Object newValue, Boolean isASubPropertyChange)
at System.Windows.Data.BindingExpression.Activate(Object item)
at System.Windows.Data.BindingExpression.AttachToContext(AttachAttempt attempt)
at System.Windows.Data.BindingExpression.MS.Internal.Data.IDataBindEngineClient.AttachToContext(Boolean lastChance)
at MS.Internal.Data.DataBindEngine.Task.Run(Boolean lastChance)
at MS.Internal.Data.DataBindEngine.Run(Object arg)
at System.Windows.ContextLayoutManager.fireLayoutUpdateEvent()
at System.Windows.ContextLayoutManager.UpdateLayout()
at System.Windows.Interop.HwndSource.SetLayoutSize()
at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)
at System.Windows.Window.SetRootVisual()
at System.Windows.Window.SetRootVisualAndUpdateSTC()
at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)
at System.Windows.Window.CreateSourceWindow(Boolean duringShow)
at System.Windows.Window.ShowHelper(Object booleanBox)
at HandBrakeWPF.Startup.AppBootstrapper.OnStartup(Object sender, StartupEventArgs e) in D:\HandBrake\win\CS\HandBrakeWPF\Startup\AppBootstrapper.cs:line 112
at System.Windows.Application.OnStartup(StartupEventArgs e)
at HandBrakeWPF.App.OnStartup(StartupEventArgs e) in D:\HandBrake\win\CS\HandBrakeWPF\App.xaml.cs:line 79
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)

HandBrake Activity Log required (see https://handbrake.fr/docs/en/latest/help/activity-log.html)

The log files are empty, probably since the app crashes before logging can begin. (refer stack trace)

PS: If it's because my Windows version is too old (not even anniversary update), please tell me which is the latest version which will work with it.

Sent from my Galaxy Note8 using FastHub

@sr55
Copy link
Contributor

sr55 commented Apr 21, 2018

Are you trying to run this on a 32bit version of windows?

@JediRhymeTrix
Copy link
Author

@sr55 No, it's 64bit. Updated the main post to mention the same.

Sent from my Galaxy Note8 using FastHub

@sr55
Copy link
Contributor

sr55 commented Apr 21, 2018

I'd suggest re-installing .NET framework 4.6.2 or later, rule out any framework level problems as you should not be seeing this.

@sr55
Copy link
Contributor

sr55 commented Apr 23, 2018

I'm not sure that'll fix your problem, I suspect it'll just fail somewhere else now but it's worth a shot when the next nightly is posted.

I do still suspect you've got an issue on your system, probably with .NET so it's worth re-installing 4.6.2 anyway. The issue shouldn't ever happen in normal operation.

If I don't hear back in a few days, I'll consider this closed as I don't have anything more to go on.

Cheers

@JediRhymeTrix
Copy link
Author

I've tried re-installing 4.6.2 as well as updating Windows to 1803 with .NET 4.7.1 but I still get the same exception.

@sr55
Copy link
Contributor

sr55 commented Apr 25, 2018

Any different error or better result with https://handbrake.fr/nightly.php ?

@JediRhymeTrix
Copy link
Author

Tried the latest nightly, Same issue.

@sr55
Copy link
Contributor

sr55 commented Apr 25, 2018

Can you post the error please, I suspect it's not identical.

@JediRhymeTrix
Copy link
Author

My bad. The exception thrown by the nightly was regarding not being able to read the presets. I uninstalled the stable version and deleted its AppData and could get the nightly to launch without crashing. I'm currently running an x265 encode to see if it's stable enough. But as far as this particular issue goes, I think it was just an issue with the AppData which wasn't properly conveyed by the error message.

@sr55
Copy link
Contributor

sr55 commented Apr 25, 2018

Fair enough. I'll consider this closed then. The nightly is closed to 1.1 so it's not any less stable.

@sr55 sr55 closed this as completed Apr 25, 2018
@ghost
Copy link

ghost commented Apr 25, 2018

Constant braking changes with Win10 updates already made the Classic Shell developer to call it quits ... not sure what future holds for Win10 as more and more Win32 API stuff gets deprecated.

@genewitch
Copy link

The fix is to completely remove the appdata/roaming folders for handbrake.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants