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

Identity manager spawns mutliple processes but doesnt unlock app #387

Open jimothyr opened 4 months ago

jimothyr commented 4 months ago

Describe the bug Ubuntu 23.10 wine 9.0 in x11, installer works well, app opens to sign in screen. The web browser opens and allows log in to Autodesk, then the id manager fails to authenticate the running app which freezes until the adski mgr prcesses are closed. AdskidentityManager.exe creates multiple processes and adds more as time goes on. Fusion window has no close icon until idmgr processes are killed.

image

To Reproduce Steps to reproduce the behavior:

  1. install with script
  2. open from desktop shortcut / launcher
  3. click sign in link
  4. log in to Autodesk
  5. click token link
  6. open link with system handler
  7. .=

Expected behavior app is authenticated and continues to launch

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

jimothyr commented 4 months ago

possible duplicate of https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux/issues/385 and https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux/issues/386

Farouk123456 commented 4 months ago

if the sign in button doesnt work then its likely the mimtype handler isn't handling the adskid link that handels the login you can try copying that link by inspecting the login button and running:

env ROOTFOLDER=~/.fusion360 WINEPREFIX="/wineprefixes/default" wine "C:\Program Files\Autodesk\webdeploy\production\99249ee497b13684a43f5bacd5f1f09974049c6b\Autodesk Identity Manager\AdskIdentityManager.exe" [adskid link]

example:

env ROOTFOLDER=~/.fusion360 WINEPREFIX=/home/farouk/.fusion360/wineprefixes/default wine /home/farouk/.fusion360/wineprefixes/default/drive_c/Program\ Files/Autodesk/webdeploy/production/99249ee497b13684a43f5bacd5f1f09974049c6b/Autodesk\ Identity\ Manager/AdskIdentityManager.exe "adskidmgr:/login?code=kfeIty8io0Wr-SCPg7Pi2sXFbNkCCHXj0XxQOKvc&state=VzRPelVCUnJDVXRsVlJJZ0FSYnY1clJJS01IZTdkWHAuM3hURTF2dW5sbWJueWRCeS1MdElBQWh5VEFaN0FqM3pSRlh1LUswV29Lby51c2VyLXByb2ZpbGUlM0FyZWFkJTIwdXNlciUzQXJlYWQlMjB1c2VyJTNBd3JpdGUlMjB2aWV3YWJsZXMlM0FyZWFkJTIwZGF0YSUzQXJlYWQlMjBkYXRhJTNBd3JpdGUlMjBkYXRhJTNBY3JlYXRlJTIwZGF0YSUzQXNlYXJjaCUyMGJ1Y2tldCUzQWNyZWF0ZSUyMGJ1Y2tldCUzQXJlYWQlMjBidWNrZXQlM0F1cGRhdGUlMjBidWNrZXQlM0FkZWxldGUlMjBjb2RlJTNBYWxsJTIwYWNjb3VudCUzQXJlYWQlMjBhY2NvdW50JTNBd3JpdGUlMjBvcGVuaWQlMjBkZXZpY2Vfc3NvLnVzZV9hbHRlcm5hdGl2ZV9wcm9kdWN0X3BhdGg="

jimothyr commented 4 months ago

after some jiggling, this seems to have worked... my folder name was different (obviously) , thank you for this.. Is there any way of getting this working in the build? i wouldn't know where to start to assist here!!

cjwhitedev commented 4 months ago

this worked for me as well, thank you!

Farouk123456 commented 4 months ago

Maybe this works on other Linux devices but on mine the adskid-mgr.desktop file doesn't get used to open this link which is the problem.

in thread #381 I mentioned this as well, and they seemingly fixed it, so I'm not sure why it didn't work for you !

jimothyr commented 4 months ago

looks like the desktop link has the wrong file name to the path to the idmgr executable

the /webdeploy/xxxxxx number is different on for me than was in the build version.. below is my updated version.. this seems to work now.

image

Vanilla009 commented 4 months ago

