Kodi Community Forum

Full Version: Nightly crashing on startup (due to PeripheralJoystick) [17.5 also affected]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Latest Kodi nightly crashes on startup on my Sony Android TV. Dunno when it started. Haven't updated nightly since end of September. So it must have happened in the past 3 weeks.

I am appending a logat of the incident. Seems to be in Peripheral Joystick. I however disabled the Joystick add-on.

Code:
10-21 18:32:42.039 18578 18787 F libc    : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x4 in tid 18787 (Thread-1011)
10-21 18:32:42.098  1137  1137 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
10-21 18:32:42.098  1137  1137 F DEBUG   : Build fingerprint: 'Sony/SVP4KDTV15_EU/SVP-DTV15:6.0.1/MMB29V.S35/3.885:user/release-keys'
10-21 18:32:42.099  1137  1137 F DEBUG   : Revision: '0'
10-21 18:32:42.099  1137  1137 F DEBUG   : ABI: 'arm'
10-21 18:32:42.099  1137  1137 F DEBUG   : pid: 18578, tid: 18787, name: Thread-1011  >>> org.xbmc.kodi <<<
10-21 18:32:42.099  1137  1137 F DEBUG   : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x4
10-21 18:32:42.114  1137  1137 F DEBUG   :     r0 b8d828c8  r1 00000000  r2 00000000  r3 98544284
10-21 18:32:42.114  1137  1137 F DEBUG   :     r4 b8d828c8  r5 9be90528  r6 b8f9a158  r7 b827d990
10-21 18:32:42.114  1137  1137 F DEBUG   :     r8 00000001  r9 0000097a  sl ee3ab456  fp 0239f801
10-21 18:32:42.114  1137  1137 F DEBUG   :     ip 00004963  sp 98544280  lr 99cf4c50  pc 99cedcbc  cpsr 48000010
10-21 18:32:42.121  1137  1137 F DEBUG   :
10-21 18:32:42.121  1137  1137 F DEBUG   : backtrace:
10-21 18:32:42.121  1137  1137 F DEBUG   :     #00 pc 0107dcbc  /data/app/org.xbmc.kodi-2/lib/arm/libkodi.so (_ZN11PERIPHERALS11CPeripheral22UnregisterInputHandlerEPN4KODI8JOYSTICK13IInputHandlerE+24)
10-21 18:32:42.121  1137  1137 F DEBUG   :     #01 pc 01084c4c  /data/app/org.xbmc.kodi-2/lib/arm/libkodi.so (_ZN11PERIPHERALS19CPeripheralJoystickD2Ev+72)
10-21 18:32:42.121  1137  1137 F DEBUG   :     #02 pc 01084e58  /data/app/org.xbmc.kodi-2/lib/arm/libkodi.so (_ZN11PERIPHERALS19CPeripheralJoystickD0Ev+8)

[LOGCAT] (Crash report starts at line 84571)
When enabling the Joystick add-on before updating to latest nightly, no crash happens and Kodi starts up fine. So the crash only happens when starting latest Kodi nightlies with Joystick add-on being disabled.

Enabling Joystick in Kodi on Android however causes other issues..

This Joystick add-on is somehow weird anyway as it still does stuff even when being disabled, see here.
(2017-10-22, 12:59)CiNcH Wrote: [ -> ]When enabling the Joystick add-on before updating to latest nightly, no crash happens and Kodi starts up fine. So the crash only happens when starting latest Kodi nightlies with Joystick add-on being disabled.

I checked out the function in the crash log and found a possible null pointer dereference. I'll send a PR to master.

edit: https://github.com/xbmc/xbmc/pull/12951

(2017-10-22, 12:59)CiNcH Wrote: [ -> ]Enabling Joystick in Kodi on Android however causes other issues..

What issues? We should fix these.
Quote:What issues? We should fix these.

Like the problems with the Android TV Remote Control app or with button longpress after input device standby. The latter also happens with the Joystick add-on being disabled though (to be discussed in the linked thread).
Ugh, didn't know this also made its way into 17.5.
Can you try these builds?
EDIT: Give it about 30 minutes to propagate to the mirrors.

They include https://github.com/xbmc/xbmc/pull/12951
Already pushed new version for v17.5
(2017-10-24, 22:00)Martijn Wrote: [ -> ]Already pushed new version for v17.5

What does it mean? Will there be a new release of v17.5... 17.5.1? I am keen to know as I am affected by this bug on Sony TV too.

Thank you.
The fix has been merged to Krypton and master. Give the next round of nightlies a try.
I have what I think is a similar problem on 17.5; different hardware -

I just upgraded from 14 to 17.5 on a Fire TV with Android 5.1.1.  I use FLIRC, not sure if this could be involved.  After installing the APK and first run/cache work, 17.5 will attempt to load and return to the home screen within 1-2 seconds.  I have tried to remove/reinstall the APK twice with the same result.  I have downgraded to 14 and everything still works fine.


I'm new to debugging but I can collect any additional logs if they would help.  Here is what I have so far:


@Karellen- Log removed
@narf003

No logs in the forum please. Use a pastebin type site.
(2017-10-25, 04:46)Karellen Wrote: [ -> ]@narf003

No logs in the forum please. Use a pastebin type site.

No problem.

error: 
20:58:15.560 T:18446744072513428512 WARNING: Button mapping add-on not present for android/inputdevice/6 (flirc.tv flirc), skipping
20:58:15.560 T:18446744072513428512   ERROR: CPeripheralJoystick: Invalid location (android/inputdevice/6)

log:
https://pastebin.com/CVxuygxP
Can you try one of the builds I posted?
Looks good from my side.

Seems like quite some people disabled the add-on. There have also been people on Sony forums who reported that all of a sudden, Kodi did not come up anymore. Why do so many people fiddle with that add-on? Does it break so many things on Android?

I mean, I know why I do... this Joystick thingy is causing one or the other issue for me too. But I wouldn't have thought that a lot of people did the same thing.
@garbear - That worked. Showed up as v18.0, went through the first time setup and a database migration, and then gets to the home screen as expected. Do you know if I will be able to downgrade back to something older, after having gone through the DB migration?

@CiNcH - Could it be that an older version had the joystick disabled by default?
Pages: 1 2