cryinkfly / Autodesk-Fusion-360-for-Linux

This is a project, where I give you a way to use Autodesk Fusion 360 on Linux!
https://github.com/cryinkfly/Fusion-360---Linux-Wine-Version-/wiki
MIT License
1.78k stars 115 forks source link

Login Webpage Response Doesn't Trigger Login within Fusion360 #418

Open warasilapm opened 1 month ago

warasilapm commented 1 month ago

Describe the bug Fusion is able to launch the web browser page to login, however, the response that should be handled by AdskIdentityManager.exe doesn't seem to do anything. The .launch exists and Firefox picks up on it, nothing seems to happen. I do see an "invisible" asdkidentity manager window when I use the alt-tab style window switching on my system, but whenever I select it the main Fusion 360 window appears instead. It's worth noting that until I kill AdskIdentityManager.exe using the system monitor tool the Fusion360 window doesn't have a way to interact with it; I guess it's blocked on the child window that isn't drawing? image image

To Reproduce Steps to reproduce the behavior:

  1. Install using install.sh.
  2. Attempt to log in.
  3. Log in within the native browser.
  4. Wait forever twiddling thumbs like a neanderthal.

Expected behavior The login page response is handled by F360/AdskIdentityManager.exe.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context I had tried using bottles a few months ago but that suffered from the login issues resolved in #381 and I figured I'd try the install script to avoid my confusion with bottles.

I can only imagine this is a system specific quirk that I need to address but I don't even know where to start on this one.

cooldoggy commented 1 month ago

Try to inspect the .desktop file for AdskIdentityManager.exe, on my PC the path was corrupted and once corrected to point at the executable properly it worked.

MatzeS commented 1 month ago

Based on @cooldoggy 's comment I fixed my setup, by adjusting the ID in the path of the desktop file. I also replaced some backslashes with regular slashes.

While debugging your setup, consider checking journalctl. krunner prints some error log if launching the application fails. Also not forget to update-desktop-database after editing the .desktop file.

warasilapm commented 1 month ago

Yep. The webdeploy\production\[key]\ path had the wrong [key] value. I wonder why that is? Something that is missed when updating from one version to another?

warasilapm commented 1 month ago

Should I start a new issue specifically for this path issue to capture it as an item to resolve long term?

jrgilman commented 1 month ago

I just wanted to +1 this, that the same fix worked for me, for some reason the uuid/key value that @warasilapm is referring to was completely wrong on mine, fixing it to the actual key made Fusion login right away! Thanks @cooldoggy.

BedoAkgun commented 1 month ago

changing the fusion 360 folder the .desktop file was pointing at (webdeploy\production\random letters) didnt help, fusion still freezes after clicking sign in on the app. I also did "sudo update-desktop-database"

warasilapm commented 1 month ago

changing the fusion 360 folder the .desktop file was pointing at (webdeploy\production\random letters) didnt help, fusion still freezes after clicking sign in on the app. I also did "sudo update-desktop-database"

That seems like a unique issue from mine.

gidoBOSSftw5731 commented 1 month ago

Based on @cooldoggy 's comment I fixed my setup, by adjusting the ID in the path of the desktop file. I also replaced some backslashes with regular slashes.

While debugging your setup, consider checking journalctl. krunner prints some error log if launching the application fails. Also not forget to update-desktop-database after editing the .desktop file.

I'll admit that I'm not super familiar with the backend of this project, however I don't see anything in the desktop file that refers to the webdeploy/production/id path? Is there a different .desktop? https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux/blob/main/files/builds/stable-branch/.desktop/Autodesk%20Fusion%20360.desktop

Shourya-maker-lab commented 1 month ago

Hey i am on fedora 40 and i have downloaded fusion from the installer package yesterday i am i able to launch it and sign in the browser but its not redirecting and i have wine Staglin and i have tried the script which was provided to resolve this issue but noting happens i am tried of it pls help

Shourya-maker-lab commented 1 month ago

And what is the .desktop thing everybody is talking about ?

warasilapm commented 1 month ago

@gidoBOSSftw5731 @Shourya-maker-lab

We're referring to the adskidmgr-opener.desktop file used to open the web callback on sign in. This is hardcoded into the install script. See below.

https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux/blob/af88102a797e28d65dea5bef8418e79539d7b8ed/files/builds/stable-branch/bin/install.sh#L409-L417

Not sure if there is a good way to change this to use the specific webpack value correctly.

gidoBOSSftw5731 commented 1 month ago

@gidoBOSSftw5731 @Shourya-maker-lab

We're referring to the adskidmgr-opener.desktop file used to open the web callback on sign in. This is hardcoded into the install script. See below.

https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux/blob/af88102a797e28d65dea5bef8418e79539d7b8ed/files/builds/stable-branch/bin/install.sh#L409-L417

Not sure if there is a good way to change this to use the specific webpack value correctly.

Ah, thanks for the clarification. I figured out my laptop hadn't been updated in a while (yay libc6 upgrades) so it was having a ton of issues, I've now gotten some progress working with bottles (after updating that too.) I added reactions to posts on #393 for the posts I had to follow to get it to work.

Reutertu3 commented 1 month ago

Which link is supposed to open even and in what browser? Upon launching Fusion there is an error involving QtWebEngineProcess.exe, which closes itself. After that the Fusion Login screen appears, but clicking on Sign-In doesn't do anything.

Starting from Bottles on Arch & KDE Plasma 6.

Edit: Nevermind I got it to work by using a custom bottle with Wine instead of Soda.

Shourya-maker-lab commented 1 month ago

to get till the login issue use firefox browser after sign in in auto desk webiste you need to inspect the page which will have a button called go to product and you need to copy the link associated with the button.

FireNWater commented 1 month ago

Same issue here. Is there anyone who can explain the fix a bit more clearly?

PMarinov1994 commented 1 month ago

I update the path to AdskIdentityManager.exe with the correct ID just like @warasilapm said, but I still cannot log in (the fusion360 window is frozen)

ho-ho-ho commented 1 month ago

@PMarinov1994 I had the same problem ... changing all the \ to / in the Exec line of the desktop file made it work.

Cyborgnetical commented 1 month ago

having same issue in Pop_OS! The solution above worked.

For any of you confused (or I might just be dumb cuz it took me a while to figure this out) here are my steps that worked.

  1. open up file explorer, go to your Home > .local > share > applications > adskidmgr-opener.desktop (with a text editor)
  2. open up another file explorer, again your Home > C_drive > Program Files > Autodesk > webdeploy > production check which folder has Autodesk Identity Manager, copy the name of the folder that has it.
    1. in your text editor change the long mess of charaters (99249ee497b13684a43f5bacd5f1f09974049c6b) to what you copied. tada :) now try log in again
thenicnet commented 1 month ago

https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux/issues/418#issuecomment-2132533054

THANK YOU! I was trying to decipher these one line responses and what people meant.

The only thing I'd like to add is in step 2, you have it listed as Home > C_drive > ... For me it was: Home > .fusion360 > wineprefixes > default > drive_c > Program Files > Autodesk > webdeploy > production (But I suppose this variable based on your WINE installation, just wanted to add my two cents.)

This worked perfectly and now I'm rocking on Pop_OS! Thank you again

FireNWater commented 1 month ago

Got it working here, too on Manjaro. Thanks for the less cryptic explanation!! Now to get my 3D mouse working. . . I am getting alot of "QtWebEngineProcess.exe" errors. Those seem to be killing the windows the Fusion is opening . . .

Shourya-maker-lab commented 1 month ago

will try today on a fresh fedora install hopefully it works . on fedora 40 . @cryinkfly if this works we can add that to the code i guess ? .

Shourya-maker-lab commented 1 month ago

@FireNWater that is like a everytime you open the fusion 360 or just once in a while ?

cryinkfly commented 1 month ago

@Shourya-maker-lab :+1:

FireNWater commented 1 month ago

@FireNWater that is like a everytime you open the fusion 360 or just once in a while ?

Yes, the error seems to trigger every time Fusion opens a new window. The data panel doesn't open and eventually Fusion freezes and I have to kill it from the OS.

I'd be happy to collect log files, just let me know which ones you want.

Aus-gez commented 1 month ago

I don't have anything to contribute for the QTWebEngine issues... Sorry.

But I have been working on a patch to add a small function to identify the variable location of the identity manager, specifically the alphanumeric folder name. This will hopefully mean we no longer need to hard code the identity manager location (which also tripped me up).

I've not tested it yet as I ran out of time tonight, but if anyone wants to have a go at testing it and let me know how you go, here are the changes I made: https://github.com/Aus-gez/Autodesk-Fusion-360-for-Linux/commit/2a72b14ce63306516b31931208f4614f6105eff6

Hopefully I didn't put the function in a place that will run before the identity manager exists on the file system. :grimacing:

wociscz commented 4 weeks ago

Confirm working workaround. I can login now, but gazillion of QTWebEngineProcess.exe errors poping out.

Shourya-maker-lab commented 4 weeks ago

i can conform that the workaround is not working on fedora 40

Shourya-maker-lab commented 4 weeks ago

and ubuntu 24.04 Lts

zakutin commented 4 weeks ago

i can conform that the workaround is not working on fedora 40

I'm on fedora 40 with wine-devel 9.9 and I have working login page and redirection.

I have adskidmgr-opener.desktop file in ~/.local/share/applications with the following content:

[Desktop Entry]
Type=Application
Name=adskidmgr Scheme Handler
Exec=env WINEPREFIX="/home/username/.fusion360/wineprefixes/default" wine "/home/username/.fusion360/wineprefixes/default/drive_c/Program Files/Autodesk/webdeploy/production/0b67cdf9b5e1511700618e51757ca1535bfaa4da/Autodesk Identity Manager/AdskIdentityManager.exe" %u
StartupNotify=false
MimeType=x-scheme-handler/adskidmgr;

This was taken from here:

zakutin commented 4 weeks ago

Confirm working workaround. I can login now, but gazillion of QTWebEngineProcess.exe errors poping out.

@wociscz, try https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux/issues/421#issuecomment-2138957506. This mitigates the QT6 issue.

Shourya-maker-lab commented 4 weeks ago

@zakutin pls elobrate on the fedora 40 image

Shourya-maker-lab commented 4 weeks ago

please tell the steps from start to end please. thankyou <3

zakutin commented 4 weeks ago

Install wine from https://wiki.winehq.org/Fedora

Install necessary packages

sudo dnf install p7zip p7zip-plugins curl wget cabextract

Preparation

mkdir -p $HOME/.fusion360/bin
mkdir -p $HOME/.fusion360/downloads
wget -N -P $HOME/.fusion360/bin https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
chmod +x $HOME/.fusion360/bin/winetricks
wget https://dl.appstreaming.autodesk.com/production/installers/Fusion%20360%20Admin%20Install.exe -O Fusion360installer.exe
cp "Fusion360installer.exe" "$HOME/.fusion360/downloads/Fusion360installer.exe"
WINEPREFIX=$HOME/.fusion360/wineprefixes/default sh $HOME/.fusion360/bin/winetricks -q atmlib gdiplus corefonts cjkfonts dotnet452 msxml4 msxml6 vcrun2017 fontsmooth=rgb winhttp win10

Install WebView

Install Fusion

WINEPREFIX=$HOME/.fusion360/wineprefixes/default wine $HOME/.fusion360/wineprefixes/default/drive_c/users/$USER/Downloads/Fusion360installer.exe --quiet

Enable DirectX or OpenGL (choose one)

OpenGL:

mkdir -p "$HOME/.fusion360/wineprefixes/default/drive_c/users/$USER/AppData/Roaming/Autodesk/Neutron Platform/Options" wget -N -P "$HOME/.fusion360/wineprefixes/default/drive_c/users/$USER/AppData/Roaming/Autodesk/Neutron Platform/Options" https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux/raw/main/files/builds/stable-branch/driver/video/opengl/NMachineSpecificOptions.xml mkdir -p "$HOME/.fusion360/wineprefixes/default/drive_c/users/$USER/AppData/Local/Autodesk/Neutron Platform/Options" wget -N -P "$HOME/.fusion360/wineprefixes/default/drive_c/users/$USER/AppData/Local/Autodesk/Neutron Platform/Options" https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux/raw/main/files/builds/stable-branch/driver/video/opengl/NMachineSpecificOptions.xml mkdir -p "$HOME/.fusion360/wineprefixes/default/drive_c/users/$USER/Application Data/Autodesk/Neutron Platform/Options" wget -N -P "$HOME/.fusion360/wineprefixes/default/drive_c/users/$USER/Application Data/Autodesk/Neutron Platform/Options" https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux/raw/main/files/builds/stable-branch/driver/video/opengl/NMachineSpecificOptions.xml


## Create ASDK Manager link
- Replace `<USER>` and `<LONG_SYMBOLIC_STRING>` with appropriate values.
- Copy and paste this chunk of code as whole in terminal

cat > $HOME/.local/share/applications/adskidmgr-opener.desktop << EOL [Desktop Entry] Type=Application Name=adskidmgr Scheme Handler Exec=env WINEPREFIX="/home//.fusion360/wineprefixes/default" wine "/home//.fusion360/wineprefixes/default/drive_c/Program Files/Autodesk/webdeploy/production//Autodesk Identity Manager/AdskIdentityManager.exe" %u StartupNotify=false MimeType=x-scheme-handler/adskidmgr; EOL


## Register MIME

xdg-mime default adskidmgr-opener.desktop x-scheme-handler/adskidmgr


## Run Fusion
- Replace `<USER>` and `<LONG_SYMBOLIC_STRING>` with appropriate values.

WINEPREFIX=$HOME/.fusion360/wineprefixes/default wine "/home//.fusion360/wineprefixes/default/drive_c/Program Files/Autodesk/webdeploy/production//Fusion360.exe"


- Perform login
- Redirection shall work. I use Firefox installed from RPM, not Flatpak or any other.

## Qt6 Bug https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux/issues/421#issuecomment-2138957506
- Find the `Qt6WebEngineCore.dll` file in `/home/ea/.fusion360/wineprefixes/default/drive_c/Program Files/Autodesk/webdeploy/production/<LONG_SYMBOLIC_STRING>/`
- Create backup of this file
- Open it with vim
- Convert it to hex format with `:%!xxd`
- Find the address `3d8123` and change `cc` to `90` next to it
![image](https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux/assets/53969222/b5b660fa-1693-4266-99df-4a72024edde6)
- Convert the file back with `:%!xxd -r`
- Save it `:x`
- Run fusion. The error messages shall be mitigated.
wociscz commented 4 weeks ago

confirm: the Qt bug fix with editing the .dll works. Only problem I'm having is I cant export/save the model as stl. After clicking export (save as or 3d print) nothing happens - utilities -> make -> works.

warasilapm commented 4 weeks ago

confirm: the Qt bug fix with editing the .dll works. Only problem I'm having is I cant export/save the model as stl. After clicking export (save as or 3d print) nothing happens - utilities -> make -> works.

This may be an Fusion bug in general; I've had a couple launches on windows have similar issues. The first time I saw this, it crashed Fusion outright. A different time, it hung for several minutes before allowing me to export the stl. Could be unrelated, though.

Aus-gez commented 3 weeks ago

The original issue of not being redirected back to Fusion 360 after logging in should now be resolved.

This means the folder that the identity manager is installed in is now correctly identified instead of being hard coded.

ZeXx86 commented 3 weeks ago

I can confirm the bug on at least two different computers with Kubuntu 22.04 with a fresh Fusion 360 install. None can log in. Web browser is not opened at all. I can see how Google Chrome is starting in the System Panel but after a second it will disappear and browser will not open.

I installed the Fusion 360 from GIT now and it does not work although all paths are correct in .desktop file. I am getting Crash report after clicking at the Sign In. So I am afraid there is yet some other issue.

ZeXx86 commented 3 weeks ago

Is there a way I can find why I am geting crash? On other computer Firefox is crashing too when Login page should open. Is there a chance to find link it is opening?

uatec commented 3 weeks ago

If Chrome is crashing, change your default browser.

ZeXx86 commented 3 weeks ago

Behavior is identical on two different computers with different web browsers and fresh Fusion installation. Either with Chrome and Firefox I can see browser will Crash. However both browsers are running normally when started manually. It does not matter if browser is running at the event of crash or not running. It will never open anything.

If I will find what link is to be opened I can find reason for crash. Maybe there is some strange character or something like this.

Aus-gez commented 3 weeks ago

@ZeXx86 , sorry to hear you're still having issues logging in. I haven't run in to an issue with browsers crashing trying to load the URL for logging in.

For the record I did my testing on PopOS 22.04. Be good to know if anyone else is having issues or successes with the patch.

Can you please do 2 bits of troubleshooting for me? This will check the bits my patch affected.

Please post the content of this file: ~/.local/share/applications/adskidmgr-opener.desktop

...and the output of the 'find' command after running these lines:

cd ~/.fusion360/wineprefixes/
find . -name 'AdskIdentityManager.exe'
ZeXx86 commented 3 weeks ago

@ZeXx86 , sorry to hear you're still having issues logging in. I haven't run in to an issue with browsers crashing trying to load the URL for logging in.

For the record I did my testing on PopOS 22.04. Be good to know if anyone else is having issues or successes with the patch.

Can you please do 2 bits of troubleshooting for me? This will check the bits my patch affected.

Please post the content of this file: ~/.local/share/applications/adskidmgr-opener.desktop

...and the output of the 'find' command after running these lines:

cd ~/.fusion360/wineprefixes/
find . -name 'AdskIdentityManager.exe'

Here is the output:


