Skip to content
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

Black screen on Linux #106

Open
mindaugasw opened this issue Nov 23, 2024 · 3 comments
Open

Black screen on Linux #106

mindaugasw opened this issue Nov 23, 2024 · 3 comments
Labels
bug Something isn't working os:linux
Milestone

Comments

@mindaugasw
Copy link

Hi! Very excited to see Amazon Q finally being released on Linux! Unfortunately, for me it is not working. Always shows only black screen, no matter what I do.

Expected behaviour

  • Desktop application opens and shows stuff
  • Terminal integration shows a pop up when typing

Actual behaviour

  • Opening desktop application shows only black window.
  • In the terminal pop up does not show up

image

Steps to reproduce

  • Downloaded app
  • Installed according to the instructions
  • Opened the app
  • See black screen

Things I tried

  • Restarting the application
  • Installing from AppImage and .deb
  • Running from CLI and running from desktop icon
    • On the first run had an error in terminal about missing /home/USER/.midway directory. But solved it by manually creating it.
  • Completing setup on the command line with q doctor (now it says ✔ Everything looks good!)
  • Running q debug autocomplete-window. Afterwards, a pop up in the terminal finally appears, but is also all black. See screenshot.
    • Without running q debug autocomplete-window after app restart, even this black pop up does not appear.
  • Restarting the application multiple times again

But nothing helps, desktop app still shows only black screen. No errors in the terminal.
Menu bar app appears, shows menu, but clicking anything opens the same desktop app with black window.

Environment

[q-details]
version = "1.5.0"
hash = "b724dbb5086098abbea6304684a779508e864e24"
date = "2024-11-21T17:29:46.821159Z (2d ago)"
variant = "full"

[system-info]
chip = "Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz"
total-cores = 4
memory = "15.56 GB"

[system-info.os.linux]
kernel_version = "5.15.0-126-generic"
id = "ubuntu"
name = "Ubuntu"
pretty_name = "Ubuntu 22.04.5 LTS"
version_id = "22.04"
version = "22.04.5 LTS (Jammy Jellyfish)"

[environment]
cwd = "/home/USER"
cli-path = "/home/USER"
os = "Linux"
shell-path = "/usr/bin/bash"
shell-version = "5.1.16"
terminal = "Gnome Terminal"
install-method = "unknown"

[env-vars]
DISPLAY = ":1"
GTK_IM_MODULE = "ibus"
PATH = "/home/USER/.nvm/versions/node/v14.13.1/bin:/home/USER/anaconda3/bin:/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/home/USER/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/home/USER/.dotnet/tools:/home/USER/.local/bin:/usr/local/bin:/home/USER/.local/share/JetBrains/Toolbox/scripts:/home/USER/.symfony/bin:/home/USER/Path:./vendor/bin:/usr/local/go/bin"
QTERM_SESSION_ID = "4faf4005f1ca404ba12a515e91c52ac2"
QT_IM_MODULE = "ibus"
Q_SET_PARENT_CHECK = "1"
Q_TERM = "1.5.0"
SHELL = "/bin/bash"
TERM = "xterm-256color"
XDG_CURRENT_DESKTOP = "ubuntu:GNOME"
XDG_SESSION_DESKTOP = "ubuntu"
XDG_SESSION_TYPE = "x11"
XMODIFIERS = "@im=ibus"
@chaynabors
Copy link
Member

chaynabors commented Nov 25, 2024

@brandonskiser can help better than me when he's back from holiday.

Can you try two things?

  1. Are you able to open devtools in the black window? Does the devtools console contain any info?
  2. Can you try running the executable directly from a terminal and see if you get any errors?

@mindaugasw
Copy link
Author

  1. Took a while, but managed to open devtools with right click and selecting Inspect element. All screen is still black, but I can see devtools open by changing cursor when hovering over devtools controls. Managed to Ctrl+A Ctrl+C console:
[Log] [fig] declaring constants... (user-script:2, line 1)
[Log] [q] setting up event listeners... (index-BKZtb6nl.js, line 85)
[Log] [q] unsubscribing any existing notifications... (index-BKZtb6nl.js, line 85)
[Error] Unhandled Promise Rejection: Error: Unexpected result: result
  (anonymous function) (index-BKZtb6nl.js:85:316872)
[Error] Unhandled Promise Rejection: Error: Unexpected result: 2
  (anonymous function) (index-BKZtb6nl.js:85:316797)
[Error] Unhandled Promise Rejection: Error: Unexpected result: result
  (anonymous function) (index-BKZtb6nl.js:192:219431)

Tried running Amazon Q in a VM and all works fine, with the same errors in the console. So I think it's not the fault :(

  1. Tried, no errors.
$ ./amazon-q.appimage 

or

$ q
Opening Amazon Q dashboard

(no further output)

@grant0417 grant0417 added bug Something isn't working os:linux labels Nov 27, 2024
@grant0417 grant0417 added this to the 1.6.0 milestone Nov 28, 2024
@brandonskiser
Copy link
Contributor

Can you try setting the GDK_DEBUG=all environment variable and sharing the log output when running the desktop app? No idea why nothing seems to be getting drawn, maybe there's something going wrong with GDK that we can see with the logs.

For the deb installation, this should print the first 5000 lines to gdk_log.txt:

GDK_DEBUG=all q-desktop 2>&1 | head -n 5000 | tee gdk_log.txt

Also just to be sure, what version of libwebkit2gtk-4.1-0 is installed?

~> dpkg -l libwebkit2gtk-4.1-0
...
ii  libwebkit2gtk-4.1-0:amd64 2.46.3-0ubuntu0.22.04.1 amd64        Web content engine library for GTK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working os:linux
Projects
None yet
Development

No branches or pull requests

4 participants