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

Fusion 360 unable to launch via terminal #259

Open Eccomi21 opened 1 year ago

Eccomi21 commented 1 year ago

Describe the bug Fusion360 cannot be launched

To Reproduce Steps to reproduce the behavior:

  1. Change directory to /home/eccomi/.local/share/applications/wine/Programs/Autodesk/Fusion360/custom/fusion360.desktop
  2. Execute fusion360.desktop with gtk-launch fusion360.desktop
  3. Error: gtk-launch: no such application fusion360.desktop
  4. Change directory to /home/eccomi/.fusion360/bin/launcher.sh
  5. Execute launcher.sh with sh launcher.sh
  6. Launcher opens and fetches update
  7. GTK Fails to load modules, Launcher is stuck on connecting to server at 100%
  8. press ok
  9. Error: ld.so: object '/usr/lib/libswmhack.so.0.0' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
  10. Error: wine: invalid directory in WINEPREFIX: not an absolute path

Expected behavior fusion360 should launch

Desktop (please complete the following information):

Additional context Pastebin console output

fusion fusion2

Eccomi21 commented 1 year ago

I have since removed the GTK warnings by installing kde-gtk-config but that wasn't a real concern to me to begin with

solarft commented 1 year ago

i read the contents of the desktop file, it looks like it executes ~/.fusion360/wineprefixes/default/box-run.sh, which the contents are:

#!/bin/bash
WP_BOX='/home/user/.fusion360/wineprefixes/default' . /home/user/.fusion360/bin/launcher.sh

I ran it, and I didn't get your 10th step anymore, it now runs wine, but stops eventually: here are the logs, https://pastebin.com/MiYiA7G4

OS: Fedora 36 DE/WM: Gnome 42 Graphics card: GTX 1650 (nvidia 515.57)

Eccomi21 commented 1 year ago

trying to reinstall the program gives me this Error:

./install.sh: line 828: /tmp/fusion360/logs/wineprefixes.log: Not a directory
wget: missing URL
Usage: wget [OPTION]... [URL]...

Try `wget --help' for more options.
mv: cannot stat 'Fusion360installer.exe': No such file or directory
rmdir: failed to remove '/drive_c/users/eccomi/Downloads/Fusion360installer.exe': No such file or directory
cp: cannot create regular file '/drive_c/users/eccomi/Downloads': No such file or directory
ERROR: ld.so: object '/usr/lib/libswmhack.so.0.0' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
wine: invalid directory  in WINEPREFIX: not an absolute path
./install.sh: line 403: kill: (7946) - No such process
ERROR: ld.so: object '/usr/lib/libswmhack.so.0.0' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
wine: invalid directory  in WINEPREFIX: not an absolute path
./install.sh: line 414: kill: (8151) - No such process

It seems to me that it has something to do with wineprefixes for me... @solarft looking at the wineprefixes folder in ~/.fusion360/wineprefixes reveals that it is empty for me. I am so lost...

solarft commented 1 year ago

trying to reinstall the program gives me this Error:

./install.sh: line 828: /tmp/fusion360/logs/wineprefixes.log: Not a directory
wget: missing URL
Usage: wget [OPTION]... [URL]...

Try `wget --help' for more options.
mv: cannot stat 'Fusion360installer.exe': No such file or directory
rmdir: failed to remove '/drive_c/users/eccomi/Downloads/Fusion360installer.exe': No such file or directory
cp: cannot create regular file '/drive_c/users/eccomi/Downloads': No such file or directory
ERROR: ld.so: object '/usr/lib/libswmhack.so.0.0' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
wine: invalid directory  in WINEPREFIX: not an absolute path
./install.sh: line 403: kill: (7946) - No such process
ERROR: ld.so: object '/usr/lib/libswmhack.so.0.0' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
wine: invalid directory  in WINEPREFIX: not an absolute path
./install.sh: line 414: kill: (8151) - No such process

It seems to me that it has something to do with wineprefixes for me... @solarft looking at the wineprefixes folder in ~/.fusion360/wineprefixes reveals that it is empty for me. I am so lost...

I have also got that before, what works for me is removing ~/.fusion360 and /tmp/fusion360, desktop files and then executing the install script again.

Eccomi21 commented 1 year ago
==== AUTHENTICATING FOR org.freedesktop.policykit.exec ====
Authentication is needed to run `/usr/bin/sudo' as the super user
Authenticating as: eccomi
Password: 
polkit-agent-helper-1: error response to PolicyKit daemon: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: No session for cookie
==== AUTHENTICATION FAILED ====
Error executing command as another user: Not authorized

Cannot even do that right anymore because apparently i do not know my own password. (I do i triple checked) Something is fucked, maybe it has to do with arch because arch changed the structure of its wxwidget stuff but thats a pure assumption

lggomez commented 1 year ago

It seems to me that it has something to do with wineprefixes for me... @solarft looking at the wineprefixes folder in ~/.fusion360/wineprefixes reveals that it is empty for me. I am so lost...

I have also got that before, what works for me is removing ~/.fusion360 and /tmp/fusion360, desktop files and then executing the install script again.

I was having the same WINEPREFIX error and this did the trick for me; I ran the Fusion 360 install for the first time on a vanilla wine without any extra dependencies so everything was fetched and set up on the first install. The second time only installed Fusion per se, and I was able to run it without problems

dardardario commented 5 months ago

Hi, I'm running into the same issue, could you provide some more details on what you did to get it working @lggomez? What did you do to only install fusion360 the second time?

Here's what I'm getting from trying to run the box-run.sh script:

>> ./wineprefixes/default/box-run.sh 
--2024-01-29 23:51:38--  https://raw.githubusercontent.com/cryinkfly/Autodesk-Fusion-360-for-Linux/main/files/builds/stable-branch/bin/build-version.txt
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 2606:50c0:8000::154, 2606:50c0:8003::154, 2606:50c0:8002::154, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|2606:50c0:8000::154|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 20 [text/plain]
Saving to: ‘/tmp/fusion360/build-version.txt’

build-version.txt       100%[==============================>]      20  --.-KB/s    in 0s      

Last-modified header missing -- time-stamps turned off.
2024-01-29 23:51:38 (1.12 MB/s) - ‘/tmp/fusion360/build-version.txt’ saved [20/20]

Online Build-Version: 2.0.17228
Online Insider-Build-Version: 2.0.17228
The version.txt file not exist!
EN
wine: could not open working directory L"unix\\home\\dario\\.fusion360\\", starting in the Windows directory.
Application could not be started, or no application associated with the specified file.
ShellExecuteEx failed: File not found.