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

Controller support? (ng) #141

Closed
brychanrobot opened this issue Sep 26, 2020 · 6 comments
Closed

Controller support? (ng) #141

brychanrobot opened this issue Sep 26, 2020 · 6 comments

Comments

@brychanrobot
Copy link

brychanrobot commented Sep 26, 2020

On the stable release version of the AppImage I can use my PS4 controller, but I installed an ng version (https://github.com/ChristopherHX/linux-packaging-scripts/actions/runs/248443847) in order to be able to use newer versions of the minecraft APK and keyboard/mouse works, but gamepad support seems to be broken. I'm getting LinuxJoystick::pool error in the log. Is this a known issue?

@ChristopherHX
Copy link
Owner

Not yet implemented in this feature branch.

@ChristopherHX
Copy link
Owner

Does it work now for you with the latest ng.AppImage update?

@brychanrobot
Copy link
Author

I tried https://github.com/ChristopherHX/linux-packaging-scripts/actions/runs/278450003 (I think that's the one you wanted me to try), and it crashed with this log. If it helps, I'm using a PS4 controller on Manjaro Gnome 20.1.

17:05:47 Trace [HybrisUtils] Loaded OS library libz.so.1
17:05:47 Trace [HybrisUtils] Loaded OS library libm.so.6
17:05:47 Trace [HybrisUtils] Loaded OS library /tmp/.mount_Minecrp7wXOg/usr/share/mcpelauncher/lib/native/x86/libfmod.so.12.0
17:05:47 Info  [Launcher] Loading gamepad mappings
17:05:47 Trace [Launcher] Loading gamepad mappings: /usr/local/share//mcpelauncher/gamecontrollerdb.txt
17:05:47 Trace [Launcher] Loading gamepad mappings: /tmp/.mount_Minecrp7wXOg/usr/share/mcpelauncher/gamecontrollerdb.txt
17:05:47 Info  [Launcher] Creating window
libevdev_new_from_fd error -22 (/dev/input/js0)
17:05:47 Trace [WindowCallbacks] Gamepad connected #0
17:05:47 Info  [Minecraft] android_main starting. internalDataPath is '../data/', externalDataPath is '../data/'
17:05:47 Info  [Minecraft] NO LOG FILE! - AppPlatform_android::setStorageDirectory - using External dir - CurrentFileStoragePath is now '/home/bryant/.local/share/mcpelauncher/'
17:05:47 Warn  [Launcher] EGL stub eglMakeCurrent called
17:05:47 Warn  [Launcher] EGL stub eglMakeCurrent called
17:05:47 Warn  [Launcher] EGL stub eglMakeCurrent called
17:05:47 Warn  [Minecraft] NO LOG FILE! - [Device Lost] The graphics context was gained
17:05:47 Warn  [Minecraft] MinecraftGame::init && MinecraftGame::setSize!
Signal 11 received
Backtrace elements: 7
#0 /tmp/.mount_Minecrp7wXOg/usr/bin/./mcpelauncher-client32(_ZN12CrashHandler12handleSignalEiPv+0xf1) [0x87eb271]
#1 linux-gate.so.1(__kernel_sigreturn+0) [0xf7f42580]
#2 /tmp/.mount_Minecrp7wXOg/usr/bin/./mcpelauncher-client32() [0x87b5456]
#3 /tmp/.mount_Minecrp7wXOg/usr/bin/./mcpelauncher-client32(_ZN14FakeInputQueue11finishEventEP14FakeInputEvent+0x20) [0x87b4d00]
#4 /tmp/.mount_Minecrp7wXOg/usr/bin/./mcpelauncher-client32() [0x87b4f03]
#5 /tmp/.mount_Minecrp7wXOg/usr/bin/./mcpelauncher-client32() [0x87b4ec5]
#6 HYBRIS (null)+0x47e in /home/bryant/.local/share/mcpelauncher/versions/1.16.40.02/lib/x86/libminecraftpe.so+0x0x810bae [0x0xdeb10bae]
Dumping stack...
#24 HYBRIS (null)+0xe3fe8a68 in /home/bryant/.local/share/mcpelauncher/versions/1.16.40.02/lib/x86/libminecraftpe.so+0x0x5ce8a68 [0x0xe3fe8a68]
#186 HYBRIS GameControllerHandler_Android::processRightTrigger(int, int, AInputEvent*)+0x13a in /home/bryant/.local/share/mcpelauncher/versions/1.16.40.02/lib/x86/libminecraftpe.so+0x0x80acba [0x0xdeb0acba]
#213 HYBRIS GameControllerHandler_Android::processRightTrigger(int, int, AInputEvent*)+0x13a in /home/bryant/.local/share/mcpelauncher/versions/1.16.40.02/lib/x86/libminecraftpe.so+0x0x80acba [0x0xdeb0acba]
#446 HYBRIS GameController::_feedStick(int, GameControllerStickState, float, float, int)+0xc in /home/bryant/.local/share/mcpelauncher/versions/1.16.40.02/lib/x86/libminecraftpe.so+0x0x3e1d5ac [0x0xe211d5ac]
#472 HYBRIS (null)+0xe3fe8a68 in /home/bryant/.local/share/mcpelauncher/versions/1.16.40.02/lib/x86/libminecraftpe.so+0x0x5ce8a68 [0x0xe3fe8a68]
#474 HYBRIS std::__ndk1::__shared_weak_count::__release_weak()+0xf in /home/bryant/.local/share/mcpelauncher/versions/1.16.40.02/lib/x86/libc++_shared.so+0x0x8bfdf [0x0xe468bfdf]
#480 HYBRIS (null)+0xe3fe8a68 in /home/bryant/.local/share/mcpelauncher/versions/1.16.40.02/lib/x86/libminecraftpe.so+0x0x5ce8a68 [0x0xe3fe8a68]
#482 HYBRIS GameControllerHandler_Android::processRightTrigger(int, int, AInputEvent*)+0x1f4 in /home/bryant/.local/share/mcpelauncher/versions/1.16.40.02/lib/x86/libminecraftpe.so+0x0x80ad74 [0x0xdeb0ad74]
#505 HYBRIS (null)+0xe3fe8a68 in /home/bryant/.local/share/mcpelauncher/versions/1.16.40.02/lib/x86/libminecraftpe.so+0x0x5ce8a68 [0x0xe3fe8a68]
#536 HYBRIS (null)+0xe3fe8a68 in /home/bryant/.local/share/mcpelauncher/versions/1.16.40.02/lib/x86/libminecraftpe.so+0x0x5ce8a68 [0x0xe3fe8a68]
#538 HYBRIS (null)+0x47e in /home/bryant/.local/share/mcpelauncher/versions/1.16.40.02/lib/x86/libminecraftpe.so+0x0x810bae [0x0xdeb10bae]
#548 HYBRIS MainAndroid::Internal::JNIQueueToMainThreadTaskGroup+(nil) in /home/bryant/.local/share/mcpelauncher/versions/1.16.40.02/lib/x86/libminecraftpe.so+0x0x5d10208 [0x0xe4010208]
#553 HYBRIS (null)+0xe2ac802b in /home/bryant/.local/share/mcpelauncher/versions/1.16.40.02/lib/x86/libminecraftpe.so+0x0x47c802b [0x0xe2ac802b]
#561 HYBRIS (null)+0xe3e58534 in /home/bryant/.local/share/mcpelauncher/versions/1.16.40.02/lib/x86/libminecraftpe.so+0x0x5b58534 [0x0xe3e58534]
#575 HYBRIS (null)+0xe3e584ec in /home/bryant/.local/share/mcpelauncher/versions/1.16.40.02/lib/x86/libminecraftpe.so+0x0x5b584ec [0x0xe3e584ec]
#584 HYBRIS (null)+0xe3fe8a68 in /home/bryant/.local/share/mcpelauncher/versions/1.16.40.02/lib/x86/libminecraftpe.so+0x0x5ce8a68 [0x0xe3fe8a68]
#586 HYBRIS (null)+0xdeb27009 in /home/bryant/.local/share/mcpelauncher/versions/1.16.40.02/lib/x86/libminecraftpe.so+0x0x827009 [0x0xdeb27009]
#607 HYBRIS (null)+(nil) in /home/bryant/.local/share/mcpelauncher/versions/1.16.40.02/lib/x86/libminecraftpe.so+0x0x80d160 [0x0xdeb0d160]
#611 HYBRIS (null)+(nil) in /home/bryant/.local/share/mcpelauncher/versions/1.16.40.02/lib/x86/libminecraftpe.so+0x0x80cfd0 [0x0xdeb0cfd0]
#612 HYBRIS (null)+(nil) in /home/bryant/.local/share/mcpelauncher/versions/1.16.40.02/lib/x86/libminecraftpe.so+0x0x80cfd0 [0x0xdeb0cfd0]
#613 HYBRIS (null)+(nil) in /home/bryant/.local/share/mcpelauncher/versions/1.16.40.02/lib/x86/libminecraftpe.so+0x0x41a7c90 [0x0xe24a7c90]
#614 HYBRIS (null)+(nil) in /home/bryant/.local/share/mcpelauncher/versions/1.16.40.02/lib/x86/libminecraftpe.so+0x0x41a8860 [0x0xe24a8860]
#685 HYBRIS (null)+0xdeb26f20 in /home/bryant/.local/share/mcpelauncher/versions/1.16.40.02/lib/x86/libminecraftpe.so+0x0x826f20 [0x0xdeb26f20]
#690 HYBRIS (null)+(nil) in /home/bryant/.local/share/mcpelauncher/versions/1.16.40.02/lib/x86/libminecraftpe.so+0x0x80d160 [0x0xdeb0d160]
#691 HYBRIS (null)+0xdeb26730 in /home/bryant/.local/share/mcpelauncher/versions/1.16.40.02/lib/x86/libminecraftpe.so+0x0x826730 [0x0xdeb26730]
#692 HYBRIS (null)+0xdeb267e0 in /home/bryant/.local/share/mcpelauncher/versions/1.16.40.02/lib/x86/libminecraftpe.so+0x0x8267e0 [0x0xdeb267e0]
#693 HYBRIS (null)+0xdeb26890 in /home/bryant/.local/share/mcpelauncher/versions/1.16.40.02/lib/x86/libminecraftpe.so+0x0x826890 [0x0xdeb26890]
#694 HYBRIS (null)+0xdeb26970 in /home/bryant/.local/share/mcpelauncher/versions/1.16.40.02/lib/x86/libminecraftpe.so+0x0x826970 [0x0xdeb26970]
#695 HYBRIS (null)+0xdeb26a20 in /home/bryant/.local/share/mcpelauncher/versions/1.16.40.02/lib/x86/libminecraftpe.so+0x0x826a20 [0x0xdeb26a20]
#696 HYBRIS (null)+0xdeb26640 in /home/bryant/.local/share/mcpelauncher/versions/1.16.40.02/lib/x86/libminecraftpe.so+0x0x826640 [0x0xdeb26640]
#697 HYBRIS (null)+0xdeb1ac40 in /home/bryant/.local/share/mcpelauncher/versions/1.16.40.02/lib/x86/libminecraftpe.so+0x0x81ac40 [0x0xdeb1ac40]
#698 HYBRIS (null)+0xdeb26c30 in /home/bryant/.local/share/mcpelauncher/versions/1.16.40.02/lib/x86/libminecraftpe.so+0x0x826c30 [0x0xdeb26c30]
#701 HYBRIS (null)+0xdeb26d50 in /home/bryant/.local/share/mcpelauncher/versions/1.16.40.02/lib/x86/libminecraftpe.so+0x0x826d50 [0x0xdeb26d50]
#702 HYBRIS (null)+0xdeb26e10 in /home/bryant/.local/share/mcpelauncher/versions/1.16.40.02/lib/x86/libminecraftpe.so+0x0x826e10 [0x0xdeb26e10]
#703 HYBRIS (null)+0xdeb26e40 in /home/bryant/.local/share/mcpelauncher/versions/1.16.40.02/lib/x86/libminecraftpe.so+0x0x826e40 [0x0xdeb26e40]
#705 HYBRIS (null)+0xdeb26ad0 in /home/bryant/.local/share/mcpelauncher/versions/1.16.40.02/lib/x86/libminecraftpe.so+0x0x826ad0 [0x0xdeb26ad0]
#706 HYBRIS (null)+0xdeb26b40 in /home/bryant/.local/share/mcpelauncher/versions/1.16.40.02/lib/x86/libminecraftpe.so+0x0x826b40 [0x0xdeb26b40]
#718 HYBRIS (null)+(nil) in /home/bryant/.local/share/mcpelauncher/versions/1.16.40.02/lib/x86/libminecraftpe.so+0x0x80cfd0 [0x0xdeb0cfd0]

Process exited with unexpected exit code: 6

@ChristopherHX
Copy link
Owner

I think, that is one reason why the ng controller crashs so often.
there is undefined behavior if only the gamepad is used as input.
https://github.com/minecraft-linux/mcpelauncher-client/blob/06951bde7ab56edeed3b02743b21e0fbc784fa1d/src/fake_inputqueue.cpp#L76

At least your controller got recognized by the launcher, should be fixed in 0.1-rp3.

@ChristopherHX
Copy link
Owner

ChristopherHX commented Sep 30, 2020

Do you know that all AppImages which are built by this scripts are uploaded to https://github.com/ChristopherHX/linux-packaging-scripts/releases/tag/ng.appimage and via the integrated zsync updater? Downloading 100MB vs. 4MB, known to fail on some distros.

I could reproduce this crash after testing gamepads with the AppImage Fixed.

@brychanrobot
Copy link
Author

Thanks! I can confirm that the latest version works for me.

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

2 participants