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

Meaningless error messages #71

Open
spacefrogg opened this issue Nov 27, 2024 · 0 comments
Open

Meaningless error messages #71

spacefrogg opened this issue Nov 27, 2024 · 0 comments

Comments

@spacefrogg
Copy link

I was trying uwsm-20.4 (via Nix home-manager) on Ubuntu 24.05 and preparation of the window manager environment fails with the following error (with DEBUG):

Nov 26 22:02:03 uwsm_env-preloader[95612]: [Errno 25] Inappropriate ioctl for device
Nov 26 22:02:03 uwsm_env-preloader[95612]: Traceback (most recent call last):
Nov 26 22:02:03 uwsm_env-preloader[95612]:   File "/nix/store/jdw6vbgkwa2ah41m78jskqjh6qbkcryd-uwsm-0.20.4/share/uwsm/modules/uwsm/main.py", line 4817, in main
Nov 26 22:02:03 uwsm_env-preloader[95612]:     prepare_env()
Nov 26 22:02:03 uwsm_env-preloader[95612]:   File "/nix/store/jdw6vbgkwa2ah41m78jskqjh6qbkcryd-uwsm-0.20.4/share/uwsm/modules/uwsm/main.py", line 2854, in prepare_env
Nov 26 22:02:03 uwsm_env-preloader[95612]:     session_id = get_session_by_vt(v_term)
Nov 26 22:02:03 uwsm_env-preloader[95612]:                  ^^^^^^^^^^^^^^^^^^^^^^^^^
Nov 26 22:02:03 uwsm_env-preloader[95612]:   File "/nix/store/jdw6vbgkwa2ah41m78jskqjh6qbkcryd-uwsm-0.20.4/share/uwsm/modules/uwsm/main.py", line 2578, in get_session_by_vt
Nov 26 22:02:03 uwsm_env-preloader[95612]:     if int(vtnr) == v_term and user == os.getlogin():
Nov 26 22:02:03 uwsm_env-preloader[95612]:                                        ^^^^^^^^^^^^^
Nov 26 22:02:03 uwsm_env-preloader[95612]: OSError: [Errno 25] Inappropriate ioctl for device
Nov 26 22:02:03 uwsm_env-preloader[95612]: Cleaning up...

I realised that this has to do with the corporate environment that I am in. User names are resolved via an external library (via nsswitch) which programs coming from Nix fail to load. (I fixed that with LD_PRELOAD). Now to my actual issue:

Both, mishandling DEBUG (I didn't initially realise that it has to be an int) and this error just throw back traces or meaningless messages instead of "DEBUG must be a number" or "Could not determine user name". And now, that I look at it, int(vtnr) looks suspiciously unchecked as well. ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant