webosbrew / dev-manager-desktop

Device/DevMode Manager for webOS TV
Apache License 2.0
1k stars 67 forks source link

Blank screen on Ubuntu #209

Closed idanov closed 3 months ago

idanov commented 3 months ago

Describe the bug

When installing or building the app in Ubuntu 22.04, I get a blank screen. If I run the app from the terminal, this is the logs I am getting:

warning: `devman` (lib) generated 3 warnings (run `cargo fix --lib -p devman` to apply 2 suggestions)
    Finished dev [unoptimized + debuginfo] target(s) in 24.72s
KMS: DRM_IOCTL_MODE_CREATE_DUMB failed: Permission denied
Failed to create GBM buffer of size 2048x1440: Permission denied
KMS: DRM_IOCTL_MODE_CREATE_DUMB failed: Permission denied
Failed to create GBM buffer of size 2048x1440: Permission denied
KMS: DRM_IOCTL_MODE_CREATE_DUMB failed: Permission denied
Failed to create GBM buffer of size 2048x1440: Permission denied
Failed to create EGL images for DMABufs with file descriptors -1, -1 and -1

To Reproduce Steps to reproduce the behavior:

  1. Download the .deb package for amd64
  2. Install it with sudo dpkg -i
  3. Run the app
  4. See error

Expected behavior

See the app working.

Screenshots

image

Additional context

+-----------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=============================================================================| | 0 N/A N/A 460747 G web-os-dev-manager 1MiB | +-----------------------------------------------------------------------------+



Add any other context about the problem here.
mariotaku commented 3 months ago

Hello! Does the workaround mentioned in https://github.com/DioxusLabs/dioxus/issues/1909 work?

idanov commented 3 months ago

@mariotaku I can confirm it works, I changed my .desktop file to add the environment variable and it now works. This is how my .desktop file looks like now for anyone experiencing the same issue:

╰─❯ cat /usr/share/applications/web-os-dev-manager.desktop
[Desktop Entry]
Categories=Development;
Comment=Device/Dev Mode Manager for webOS TV
+Exec=env WEBKIT_DISABLE_COMPOSITING_MODE=1 web-os-dev-manager
-Exec=web-os-dev-manager
Icon=web-os-dev-manager
Name=webOS Dev Manager
Terminal=false
Type=Application

Don't forget to run sudo update-desktop-database to ensure your .desktop icon is updated with the changes immediately.