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

Running Flatpak Bottle Version of Fusion Causes Ubuntu to Log out #261

Open Jo-Dan opened 1 year ago

Jo-Dan commented 1 year ago

Describe the bug Whenever I try to run the bottle flatpak version of this program my screen goes black a while after the splash screen appears and then after a few seconds I'm just back at the Ubuntu login screen. When I log back in I can see all my programs have closed and my startup programs are launching like after a reboot (except this has clearly just logged out, not restarted).

To Reproduce Steps to reproduce the behavior:

  1. Run Fustion360 via bottles
  2. Wait

Expected behavior The program would just run

Desktop (please complete the following information):

Additional context I have gotten the program running using the wine method in the past, but it has required a lot of fiddling.

FricoRico commented 1 year ago

Hi! I've made the Bottles installer manifest. There could be several things wrong. Do you use nouveau drivers or proprietary Nvidia drivers?

Also could use disable the Use discrete GPU in the Bottle? It could all be hardware related too.

Jo-Dan commented 1 year ago

I use the Nvidia 510 driver. Disabling the discrete GPU as you suggested does seem to have stopped the logging out issue, so thanks for that! I got to the autodesk login screen now, and this window comes up image but the program just closes after a few seconds.

FricoRico commented 1 year ago

Have you tried using different runners? I've tested both soda-7.0-2 and wine-ge-7-20 and both seemed to work perfectly fine on Fedora 36 using Wayland.

I tested this on my desktop with RX5700 XT and on my laptop with Intel HD630 and Nvidia 1050Ti using Nvidia 515 drivers.

It's hard to debug like this, but I suggest trying:

EDIT: So far I had most performance using vaniglia-7.11 and setting Fusion 360 settings to OpenGL to fix the rendering.

FricoRico commented 1 year ago

@Jo-Dan Did you manage to work around your issue?

Jo-Dan commented 1 year ago

Hi @FricoRico sorry for the delay, I had to stop working on this for a bit. Changing the settings to match what you suggest (not sure what you're referring to with "wayland" though) does make the program work thanks. Performance isn't great but its usable.

Edit: Since making the above changes re-enabling discrete GPU no longer causes the log out/crash issue from before and performance has improved a little.

FricoRico commented 1 year ago

@Jo-Dan Thanks for your feedback. Perhaps you could further improve your performance by switching to Futex2. I'm a Linux noob myself, but Wayland is something called a display server. It decides on how stuff works internally when rendering a window to the screen.

Wayland is seen as a newer replacement for X11. But X11 is older and thus has some more 'support' for some features. In any case it shouldn't matter that much because I'm also using Wayland and it behaves the same as X11 for me.

Jo-Dan commented 1 year ago

Futex2 does seem to have improved performance a little more, thanks @FricoRico !

Ah ok fair, I can't see the option to change that in bottles, but if it's a system-wide change that's no good for me because I believe some of the work I do is dependent on X11.

Jo-Dan commented 1 year ago

It might be worth suggesting these settings suggestions on the bottles page or the github readme for future users. Save you having to help too many people like me haha.

ChaosBlades commented 1 year ago

When you install F360 via Bottles these kinds of settings are applied automatically per F360s specifications. I suspect Futex2 is not enabled by default because it is fairly new and has issues on older kernels. I also run Futex2 which has increased performance noticeably.

https://www.phoronix.com/news/FUTEX2-Bits-In-Locking-Core

It Appears FUTEX2 Will Land For Linux 5.16

That was less than a year ago.