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] AOT版本的原生播放器无法使用 #983

Closed
9 tasks
AllesUgo opened this issue Jan 19, 2025 · 1 comment · Fixed by #986
Closed
9 tasks

[Bug] AOT版本的原生播放器无法使用 #983

AllesUgo opened this issue Jan 19, 2025 · 1 comment · Fixed by #986
Assignees

Comments

@AllesUgo
Copy link

Bug 描述

使用原生播放器播放任何视频将导致崩溃

复现问题的步骤

在设置中选择原生播放器,并播放任意视频

预期行为

正常播放

截图

No response

应用来源

  • Github
  • 微软商店(Microsoft Store)
  • 其它

其它来源

No response

系统版本

  • Windows 10 (Build 19041 - 19045)
  • Windows 11 21H2 (Build 22000)
  • Windows 11 22H2 (Build 22621)
  • Windows 11 23H2 (Build 22631)
  • Windows 11 24H2 (Build 26100)
  • 其它 (需注明)

其它系统版本

No response

运行设备

桌面/平板或笔记本

日志记录

2025-01-20 00:08:59.324 +08:00 [ERR] Unhandled exception occurred.
System.InvalidCastException: Specified cast is not valid.
at BiliCopilot.UI.Controls.Core.NativePlayer.OnApplyTemplate() + 0x5a
at ABI.Microsoft.UI.Xaml.IFrameworkElementOverrides.Do_Abi_OnApplyTemplate_2(IntPtr) + 0x47
--- End of stack trace from previous location ---
at WinRT.ExceptionHelpers.g__Throw|38_0(Int32) + 0x39
at ABI.Microsoft.UI.Xaml.IFrameworkElementOverridesMethods.MeasureOverride(IObjectReference, Size) + 0x80
at ABI.Microsoft.UI.Xaml.IFrameworkElementOverrides.Do_Abi_MeasureOverride_0(IntPtr, Size, Size*) + 0x58
--- End of stack trace from previous location ---
at WinRT.ExceptionHelpers.g__Throw|38_0(Int32) + 0x39
at ABI.Microsoft.UI.Xaml.IFrameworkElementOverridesMethods.MeasureOverride(IObjectReference, Size) + 0x80
at ABI.Microsoft.UI.Xaml.IFrameworkElementOverrides.Do_Abi_MeasureOverride_0(IntPtr, Size, Size*) + 0x58
2025-01-20 00:09:41.830 +08:00 [ERR] Unhandled exception occurred.
System.InvalidCastException: Specified cast is not valid.
at BiliCopilot.UI.Controls.Core.NativePlayer.OnApplyTemplate() + 0x5a
at ABI.Microsoft.UI.Xaml.IFrameworkElementOverrides.Do_Abi_OnApplyTemplate_2(IntPtr) + 0x47
--- End of stack trace from previous location ---
at WinRT.ExceptionHelpers.g__Throw|38_0(Int32) + 0x39
at ABI.Microsoft.UI.Xaml.IFrameworkElementOverridesMethods.MeasureOverride(IObjectReference, Size) + 0x80
at ABI.Microsoft.UI.Xaml.IFrameworkElementOverrides.Do_Abi_MeasureOverride_0(IntPtr, Size, Size*) + 0x58
--- End of stack trace from previous location ---
at WinRT.ExceptionHelpers.g__Throw|38_0(Int32) + 0x39
at ABI.Microsoft.UI.Xaml.IFrameworkElementOverridesMethods.MeasureOverride(IObjectReference, Size) + 0x80
at ABI.Microsoft.UI.Xaml.IFrameworkElementOverrides.Do_Abi_MeasureOverride_0(IntPtr, Size, Size*) + 0x58
2025-01-20 00:10:46.273 +08:00 [INF] DanmakuRender.cs(94)->.ctor(): DanmakuRender is created
2025-01-20 00:10:46.273 +08:00 [INF] DanmakuFrostMaster.cs(61)->.ctor(): DanmakuFrostMaster is created
2025-01-20 00:10:46.284 +08:00 [INF] DanmakuRender.cs(584)->OnCanvasCreateResources(): FirstTime
2025-01-20 00:10:51.755 +08:00 [INF] DanmakuRender.cs(540)->Stop(): DanmakuRender is stopped
2025-01-20 00:11:17.714 +08:00 [INF] DanmakuRender.cs(540)->Stop(): DanmakuRender is stopped
2025-01-20 00:11:17.733 +08:00 [INF] DanmakuRender.cs(540)->Stop(): DanmakuRender is stopped
2025-01-20 00:11:17.733 +08:00 [INF] DanmakuFrostMaster.cs(363)->Updater_DoWork(): Exited
2025-01-20 00:11:17.733 +08:00 [INF] DanmakuRender.cs(563)->Close(): DanmakuRender is closed
2025-01-20 00:11:17.733 +08:00 [INF] DanmakuFrostMaster.cs(221)->Close(): DanmakuFrostMaster is closed
2025-01-20 00:11:26.108 +08:00 [INF] DanmakuRender.cs(94)->.ctor(): DanmakuRender is created
2025-01-20 00:11:26.109 +08:00 [INF] DanmakuFrostMaster.cs(61)->.ctor(): DanmakuFrostMaster is created
2025-01-20 00:11:26.116 +08:00 [INF] DanmakuRender.cs(584)->OnCanvasCreateResources(): FirstTime
2025-01-20 00:13:40.194 +08:00 [INF] DanmakuRender.cs(540)->Stop(): DanmakuRender is stopped
2025-01-20 00:13:40.251 +08:00 [INF] DanmakuRender.cs(540)->Stop(): DanmakuRender is stopped
2025-01-20 00:13:40.251 +08:00 [INF] DanmakuFrostMaster.cs(363)->Updater_DoWork(): Exited
2025-01-20 00:13:40.251 +08:00 [INF] DanmakuRender.cs(563)->Close(): DanmakuRender is closed
2025-01-20 00:13:40.251 +08:00 [INF] DanmakuFrostMaster.cs(221)->Close(): DanmakuFrostMaster is closed
2025-01-20 00:13:47.540 +08:00 [INF] DanmakuRender.cs(94)->.ctor(): DanmakuRender is created
2025-01-20 00:13:47.541 +08:00 [INF] DanmakuFrostMaster.cs(61)->.ctor(): DanmakuFrostMaster is created
2025-01-20 00:13:47.548 +08:00 [INF] DanmakuRender.cs(584)->OnCanvasCreateResources(): FirstTime
2025-01-20 00:13:57.231 +08:00 [INF] DanmakuRender.cs(540)->Stop(): DanmakuRender is stopped
2025-01-20 00:13:57.240 +08:00 [INF] DanmakuRender.cs(540)->Stop(): DanmakuRender is stopped
2025-01-20 00:13:57.396 +08:00 [INF] DanmakuRender.cs(540)->Stop(): DanmakuRender is stopped
2025-01-20 00:13:57.396 +08:00 [INF] DanmakuFrostMaster.cs(363)->Updater_DoWork(): Exited
2025-01-20 00:13:57.396 +08:00 [INF] DanmakuRender.cs(563)->Close(): DanmakuRender is closed
2025-01-20 00:13:57.396 +08:00 [INF] DanmakuFrostMaster.cs(221)->Close(): DanmakuFrostMaster is closed
2025-01-20 00:14:43.446 +08:00 [INF] DanmakuRender.cs(94)->.ctor(): DanmakuRender is created
2025-01-20 00:14:43.446 +08:00 [INF] DanmakuFrostMaster.cs(61)->.ctor(): DanmakuFrostMaster is created
2025-01-20 00:14:43.451 +08:00 [INF] DanmakuRender.cs(584)->OnCanvasCreateResources(): FirstTime
2025-01-20 00:24:42.380 +08:00 [WRN] 尝试跳转视频时失败.
System.Exception: Failed to set the property. Error code: PropertyUnavailable
---> Mpv.Core.MpvException: property unavailable
--- End of inner exception stack trace ---
at Mpv.Core.Interop.MpvClientNative.SetProperty(String, MpvNode) + 0xf4
at Mpv.Core.Player.Seek(TimeSpan) + 0x103
at BiliCopilot.UI.ViewModels.Core.IslandPlayerViewModel.OnSeekAsync(TimeSpan) + 0x12
at BiliCopilot.UI.ViewModels.Core.PlayerViewModelBase.d__10.MoveNext() + 0x25b
2025-01-20 00:24:49.106 +08:00 [INF] DanmakuRender.cs(540)->Stop(): DanmakuRender is stopped
2025-01-20 00:24:50.736 +08:00 [INF] DanmakuRender.cs(540)->Stop(): DanmakuRender is stopped
2025-01-20 00:24:55.239 +08:00 [INF] DanmakuRender.cs(540)->Stop(): DanmakuRender is stopped
2025-01-20 00:24:55.242 +08:00 [INF] DanmakuFrostMaster.cs(312)->Updater_DoWork(): Reseek after a long time suspension
2025-01-20 00:24:55.242 +08:00 [INF] DanmakuRender.cs(540)->Stop(): DanmakuRender is stopped
2025-01-20 00:24:55.621 +08:00 [INF] DanmakuRender.cs(540)->Stop(): DanmakuRender is stopped
2025-01-20 00:24:55.621 +08:00 [INF] DanmakuFrostMaster.cs(363)->Updater_DoWork(): Exited
2025-01-20 00:24:55.622 +08:00 [INF] DanmakuRender.cs(563)->Close(): DanmakuRender is closed
2025-01-20 00:24:55.622 +08:00 [INF] DanmakuFrostMaster.cs(221)->Close(): DanmakuFrostMaster is closed
2025-01-20 00:24:55.622 +08:00 [INF] DanmakuRender.cs(94)->.ctor(): DanmakuRender is created
2025-01-20 00:24:55.622 +08:00 [INF] DanmakuFrostMaster.cs(61)->.ctor(): DanmakuFrostMaster is created
2025-01-20 00:24:55.639 +08:00 [INF] DanmakuRender.cs(584)->OnCanvasCreateResources(): FirstTime
2025-01-20 00:25:03.138 +08:00 [INF] DanmakuRender.cs(540)->Stop(): DanmakuRender is stopped
2025-01-20 00:25:04.569 +08:00 [INF] DanmakuRender.cs(540)->Stop(): DanmakuRender is stopped
2025-01-20 00:25:04.663 +08:00 [INF] DanmakuRender.cs(540)->Stop(): DanmakuRender is stopped
2025-01-20 00:25:06.379 +08:00 [INF] DanmakuFrostMaster.cs(312)->Updater_DoWork(): Reseek after a long time suspension
2025-01-20 00:25:06.379 +08:00 [INF] DanmakuRender.cs(540)->Stop(): DanmakuRender is stopped
2025-01-20 00:25:07.378 +08:00 [INF] DanmakuRender.cs(540)->Stop(): DanmakuRender is stopped
2025-01-20 00:25:07.766 +08:00 [INF] DanmakuRender.cs(540)->Stop(): DanmakuRender is stopped
2025-01-20 00:25:07.766 +08:00 [INF] DanmakuFrostMaster.cs(363)->Updater_DoWork(): Exited
2025-01-20 00:25:07.767 +08:00 [INF] DanmakuRender.cs(563)->Close(): DanmakuRender is closed
2025-01-20 00:25:07.767 +08:00 [INF] DanmakuFrostMaster.cs(221)->Close(): DanmakuFrostMaster is closed
2025-01-20 00:25:07.767 +08:00 [INF] DanmakuRender.cs(94)->.ctor(): DanmakuRender is created
2025-01-20 00:25:07.767 +08:00 [INF] DanmakuFrostMaster.cs(61)->.ctor(): DanmakuFrostMaster is created
2025-01-20 00:25:07.778 +08:00 [INF] DanmakuRender.cs(584)->OnCanvasCreateResources(): FirstTime
2025-01-20 00:25:14.250 +08:00 [INF] DanmakuRender.cs(540)->Stop(): DanmakuRender is stopped
2025-01-20 00:29:03.170 +08:00 [INF] DanmakuRender.cs(540)->Stop(): DanmakuRender is stopped
2025-01-20 00:29:03.214 +08:00 [INF] DanmakuRender.cs(540)->Stop(): DanmakuRender is stopped
2025-01-20 00:29:03.214 +08:00 [INF] DanmakuFrostMaster.cs(363)->Updater_DoWork(): Exited
2025-01-20 00:29:03.214 +08:00 [INF] DanmakuRender.cs(563)->Close(): DanmakuRender is closed
2025-01-20 00:29:03.214 +08:00 [INF] DanmakuFrostMaster.cs(221)->Close(): DanmakuFrostMaster is closed
2025-01-20 00:29:14.845 +08:00 [ERR] Unhandled exception occurred.
System.InvalidCastException: Specified cast is not valid.
at BiliCopilot.UI.Controls.Core.NativePlayer.OnApplyTemplate() + 0x5a
at ABI.Microsoft.UI.Xaml.IFrameworkElementOverrides.Do_Abi_OnApplyTemplate_2(IntPtr) + 0x47
--- End of stack trace from previous location ---
at WinRT.ExceptionHelpers.g__Throw|38_0(Int32) + 0x39
at ABI.Microsoft.UI.Xaml.IFrameworkElementOverridesMethods.MeasureOverride(IObjectReference, Size) + 0x80
at ABI.Microsoft.UI.Xaml.IFrameworkElementOverrides.Do_Abi_MeasureOverride_0(IntPtr, Size, Size*) + 0x58
--- End of stack trace from previous location ---
at WinRT.ExceptionHelpers.g__Throw|38_0(Int32) + 0x39
at ABI.Microsoft.UI.Xaml.IFrameworkElementOverridesMethods.MeasureOverride(IObjectReference, Size) + 0x80
at ABI.Microsoft.UI.Xaml.IFrameworkElementOverrides.Do_Abi_MeasureOverride_0(IntPtr, Size, Size*) + 0x58

备注

No response

人人为我,我为人人

None

@zhblmy
Copy link

zhblmy commented Jan 22, 2025

同样的问题

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

Successfully merging a pull request may close this issue.

3 participants