v17 OpenWeather makes kodi crash
#1
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!
Reply
#2
please try disabling openweathermap
Reply
#3
Thanks, no more crashes after disabling this feature!
I hope this issue gets fixed soon. I kinda like the weather functionality in Kodi Wink
Reply
#4
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?
Reply
#5
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.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#6
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.
Reply
#7
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
Reply
#8
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.
Reply
#9
(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?
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#10
looks like PPA build
Reply
#11
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.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#12
@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.
Reply
#13
http://forum.kodi.tv/showthread.php?tid=289075
Reply
#14
http://forum.kodi.tv/showthread.php?tid=289519
Reply
#15
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...
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply

Logout Mark Read Team Forum Stats Members Help
OpenWeather makes kodi crash0