Thermionix / fusion360

This is the snap for Autodesk Fusion 360
MIT License
162 stars 14 forks source link

Missing FusionLauncher.exe.ini after install #30

Open arsenixprime opened 3 months ago

arsenixprime commented 3 months ago

I am getting an error after install that is blocking launch. "Configuration file FusionLauncher.exe.ini is missing or incomplete".

There is a note about this on the autodesk site: https://www.autodesk.com/support/technical/article/caas/sfdcarticles/sfdcarticles/Error-Configuration-file-Fusion-Launcher-exe-ini-is-missing-or-incomplete-when-launching-Fusion-360.html

They recommend "resetting" fusion360 using the service utility.

2024-03-29_09-09

Any ideas?

Appreciate the work on this project!

Ghostbird commented 3 months ago

I've encountered the same problem. Reinstalling the application didn't work, the same error reoccurred.

lucaci32u4 commented 3 months ago

I am having the same issue. Edge also shows an error during installation like in !29. Reinstalling does not fix the issue.

johnnytolengo commented 2 months ago

the same issue here image

androuino commented 2 months ago

the same error here.

My os info from lsb_release -a command

No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.4 LTS Release: 22.04 Codename: jammy Kernel: Linux 6.5.0-27-generic Architecture: x86-64

virgilHirtz commented 2 months ago

Received the same error.

stolmen commented 2 months ago

Yup same error here

ed@fedora:~$ lsb_release -a
LSB Version:    n/a
Distributor ID: Fedora
Description:    Fedora Linux 39 (Workstation Edition)
Release:    39
Codename:   n/a
ed@fedora:~$ uname -a
Linux fedora 6.7.10-200.fc39.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Mar 18 18:56:52 UTC 2024 x86_64 GNU/Linux
GWXerxes commented 2 months ago

Having the same issue as well. Ubuntu 23.10

FusionLauncher.exe.ini error as well as Edge errors during install. The contents of the FusionLauncher.exe.ini file are as follows

This is a place-holder file which is intended to be updated by the streamer.

I'll attempt troubleshooting when I can, but I wanted to add to the list of people experiencing the issue

arsenixprime commented 2 months ago

This issue is discussed here at length: https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux/issues/408

The install is not completing and Fusion360.exe is being deleted during the installation. Apparently this is due to a "rebranding function" that renames all "Fusion 360" shortcuts to just "Fusion".

The poster made a hacky script that monitors the log and kills streamer.exe as soon as it starts this process, leaving the app still intact enough to run.

Trying to see if I can get that same technique to work.

arsenixprime commented 2 months ago

I managed I believe get the script to run but it doesn't appear to have worked. The damage seems like it was already done despite killing streamer.exe

arsenixprime commented 2 months ago

Its unclear what it is doing during this "renaming process" but something partway through is throwing an exception (OSError: [WinError -2147024809] Invalid parameter). I'm not finding anything looking around online for similar errors. I attached the log.

log.txt

It would be helpful if we could find a successful installation log file to compare.

cvanelteren commented 2 months ago

same issue here

FirstForest20 commented 2 months ago

Same issue here. Fingers crossed for resolving it soon

Thermionix commented 2 months ago

fusion360 installer currently failing due to wine issue, I've pushed a merge request to winehq

GerritVK commented 2 months ago

Looks like this has been merged in. Are there changes to this repo needed to use the new version?

Thermionix commented 2 months ago

Just awaiting wine-9.8 release binaries

stylesuxx commented 2 months ago

Just a heads up: wine-9.8 binaries are available since yesterday if I understand correctly.

Thermionix commented 2 months ago

Screenshot_20240505_115516

Updated repo, tested locally with Firefox, callback to adskidmgr-opener working

Thermionix commented 2 months ago

Attempting to solve ERROR: You need to connect this snap to the wine runtime snap. snap connections on the published snap via Interface auto-connection mechanism

Thermionix commented 2 months ago

