Open DragonflyRobotics opened 4 months ago
Could be related to issue #391, try to check if mimetype handler point to correct location.
I just got the same issue. Just checked the issue mentioned above and not sure what to do to fix it (I'm new to github documentation, apologies). It also does not let me kill the program after it opens the browser (even with killall), forcing me to restart my os to relaunch it.
Version number of Autodesk Fusion 360: Latest Graphics card model + Graphics card driver (Version number) - AMD 6800S w/ latest stock Arch Drivers Operating system (OpenSUSE Leap 15.3, Fedora 34, ...) - Arch Desktop environment (XFCE 4.16, Gnome 40, ...) - Hyprland DXVK- or OpenGL-Mode - Not sure on how to find that out.
nano $HOME/.local/share/applications/adskidmgr-opener.desktop
check, that "C:\Program Files\Autodesk\webdeploy\production\57cd45aa09be2d79663784069561ec17eda99ca8\Autodesk Identity Manager\AdskIdentityManager.exe"
actually point to correct folder 57cd45aa09be2d79663784069561ec17eda99ca8
will probably be different.
I've updated that and it still hasn't worked. It simply just opens the website, lets me log in, then never actually continues on the Autodesk Fusion program.
57cd45aa09be2d79663784069561ec17eda99ca8
Did You fill Your folder name? From there: ~/.fusion360/wineprefixes/default/drive_c/Program Files/Autodesk/webdeploy/production/
?
What do you mean by fill my folder name?
that long string is different for each instalation/update so you have to check above directory a fill correct folder name into
$HOME/.local/share/applications/adskidmgr-opener.desktop
See on image, for me its 57cd45aa09be2d79663784069561ec17eda99ca8
which is latest version.
I see, in my file system, I have nothing past ~/.fusion360/wineprefixes/default/
.
How did You install Fusion? That path depends on Your choice of path where to install Fusion
I see... I'll just try reinstalling it from scratch and not change the path then.... (Ill post a comment on the result after that is done).
That should not be necessary, check $HOME/.local/share/applications/adskidmgr-opener.desktop
, line with WINEPREFIX=
should contain path to Your installation
hi. i was also encounter this problem but i fixed it by just edit the adskidmgr-opener.desktop file
... wine "C:\Program Files\Autodesk\webdeploy\production\{unmatched version}\Autodesk Identity Manager\AdskIdentityManager.exe" %u
to
... wine "C:\Program Files\Autodesk\webdeploy\production\57cd45aa09be2d79663784069561ec17eda99ca8\Autodesk Identity Manager\AdskIdentityManager.exe" %u
thank you @Tony763
Hello, I appreciate all the help. I tried what @gittawat and @Tony736 suggested and changed the version to match the folder under my wineprefix and it still didn't open any browser. Is there any way to check if my container has a default browser set which this identity manager can open to?
Hi all! I also have an issue with logins. I followed the above suggestions to change the path to the executable wine is supposed to invoke. Unfortunately, after signing in. it asks if I want to use the handler. I hit 'allow always for this type'. The other window with fusion360 does not change at all, and I actually cannot close it either. Is there any known bugs with a wayland compositor? (I am using hyprland).
Hi @DragonflyRobotics, which browser do you have set as default? For me, only Firefox installed from DEB package works. Firefox in snap and chrome crash while opening window to sign in.
Hi @DrewRidley I run Fusion on Wayland and I can sign in without issue (Ubuntu 23.10).
I'm also not able to log in. No browser window opens when clicking the login button. But I can open a linux browser window from the Windows prompt.
~/.fusion360/wineprefixes/default$ WINEPREFIX=$PWD wine cmd
Microsoft Windows 10.0.19043
Z:\home\zzz\.fusion360\wineprefixes\default>c:
c:\>cd windows
c:\windows>winebrowser.exe https://google.com
Opening in existing browser session.
For my case, this does open a browser window. I believe this winebrowser.exe is also used in the authentication workflow. winebrowser.exe is registered as the http/https handler in the registry.
Out of curiosity I upgraded the msedgewebview version to 121.0.2277.128
using the download URL
SP_WEBVIEW2_INSTALLER_URL="https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/dcac5baa-e96b-47e9-8532-b11345db2b0d/MicrosoftEdgeWebView2RuntimeInstallerX64.exe
but this did not change anything.
I just tried running the installation process on an Ubuntu 22.04 laptop. I installed YAD, ran the script, then changed the ID in the desktop file. It still doesn't open the login window. I tried what @alexswerner suggested by running the winebrowser.exe and that worked beautifully. There is not container or Distrobox to interfere with this install since it was on my base system.
Actually, rerunning it, it seems my error message is slightly different. At the very end, I get:
[6620:6620:0223/103522.374109:ERROR:socket.cc(120)] recvmsg: Connection reset by peer (104)
Here is the full log:
@Tony763 I appreciate your help because I got it working!!! I purged my Snap Firefox install, installed it with the debian package, set my default browser to firefox and it worked. I logged in.
I can trace that winebrowser.exe
is actually called in my case with
$ strace --no-abbrev --string-limit=1024 -f -o /tmp/strace.log -e trace=execve .fusion360/wineprefixes/default/box-run.sh 2>&1 | grep developer.api.autodesk
In /tmp/strace.log
I found a line like
execve("/opt/wine-staging/bin/wine64-preloader", ["/opt/wine-staging/bin/wine64-pre"..., "/opt/wine-staging/bin/wine64", "C:\\windows\\system32\\winebrowser." ....
It even proceeds correctly and executes chrome (probably in a snap). But no window opens. I tried switching the default browser to firefox (also probably in a snap) with the same result. Unclear why. But the above command has the right URL to proceed. I can manually put it in the browser and get to the page where I can successfully authenticate.
Being redirected back does not work for me either. Apparently the mime type has changed from adskidmgr
to adsk.idmgr
. When I updated the xdg settings (xdg-mime default adskidmgr-opener.desktop x-scheme-handler/adsk.idmgr
) and the handler in ~/.local/share/applications/adskidmgr-opener.desktop
I get the Fusion to come to pop up. But still still not log in.
So in summary, there is a bug in opening the browser window which can be worked around with strace. Additionally the mime types seems not to match and the fix is straight forward to replace adskidmgr
with adsk.idmgr
. But this still does not get us there.
I manually pasted the url from strace into firefox and things worked out. This firefox is even in a snap package. Also the mime type was the old one.
Hi @alexswerner, try firefox from DEB package, it worked for me, every other browser just crash.
Did the related bug fix in wine 9.3 released yesterday fix the issue? https://bugs.winehq.org/show_bug.cgi?id=54794
I did not test it yesterday as new version was not published as package, yet. But I think, fix was merged much soner so mention in changelog was just backloging.
Oh. Bummer.
Uh, just tried wine 9.3. It breaks Fusion :man_facepalming: Only black window appear and after a while it crash.
I am seeing the same thing. This used to work incredibly well for a couple of days before the update. I am on Winen 9.3 Staging.
Yep, me too. Just filling bug on wine.
https://bugs.winehq.org/show_bug.cgi?id=56373 I will compare logs from 9.2
BTW, returning back to 9.2 fixes issue.
(sudo apt install wine-staging-i386=9.2~mantic-1 wine-staging-amd64=9.2~mantic-1 wine-staging=9.2~mantic-1
)
Having spent a couple hours fiddling this evening trying to get things up and running, confirm @Tony763 s result that rolling back to Wine 9.2 works (I now have it running on Ubuntu 22.04), 9.3 still seems busted.
I am on Wine 9.1 and it doesn't seem to work. Followed every recommendation in this thread and I still cannot get past the login screen.
I believe the error is related to two things.
To solve 1.
I installed chrome on wine.... using offline installer. export WINEPREFIX="/home/ricardo/.fusion360/wineprefixes/default" wine ChromeStandaloneSetup64.exe
I edit register "HKEY_CLASSES_ROOT\http\shell\open\command" and "HKEY_CLASSES_ROOT\https\shell\open\command" And point to "C:\Program Files\Google\Chrome\Application\chrome.exe" "%1"
To solve 2.
I tried to add desktop entry as explained in: https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux/issues/391#issuecomment-1952768578 But dont work.
What I did was copy the link after logging in and manually run the
wine "C:\Program Files\Autodesk\webdeploy\production\0a22ca515421cec8a3addbf5f00fde68499915d7\Autodesk Identity Manager\AdskIdentityManager.exe" "adskidmgr:/login?code=xxxxxxxxxxxxx"
Hi @ricardojlrufino, just to by sure, for error 2. did you edit resulting desktop entry and removed /
and ^M
as described? Code in comment #391 is mean to report bug not to show a correct way how to do it :slightly_smiling_face:
HI @Tony763 , I didn't make this adjustment, it went unnoticed.
Downgrade Wine-staging to 9.2 and it still doesn't work. Seems like when I hit the sign in button it just locks up. The web browser does pop up and I do sign up but nothing happens when it tries to redirect.
I think you might fix it with my comment in #396
thanks!! i can fix it
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 as someone stated that worked for them...
Describe the bug As far as I am aware, the new desktop entry should fix the login prompt issue with Fusion. However, here is what happens when I attempt to log in:
It gets stuck on this "Check the Browser" page and there is no login page that opens. Not sure if I am missing a step or a workaround to this issue. I am running on an Arch distrobox container with GPU passthrough. I ensured that a browser is correctly installed (Firefox) and it was open before I ran my application. Here is the full console output.
Desktop (please complete the following information):