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.95k stars 121 forks source link

Setup wizard stuck in a loop *solved* #137

Closed GoTVm closed 2 years ago

GoTVm commented 2 years ago

Describe the bug I used the all-in-one command. Once the setup wizard finishes the download, it starts the installation routine. It asks me which language I want Fusion to be installed in, then what graphic driver to use and then what distro I'm on. Once I select everything, it moves to terminal and, once it ends, it goes back to the beginning of the installation routine. Another thing I noticed is if I try to manually run the .sh file, it tells me there is an unexpected } somewhere. I don't know if that's supposed to happen, but I feel like it's worth mentioning.

To Reproduce I tried installing it as both graphic driver options, since I have an Intel GPU, whereas as distro I chose both Debian 11 and Ubuntu 20.04, all without success.

Expected behavior Proper installation.

Desktop (please complete the following information):

steveunixson commented 2 years ago

same on ubuntu 20.04

GoTVm commented 2 years ago

I got it to install by using the development branch instead of the stable branch, the one with flatpak. I installed everything manually (flatpak-...sh first and fusion...sh last), all without sudo. I installed it using Arch/Manjaro as a distro, though I'm on elementary. Anything else but Arch sends the installer into a loop. Once installed, you should find it in your home/.wineprefixes folder.

Though it is installed, it won't open. It will stay on a white page forever and never load. I'll try to install it the same way I did it today (using Arch instead of Ubuntu) with the stable version.

cryinkfly commented 2 years ago

First of all, thank you for your feedback. :+1:

But it still amazes me, since I only recently had the whole thing successfully installed under Linux Mint 20.2 and without any problems. 🙂

I'll take a look at everything. 🧐

GoTVm commented 2 years ago

I went back to square one: uninstalled everything to see if the stable-branch version works. I was getting a couple of issues with libraries when I launched Autodesk Fusion 360 (the terminal window that appears says I'm missing DXVA_video_decode_accelerator_win.cc, msvproc.dll and a couple more but I have no idea where to get them), and then it would go blank and crash after a while. It looks like a couple of other issues I found here, but none of them seem to help.

Right now I'm investigating my graphics driver, since there are no Intel HD 4600 Graphics drivers to be downloaded.

cryinkfly commented 2 years ago

If you have installed the newest mesa version?

GoTVm commented 2 years ago

Just did it: OpenGL version string: 3.0 Mesa 21.2.2

cryinkfly commented 2 years ago

So of course it could be that the servers of the winetricks packages were down again. This can also lead to these errors, as described above.

GoTVm commented 2 years ago

I've been trying for the past 14 hours, could they have been down for so long? I admit this is the first time I'm working with Wine seriously.

I'm currently trying to reinstall from the stable branch, using the all-in-one command, this time going with Debian 11 to see if it makes a change. I suspect choosing Arch might have made it work, but wasn't the best possible choice as I'm sure there are some underlying differences between Elementary OS and Arch.

EDIT: on another note, is it really necessary to download the Fusion360Installer.exe everytime I run the script? It's 1GB and I've done this like 15 times; it still downloads it even if it's sitting in the same folder.

cryinkfly commented 2 years ago

It has happened before.

Can you perhaps create a detailed log file for me by switching to the installation folder and executing the following command:

bash fusion360-setup-wizard.sh &> wine.error.log
GoTVm commented 2 years ago

I just restarted the installation, if it doesn't work I'll create the log.

Even if I uninstalled it completely before reinstalling the stable version, it still asked me if I wanted to install some components, update or uninstall. I even made sure nothing was left from the previous installation. Is that normal?

cryinkfly commented 2 years ago

Yes, this normal. You must delete the log-path file here: $HOME/.local/share/fusion360/logfiles/

GoTVm commented 2 years ago

Last installation didn't work (it prompted me to change the launcher script, but I don't know where it is since it doesn't appear if I search for Fusion 360), so I deleted log-path and it's currently running and dumping all info in the wine.error.log. I changed the default installation path to the Fusion360 folder the script creates.

GoTVm commented 2 years ago

Installation is complete again. It once again prompts me to change the launcher but doesn't specify how to. Wine also reported a streamer.exe crash twice. Before closing the last prompt I'll have to figure out how to change the launcher path or I won't be able to open it.

cryinkfly commented 2 years ago

I'll take a look at everything again and see if a few things may need to be changed.

Bildschirmfoto_2021-11-21_10-54-36

GoTVm commented 2 years ago

wine.error.log This is the wine.error.log. Hopefully it's useful. I'll try just one last clean install and then I'll wait

cryinkfly commented 2 years ago

So I noticed that you got an error when configuring DXVK / PpenGL! The installation of Autodesk Fusion 360, specifically the Fusion360installer.exe, does not start at all.

This bug is new! At the moment I don't know why, because at first glance my code seems to be okay.

However, I will now revise certain variable names. Perhaps that could lead to this error in one system or another.

I thank you for your help! :+1:

GoTVm commented 2 years ago

Well good to know I could be of help, in one way or another. I'll still try to find a solution in the meantime. Currently stuck on Wine telling me it cant find System32, for some reason.

Do you know how I could go about completely removing everything that has to do with the installation routine/script? So that I could start anew from a fresh base.

cryinkfly commented 2 years ago

Yes, the best thing to do is to delete the Wineprefix (folder) from Autodesk Fusion 360 and install Autodesk Fusion 360 step by step itself.

GoTVm commented 2 years ago

One thing I might suggest: could it be that the Ubuntu 20.04 installation routine is broken? All the other choices work, only Ubuntu 20.04 doesn't. Another commenter also reported that their Ubuntu 20.04 installation does the same thing. Maybe all of this is just because there is a mistake in the launcher that loops the Ubuntu 20.04 installation?

cryinkfly commented 2 years ago

That would be possible. But why does it then work under Linux Mint 20.2 that Ubuntu 20.04 uses.

GoTVm commented 2 years ago

After two more attempts I have officially given up. There is nothing more that I am capable of doing, I'll leave it in your expert hands.

Last thing I can try is follow the latest tutorial you uploaded on YouTube and see if I'm doing anything wrong.

cryinkfly commented 2 years ago

I have changed a function: https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux/commit/2a056c4e0bb8e6b7bf50e0ed305db5366c42f188

GoTVm commented 2 years ago

Do I try to install from your all-in-one command now? I'm currently following your tutorial and I noticed you recommend "Latest wine version", so I'm installing Wine by hand now.

cryinkfly commented 2 years ago

YES :+1:

Do I try to install from your all-in-one command now?

Then with this with this new log file I get all informations about the processes and so on.

GoTVm commented 2 years ago

Sorry to always be the bearer of bad news, but while installing linux-libc-dev the installer halted and the only way to know was opening the log to see the [y/n] prompt. Maybe add -y as an argument to the function so it doesn't wait for user approval? The installer finished, now Wine reports launcher.sh missing.

GoTVm commented 2 years ago

setupact.log Setup log here.

Down here is everything Wine dumps on me while trying to open. Fixed launcher.sh missing, new errors appeared. Screenshot from 2021-11-21 14-03-42

EDIT: Fixed IPSFactory error by adding 32 bit architecture. Now its whining that 0009:err:module:__wine_process_init L"C:\windows\system32\.exe" not found. Hints at the executable having the wrong name, as far as I can tell. I can't find any executable at all, so I don't know if and where it installed Fusion.

tome9111991 commented 2 years ago

Hello i'm on Mint 20.02 Xfce on a Lenovo Z50 with intel HD graphics & Nvidia 840M i have also loop

used:

I have changed a function: 2a056c4

but not help,

but im not back to terminal ask me again what graphic driver to use

GoTVm commented 2 years ago

@tome9111991 Its not meant to help the installation, rather to help you see what the issue is. It creates a setup log and nothing more. I might be close to solving the issue but I don't understand where the Fusion360.exe file is located, therefore I'm waiting for cryinkfly's insight on that. In the meantime, you could try another distro that's close to yours (Debian if you're on Ubuntu and so on).

cryinkfly commented 2 years ago

The Fusion360.exe file is located here: $HOME/Fusion360/data/fusion360/Fusion360installer.exe

Edit: $HOME/.wineprefixes/fusion360/drive_c/Program Files/Autodesk/webdeploy/production/96174d2c4918a1a613b00371fd422e0f30e1d187/Fusion360.exe

GoTVm commented 2 years ago

That's the file launcher.sh should launch, right? Because it currently tries to launch .exe, located in system32, as my screenshot shows.

cryinkfly commented 2 years ago

@GoTVm Your setupact.log is not complete?

GoTVm commented 2 years ago

That is all it gave me. It then asked me if I wanted standard installation or to change the path and then completed.

cryinkfly commented 2 years ago

Please wait 🙂. Then I change a lot of variables and functions. I hope to finish tomorrow. 🤔

GoTVm commented 2 years ago

Oh yea take your time, absolutely no pressure. I already have fusion on my other windows machine, so I'm not in a hurry. I'll try again and see if I can edit launcher.sh to point to the correct executable.

GoTVm commented 2 years ago

I found out two more issues with the script: 1) You can't dump the whole installation into the log, because it brings up some prompts that halt the whole installation process until you press y or enter, and you wont know until you go dig into 15000 lines of dumped logs; 2) Something about the script messes up wine and its repositories, making it impossible to install winehq-staging. Might want to look into that, I had to format my computer to get winehq-staging to work.

steveunixson commented 2 years ago

guys, i've managed to install it using an old branch (pseudo-ui one) zeniny script looks good at the fist glance need more time to investigate

steveunixson commented 2 years ago

@cryinkfly maybe lets investigate into creating an appimage with wine and all the necessary scripts (possibly written in something other than bash, python? idk) And for drivers, support packages, etc --> move that to distro specific scripts (or even figure out how to squeeze them into an appimage) Idea is similar to portwine project Legal notice: WE DO NOT DOING TO REDISTIBUTE ORGINAL Fusion360!! It's just an installer that downloads original .exe

cryinkfly commented 2 years ago

I have solved this bug now!

Setup wizard stuck in a loop

*Notice: Please remove all old files & wineprefixes!

GoTVm commented 2 years ago

Why was the issue closed? The only way I managed to solve this issue is dualboot windows. It won't install in Elementary, neither will it install in Ubuntu 21.10. Did I miss something?

steveunixson commented 2 years ago

Please remove all old files & wineprefixes! @cryinkfly atleast include that into a script

GoTVm commented 2 years ago

I did remove all the files and wineprefixes, and I also agree that it should be automatically handled by the uninstall script. I'll whip out my old Ubuntu machine and see if it works there. It's quite old (i5 2nd gen, no GPU), do you think it would work?

cryinkfly commented 2 years ago

I have changed a lot of things in the setup file and also the command to install:

mkdir -p "$HOME/.wineprefixes/fusion360/INSTALLDIR" && cd "$HOME/.wineprefixes/fusion360/INSTALLDIR" && wget -N https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux/raw/main/files/scripts/stable-branch/fusion360-setup-wizard.sh && chmod +x fusion360-setup-wizard.sh && bash fusion360-setup-wizard.sh && exit

I have installed this in a virtual machine and it works:

https://user-images.githubusercontent.com/79079633/143010203-3e09beb0-34dd-4ed8-b4c8-ac88848dd2df.mp4

GoTVm commented 2 years ago

Right, forgot about the existence of virtual machines. I'll try it on a Ubuntu 21.10 virtual machine in a couple of hours. Did you by chance handle the wine issue? Your script probably messes with the wine repositories, so if you didn't install winehq-staging before ever running the script you won't be able to due to "broken packages".

cryinkfly commented 2 years ago

I ran the setup it through several times and found no problems.

Your script probably messes with the wine repositories, so if you didn't install winehq-staging before ever running the script you won't be able to due to "broken packages".

I am currently working on a dialog for Wine, where you can install wine also from the standard repository of your system.

steveunixson commented 2 years ago

@cryinkfly maybe let's download wine to user directory instead of installing wine-staging packages using apt? and also don't you mind me forking your repo? I have a lot of ideas how to improve stability and user experience

GoTVm commented 2 years ago

Alright, good that you managed to fix one problem at least. For now, I'll install wine separately and test.

cryinkfly commented 2 years ago

@steveunixson I don't mind if you fork my repo? It is only important to me that everyone has the opportunity to use it for other projects and that I am mentioned (see license terms).

cryinkfly commented 2 years ago

@GoTVm But I have to say it was a bit tricky to change it. ^^

cryinkfly commented 2 years ago

@GoTVm If the problem occurs again for the purpose of looping, then it will be good when you open the case again here.

GoTVm commented 2 years ago

Sure will. I'll also keep track of the steps I take from a fresh install, so it can be replicated.