auto-connection-request-for-wine-platform-9-stable-devel-staging-snaps

Thermionix commented 2 months ago

Ok, updated setup instructions whilst awaiting for global auto connection;

$ sudo snap install --edge fusion360 --devmode
sudo snap connect fusion360:wine-9-devel wine-platform-9-devel-core22
sudo snap connect fusion360:wine-runtime-c22 wine-platform-runtime-core22
fusion360
johnnytolengo commented 2 months ago

@Thermionix your recipe worked on my Ubuntu 22.04 with "apt install --install-recommends winehq-devel" Thanks!

mrkrynmdsco commented 2 months ago

Ok, updated setup instructions whilst awaiting for global auto connection;

$ sudo snap install --edge fusion360 --devmode
sudo snap connect fusion360:wine-9-devel wine-platform-9-devel-core22
sudo snap connect fusion360:wine-runtime-c22 wine-platform-runtime-core22
fusion360

hi, after signing in it does not seem to re-direct properly and cannot locate the app. image

Thermionix commented 2 months ago

so the post-install script sets this up,

can you check the output of cat ~/.local/share/applications/adskidmgr-opener.desktop

e.g. mine:

$ cat ~/.local/share/applications/adskidmgr-opener.desktop
[Desktop Entry]
Type=Application
Name=adskidmgr Scheme Handler
Exec=sh -c 'fusion360.wine "$(find /home/thermionix/snap/fusion360/common/.wine -name "AdskIdentityManager.exe" | head -1 | xargs -I '{}' echo {})" "%u"'
StartupNotify=false
MimeType=x-scheme-handler/adskidmgr;

The line xdg-mime default adskidmgr-opener.desktop x-scheme-handler/adskidmgr registers this as the default handler. This is the second area which may have not worked

Thermionix commented 2 months ago

and check output of xdg-mime query default x-scheme-handler/adskidmgr

$ xdg-mime query default x-scheme-handler/adskidmgr
adskidmgr-opener.desktop
dotvezz commented 2 months ago

I'm seeing the same behavior as @mrkrynmdsco after logging in on my browser (With the same browser, Firefox).

 > xdg-mime query default x-scheme-handler/adskidmgr
adskidmgr-opener.desktop
 > cat ~/.local/share/applications/adskidmgr-opener.desktop
[Desktop Entry]
Type=Application
Name=adskidmgr Scheme Handler
Exec=sh -c 'fusion360.wine "$(find /home/ben/snap/fusion360/common/.wine -name "AdskIdentityManager.exe" | head -1 | xargs -I '{}' echo {})" "%u"'
StartupNotify=false
MimeType=x-scheme-handler/adskidmgr;
Thermionix commented 2 months ago

can you please try this & relaunch firefox:

update-mime-database ~/.local/share/mime/
XDG_UTILS_DEBUG_LEVEL=2 xdg-mime query default x-scheme-handler/adskidmgr
dotvezz commented 2 months ago

Sadly no dice.

 > update-mime-database ~/.local/share/mime/
   XDG_UTILS_DEBUG_LEVEL=2 xdg-mime query default x-scheme-handler/adskidmgr
Directory '/home/ben/.local/share/mime/packages' does not exist!
Checking /home/ben/.config/mimeapps.list
Checking /home/ben/.local/share/applications/mimeapps.list
Checking /usr/share/applications/kde-mimeapps.list
Checking /home/ben/.local/share/applications/plasma-defaults.list and /home/ben/.local/share/applications/plasma-mimeinfo.cache
Checking /home/ben/.local/share/applications/defaults.list and /home/ben/.local/share/applications/mimeinfo.cache
Checking /home/ben/.local/share/flatpak/exports/share/applications/plasma-defaults.list and /home/ben/.local/share/flatpak/exports/share/applications/plasma-mimeinfo.cache
Checking /home/ben/.local/share/flatpak/exports/share/applications/defaults.list and /home/ben/.local/share/flatpak/exports/share/applications/mimeinfo.cache
Checking /var/lib/flatpak/exports/share/applications/plasma-defaults.list and /var/lib/flatpak/exports/share/applications/plasma-mimeinfo.cache
Checking /var/lib/flatpak/exports/share/applications/defaults.list and /var/lib/flatpak/exports/share/applications/mimeinfo.cache
Checking /usr/local/share/applications/plasma-defaults.list and /usr/local/share/applications/plasma-mimeinfo.cache
Checking /usr/local/share/applications/defaults.list and /usr/local/share/applications/mimeinfo.cache
Checking /usr/share/applications/plasma-defaults.list and /usr/share/applications/plasma-mimeinfo.cache
Checking /usr/share/applications/defaults.list and /usr/share/applications/mimeinfo.cache
Checking /var/lib/snapd/desktop/applications/plasma-defaults.list and /var/lib/snapd/desktop/applications/plasma-mimeinfo.cache
Checking /var/lib/snapd/desktop/applications/defaults.list and /var/lib/snapd/desktop/applications/mimeinfo.cache
 Checking /home/ben/.local/share/applications/adskidmgr-opener.desktop
   Select /home/ben/.local/share/applications/adskidmgr-opener.desktop [ -1 => 0 ]
adskidmgr-opener.desktop
 > pkill firefox

Tried again and got the same behavior.

Thermionix commented 2 months ago

I can't remember what I did the first time the askidmgr scheme prompted, but I believe I clicked something along the lines of allow content type 'askidmgr' and now within firefox: image

The issue maybe firefox ignoring ~/.config/mimeapps.list

Thermionix commented 2 months ago

From the ArchWiki - XDG_MIME_Applications - ~/.local/share/applications/mimeapps.list is deprecated (which firefox is reading) and the solution is: $ ln -s ~/.config/mimeapps.list ~/.local/share/applications/mimeapps.list

eruanno123 commented 2 months ago

I tried the solution with symbolic link and the redirection seems to work fine now.

Meanwhile, I see a lot of ERROR messages, that did not appear earlier.

ERROR: ld.so: object '/snap/fusion360/32/gnome-platform/$LIB/bindtextdomain.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.

This seems to be not an issue though for running the application.

stylesuxx commented 2 months ago

Firefox does not not prompt me at all after login. Chrome does prompt me, but the redirect simply does nothing, even not after hitting retry or symlinking the files. Is there any way the URL can be passed manually without the whole redirect mechanic?

smirgol commented 2 months ago

For me the redirect was also not working. What did work in the end was copying the redirect link from the browser login and executing what the .desktop file is supposed to do manually in the shell:

fusion360.wine "/home/myuser/snap/fusion360/common/.wine/drive_c/Program Files/Autodesk/webdeploy/production/35a60349b112668a59dd7bbcc68b2622875103f4/Autodesk Identity Manager/AdskIdentityManager.exe" "adskidmgr:/login?code=asdasdfsdfsdfsfsfsfsdffsdfsdfsfd="

Obviously replace adskidmgr:/login?code=asdasdfsdfsdfsfsfsfsdffsdfsdfsfd= with the link from the login in the browser and fetch the correct path to AdskIdentManager.exe with: find ~/snap/fusion360/common/.wine -name "AdskIdentityManager.exe" | head -1 | xargs -I '{}' echo {}

stylesuxx commented 2 months ago

@smirgol - thank you, this actually did work! Unfortunately fusion itself is absolutely unusable. I guess I'll come back in a couple of years again and see if they could be bothered to roll out proper Linux support.

@Thermionix thank you for your hard work on this project.

smirgol commented 2 months ago

Yeah fusion itself is a mess, always has been. While it now starts for me, I cannot save projects nor export any meshes, which renders it useless (again). sighs

Edit: That apparently can be fixed with this: https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux/issues/362#issuecomment-1889835832