13xforever / ps3-disc-dumper

A handy utility to make decrypted PS3 disc dumps
MIT License
434 stars 29 forks source link

Crashes when trying to go to settings #62

Closed Aasikki closed 4 months ago

Aasikki commented 4 months ago

Every time I try to click the settings icon, the program hangs for few seconds and crashes. Dumping works fine still. Windows 11 23H2, tried reinstalling dotnet but didn't help. 2024-02-29.log

13xforever commented 4 months ago

The log is empty, so I need some details: what OS? are there any entries with stack trace in system journal after crash (win+x > Event Viewer > Windows Logs > Application)? is the disc already inserted? have you tried waiting for the scan to end?

There's nothing special in the settings that could cause a crash unless it's something system-wide that breaks the UI rendering.

codecrafting-io commented 4 months ago

It's happening to me too. Looking at the Windows logs, I found this

Application: ps3-disc-dumper.exe
CoreCLR Version: 8.0.123.58001
.NET Version: 8.0.1
Description: The process was terminated due to an unhandled exception.
Exception Info: System.InvalidOperationException: The control already has a visual parent.
   at Avalonia.Visual.ValidateVisualChild(Visual c)
   at Avalonia.Visual.<>c.<.ctor>b__33_0(Visual visual)
   at Avalonia.Collections.AvaloniaList`1.Add(T item)
   at Avalonia.Controls.TextBlock.MeasureOverride(Size availableSize)
   at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize)
   at Avalonia.Layout.Layoutable.Measure(Size availableSize)
   at Avalonia.Layout.LayoutManager.Measure(Layoutable control)
   at Avalonia.Layout.LayoutManager.ExecuteMeasurePass()
   at Avalonia.Layout.LayoutManager.InnerLayoutPass()
   at Avalonia.Layout.LayoutManager.ExecuteLayoutPass()
   at Avalonia.Layout.LayoutManager.ExecuteQueuedLayoutPass()
   at Avalonia.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at Avalonia.Media.MediaContext.RenderCore()
   at Avalonia.Media.MediaContext.Render()
   at Avalonia.Threading.DispatcherOperation.InvokeCore()
   at Avalonia.Threading.DispatcherOperation.Execute()
   at Avalonia.Threading.Dispatcher.ExecuteJob(DispatcherOperation job)
   at Avalonia.Threading.Dispatcher.ExecuteJobsCore(Boolean fromExplicitBackgroundProcessingCallback)
   at Avalonia.Threading.Dispatcher.Signaled()
   at Avalonia.Win32.Win32Platform.WndProc(IntPtr hWnd, UInt32 msg, IntPtr wParam, IntPtr lParam)
   at Avalonia.Win32.Interop.UnmanagedMethods.DispatchMessage(MSG& lpmsg)
   at Avalonia.Win32.Win32DispatcherImpl.RunLoop(CancellationToken cancellationToken)
   at Avalonia.Threading.DispatcherFrame.Run(IControlledDispatcherImpl impl)
   at Avalonia.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   at Avalonia.Threading.Dispatcher.MainLoop(CancellationToken cancellationToken)
   at Avalonia.Controls.ApplicationLifetimes.ClassicDesktopStyleApplicationLifetime.Start(String[] args)
   at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime(AppBuilder builder, String[] args, Action`1 lifetimeBuilder)
   at UI.Avalonia.Program.Main(String[] args)

Windows 11 23H2, latest 4.2.0

13xforever commented 4 months ago

well that's not encouraging, it's all pure avalonia stack, and without the way to reproduce the issue, I can only hope it'll go away with future library updates.

EDIT: Looks like it's fixed and is scheduled to release in 11.1.0 release sometime soon™

13xforever commented 4 months ago

Please try the latest update and report if it fixes the crash or if we need to wait 11.1

Aasikki commented 4 months ago

Please try the latest update and report if it fixes the crash or if we need to wait 11.1

The new update works perfectly for me! Fixed.