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.78k stars 115 forks source link

Black Screen on flatpak Bottles version #401

Closed Ameb closed 3 months ago

Ameb commented 3 months ago

I used your Bottles "Recipe" to install Fusion by creating a new Bottle and installing Fusion from the GUI. I'm using Bottles flatpak on Fedora 39 with Plasma Desktop.

I was able to avoid the login issue on flatpak by following the instructions on the issue (#393 , https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux/issues/393#issuecomment-1986967643).

But after that, im having issues similar to #58 where the UI is rendered fine but the the viewport is not.

image

I think it can be fixed by changing the rendered from OpenGL (default) to Dx9 but I can't open the Preferences Window. If I press the preferences menu I can´t interact with Fusion anymore. I think it spawns a transparent window blocking the UI. image

I want to change the setting by editing the file like in https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux/issues/58#issuecomment-896056591 but if I replace its contents or add the <driverOptionId ToolTip="The driver used to display the graphics" UserName="Graphics driver" Value="VirtualDeviceDx9"/> Fusion crashes on startup.

Edit: Explicitly setting driverOptionId to VirtualDeviceGLCore improves the black screen, but has other annoyances.

¿How Can I switch between OpenGL and DXVK?

I have an AMD Radeon 6800 with amdgpu driver.

glxinfo ``` $ glxinfo -B name of display: :0 display: :0 screen: 0 direct rendering: Yes Extended renderer info (GLX_MESA_query_renderer): Vendor: AMD (0x1002) Device: AMD Radeon RX 6800 (radeonsi, navi21, LLVM 17.0.6, DRM 3.57, 6.7.7-200.fc39.x86_64) (0x73bf) Version: 23.3.6 Accelerated: yes Video memory: 16384MB Unified memory: no Preferred profile: core (0x1) Max core profile version: 4.6 Max compat profile version: 4.6 Max GLES1 profile version: 1.1 Max GLES[23] profile version: 3.2 Memory info (GL_ATI_meminfo): VBO free memory - total: 13542 MB, largest block: 13542 MB VBO free aux. memory - total: 31790 MB, largest block: 31790 MB Texture free memory - total: 13542 MB, largest block: 13542 MB Texture free aux. memory - total: 31790 MB, largest block: 31790 MB Renderbuffer free memory - total: 13542 MB, largest block: 13542 MB Renderbuffer free aux. memory - total: 31790 MB, largest block: 31790 MB Memory info (GL_NVX_gpu_memory_info): Dedicated video memory: 16384 MB Total available memory: 48492 MB Currently available dedicated video memory: 13542 MB OpenGL vendor string: AMD OpenGL renderer string: AMD Radeon RX 6800 (radeonsi, navi21, LLVM 17.0.6, DRM 3.57, 6.7.7-200.fc39.x86_64) OpenGL core profile version string: 4.6 (Core Profile) Mesa 23.3.6 OpenGL core profile shading language version string: 4.60 OpenGL core profile context flags: (none) OpenGL core profile profile mask: core profile OpenGL version string: 4.6 (Compatibility Profile) Mesa 23.3.6 OpenGL shading language version string: 4.60 OpenGL context flags: (none) OpenGL profile mask: compatibility profile OpenGL ES profile version string: OpenGL ES 3.2 Mesa 23.3.6 OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20 ```
str0g commented 3 months ago

drive_c/users/$USER/AppData/Roaming/Autodesk/Neutron Platform/Options/NMachineSpecificOptions.xml

VirtualDeviceDx9

You are on amd hardware use correct driver WINEPREFIX="" sh "/winetricks" -q galliumnine

Ameb commented 3 months ago

I had no trouble finding the NMachineSpecificOptions.xml settings file. Here is mine after modification:

NMachineSpecificOptions.xml ``` centerKey-67202 C:/users/ameb/AppData/Local/Autodesk/Autodesk Fusion 360/N8QXXXXXXXX/W.login/F ```

On the crash logs, dmpuserinfo.xml, there is an error. But I don't think it is related:

Error accessing UPI repository in the 64-bits registry

Sadly I can't use galliumnine with Bottles, Bottles does not support winetricks and galliumnine is not in Bottles. I will try to reinstall Fusion with the script in a normal wine prefix.

More details from the crash log that i find relevant:

dmpuserinfo.xml ``` ...redacted... Error accessing UPI repository in the 64-bits registry 64-bit Windows XP Professional English (Regional Setting: English) AMD Ryzen 9 5950X 16-Core Processor(32 CPUs), ~5083MHz 64216MB RAM 8491MB used, 80609MB available = "DirectX 9.0c (4.09.0000.0904) 9.0 c 11 b 0 False False ATI Technologies Inc. 4261.8 MB 3840 x 2160 (32 bit) (60Hz) 0x1002 0x73bf 0x00000000 0x0000 aticfx64.dll 32767.65535.65535.65535 1/1/2016 10:00:00 0 No value found ```
GraphicsCardInfo.xml ``` Feature Level 3_1 AMD Radeon RX 6800 (RADV NAVI21) 29631:0 aticfx64.dll:32767.65535.65535.65535 DirectX 9.000000 1002 FALSE 16777215 5592405 16 8 6 4 0 TRUE 8 3.000000 32768 4 1 256 0.000000 0 0 0 0 3.000000 32768 16 1 224 16384 16384 1 TRUE 16384 16384 1 TRUE 8192 8192 8192 TRUE ```
Ameb commented 3 months ago

I explicitly set driverOptionId to VirtualDeviceGLCore and it renders most of the viewport, missing points and some text. Still can't open the Preferences dialog. Also #9.

Bombenscheck commented 3 months ago

Hi, it took a Fair bit of experimenting to find a combination that launches in Directx9 mode:

image

Try this combination, maybe it works for you

Ameb commented 3 months ago

You are the bomb! pun intended

Still can't open the Preferences menu (maybe this happens because of Wayland?), but It works without changing the driverOptionId from default. I may try to force Dx9, but it seems to work this way.

Thank you @Bombenscheck

daskog commented 3 months ago

You are the bomb! pun intended

  • Downloaded caffe-9.2 runner from bottle's GUI, made sure i had the runners.
  • Set up a new Bottle > Custom > caffe-9.2 (You can probably change the runner later)
  • Modified settings according to the screenshot (dxvk-2.3, vkd3d-proton-2.11.1)
  • Run the Fusion Install
  • Made shortcut to AdskIdentityManager.exe to login, see Cant login on flatpak version #393 (comment)
  • Run Fusion, Login, Copy code like in last link, run IdentityManager. Close Fusion (It didn't react but logged in fine on restart)
  • It just works

Still can't open the Preferences menu (maybe this happens because of Wayland?), but It works without changing the driverOptionId from default. I may try to force Dx9, but it seems to work this way.

Thank you @Bombenscheck

Preferences menu usually loads as long as u don't have other bugs, but you have to wait! (press the menu, and just let fusion sit there 1-5 min) No guarantees!

Sometimes when Fusion has the black screen bug waiting for Preferences menu does nothing.