Kodi Community Forum
v17 OpenWeather makes kodi crash - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
+---- Thread: v17 OpenWeather makes kodi crash (/showthread.php?tid=291137)

Pages: 1 2


OpenWeather makes kodi crash - enolive - 2016-09-18

I am using Kodi v17 since a few weeks.
I often encounter crashes at the end of video/music playback.
They seem to occur after longer playing time.

I enabled debug logging and installed gdb for more error information.

Here is a kodi crash log after watching a longer movie:
http://paste.ubuntu.com/23195382/

I will try to reproduce the error with music playback tomorrow!


RE: Kodi crashes at the end of longer playback - wsnipex - 2016-09-18

please try disabling openweathermap


RE: Kodi crashes at the end of longer playback - enolive - 2016-09-18

Thanks, no more crashes after disabling this feature!
I hope this issue gets fixed soon. I kinda like the weather functionality in Kodi Wink


RE: OpenWeather makes kodi crash - enolive - 2016-09-27

FYI, Kodi v17 nightly still crashes when I reenable openweather. No playback is needed at all to trigger this
Changed the subject, so it does not mislead possible readers.

Should I file a bug on trac.kodi.tv?


RE: OpenWeather makes kodi crash - ronie - 2016-09-27

running linux as well, but never experienced a crash with openweathermap.

@wsnipex: i'm not an expert in reading crashlogs... is this PIL related?
if you have any pointers on how to fix this in the addon, i'm all ears.


RE: OpenWeather makes kodi crash - wsnipex - 2016-09-27

yes, it seems to fail initing PIL, then some exit handler runs which destructs Settings, which somehow fails.

Code:
Thread 1 (Thread 0x7f51cffff700 (LWP 5458)):
#0  0x00007f525b11f418 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
#1  0x00007f525b12101a in __GI_abort () at abort.c:89
#2  0x00007f525b16172a in __libc_message (do_abort=do_abort@entry=2, fmt=fmt@entry=0x7f525b27a6b0 "*** Error in `%s': %s: 0x%s ***\n") at ../sysdeps/posix/libc_fatal.c:175
#3  0x00007f525b169f4a in malloc_printerr (ar_ptr=<optimized out>, ptr=<optimized out>, str=0x7f525b2774a7 "free(): invalid size", action=3) at malloc.c:5007
#4  _int_free (av=<optimized out>, p=<optimized out>, have_lock=0) at malloc.c:3868
#5  0x00007f525b16dabc in __GI___libc_free (mem=<optimized out>) at malloc.c:2969
#6  0x000000000111def1 in CMediaSourceSettings::Clear() ()
#7  0x00000000010d06e2 in CSettingsManager::Unload() ()
#8  0x00000000010d383e in CSettingsManager::Clear() ()
#9  0x00000000011290e9 in CSettings::Uninitialize() ()
#10 0x0000000001129ba8 in CSettings::~CSettings() ()
#11 0x00007f525b123fe8 in __run_exit_handlers (status=1, listp=0x7f525b4ad5f8 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true) at exit.c:82
#12 0x00007f525b124035 in __GI_exit (status=<optimized out>) at exit.c:104
#13 0x00007f51e1cbc172 in ?? () from /usr/lib/python2.7/dist-packages/PIL/_imaging.x86_64-linux-gnu.so
#14 0x00007f51e1cbc264 in ImagingAccessInit () from /usr/lib/python2.7/dist-packages/PIL/_imaging.x86_64-linux-gnu.so
#15 0x00007f51e1cb7f46 in init_imaging () from /usr/lib/python2.7/dist-packages/PIL/_imaging.x86_64-linux-gnu.so

you simply read this from bottom to top, #6 being the last part of kodi code before it goes into libc.


RE: OpenWeather makes kodi crash - pedreas - 2016-09-27

install the new kodi 17 and controls not play, forward, subtitle, pause, stop appears below the video
Can you help me how to install
regards


RE: OpenWeather makes kodi crash - enolive - 2016-09-28

Compared the stacktrace from my original post to my latest crashlog, looks the same so I won't upload it.
I've switched from OpenWeather to Yahoo and so far did not encounter any crashes, so I guess this is my workaround for now.

Let me know if you need any further information to analyze this problem!

@pedreas: I think you should open a separate topic Wink.


RE: OpenWeather makes kodi crash - ronie - 2016-09-28

(2016-09-28, 20:25)enolive Wrote: Let me know if you need any further information to analyze this problem!

are you using kodi from our ppa or a self-compiled version?


RE: OpenWeather makes kodi crash - wsnipex - 2016-09-29

looks like PPA build


RE: OpenWeather makes kodi crash - ronie - 2016-09-29

ok, thx..

this line caught my eye in the log:
01:23:17 T:139991814252928 NOTICE: Kodi compiled Nov 4 2012 by GCC 5.4.0 for Linux x86 64-bit version 4.4.16 (263184)

and made me wonder if perhaps an incorrect date/time on his machine could cause issues.
but if it's a ppa build, that's not the case.


OpenWeather makes kodi crash - ksooo - 2016-09-29

@ronie there are other users reporting this problem, not only on Linux. I know about at least one case that happens on Windows. Sorry, don't have the respective forum thread at hand, atm.


OpenWeather makes kodi crash - ksooo - 2016-09-29

http://forum.kodi.tv/showthread.php?tid=289075


OpenWeather makes kodi crash - ksooo - 2016-09-29

http://forum.kodi.tv/showthread.php?tid=289519


RE: OpenWeather makes kodi crash - ronie - 2016-10-01

as far as i can tell from the logs, the script runs correctly the first time.
when it gets started for the second time, kodi apparently crashes right at the start of the script, when it imports the PIL module.

no idea if there's actually an issue in the addon or if it's a bug in kodi...