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.79k 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.

ZeXx86 commented 3 weeks ago

I confirm it works only with Firefox. I tested also Konqueror - this worked, but it is unable to redirect back to Fusion 360. So for some reason only Firefox (not from Snap) is working.

b14ckw1d0w commented 3 weeks ago

Edit: Please disregard, user error. All working.

Aus-gez commented 3 weeks ago

I've got no clue what is causing snap-based browsers to crash.

I tried running the address in the crash report and that actually worked... which really confused me. I'm reporting it here in case someone else has an "ah ha!" moment.

In this case I was using the snap package for Chromium.

The command that is run looks like this:

/snap/bin/chromium https://developer.api.autodesk.com/authentication/v2/authorize?client_id=W4OzUBRrCUtlVRIgARbv5rRIKMHe7dXp&response_type=code&response_mode=query&scope=user-profile%3Aread%20user%3Aread%20user%3Awrite%20viewables%3Aread%20data%3Aread%20data%3Awrite%20data%3Acreate%20data%3Asearch%20bucket%3Acreate%20bucket%3Aread%20bucket%3Aupdate%20bucket%3Adelete%20code%3Aall%20account%3Aread%20account%3Awrite%20openid%20device_sso&redirect_uri=https%3A%2F%2Faccounts.autodesk.com%2Fidmgr%2Fcallback&code_challenge_method=S256&code_challenge=BGBEMGCrK32JxllMZO4O6lLuCxyDC2gyUe6Q2L_bwhQ&state=VzRPelVCUnJDVXRsVlJJZ0FSYnY1clJJS01IZTdkWHAuQkdCRU1HQ3JLMzJKeGxsTVpPNE82bEx1Q3h5REMyZ3lVZTZRMkxfYndoUS51c2VyLXByb2ZpbGUlM0FyZWFkJTIwdXNlciUzQXJlYWQlMjB1c2VyJTNBd3JpdGUlMjB2aWV3YWJsZXMlM0FyZWFkJTIwZGF0YSUzQXJlYWQlMjBkYXRhJTNBd3JpdGUlMjBkYXRhJTNBY3JlYXRlJTIwZGF0YSUzQXNlYXJjaCUyMGJ1Y2tldCUzQWNyZWF0ZSUyMGJ1Y2tldCUzQXJlYWQlMjBidWNrZXQlM0F1cGRhdGUlMjBidWNrZXQlM0FkZWxldGUlMjBjb2RlJTNBYWxsJTIwYWNjb3VudCUzQXJlYWQlMjBhY2NvdW50JTNBd3JpdGUlMjBvcGVuaWQlMjBkZXZpY2Vfc3NvLnVzZV9hbHRlcm5hdGl2ZV9wcm9kdWN0X3BhdGg=

Weirdly, if run the full command, it'll fail to redirect properly but it won't cause a crash.

Anyone got any ideas why snap-based browsers are causing crash reports when being called for the login attempt?

ZeXx86 commented 3 weeks ago

I think it has nothing to do with Snap. The same is happening with Chrome from DEB. It is either system library problem or the apps have hardcoded buffer for certain amount of characters without any checking causing segfault.

figa12 commented 3 weeks ago

The solution proposed by @zakutin worked for me. Thank you!

kb-elmo commented 2 weeks ago

This still doesn't work for me.

After clicking on sign in in the Fusion starter the Autodesk login page opens in the browser (tried multiple ones) but after that the Fusion starter just freezes indefinitely and never actually starts the program.

The path in the desktop file for the AdskIdentityManager is correct (checked it multiple times over and over) and even running the adskidmgr manually with the callback code from the login page doesn't do anything.

WINEPREFIX="/home/<user>/.fusion360/wineprefixes/default" wine "C:\Program Files\Autodesk\webdeploy\production\b738a7f16475c27414ba957f7f0b2ee5b34e4e6d\Autodesk Identity Manager\AdskIdentityManager.exe" "adskidmgr:/login?code=XXXXXXXXXXX"

Unfortunately there also don't seem to be any errors in the Fusion log visible. The program UI just gets stuck somewhere and never updates, buttons become unclickable etc.

Running Arch with Wine-staging 9.8

zakutin commented 2 weeks ago

@kb-elmo, do you see the AdskIdentityManager somewhere in the Gnome apps overview as an icon (or in any other desktop environment you use)? Can you click it? If you do not get any error message like this error launching application: Desktop file didn’t specify Exec in you desktop environment, then the app seems to work fine.

Another thing is that the "C:\Program..." after wine command can be an issue. I tried multiple ways how to indicate the launch pats, and the absolute linux path is working for me. Try to correct the Exec string for your AdskIdentityManager desktop file:

Exec=env WINEPREFIX="/home/<USER>/.fusion360/wineprefixes/default" wine "/home/<USER>/.fusion360/wineprefixes/default/drive_c/Program Files/Autodesk/webdeploy/production/<LONG_SYMBOLIC_STRING>/Autodesk Identity Manager/AdskIdentityManager.exe" %u

...and launch AdskIdentityManager again to check the error message.

kb-elmo commented 2 weeks ago

~~@zakutin yeah I can run it (using i3wm with rofi-drun to run desktop file) and it doesn't cause any error. Also no error when starting it from the terminal.~~

Also already tried running it with the absolute unix path instead of the Wine Windows path as well (found that in another comment on some issue here) but it doesn't work either unfortunately.

Same exact result every time. Browser opens, I can login but then the Fusion splashscreen just freezes.

Ok nvm. Idk what changed but I just rebooted my entire system and now it suddenly works. Guess "have you tried turning it off an on again" still applies to everything...

paradoxx42 commented 1 week ago

I am somehow still unable to log in. I am using Firefox from the arch repo and used the install.sh script to install fusion. The command ❯ find . -name "AdskIdentityManager.exe" returns: ./.fusion360/wineprefixes/default/drive_c/Program Files/Autodesk/webdeploy/production/b738a7f16475c27414ba957f7f0b2ee5b34e4e6d/Autodesk Identity Manager/AdskIdentityManager.exe

My adskidmgr-opener.desktop contains the following:

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

Any idea what could be going wrong here? I already rebooted as well...

wrennnnnn commented 6 days ago

I am somehow still unable to log in. I am using Firefox from the arch repo and used the install.sh script to install fusion. The command ❯ find . -name "AdskIdentityManager.exe" returns: ./.fusion360/wineprefixes/default/drive_c/Program Files/Autodesk/webdeploy/production/b738a7f16475c27414ba957f7f0b2ee5b34e4e6d/Autodesk Identity Manager/AdskIdentityManager.exe

My adskidmgr-opener.desktop contains the following:

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

Any idea what could be going wrong here? I already rebooted as well...

Your desktop exec after wine is wrong, it should be a windows style path, like Exec=env WINEPREFIX="/home/josua/.fusion360/wineprefixes/default" wine "C:\Program Files\Autodesk\webdeploy\production\b738a7f16475c27414ba957f7f0b2ee5b34e4e6d\Autodesk Identity Manager\AdskIdentityManager.exe" %u

paradoxx42 commented 6 days ago

I have read multiple times that I should be putting an absolute path, so I’m kinda puzzled at this point

Josua Schmidt +49 162 4916811 Nürnberg, Deutschland


Von: Wren @.> Gesendet: Tuesday, June 25, 2024 4:11:24 AM An: cryinkfly/Autodesk-Fusion-360-for-Linux @.> Cc: paradoxx42 @.>; Comment @.> Betreff: Re: [cryinkfly/Autodesk-Fusion-360-for-Linux] Login Webpage Response Doesn't Trigger Login within Fusion360 (Issue #418)

I am somehow still unable to log in. I am using Firefox from the arch repo and used the install.sh script to install fusion. The command ❯ find . -name "AdskIdentityManager.exe" returns: ./.fusion360/wineprefixes/default/drive_c/Program Files/Autodesk/webdeploy/production/b738a7f16475c27414ba957f7f0b2ee5b34e4e6d/Autodesk Identity Manager/AdskIdentityManager.exe

My adskidmgr-opener.desktop contains the following:

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

Any idea what could be going wrong here? I already rebooted as well...

Your desktop exec after wine is wrong, it should be a windows style path, like Exec=env WINEPREFIX="/home/josua/.fusion360/wineprefixes/default" wine "C:\Program Files\Autodesk\webdeploy\production\b738a7f16475c27414ba957f7f0b2ee5b34e4e6d\Autodesk Identity Manager\AdskIdentityManager.exe" %u

— Reply to this email directly, view it on GitHubhttps://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux/issues/418#issuecomment-2187816302, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BDSJS3ZG5AMQJYY6ZCH7WV3ZJDGUZAVCNFSM6AAAAABHSKSUWOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBXHAYTMMZQGI. You are receiving this because you commented.Message ID: @.***>

zakutin commented 5 days ago

I am somehow still unable to log in. I am using Firefox from the arch repo and used the install.sh script to install fusion. The command ❯ find . -name "AdskIdentityManager.exe" returns: ./.fusion360/wineprefixes/default/drive_c/Program Files/Autodesk/webdeploy/production/b738a7f16475c27414ba957f7f0b2ee5b34e4e6d/Autodesk Identity Manager/AdskIdentityManager.exe

My adskidmgr-opener.desktop contains the following:

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

Any idea what could be going wrong here? I already rebooted as well...

@paradoxx42, not sure if it is typo in your path, remove colon ":" after "drive_c"...

GruenSein commented 3 days ago

Is there any particular trick when using Bottles? I have changed the prefix and the path in the .desktop-file (tried absolute paths, windows-style paths etc.). The browser reliably opens but it never triggers the login so I am still stuck at the login window.