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

ExtendedSplashScreen throws exception running as unpackaged #1165

Open
17 tasks
nickrandolph opened this issue Jun 24, 2024 · 0 comments
Open
17 tasks

ExtendedSplashScreen throws exception running as unpackaged #1165

nickrandolph opened this issue Jun 24, 2024 · 0 comments
Labels

Comments

@nickrandolph
Copy link
Contributor

Current behavior

When running Windows as unpackaged, the ExtendedSplashScreen control throws an internal exception (ie one that is caught) when attempting to load the AppxManifest.xml file (which does exist in the publish folder).

Issue seems to be with the "file:" prefix that's at the beginning of the directory name returned for the executing assembly.
file:\C:\source\github\unoplatform\Uno.Platform\testing\TestHarness\TestHarness.Windows\bin\x64\Debug\net8.0-windows10.0.19041.0\win-x64\AppxManifest.xml

System.ArgumentException
HResult=0x80070057
Message=Value does not fall within the expected range.

image

Expected behavior

AppxManifest.xml file exists, so this methods should return the correct path to the corresponding file.

How to reproduce it (as minimally and precisely as possible)

Nuget Package:

Package Version(s):

Affected platform(s):

  • WebAssembly
  • Android
  • iOS
  • macOS (AppKit)
  • Mac Catalyst
  • Skia
    • WPF
    • GTK (Linux)
    • Linux Framebuffer
    • Tizen
  • Windows

IDE:

  • Visual Studio 2022
  • Visual Studio 2019
  • Visual Studio Code
  • Visual Studio for Mac
  • Rider Windows
  • Rider macOS

Relevant plugins:

Anything else we need to know?

System.Private.CoreLib.dll!System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() Line 53	C#
System.Private.CoreLib.dll!System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task task) Line 154	C#
System.Private.CoreLib.dll!System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task task, System.Threading.Tasks.ConfigureAwaitOptions options) Line 118	C#
System.Private.CoreLib.dll!System.Runtime.CompilerServices.TaskAwaiter<System.__Canon>.GetResult() Line 335	C#
[Waiting on Async Operation, double-click or press enter to view Async Call Stacks]	

Uno.Toolkit.WinUI.dll!Uno.Toolkit.UI.ExtendedSplashScreen.ApplicationPathFromFileName(System.Reflection.Assembly entry, string fileName) Line 300 C#
Uno.Toolkit.WinUI.dll!Uno.Toolkit.UI.ExtendedSplashScreen.LoadManifestFromPackageFile(System.Reflection.Assembly entry, string manifestFile) Line 247 C#
Uno.Toolkit.WinUI.dll!Uno.Toolkit.UI.ExtendedSplashScreen.LoadAppManifest(System.Reflection.Assembly entry, string[] manifestFiles) Line 228 C#
Uno.Toolkit.WinUI.dll!Uno.Toolkit.UI.ExtendedSplashScreen.LoadSplashScreenFromPackageManifest(Microsoft.UI.Xaml.Controls.Image splashScreenImage, Microsoft.UI.Xaml.Media.SolidColorBrush splashScreenBackground) Line 196 C#
Uno.Toolkit.WinUI.dll!Uno.Toolkit.UI.ExtendedSplashScreen.GetNativeSplashScreen() Line 130 C#
Uno.Toolkit.WinUI.dll!Uno.Toolkit.UI.ExtendedSplashScreen.LoadNativeSplashScreen() Line 85 C#
Uno.Toolkit.WinUI.dll!Uno.Toolkit.UI.ExtendedSplashScreen.OnApplyTemplate() Line 79 C#
Microsoft.WinUI.dll!Microsoft.UI.Xaml.FrameworkElement.Microsoft.UI.Xaml.IFrameworkElementOverrides.OnApplyTemplate() Unknown
Microsoft.WinUI.dll!ABI.Microsoft.UI.Xaml.IFrameworkElementOverrides.Do_Abi_OnApplyTemplate_2(nint thisPtr) Unknown
[Native to Managed Transition]
[Managed to Native Transition]
Microsoft.WinUI.dll!ABI.Microsoft.UI.Xaml.IFrameworkElementOverridesMethods.MeasureOverride(WinRT.IObjectReference _obj, Windows.Foundation.Size availableSize) Unknown
Microsoft.WinUI.dll!Microsoft.UI.Xaml.FrameworkElement.MeasureOverride(Windows.Foundation.Size availableSize) Unknown
Microsoft.WinUI.dll!Microsoft.UI.Xaml.FrameworkElement.Microsoft.UI.Xaml.IFrameworkElementOverrides.MeasureOverride(Windows.Foundation.Size availableSize) Unknown
Microsoft.WinUI.dll!ABI.Microsoft.UI.Xaml.IFrameworkElementOverrides.Do_Abi_MeasureOverride_0(nint thisPtr, Windows.Foundation.Size availableSize, Windows.Foundation.Size* result) Unknown
[Native to Managed Transition]
[Managed to Native Transition]
Microsoft.WinUI.dll!ABI.Microsoft.UI.Xaml.IApplicationStaticsMethods.Start(WinRT.IObjectReference _obj, Microsoft.UI.Xaml.ApplicationInitializationCallback callback) Unknown
Microsoft.WinUI.dll!Microsoft.UI.Xaml.Application.Start(Microsoft.UI.Xaml.ApplicationInitializationCallback callback) Unknown
TestHarnessApp.dll!TestHarness.Program.Main(string[] args) Line 32 C#

@nickrandolph nickrandolph added kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification. labels Jun 24, 2024
@kazo0 kazo0 added control/loadingview-splashscreen and removed triage/untriaged Indicates an issue requires triaging or verification. labels Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants