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

[Bug]:紧凑网页窗口透明度不生效 #2258

Open
1 task done
adchoufeng opened this issue Dec 2, 2024 · 2 comments
Open
1 task done

[Bug]:紧凑网页窗口透明度不生效 #2258

adchoufeng opened this issue Dec 2, 2024 · 2 comments
Labels
area-Utility 小工具相关 area-WebView 网页视图 已完成 This issue is completed 等待发布 This issue fix is going to be applied in the next release

Comments

@adchoufeng
Copy link

Windows 版本

26100.2454

Snap Hutao 版本

1.12.4.0

设备 ID

ED0EB0DB2ED7C122840E027013A8408C

问题分类

其它

发生了什么?

透明度调节不生效,并伴随时有时无的紧凑窗口闪退bug.

你期望发生的行为?

No response

最后一步

  • 我认为上述的描述已经足以详细,以允许开发人员能复现该问题
@adchoufeng adchoufeng added the priority:none Priority not set label Dec 2, 2024
@dgp-bot
Copy link

dgp-bot bot commented Dec 2, 2024

device_id: ED0EB0DB2ED7C122840E027013A8408C

Exception Data:
----------------------------------------
System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'ObjectReference'.
   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
   at Snap.Hutao.UI.Shell.NotifyIconMethods.GetRect(Guid id, HWND hWND) in C:\Users\Public\appveyor\Snap.Hutao-0vfibuvt4r4cnpja\src\Snap.Hutao\Snap.Hutao\UI\Shell\NotifyIconMethods.cs:line 68
   at Snap.Hutao.UI.Shell.NotifyIconController.GetRect() in C:\Users\Public\appveyor\Snap.Hutao-0vfibuvt4r4cnpja\src\Snap.Hutao\Snap.Hutao\UI\Shell\NotifyIconController.cs:line 55
   at Snap.Hutao.UI.Windowing.XamlWindowController.IsNotifyIconVisible() in C:\Users\Public\appveyor\Snap.Hutao-0vfibuvt4r4cnpja\src\Snap.Hutao\Snap.Hutao\UI\Windowing\XamlWindowController.cs:line 163
   at Snap.Hutao.UI.Windowing.XamlWindowController.OnWindowClosed(Object sender, WindowEventArgs args) in C:\Users\Public\appveyor\Snap.Hutao-0vfibuvt4r4cnpja\src\Snap.Hutao\Snap.Hutao\UI\Windowing\XamlWindowController.cs:line 124
   at WinRT._EventSource_global__Windows_Foundation_TypedEventHandler_object__global__Microsoft_UI_Xaml_WindowEventArgs_.EventState.<GetEventInvoke>b__1_0(Object sender, WindowEventArgs args)
   at WinRT.GenericTypeInstantiations.Windows_Foundation_TypedEventHandler_2_object__Microsoft_UI_Xaml_WindowEventArgs.Do_Abi_Invoke(IntPtr thisPtr, IntPtr sender, IntPtr args)
Exception Data:
----------------------------------------
System.IO.IOException: The process cannot access the file 'C:\Users\adshawn\AppData\Local\Packages\60568DGPStudio.SnapHutao_wbnnev551gwxy\LocalCache\ImageCache\600381DB824F833BF28ECA2DDB5C3D4BB1CF99DD' because it is being used by another process.
   at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
   at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
   at System.IO.Strategies.FileStreamHelpers.ChooseStrategyCore(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
   at System.IO.File.OpenRead(String path)
   at Snap.Hutao.Service.BackgroundImage.BackgroundImageService.GetNextBackgroundImageAsync(BackgroundImage previous, CancellationToken token) in C:\Users\Public\appveyor\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\Service\BackgroundImage\BackgroundImageService.cs:line 49
   at Snap.Hutao.ViewModel.MainViewModel.UpdateBackgroundCoreAsync(Boolean forceRefresh) in C:\Users\Public\appveyor\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\ViewModel\MainViewModel.cs:line 68
   at Snap.Hutao.ViewModel.MainViewModel.UpdateBackgroundAsync() in C:\Users\Public\appveyor\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\ViewModel\MainViewModel.cs:line 57
   at CommunityToolkit.Mvvm.Input.AsyncRelayCommand.AwaitAndThrowIfFailed(Task executionTask)
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
   at Microsoft.UI.Dispatching.DispatcherQueueSynchronizationContext.<>c__DisplayClass2_0.<Post>b__0()
Exception Data:
----------------------------------------
System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
   at Snap.Hutao.UI.Shell.NotifyIconMethods.GetRect(Guid id, HWND hWND) in C:\Users\Public\appveyor\Snap.Hutao-smkd9dy3mgyt7ce0\src\Snap.Hutao\Snap.Hutao\UI\Shell\NotifyIconMethods.cs:line 68
   at Snap.Hutao.UI.Shell.NotifyIconController.GetRect() in C:\Users\Public\appveyor\Snap.Hutao-smkd9dy3mgyt7ce0\src\Snap.Hutao\Snap.Hutao\UI\Shell\NotifyIconController.cs:line 57
   at Snap.Hutao.UI.Windowing.XamlWindowController.IsNotifyIconVisible() in C:\Users\Public\appveyor\Snap.Hutao-smkd9dy3mgyt7ce0\src\Snap.Hutao\Snap.Hutao\UI\Windowing\XamlWindowController.cs:line 151
   at Snap.Hutao.UI.Windowing.XamlWindowController.OnWindowClosed(Object sender, WindowEventArgs args) in C:\Users\Public\appveyor\Snap.Hutao-smkd9dy3mgyt7ce0\src\Snap.Hutao\Snap.Hutao\UI\Windowing\XamlWindowController.cs:line 114
   at WinRT._EventSource_global__Windows_Foundation_TypedEventHandler_object__global__Microsoft_UI_Xaml_WindowEventArgs_.EventState.<GetEventInvoke>b__1_0(Object sender, WindowEventArgs args)
   at WinRT.GenericTypeInstantiations.Windows_Foundation_TypedEventHandler_2_object__Microsoft_UI_Xaml_WindowEventArgs.Do_Abi_Invoke(IntPtr thisPtr, IntPtr sender, IntPtr args)

@dgp-bot dgp-bot bot added the needs-triage 需要诊断问题类型 label Dec 2, 2024
Lightczx added a commit that referenced this issue Dec 2, 2024
@dgp-bot
Copy link

dgp-bot bot commented Dec 2, 2024

14d2f4b 已完成此议题

@dgp-bot dgp-bot bot added 已完成 This issue is completed 等待发布 This issue fix is going to be applied in the next release labels Dec 2, 2024
@dgp-bot dgp-bot bot moved this to 完成 in Snap Hutao Development Dec 2, 2024
@dgp-bot dgp-bot bot removed priority:none Priority not set needs-triage 需要诊断问题类型 labels Dec 2, 2024
@Lightczx Lightczx added area-WebView 网页视图 area-Utility 小工具相关 labels Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Utility 小工具相关 area-WebView 网页视图 已完成 This issue is completed 等待发布 This issue fix is going to be applied in the next release
Projects
Development

No branches or pull requests

2 participants