question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Started crashing on startup after system update

See original GitHub issue

Describe the bug streamdeck-ui crashes on startup. I don’t think this is due to a change in streamdeck-ui itself, but possibly pynput, Gnome, or Wayland. But I figured I’d start here and work my way down the chain. It used to work, but stopped in the last few days.

I checked my pacman log, the only relevant python/gnome/wayland/streamdeck packages updated within the past few days were gnome-shell (1:43.1-1 -> 1:43.1-2) and python-elgato-streamdeck (0.9.1-1 to 0.9.3-1).

To Reproduce Steps to reproduce the behavior:

  1. Run streamdeck from terminal
  2. Review console output
  3. See error

Expected behavior Application runs

Screenshots Error log:

$ streamdeck                                  Mon 14 Nov 2022 11:12:24 AM CST
Traceback (most recent call last):
  File "/usr/sbin/streamdeck", line 5, in <module>
    from streamdeck_ui.gui import start
  File "/usr/lib/python3.10/site-packages/streamdeck_ui/gui.py", line 11, in <module>
    from pynput import keyboard
  File "/usr/lib/python3.10/site-packages/pynput/__init__.py", line 40, in <module>
    from . import keyboard
  File "/usr/lib/python3.10/site-packages/pynput/keyboard/__init__.py", line 31, in <module>
    backend = backend(__name__)
  File "/usr/lib/python3.10/site-packages/pynput/_util/__init__.py", line 76, in backend
    raise ImportError('this platform is not supported: {}'.format(
ImportError: this platform is not supported: ('failed to acquire X connection: Can\'t connect to display ":0": b\'Authorization required, but no authorization protocol specified\\n\'', DisplayConnectionError(':0', b'Authorization required, but no authorization protocol specified\n'))

Try one of the following resolutions:

 * Please make sure that you have an X server running, and that the DISPLAY environment variable is set correctly

Operating system (please complete the following information)

  • OS: Latest Arch Linux
  • Desktop environment: Gnome 43.1 Wayland
  • Python version: Python 3.10

Stream Deck Version

  • Standard

Issue Analytics

  • State:open
  • Created 10 months ago
  • Reactions:3
  • Comments:5

github_iconTop GitHub Comments

1reaction
dhtseanycommented, Dec 20, 2022

Hi there, circling back on this as we haven’t had any recognition from the dev staff yet for this xorg bug.

A workaround for those landing here from Google:

  1. Run: $ xhost +
  2. Run: $ streamdeck

This will allow the app to launch however I think this is somewhat of a workaround and not a proper fix. Any assistance from the dev team would be appreciated. Thanks!

0reactions
dhtseanycommented, Nov 30, 2022

Hi, I’m the package maintainer of streamdeck-ui on Arch and I can confirm that a 100% fresh build with Gnome 43 produces this bug. I’m happy to provide testing resources as well as providing any detailed troubleshooting that might be required.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Solved: Windows 10 Crashes on Startup
Part 2. How to Fix Windows 10 Crashed on Startup? · Method 1. Cleaning Dust · Method 2. Stop Fast Startup · Method...
Read more >
Windows 11 Crashing on Startup after Windows Update ...
The error is caused by lack of permissions. You can take ownership of the files and folders using this handy right click shortcut...
Read more >
[FIXED] Windows 10 Crashing Issues | 2022 - Driver Easy
7 Fixes for Windows 10 Crashing Issues · Update available drivers · Turn off Link State Power Management · Scan and repair system...
Read more >
Windows 11 Keeps Crashing: 11 Fixes - groovyPost
1. Basic Troubleshooting Fixes When Windows 11 Keeps Crashing · 2. Check for Updates · 3. Check System Memory (RAM) · 4. Update...
Read more >
Why does My PC Keep Crashing? Here're 10 Fast Fixes!
Fix 1: Reboot Computer · Fix 2: Make Sure CPU Works Properly · Fix 3: Check the Hardware Connection · Fix 4: Boot...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found