Black screen on Linux
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
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/.midwaydirectory. But solved it by manually creating it.
- On the first run had an error in terminal about missing
- 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-windowafter app restart, even this black pop up does not appear.
- Without running
- 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"
@brandonskiser can help better than me when he's back from holiday.
Can you try two things?
- Are you able to open devtools in the black window? Does the devtools console contain any info?
- Can you try running the executable directly from a terminal and see if you get any errors?
- 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 toCtrl+ACtrl+Cconsole:
[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 :(
- Tried, no errors.
$ ./amazon-q.appimage
or
$ q
Opening Amazon Q dashboard
(no further output)
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
Same issue. I am using Zorin OS which is an Ubuntu variant. Q doctor shows no issues. I have tried both Wayland and Xorg as display server. No luck. Any suggestions on how to fix this?
Screenshot
Q Doctor
$ q doctor
✔ Everything looks good!
Amazon Q still not working? Run q issue to let us know!
Log File
DPKG Output
$ dpkg -l libwebkit2gtk-4.1-0
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=========================-=======================-============-============>
ii libwebkit2gtk-4.1-0:amd64 2.48.1-0ubuntu0.22.04.1 amd64 Web content >
Q Diagnostic
[q-details]
version = "1.9.1"
hash = "5d2c2807cab9bc6c9dc5fcd05f92c7a979e8a4f7"
date = "2025-04-29T06:25:24.357798Z (14d ago)"
variant = "full"
[system-info]
chip = "AMD Ryzen 5 5600X 6-Core Processor"
total-cores = 2
memory = "3.78 GB"
[system-info.os.linux]
kernel_version = "6.8.0-59-generic"
id = "zorin"
name = "Zorin OS"
pretty_name = "Zorin OS 17.3"
version_id = "17"
version = "17.3"
[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 = ":0"
GTK_IM_MODULE = "ibus"
PATH = "/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/.local/bin"
QTERM_SESSION_ID = "632fd89c3e34499b9922d94e32a4bd1d"
QT_IM_MODULE = "ibus"
Q_SET_PARENT_CHECK = "1"
Q_TERM = "1.9.1"
SHELL = "/bin/bash"
TERM = "xterm-256color"
XDG_CURRENT_DESKTOP = "zorin:GNOME"
XDG_SESSION_DESKTOP = "zorin-xorg"
XDG_SESSION_TYPE = "x11"
XMODIFIERS = "@im=ibus"
@mindaugasw Are you using VMware or VirtualBox? I am using VMware Workstation Pro 17. On a whim I disabled 3D acceleration in the display settings for the VM. It is working with 3D acceleration turned off.
@brandonskiser this may be helpful in figuring out what is causing it. That is if there's enough interest in getting it fixed for those of us that run Linux in a VM because there's no native Windows support. 😁
Same here (I initially found https://github.com/aws/amazon-q-developer-cli/issues/2049 as that one correctly says "blank" rather than "black" in this current issue):
[q-details]
version = "1.12.1"
hash = "a1adeaf5df9e144dcfa0bac728de942891254df0"
date = "2025-06-18T00:48:39.290304Z (2d ago)"
variant = "full"
[system-info]
chip = "13th Gen Intel(R) Core(TM) i7-13800H"
total-cores = 14
memory = "31.00 GB"
[system-info.os.linux]
kernel_version = "6.8.0-52-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 = "Kitty"
install-method = "unknown"
[env-vars]
DISPLAY = ":0"
PATH = "/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/go/bin:/home/USER/bin:/home/USER/.local/bin:/home/USER/.cargo/bin:/home/USER/.binenv:/home/USER/go/bin:/home/USER/.npm-global/bin:/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin/home/USER/.krew/bin:"
QT_IM_MODULE = "ibus"
SHELL = "/bin/bash"
TERM = "xterm-kitty"
XDG_CURRENT_DESKTOP = "MATE"
XDG_SESSION_DESKTOP = "mate"
XDG_SESSION_TYPE = "x11"
XMODIFIERS = "@im=ibus"
> dpkg -l libwebkit2gtk-4.1-0
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=========================-=======================-============-==================================
ii libwebkit2gtk-4.1-0:amd64 2.48.3-0ubuntu0.22.04.1 amd64 Web content engine library for GTK
I've got the same issue on Ubuntu 22.04 with Regolith. When I click "Inspect element" on the blank window of q-desktop, I can see these errors in the console tab:
[Error] Error: unknown desktop, checked environment variables: XDG_CURRENT_DESKTOP: `Regolith:GNOME-Flashback:GNOME`, XDG_SESSION_DESKTOP: `regolith-x11`, GDMSESSION: `regolith-x11`
(anonymous function) — index-B6ACoBei.js:43:80012
Sx — index-B6ACoBei.js:43:72844
(anonymous function) — index-B6ACoBei.js:43:73500
(anonymous function) (index-B6ACoBei.js:149:194549)
It works fine in Gnome, though.
System information:
[q-details]
version = "1.16.0"
hash = "34986d95f660e2bce63189f1179de4a110507fe7"
date = "2025-09-16T22:01:38.947321Z (8d ago)"
variant = "full"
[system-info]
chip = "Intel(R) Core(TM) Ultra 7 165H"
total-cores = 16
memory = "30.79 GB"
[system-info.os.linux]
kernel_version = "6.8.0-83-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/zsh"
shell-version = "5.8"
terminal = "Gnome Terminal"
install-method = "unknown"
[env-vars]
DISPLAY = ":1"
GTK_IM_MODULE = "ibus"
PATH = "/home/USER/.nvm/versions/node/v22.19.0/bin:/opt/ros/humble/bin:/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"
QT_IM_MODULE = "ibus"
SHELL = "/usr/bin/zsh"
TERM = "xterm-256color"
XDG_CURRENT_DESKTOP = "Regolith:GNOME-Flashback:GNOME"
XDG_SESSION_DESKTOP = "regolith-x11"
XDG_SESSION_TYPE = "x11"
XMODIFIERS = "@im=ibus"