This didn't work for me. I tried the command env ROOTFOLDER=~/.fusion360 WINEPREFIX="/home/james/.fusion360/wineprefixes/default" wine "C:/Program Files/Autodesk/webdeploy/production/57cd45aa09be2d79663784069561ec17eda99ca8/Autodesk Identity Manager/AdskidentityManager.exe --process_name Autodesk.IDSDK.DefaultProcess-v2-server_name Autodesk.IDSDK.DefaultServer-v2" adskidmgr:/login?code=T5qGpAc23up_szo9KPgnSFt-lnkUy7GWP89psqt9&state=VzRPelVCUnJDVXRsVlJJZ0FSYnY1clJJS01IZTdkWHAueEpzblNIVHd6d2kzZGRqT0k4ajhZNzZHVVctdkY4a054YXFyYW1DalVONC51c2VyLXByb2ZpbGUlM0FyZWFkJTIwdXNlciUzQXJlYWQlMjB1c2VyJTNBd3JpdGUlMjB2aWV3YWJsZXMlM0FyZWFkJTIwZGF0YSUzQXJlYWQlMjBkYXRhJTNBd3JpdGUlMjBkYXRhJTNBY3JlYXRlJTIwZGF0YSUzQXNlYXJjaCUyMGJ1Y2tldCUzQWNyZWF0ZSUyMGJ1Y2tldCUzQXJlYWQlMjBidWNrZXQlM0F1cGRhdGUlMjBidWNrZXQlM0FkZWxldGUlMjBjb2RlJTNBYWxsJTIwYWNjb3VudCUzQXJlYWQlMjBhY2NvdW50JTNBd3JpdGUlMjBvcGVuaWQlMjBkZXZpY2Vfc3NvLnVzZV9hbHRlcm5hdGl2ZV9wcm9kdWN0X3BhdGg= and it gave me the error wine: failed to open "C:/Program Files/Autodesk/webdeploy/production/57cd45aa09be2d79663784069561ec17eda99ca8/Autodesk Identity Manager/AdskidentityManager.exe --process_name Autodesk.IDSDK.DefaultProcess-v2-server_name Autodesk.IDSDK.DefaultServer-v2": c0000135 but doesn't open a new line. If I hit enter, I get [1]+ Exit 53 env ROOTFOLDER=~/.fusion360 WINEPREFIX="/home/james/.fusion360/wineprefixes/default" wine "C:/Program Files/Autodesk/webdeploy/production/57cd45aa09be2d79663784069561ec17eda99ca8/Autodesk Identity Manager/AdskidentityManager.exe --process_name Autodesk.IDSDK.DefaultProcess-v2-server_name Autodesk.IDSDK.DefaultServer-v2" adskidmgr:/login?code=T5qGpAc23up_szo9KPgnSFt-lnkUy7GWP89psqt9

jimothyr commented 4 months ago

it took me a few runs at it.

  1. the askidmgr:code bit needs to be in quotes 2.I had to try various combos of full path, relative path for wine prefix, , quoted and not quoted. to be honest I am not 100% sure which combo worked!
Vanilla009 commented 4 months ago

Tried it in quotes and got this: wine: could not open working directory L"unix\\home\\james\\", starting in the Windows directory. wine: could not open working directory L"unix\\home\\james\\", starting in the Windows directory. 0810:err:winediag:ntlm_check_version ntlm_auth was not found. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution. 0810:err:ntlm:ntlm_LsaApInitializePackage no NTLM support, expect problems 0810:fixme:file:NtLockFile I/O completion on lock not implemented yet 0810:fixme:win:RegisterPowerSettingNotification (000000000003010E,{02731015-4510-4526-99e6-e5a17ebd1aea},0): stub 0810:fixme:sync:SetWaitableTimerEx (00000000000000E0, 00007FFFFE1FCD08, 0, 0000000000000000, 0000000000000000, 0000000000000000, 32) semi-stub 0810:fixme:win:UnregisterPowerSettingNotification (00000000DEADBEEF): stub

robert-stevenson-1 commented 4 months ago

looks like the desktop link has the wrong file name to the path to the idmgr executable

the /webdeploy/xxxxxx number is different on for me than was in the build version.. below is my updated version.. this seems to work now.

image

This was the fix for me. Inside adskidmgr-opener.desktop, my FOLDER in the path after .../default" wine "C:\Program Files\Autodesk\webdeploy\production\{FOLDER}\... did not match correctly.

(I found adskidmgr-opener.desktop in /home/robert/.local/share/applications, in case anyone was looking for it)

The behaviour after was what is expected (kind of): Click signing => Browser Opens => Sign in completed => Open the Callback link => Focus returns to fusion

Not sure how to go about fixing it, as im not sure why it was incorrect.

Vanilla009 commented 4 months ago

looks like the desktop link has the wrong file name to the path to the idmgr executable the /webdeploy/xxxxxx number is different on for me than was in the build version.. below is my updated version.. this seems to work now. image

This was the fix for me. Inside adskidmgr-opener.desktop, my FOLDER in the path after .../default" wine "C:\Program Files\Autodesk\webdeploy\production\{FOLDER}\... did not match correctly.

(I found adskidmgr-opener.desktop in /home/robert/.local/share/applications, in case anyone was looking for it)

The behaviour after was what is expected (kind of): Click signing => Browser Opens => Sign in completed => Open the Callback link => Focus returns to fusion

  • The "kind of" behaviour is that fusion crashed, but after relaunching fusion and waiting a bit, the program is running now

Not sure how to go about fixing it, as im not sure why it was incorrect.

That worked, thank you!

mtthw-meyer commented 4 months ago

That does it. Gotta fix adskidmgr-opener.desktop

IpsumDominum commented 4 months ago

Hi guys,

I've done the .desktop fix, but unfortunately still not working. This is what my .desktop looks like

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

Using the manual command:

env ROOTFOLDER=~/.fusion360 WINEPREFIX="/home/mycomputername/.fusion360/wineprefixes/default" wine "C:/Program Files/Autodesk/webdeploy/production/57cd45aa09be2d79663784069561ec17eda99ca8/Autodesk Identity Manager/AdskidentityManager.exe --process_name Autodesk.IDSDK.DefaultProcess-v2-server_name Autodesk.IDSDK.DefaultServer-v2" "adskidmgr:/login?code=thecode"

Does not work for me. I get the same error

wine: could not open working directory L"unix\\home\\ipsum\\", starting in the Windows directory. wine: could not open working directory L"unix\\home\\ipsum\\", starting in the Windows directory. 0810:err:winediag:ntlm_check_version ntlm_auth was not found. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution. 0810:err:ntlm:ntlm_LsaApInitializePackage no NTLM support, expect problems 0810:fixme:file:NtLockFile I/O completion on lock not implemented yet 0810:fixme:win:RegisterPowerSettingNotification (000000000003010E,{02731015-4510-4526-99e6-e5a17ebd1aea},0): stub 0810:fixme:sync:SetWaitableTimerEx (00000000000000E0, 00007FFFFE1FCD08, 0, 0000000000000000, 0000000000000000, 0000000000000000, 32) semi-stub 0810:fixme:win:UnregisterPowerSettingNotification (00000000DEADBEEF): stub 

@Vanilla009 Did you have to do anything extra to get it working in the end besides modifying the .desktop file?

Vortetty commented 4 months ago

using

WINEPREFIX="/home/ortettyv/.fusion360/wineprefixes/default" wine "/home/ortettyv/.fusion360/wineprefixes/default/drive_c/Program Files/Autodesk/webdeploy/production/57cd45aa09be2d79663784069561ec17eda99ca8/Autodesk Identity Manager/AdskIdentityManager.exe"

seems to work well, after restarting fusion once running it

alextrical commented 4 months ago

