bkacjios / m-overlay

A controller input display/overlay for Dolphin
MIT License
165 stars 44 forks source link

Unable to open m-overlay completely (Linux) #183

Closed SparklMastr closed 11 months ago

SparklMastr commented 11 months ago

Describe the bug Unable to run m-overlay software on linux.

Desktop:

To Reproduce Steps to reproduce the behavior:

  1. Attempt to open app through terminal (Whether the game is opened before, after, or during has no effect on the error output).

Expected behavior M'Overlay should open and connect to the game.

Screenshots sudo love application.love in terminal (no sudo throws up a libcap error in terminal) image sudo love m-overlay-x64-installer.love in terminal image

Debug console output Since the app doesn't open, here is the terminal output Running sudo love application.love

error: XDG_RUNTIME_DIR is invalid or not set in the environment.
[ALSOFT] (EE) Failed to connect PipeWire event context (errno: 112)
Could not open device.
[DEBUG - 00:20:20] M'Overlay (2.1.3)
[DEBUG - 00:20:20] Love2D 11.4.0 - Mysterious Mysteries
[DEBUG - 00:20:20] Lua 5.1 (LuaJIT 2.1.0-beta3 - x64)
[DEBUG - 00:20:20] System: Linux
[DEBUG - 00:20:20] Renderer: OpenGL (4.6 (Core Profile) Mesa 23.1.4)
[DEBUG - 00:20:20] Graphics: AMD (AMD Radeon RX 580 Series (polaris10, LLVM 16.0.6, DRM 3.52, 6.4.7-200.fc38.x86_64))
[ERROR - 00:20:20] Thread error (Thread: 0x5602623ce940)

modules/ssl.lua:8: module 'ssl.core' not found:
        no field package.preload['ssl.core']
        no 'ssl/core' in LOVE game directories.
        no file 'ssl/core' in LOVE paths.
        no file './ssl/core.lua'
        no file '/usr/share/luajit-2.1.0-beta3/ssl/core.lua'
        no file '/usr/local/share/lua/5.1/ssl/core.lua'
        no file '/usr/local/share/lua/5.1/ssl/core/init.lua'
        no file '/usr/share/lua/5.1/ssl/core.lua'
        no file '/usr/share/lua/5.1/ssl/core/init.lua'
        no file './ssl/core.so'
        no file '/usr/local/lib/lua/5.1/ssl/core.so'
        no file '/usr/lib64/lua/5.1/ssl/core.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
        no file './ssl.so'
        no file '/usr/local/lib/lua/5.1/ssl.so'
        no file '/usr/lib64/lua/5.1/ssl.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
        [C]: in function 'require'
        modules/ssl.lua:8: in main chunk
        [C]: in function 'require'
        modules/https.lua:10: in main chunk
        [C]: in function 'require'
        modules/web/thread.lua:1: in main chunk
stack traceback:
        [C]: in function 'error'
        [love "callbacks.lua"]:181: in function <[love "callbacks.lua"]:180>
        main.lua:786: in function <main.lua:774>
        [C]: in function 'xpcall'
        [love "boot.lua"]:370: in function <[love "boot.lua"]:337>

Running sudo love m-overlay-x64-installer.love

error: XDG_RUNTIME_DIR is invalid or not set in the environment.
Error: Thread error (Thread: 0x55f64cedadd0)

ssl.lua:8: module 'ssl.core' not found:
        no field package.preload['ssl.core']
        no 'ssl/core' in LOVE game directories.
        no file 'ssl/core' in LOVE paths.
        no file './ssl/core.lua'
        no file '/usr/share/luajit-2.1.0-beta3/ssl/core.lua'
        no file '/usr/local/share/lua/5.1/ssl/core.lua'
        no file '/usr/local/share/lua/5.1/ssl/core/init.lua'
        no file '/usr/share/lua/5.1/ssl/core.lua'
        no file '/usr/share/lua/5.1/ssl/core/init.lua'
        no file './ssl/core.so'
        no file '/usr/local/lib/lua/5.1/ssl/core.so'
        no file '/usr/lib64/lua/5.1/ssl/core.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
        no file './ssl.so'
        no file '/usr/local/lib/lua/5.1/ssl.so'
        no file '/usr/lib64/lua/5.1/ssl.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
        [C]: in function 'require'
        ssl.lua:8: in main chunk
        [C]: in function 'require'
        https.lua:10: in main chunk
        [C]: in function 'require'
        downloader/thread.lua:1: in main chunk
stack traceback:
        [love "boot.lua"]:345: in function <[love "boot.lua"]:341>
        [C]: in function 'error'
        [love "callbacks.lua"]:181: in function <[love "callbacks.lua"]:180>
        [love "callbacks.lua"]:154: in function <[love "callbacks.lua"]:144>
        [C]: in function 'xpcall'
SparklMastr commented 11 months ago

OK, after a bunch of trial and error it seems that dnf install lua* fixed the issue. Not sure which of a lot of packages was the missing one. Let me know if I should mark this as closed, since I don't know which package was missing.

bkacjios commented 11 months ago

lua-sec is what provides the SSL core

SparklMastr commented 11 months ago

Thanks for letting me know, maybe it can be added to the Linux setup page in case anyone else can't figure it out.