uno icon indicating copy to clipboard operation
uno copied to clipboard

Live Wizard working on Firefox but not Chrome

Open Youssef1313 opened this issue 1 year ago • 15 comments

Current behavior

Original report from https://github.com/unoplatform/uno/pull/15400

I could only follow this guide using Firefox, not google chrome. I am on Debian 12

https://platform.uno/docs/articles/create-an-app-vscode.html

Reported by @JBrolin90

Expected behavior

No response

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

No response

Workaround

No response

Works on UWP/WinUI

None

Environment

No response

NuGet package version(s)

No response

Affected platforms

No response

IDE

No response

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

No response

Youssef1313 avatar Feb 08 '24 06:02 Youssef1313

@JBrolin90 If you open the browser's developer tools → console, are you seeing any errors?

Youssef1313 avatar Feb 08 '24 06:02 Youssef1313

Thank you Youssef1313 for converting this into an issue. I can confirm that new.platform.uno indeed works on Chrome on my Windows 11 Home, Windows 11 Pro (under VirtualBox) and on my Linux Mint. But it still does not work on my Debian 12 machine (under VirtualBox). (Chrome Version 121.0.6167.160 (Official Build) (64-bit)) I added a screenshot showing what it looks like and with developer tools activated, showing an empty console, i.e., no error messages. I did restart the Debian machine but to no avail. I also tried with both NAT and Bridge network adapters on the virtual machine. This Debian machine is freshly installed, just a week ago, with the purpose of learning Uno, Only installed Chrome, dotnet 8 and vscode. I did not tinker with anything.

Would be great to understand what is going on. For now it is a small inconvenience as I can use FireFox as a workaround

Screenshot from 2024-02-12 06-54-45

Thank you for your attention and let me know if I should provide some further details

Kind regards Joachim

JBrolin90 avatar Feb 12 '24 13:02 JBrolin90

@JBrolin90 thanks for the updates. In the console, there's a "Default levels" dropdown, can you select Verbose as well, refresh the app and tell us what you see?

jeromelaban avatar Feb 12 '24 13:02 jeromelaban

Yes, now something showed up

[ServiceWorker] Initializing uno-bootstrap.js:699 Active service worker found, skipping register Uno.UI.js:3716 Making persistent: /local Uno.UI.js:3716 Making persistent: /roaming Uno.UI.js:3716 Making persistent: /shared setImmediate.js:111 [Violation] 'message' handler took 302ms

JBrolin90 avatar Feb 12 '24 15:02 JBrolin90

Thanks. It's not showing enough information, still.

When testing with building a blank app (using a template from https://new.platform.uno), does the app start properly in this particular browser?

jeromelaban avatar Feb 12 '24 16:02 jeromelaban

Yes, I get the "Hello Uno platform!" message, exactly as under Windows

JBrolin90 avatar Feb 12 '24 19:02 JBrolin90

Thanks. This is indeed, hiding some other issue, which may be related to webassembly features. Does https://calculator.platform.uno work?

Also could you try building the same hello app in release mode, using InterpreterAndAOT uncommented in the project file? It will be closer to the configuration of the wizard.

jeromelaban avatar Feb 12 '24 20:02 jeromelaban

You're welcome Yes https://calculator.platform.uno/ works well. I am now trying to run the release version, struggling a bit with all the options. Please hang on until I figure out how to issue a proper dotnet run command....

JBrolin90 avatar Feb 13 '24 10:02 JBrolin90

Yes, it seems to be working as well. This is what I did (Not that hard actually) $ cd ~/repos/Hello/Hello.Wasm $ dotnet run --confuguration Release

Then I opened localhost:5001 in Chrome and I got this after a few seconds: Screenshot from 2024-02-13 10-41-43

Finally, again, I tried the new.platform.uno and it still does not work....

JBrolin90 avatar Feb 13 '24 16:02 JBrolin90

This is my create command, for reference

dotnet new unoapp -o Hello -id "com.companyname.Hello" -pub "O=Hello" -markup "csharp" -platforms "wasm" -theme-service -pwa False -theme "material" -presentation "mvux" -config false -di false -log "none" -nav "blank" -http false -loc false -server false -tests "none" -toolkit -dsp false

JBrolin90 avatar Feb 13 '24 16:02 JBrolin90

Thanks for the update.

Could you visit this link: https://lemon-beach-09f7c130f.4.azurestaticapps.net/?loglevel=info, this will show more information in the browser debug console, and paste the result here? This is a prerelease version of the wizard.

jeromelaban avatar Feb 14 '24 22:02 jeromelaban

The app itself, still does not get past the startup banner. The debug console displays a few more lines

Registering service worker for / Uno.UI.js:3716 Making persistent: /local Uno.UI.js:3716 Making persistent: /roaming Uno.UI.js:3716 Making persistent: /shared setImmediate.js:111 [Violation] 'message' handler took 265ms service-worker.js:4 [ServiceWorker] Initializing uno-bootstrap.js:710 Service Worker Registered service-worker.js:7 [ServiceWorker] Installing offline worker service-worker.js:10 [ServiceWorker] Caching app binaries and content

JBrolin90 avatar Feb 15 '24 08:02 JBrolin90

Thank you, the lets go a level deeper, can you run it using https://lemon-beach-09f7c130f.4.azurestaticapps.net/?loglevel=debug ? It is going to be lots more verbose, make sure to paste it as a text file

jeromelaban avatar Feb 15 '24 12:02 jeromelaban

Weird. It did not produce more output, only this: Active service worker found, skipping register Uno.UI.js:3716 Making persistent: /local Uno.UI.js:3716 Making persistent: /roaming Uno.UI.js:3716 Making persistent: /shared setImmediate.js:111 [Violation] 'message' handler took 215ms

And then one issue:

Depreciated feature used, one source

  1. 1 source
    1. ai.2.6.3.min.js:5 --

JBrolin90 avatar Feb 15 '24 16:02 JBrolin90

When I run that link in Chrome under Windows, I do get verbose output though.

JBrolin90 avatar Feb 15 '24 16:02 JBrolin90

This appear to also be happening on Ubuntu (both firefox and chrome as far as I've tried). The log on firefox gives this: image The log on chrome is not meaningful.

ramezgerges avatar Feb 20 '24 17:02 ramezgerges

Took some days. I'm leaning towards a platform issue rather than an Uno issue. I moved my Debian 12 VM from my Windows 11 Home host to a new Linux Mint (LMDE 6) host. Now the project wizard works in the very same browser.. Moving back to the Windows host, the issue re-appear. I would be fine closing this issue. Potentially addressing it to VirtualBox instead.

In any case, thank you all for your kind support. I must say that I did learn a lot during these days

JBrolin90 avatar Feb 20 '24 18:02 JBrolin90

Thanks for the update! We'll close for now, but if someone finds more information about this, please feel free to comment.

jeromelaban avatar Feb 20 '24 18:02 jeromelaban