Skip to content

Wayland + Nvidia driver = black screen #1816

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
3 tasks done
Attigliuzzo opened this issue Jan 12, 2023 · 3 comments
Closed
3 tasks done

Wayland + Nvidia driver = black screen #1816

Attigliuzzo opened this issue Jan 12, 2023 · 3 comments
Labels
os: linux Specific to Linux operating system type: imperfection Perceived defect in any part of project

Comments

@Attigliuzzo
Copy link

Attigliuzzo commented Jan 12, 2023

Describe the problem

I'm using Arduino IDE 2.0.3 on 2 PCs. On both of them I've installed Wayland under Debian testing.

🙂 On my old laptop, the IDE starts successfully and I see the full interface. Wayland uses mesa on an Intel discrete graphic card on this PC.

🐛 On the newer laptop, the whole screen app is black. I use Nvidia driver 510 with Wayland on this PC.

The console logs:

Arduino IDE 2.0.3
Starting backend process. PID: 4204
[4181:0112/163131.466177:ERROR:object_proxy.cc(642)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/portal/desktop: org.freedesktop.DBus.Error.InvalidArgs: Interfaccia «org.freedesktop.portal.FileChooser» inesistente
[4181:0112/163131.466205:ERROR:select_file_dialog_impl_portal.cc(243)] Failed to read portal version property
Using browser-only version of superagent in non-browser environment
Configuration directory URI: 'file:///home/attila/.theia'
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2023-01-12T15:31:32.211Z root INFO Backend Object.initialize: 3.6 ms [Finished 0.791 s after backend start]
2023-01-12T15:31:32.211Z root INFO Backend Object.configure: 3.1 ms [Finished 0.791 s after backend start]
2023-01-12T15:31:32.212Z root INFO Backend MessagingContribution.onStart: 1.0 ms [Finished 0.791 s after backend start]
2023-01-12T15:31:32.212Z root INFO Backend OSBackendApplicationContribution.configure: 0.3 ms [Finished 0.814 s after backend start]
2023-01-12T15:31:32.212Z root INFO Backend DefaultWorkspaceServer.onStart: 0.2 ms [Finished 0.814 s after backend start]
.........

To reproduce

Launch the Arduino IDE AppImage in a Wayland environment with proprietary Nvidia driver.

Expected behavior

Arduino IDE works with any valid display driver and regardless of whether or not Wayland is used.

Arduino IDE version

2.0.3

Operating system

Linux

Operating system version

Debian testing "Bookworm"

Additional context

I can use X11 instead on the new laptop.

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details
@Attigliuzzo Attigliuzzo added the type: imperfection Perceived defect in any part of project label Jan 12, 2023
@per1234 per1234 added the os: linux Specific to Linux operating system label Jan 12, 2023
@kittaakos
Copy link
Contributor

kittaakos commented Jan 17, 2023

Here, people say the hardware acceleration of the electron app should be disabled: signalapp/Signal-Desktop#5361. The app is different, but the env is the same.

Possible related: #142

Does it work if you start IDE2 with the --disable-gpu arg?

@per1234 per1234 added the status: waiting for information More information must be provided before work can proceed label Jan 17, 2023
@Mahiuha
Copy link

Mahiuha commented Jan 19, 2023

It appears that the issue is related to a problem with the file chooser dialog in the Arduino IDE when running on Wayland with the Nvidia driver. The error message "Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/portal/desktop: org.freedesktop.DBus.Error.InvalidArgs: Interfaccia «org.freedesktop.portal.FileChooser» inesistente" suggests that the required file chooser interface is not present.

A possible solution would be to try running the Arduino IDE with the Xorg display server instead of Wayland, as it is known to have better compatibility with certain applications. Another solution would be to try using a different version of the Nvidia driver or to see if there is an update or patch available for the version of the Arduino IDE that you are using.

@Attigliuzzo
Copy link
Author

@kittaakos: Yes, it runs succesfully with that option or as @Mahiuha wrote, it is usable under Xorg.

@per1234 per1234 removed the status: waiting for information More information must be provided before work can proceed label Jan 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
os: linux Specific to Linux operating system type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

4 participants