tomas@ubuntu:~$ cd ~/.fusion360/wineprefixes/
find . -name 'AdskIdentityManager.exe'
./default/drive_c/Program Files/Autodesk/webdeploy/production/0b67cdf9b5e1511700618e51757ca1535bfaa4da/Autodesk Identity Manager/AdskIdentityManager.exe
tomas@ubuntu:~/.fusion360/wineprefixes$  cat  ~/.local/share/applications/adskidmgr-opener.desktop
[Desktop Entry]
Type=Application
Name=adskidmgr Scheme Handler
Exec=env WINEPREFIX="/home/tomas/.fusion360/wineprefixes/default" wine "C:\Program Files\Autodesk\webdeploy\production\0b67cdf9b5e1511700618e51757ca1535bfaa4da\Autodesk Identity Manager\AdskIdentityManager.exe" %u
StartupNotify=false
Terminal=false
MimeType=x-scheme-handler/adskidmgr;
tomas@ubuntu:~/.fusion360/wineprefixes$ 
Aus-gez commented 3 weeks ago

@ZeXx86 - thanks. Those look correct to me, which means your issue could be a new kind of login issue. ...which is what you suspected in your first mention of this issue.

Possibly something to do with KDE and how these links are handled before they get passed to the browser?

Which version of wine are you using? Can you please show the output of wine --version?

You said you tried it on a couple of machines. Were they both KDE based environments too? If so, are you in a position to try a gnome based environment in a virtual (or actual) machine eg Ubuntu or PopOS?

ZeXx86 commented 3 weeks ago

@ZeXx86 - thanks. Those look correct to me, which means your issue could be a new kind of login issue. ...which is what you suspected in your first mention of this issue.

Possibly something to do with KDE and how these links are handled before they get passed to the browser?

Which version of wine are you using? Can you please show the output of wine --version?

You said you tried it on a couple of machines. Were they both KDE based environments too? If so, are you in a position to try a gnome based environment in a virtual (or actual) machine eg Ubuntu or PopOS?

Thanks for your reply. Wine is: wine-9.10 (Staging)

Yes, both machines are originally running KDE. However on one of these I have also Gnome. Behavior there is same. I am just getting crash report popup window from Gnome. Both machines are running different CPU (AMD/Intel) and GPU (iGPU AMD/NVidia RTX) so it is not related to hardware I think.

I can try virtual machine with any OS. Tomorrow I can try it on other machine with Ubuntu in my work.

ZeXx86 commented 3 weeks ago

I tried to reproduce the bug in VirtualBox with a very fresh Ubuntu 22.04.4 LTS installation without any modification. I can confirm the problem is identical to my. After clicking at the Sign In nothing will happen - Fusion 360 login screen will just freeze or waiting for something - and nothing will happen anymore. Same as with KDE on my machines. Good thing is that only YAD dependency was required to install manually. Other than that it installed nicely. So only this issue must be resolved, because it can't be used at all.

Aus-gez commented 3 weeks ago

I'll download Ubuntu 22.04.4 LTS and give it a try too. It'll probably be a couple of days before I can get back to you though - got some packed days.

Hopefully in the meantime others will share their experience and we'll track down the cause of this issue.

ZeXx86 commented 3 weeks ago

I'll download Ubuntu 22.04.4 LTS and give it a try too. It'll probably be a couple of days before I can get back to you though - got some packed days.

Hopefully in the meantime others will share their experience and we'll track down the cause of this issue.

Thank you very much. It would be very helpful since I use Fusion quite often and I am running Linux everywhere.

Please note with Ubuntu Wayland could be used. With Wayland running it might not start at all even under Xwayland. So to be more specific I set X11 session. Depending on where you run it, Wayland could add another problems..

Aus-gez commented 3 weeks ago

@ZeXx86 I managed to spin up the VM using Ubuntu 22.04.4 and Firefox did crash in the same way you've described. I've still got more testing to do, but I my theory is that the Snap package of these browsers is the cause of the issues.

I won't be able to try this until tomorrow, but next steps are to see if this issue happens with the Deb version of Firefox: https://www.omgubuntu.co.uk/2022/04/how-to-install-firefox-deb-apt-ubuntu-22-04

If this works, then that might be enough for you to go on with for now. Meanwhile we'll be a step closer to properly solving it.

Let me know the results if you try this in your Ubuntu VM.

Update: can confirm this worked! Don't forget to set the newly installed Firefox as your default browser. You can do this from the settings of Firefox.

ZeXx86 commented 3 weeks ago

I can confirm it works! Thank you very much! Interestingly I had Google Chrome installed from DEB previously and it does not worked when it was set as default browser.

warasilapm commented 3 weeks ago

I can confirm it works! Thank you very much! Interestingly I had Google Chrome installed from DEB previously and it does not worked when it was set as default browser.

I, too, did not have any success with chromium or edge on Pop!_OS 22.04 LTS. I only had success with Firefox.