You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Setting Image.Source to local image (added as "Content" to Assets/ folder in UWP project) leads to WASM app never going past the Splashscreen #1
If you add an image to UWP's Assets folder (or to any other location within the solution), and point image control's Source property to that image, an app would never complete loading.
changed the title [-]Splashscreen is the only thing shown after launching WASM app[/-][+]Setting Image.Source to local image (added as "Content" to Assets/ folder in UWP project) leads to WASM app never going past the Splashscreen[/+]on May 7, 2018
If you put the image in the UWP asset folder (in the UWP Head project), it won't be available for other heads.
Is it possible for you to fork the repo and share a commit reproducing the problem? (or any other way to give us more information to reproduce it) I would love to fix the problem for you :-).
(by the way, congrats, you're the first one to report a bug on this repo!)
Hi Carl!
Thanks for reaching out.
I don’t know where I shall put the image for it to be reachable (and visible in UI) within the WASM app. If you can recommend me the step-by-step approach here it would solve the problem.
By now, the only way I can show an image is by linking to an image hosted externally on the web.
What I want is to add an image to the project, ship it with the project, and show it in the UI.
Best Regards,
Daniel
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
________________________________
From: Carl de Billy <[email protected]>
Sent: Tuesday, May 8, 2018 3:17:33 AM
To: nventive/Uno
Cc: Daniel Kornev; State change
Subject: Re: [nventive/Uno] Setting Image.Source to local image (added as "Content" to Assets/ folder in UWP project) leads to WASM app never going past the Splashscreen (#1)
If you put the image in the UWP asset folder (in the UWP Head project), it won't be available for other heads.
Is it possible for you to fork the repo and share a commit reproducing the problem? (or any other way to give us more information to reproduce it) I would love to fix the problem for you :-).
(by the way, congrats, you're the first one to report a bug on this repo!)
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub<#1 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AFBSq9N1GLMO3-9QmQF9mVtqpEt5ytAgks5twOQdgaJpZM4T1q_1>.
@danielkornev "local" files should be available in the wasm app if the build action is set to Content. It seems that for now, wasm does not support this properly, we'll fix it.
I can confirm that any reference to an image causes an error to be thrown during the load of that image. I tried both 'Source="/Assets/ImageName.png"' and 'Source="ms-appx:///Assets/ImageName.png"'. Both versions work in a UWP app; Neither work in wasm.
The first few lines of the error from the console:
mono.js:1 Error #1 "TypeError: Cannot read property 'toString' of undefined" executing javascript: "(function(t){document.title = t;})("Uno Playground");" put_char @ mono.js:1 mono.js:1 �[41m�[30mfail�[39m�[22m�[49m: Windows.UI.Core.CoreDispatcher[0] mono.js:1 Dispatcher unhandled exception mono.js:1 System.Exception: Failed to load Page Optimiser.NG.MainPage System.InvalidOperationException: This operation is not supported for a relative URI. mono.js:1 at System.Uri.get_Scheme () <0x1e38ba0 + 0x0001c> in <3d11b0248be143f5a11160eae8e61e3e>:0 mono.js:1 at Windows.UI.Xaml.Media.ImageSource.InitFromUri (System.Uri uri) <0x1e38a58 + 0x00010> in <c839eae4007e4ef3bcf083ab0250456d>:0 mono.js:1 at Windows.UI.Xaml.Media.Imaging.BitmapImage.OnUriSourceChanged (Windows.UI.Xaml.DependencyPropertyChangedEventArgs A_0) <0x1e4be58 + 0x00044> in <c839eae4007e4ef3bcf083ab0250456d>:0 mono.js:1 at Windows.UI.Xaml.Media.Imaging.BitmapImage+<>c.<.cctor>b__58_0 (Windows.UI.Xaml.DependencyObject s, Windows.UI.Xaml.DependencyPropertyChangedEventArgs e) <0x1e4be00 + 0x00024> in <c839eae4007e4ef3bcf083ab0250456d>:0 mono.js:1 at (wrapper delegate-invoke) <Module>.invoke_void_DependencyObject_DependencyPropertyChangedEventArgs(Windows.UI.Xaml.DependencyObject,Windows.UI.Xaml.DependencyPropertyChangedEventArgs) mono.js:1 at Windows.UI.Xaml.PropertyMetadata.RaisePropertyChanged (Windows.UI.Xaml.DependencyObject source, Windows.UI.Xaml.DependencyPropertyChangedEventArgs e) <0x1c50dc0 + 0x0002c> in <c839eae4007e4ef3bcf083ab0250456d>:0
Activity
danielkornev commentedon May 7, 2018
Ok, figured out what the problem is:
If you add an image to UWP's Assets folder (or to any other location within the solution), and point image control's Source property to that image, an app would never complete loading.
[-]Splashscreen is the only thing shown after launching WASM app[/-][+]Setting Image.Source to local image (added as "Content" to Assets/ folder in UWP project) leads to WASM app never going past the Splashscreen[/+]carldebilly commentedon May 8, 2018
If you put the image in the UWP asset folder (in the UWP Head project), it won't be available for other heads.
Is it possible for you to fork the repo and share a commit reproducing the problem? (or any other way to give us more information to reproduce it) I would love to fix the problem for you :-).
(by the way, congrats, you're the first one to report a bug on this repo!)
danielkornev commentedon May 8, 2018
jeromelaban commentedon May 8, 2018
@danielkornev "local" files should be available in the wasm app if the build action is set to
Content. It seems that for now, wasm does not support this properly, we'll fix it.Thanks for trying uno out !
danielkornev commentedon May 8, 2018
miguelrochefort commentedon May 8, 2018
Also make sure to use the
ms-appxURI scheme:MarkStega commentedon May 22, 2018
I can confirm that any reference to an image causes an error to be thrown during the load of that image. I tried both 'Source="/Assets/ImageName.png"' and 'Source="ms-appx:///Assets/ImageName.png"'. Both versions work in a UWP app; Neither work in wasm.
The first few lines of the error from the console:
mono.js:1 Error #1 "TypeError: Cannot read property 'toString' of undefined" executing javascript: "(function(t){document.title = t;})("Uno Playground");" put_char @ mono.js:1 mono.js:1 �[41m�[30mfail�[39m�[22m�[49m: Windows.UI.Core.CoreDispatcher[0] mono.js:1 Dispatcher unhandled exception mono.js:1 System.Exception: Failed to load Page Optimiser.NG.MainPage System.InvalidOperationException: This operation is not supported for a relative URI. mono.js:1 at System.Uri.get_Scheme () <0x1e38ba0 + 0x0001c> in <3d11b0248be143f5a11160eae8e61e3e>:0 mono.js:1 at Windows.UI.Xaml.Media.ImageSource.InitFromUri (System.Uri uri) <0x1e38a58 + 0x00010> in <c839eae4007e4ef3bcf083ab0250456d>:0 mono.js:1 at Windows.UI.Xaml.Media.Imaging.BitmapImage.OnUriSourceChanged (Windows.UI.Xaml.DependencyPropertyChangedEventArgs A_0) <0x1e4be58 + 0x00044> in <c839eae4007e4ef3bcf083ab0250456d>:0 mono.js:1 at Windows.UI.Xaml.Media.Imaging.BitmapImage+<>c.<.cctor>b__58_0 (Windows.UI.Xaml.DependencyObject s, Windows.UI.Xaml.DependencyPropertyChangedEventArgs e) <0x1e4be00 + 0x00024> in <c839eae4007e4ef3bcf083ab0250456d>:0 mono.js:1 at (wrapper delegate-invoke) <Module>.invoke_void_DependencyObject_DependencyPropertyChangedEventArgs(Windows.UI.Xaml.DependencyObject,Windows.UI.Xaml.DependencyPropertyChangedEventArgs) mono.js:1 at Windows.UI.Xaml.PropertyMetadata.RaisePropertyChanged (Windows.UI.Xaml.DependencyObject source, Windows.UI.Xaml.DependencyPropertyChangedEventArgs e) <0x1c50dc0 + 0x0002c> in <c839eae4007e4ef3bcf083ab0250456d>:0jeromelaban commentedon May 24, 2018
@MarkStega indeed, seems like a minor path parsing issue. Should be easy to fix :) Hang on for the source to be published.
BeaumerF commentedon Jun 25, 2018
I updated my nugget packages and it doesn't work for me on wasm (uwp yes).
Source="ms-appx:///Assets/pictures/user.png"jeromelaban commentedon Jun 27, 2018
@BeaumerF The package that fixed this was not published, you can try updating again, it should work better now.
BeaumerF commentedon Jun 27, 2018
@jeromelaban It still doesn't work on my project, the local images let the app on the splash screen (I updated, cleaned and built)
15 remaining items
chore: MOAR LOGGING
chore(deps): use SkiaSharp 3.119.2-preview.1
chore(deps): use SkiaSharp 3.119.2-preview.1 on CoreCLR, NativeAOT
chore: extend the lifetime of SKPicture
test: Add runtime tests for WinUI gap fix coverage
fix: Load explicitly mentioned assemblies, don't probe
test: Add runtime tests for WinUI gap fix coverage
fix: Load explicitly mentioned assemblies, don't probe
fix: Load explicitly mentioned assemblies, don't probe
fix: Load explicitly mentioned assemblies, don't probe
test: Add runtime tests for WinUI gap fix coverage
test: Add runtime tests for WinUI gap fix coverage
fix: extend Android Surface lifetime to avoid GC-related crash
feat(webgpu): analytic rounded-rect fill pipeline
feat(composition): move stroke-to-fill below the geometry seam