For anyone having major issues logging in please try the Proof of concept script that has been tried and tested to work. The script to paste into your terminal can be found here https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux/issues/381#issuecomment-1925793923

The other issue we will all be having is that Autodesk change the numbers after the 'Production folder' with every update, this results in the link changing every couple of weeks. Im aiming to get a fix for that in the next couple of days.

For now, please check the folder inside of "C:\Program Files\Autodesk\webdeploy\production\" and change the script accordingly

Vanilla009 commented 4 months ago
--process_name Autodesk.IDSDK.DefaultProcess-v2-server_name Autodesk.IDSDK.DefaultServer-v2

I think you need to remove the --process_name Autodesk.IDSDK.DefaultProcess-v2-server_name Autodesk.IDSDK.DefaultServer-v2 from the command.

Sjgharib commented 4 months ago

My problem is that I can't even get it to open firefox. I'm using Wine 9.2 on U 23.10. Did you guys do anything special to get it to open the browser in the first place?

ZachCharlick commented 4 months ago

if the sign in button doesnt work then its likely the mimtype handler isn't handling the adskid link that handels the login you can try copying that link by inspecting the login button and running:

env ROOTFOLDER=~/.fusion360 WINEPREFIX="/wineprefixes/default" wine "C:\Program Files\Autodesk\webdeploy\production\99249ee497b13684a43f5bacd5f1f09974049c6b\Autodesk Identity Manager\AdskIdentityManager.exe" [adskid link]

example:

env ROOTFOLDER=~/.fusion360 WINEPREFIX=/home/farouk/.fusion360/wineprefixes/default wine /home/farouk/.fusion360/wineprefixes/default/drive_c/Program\ Files/Autodesk/webdeploy/production/99249ee497b13684a43f5bacd5f1f09974049c6b/Autodesk\ Identity\ Manager/AdskIdentityManager.exe "adskidmgr:/login?code=kfeIty8io0Wr-SCPg7Pi2sXFbNkCCHXj0XxQOKvc&state=VzRPelVCUnJDVXRsVlJJZ0FSYnY1clJJS01IZTdkWHAuM3hURTF2dW5sbWJueWRCeS1MdElBQWh5VEFaN0FqM3pSRlh1LUswV29Lby51c2VyLXByb2ZpbGUlM0FyZWFkJTIwdXNlciUzQXJlYWQlMjB1c2VyJTNBd3JpdGUlMjB2aWV3YWJsZXMlM0FyZWFkJTIwZGF0YSUzQXJlYWQlMjBkYXRhJTNBd3JpdGUlMjBkYXRhJTNBY3JlYXRlJTIwZGF0YSUzQXNlYXJjaCUyMGJ1Y2tldCUzQWNyZWF0ZSUyMGJ1Y2tldCUzQXJlYWQlMjBidWNrZXQlM0F1cGRhdGUlMjBidWNrZXQlM0FkZWxldGUlMjBjb2RlJTNBYWxsJTIwYWNjb3VudCUzQXJlYWQlMjBhY2NvdW50JTNBd3JpdGUlMjBvcGVuaWQlMjBkZXZpY2Vfc3NvLnVzZV9hbHRlcm5hdGl2ZV9wcm9kdWN0X3BhdGg="

I am experiencing this same problem: how do you "[copy] that link by inspecting the login button"? Nothing opens in Firefox or any browser, and right clicking on the Autodesk Fusion application link doesn't have any response.

ZachCharlick commented 4 months ago

My problem is that I can't even get it to open firefox. I'm using Wine 9.2 on U 23.10. Did you guys do anything special to get it to open the browser in the first place?

I'm in the same boat - nothing opens in a browser at all

joaomamede commented 3 months ago

My problem is that I can't even get it to open firefox. I'm using Wine 9.2 on U 23.10. Did you guys do anything special to get it to open the browser in the first place?

I'm in the same boat - nothing opens in a browser at all

Same here. I tried to install firefox with winetricks and make the regedit use it and no luck.