-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Open and save file dialog crash on Windows 7 ( maybe duplicate #1700 but still issue) #3272
Comments
Reproduces with save file to Windows Library folders (Documents, Music, etc) |
Could you test this against the 0.9 preview? |
Will close this because of no response. Let us know if you want to have another look. |
Still hitting this @Gillibald testing against latest cibuild as of writing this
Repros on Windows 7. Have not tested 8. Does not repro on Windows 10. Works as intended if the path to the file is short, as soon as I cross roughly 250 characters total path length, I get this crash. Just keep making folders in folders, it should repro eventually on W7. Sounds like a dupe of #1700, but with additional repro cases (that issue was for all paths). Now the OP here is using Libraries to crash it, and I got a repro with long path. |
HRESULT GetDisplayName(
SIGDN sigdnName,
LPWSTR *ppszName
); maybe this would help? uint GetDisplayName([In] uint sigdnName, [Out, MarshalAs(UnmanagedType.LPWStr)] out IntPtr ppszName); I am also getting this exception using latest master: Unhandled exception. System.ArgumentException: Value does not fall within the expected range.
at Avalonia.Win32.Interop.UnmanagedMethods.IShellItem.GetDisplayName(UInt32 sigdnName, IntPtr& ppszName)
at Avalonia.Win32.SystemDialogImpl.GetAbsoluteFilePath(IShellItem shellItem)
at Avalonia.Win32.SystemDialogImpl.<>c__DisplayClass1_0.<ShowFileDialogAsync>b__0()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.<>c.<.cctor>b__274_0(Object obj)
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location where exception was thrown ---
at Core2D.UI.Editor.AvaloniaProjectEditorPlatform.OnOpen(String path) in D:\a\Core2D\Core2D\src\Core2D\UI\Editor\AvaloniaProjectEditorPlatform.cs:line 40
at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__139_0(Object state)
at Avalonia.Threading.AvaloniaSynchronizationContext.<>c__DisplayClass5_0.<Post>b__0()
at Avalonia.Threading.JobRunner.Job.Avalonia.Threading.JobRunner.IJob.Run()
at Avalonia.Threading.JobRunner.RunJobs(Nullable`1 priority)
at Avalonia.Win32.Win32Platform.WndProc(IntPtr hWnd, UInt32 msg, IntPtr wParam, IntPtr lParam)
at Avalonia.Win32.Interop.UnmanagedMethods.DispatchMessage(MSG& lpmsg)
at Avalonia.Win32.Win32Platform.RunLoop(CancellationToken cancellationToken)
at Avalonia.Threading.Dispatcher.MainLoop(CancellationToken cancellationToken)
at Avalonia.Controls.ApplicationLifetimes.ClassicDesktopStyleApplicationLifetime.Start(String[] args)
at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime[T](T builder, String[] args, ShutdownMode shutdownMode)
at Core2D.Program.Main(String[] args) in D:\a\Core2D\Core2D\src\Core2D\Program.cs:line 22 |
Please fix. |
End user reported the same issue. Verified that it is on Windows 7:
|
Avalonia version 0.8.1
The text was updated successfully, but these errors were encountered: