-
Notifications
You must be signed in to change notification settings - Fork 12
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
Wayland support: SFML input backend #11
Comments
|
I tried to reproduce this issue on my machine and it can not 100% produce. I tried about 10 times and this issue occurred twice.
|
I can reproduce this issue at every time after
FYI: I found this thread on reddit and this on Ubuntu Discourse, they said Wayland use There may be some reasons why |
Not every Wayland user has unrootful xwayland. Also, if an app actually supports native Wayland then it shouldn’t depend on $DISPLAY. Most electron apps would not need the $DISPLAY variable set if it’s run with --ozone-platform=wayland, so it seems to be a trackaudio specific issue. |
This is going to heavily depend on Electron's support of wayland. If you google it, you'll find a bunch of people are also struggling with this. Try to run it with --enable-features=UseOzonePlatform --ozone-platform=wayland |
See section 5.9 here: https://wiki.archlinux.org/title/wayland |
That doesn't work. Also note that the crash takes place in the C++ backend
|
Does this specific Segfault occur reliably every time? There is no Wayland specific reason as to why that bit of code would segfault - it does not use native libraries aside from pthreads |
Yes |
If you can rebuild locally, comment out the call to that function and see what happens - I will investigate in my VM |
After comment this line
|
Which GPU are you both running and which drivers are you using? |
I don't have much experience installing drivers for nvidia graphics cards on Arch, so if you need more information please let me know, sorry for that. |
Thanks, if you can try, you should install the proprietary nvidea drivers and see what happens. Overall this issue is not likely to be with TrackAudio, but with specific versions of arch and GPU setups, and how the chromium engine in Electron behaves. If you can use XWayland, I'd recommend that. |
It could also be because uiohook-napi the library used to detect push to talk, is built using X11 native apis See here, seems like an update to that library is not likely to occur soon. |
Is there any alternative? |
No, it would require making a separate dependency just for wayland, which
is not on my roadmap at the moment. I will accept a PR, however.
…On Mon, 29 Apr 2024 at 23:16, Sparrow He ***@***.***> wrote:
It could also be because uiohook-napi
<https://github.com/SnosMe/uiohook-napi> the library used to detect push
to talk, is built using X11 native apis也可能是因为用于检测一键通的库 uiohook-napi 是使用 X11
原生 API 构建的
See here <kwhat/libuiohook#100>, seems like an
update to that library is not likely to occur soon.看到这里,似乎不太可能很快对该库进行更新。
Is there any alternative?
—
Reply to this email directly, view it on GitHub
<#11 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAN7UK2OBCOFR4QQSAQSUU3Y74EI5AVCNFSM6AAAAABG4Z6WMCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBUGI4TOMJRGU>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
You should now be able to run electron in Wayland natively and perhaps the backend would tolerate no X11 if you use a joystick PTT only, to be tested. The input handler uses SFML 2.6 in the backend/ |
Tracking in #211 |
Currently, running TrackAudio under a pure Wayland environment is impossible:
Wayland is expected to replace X11 in the future, and some of the major Linux distros have already started shipping Wayland desktop environments by default. Thus, Wayland support should be considered.
My environment:
OS: Artix Linux x86_64
Kernel: 6.8.7-artix1-2
Resolution: 3840x2160
Wayland window manager/compositor: niri
The text was updated successfully, but these errors were encountered: