Bug#800938: kodi: segfault on start

2015-10-06 Thread Vladimir Stavrinov
On Tue, Oct 06, 2015 at 06:06:00PM +0300, Vladimir Stavrinov wrote:

> It requires some more investigation.

Done. Downgrade to these version of these packages solves the problem:

ii  glx-alternative-mesa0.5.1  amd64  allows 
the selection of MESA as GLX provider
ii  glx-alternative-nvidia  0.5.1  amd64  allows 
the selection of NVIDIA as GLX provider
ii  glx-diversions  0.5.1  amd64  prepare 
for using accelerated GLX implementations from GPU v
ii  libegl1-nvidia:amd64340.93-1   amd64  NVIDIA 
binary EGL libraries
ii  libgl1-nvidia-glx:amd64 340.93-1   amd64  NVIDIA 
binary OpenGL libraries
ii  libgl1-nvidia-glx:i386  340.93-1   i386   NVIDIA 
binary OpenGL libraries
ii  libgl1-nvidia-glx-i386:i386 340.93-1   i386   NVIDIA 
binary OpenGL 32-bit libraries
ii  libgles1-nvidia:amd64   340.93-1   amd64  NVIDIA 
binary OpenGL|ES 1.x libraries
ii  libgles2-nvidia:amd64   340.93-1   amd64  NVIDIA 
binary OpenGL|ES 2.x libraries
ii  libnvidia-eglcore:amd64 340.93-1   amd64  NVIDIA 
binary EGL core libraries
ii  libnvidia-ml1:amd64 340.93-1   amd64  NVIDIA 
Management Library (NVML) runtime library
ii  nvidia-alternative  340.93-1   amd64  allows 
the selection of NVIDIA as GLX provider
ii  nvidia-driver   340.93-1   amd64  NVIDIA 
metapackage
ii  nvidia-driver-bin   340.93-1   amd64  NVIDIA 
driver support binaries
ii  nvidia-kernel-dkms  340.93-1   amd64  NVIDIA 
binary kernel module DKMS source
ii  nvidia-vdpau-driver:amd64   340.93-1   amd64  Video 
Decode and Presentation API for Unix - NVIDIA driver
ii  xserver-xorg-video-nvidia   340.93-1   amd64  NVIDIA 
binary Xorg driver

But the question remains: where to redirect report to. May be
somebody already reported this bug. Need some search over BTS.

###  Vladimir Stavrinov  ###



Bug#800938: kodi: segfault on start

2015-10-06 Thread Bálint Réczey
Control: tags -1 moreinfo

Hi Vladimir,

2015-10-06 17:06 GMT+02:00 Vladimir Stavrinov :
> On Tue, Oct 06, 2015 at 04:17:19PM +0200, Bálint Réczey wrote:
>
>> It seems there is something with X/OpenGL,
>
> Yes, You are right:
>
>> 11:51:22 T:139689330411904   ERROR: GLX Error: Could not create context
>
>>  the crash happens only at exit.:
>
> It starts and falls down in the next moment.
>
>> Do other OpenGL programs work OK?
>
> No, xlock crashes too on GL mode.
>
>> Is there anything special regarding X/OpenGL/screens in your system?
>
> Nothing apart from nvidia, but it is totally from Debian only:
This is good news. :-)

>
> ii  glx-alternative-mesa0.6.1  amd64  allows 
> the selection of MESA as GLX provider
> ii  glx-alternative-nvidia  0.6.1  amd64  allows 
> the selection of NVIDIA as GLX provider
> ii  glx-diversions  0.6.1  amd64  prepare 
> for using accelerated GLX implementations from GPU v
> ii  libgl1-mesa-dev:amd64   10.6.8-1   amd64  free 
> implementation of the OpenGL API -- GLX development fil
> ii  libgl1-mesa-glx:amd64   10.6.8-1   amd64  free 
> implementation of the OpenGL API -- GLX runtime
> ii  libgl1-mesa-glx:i38610.6.8-1   i386   free 
> implementation of the OpenGL API -- GLX runtime
> ii  libgl1-nvidia-glx:amd64 340.93-3   amd64  NVIDIA 
> binary OpenGL libraries
> ii  libgl1-nvidia-glx:i386  340.93-3   i386   NVIDIA 
> binary OpenGL libraries
> ii  libgl1-nvidia-glx-i386:i386 340.93-3   i386   NVIDIA 
> binary OpenGL 32-bit libraries
> ii  libva-glx1:amd641.6.1-1amd64  Video 
> Acceleration (VA) API for Linux -- GLX runtime
> ii  libxcb-glx0:amd64   1.10-3+b1  amd64  X C 
> Binding, glx extension
> ii  libxcb-glx0:i3861.10-3+b1  i386   X C 
> Binding, glx extension
> ii  libxcb-glx0-dev:amd64   1.10-3+b1  amd64  X C 
> Binding, glx extension, development files
> ii  nvidia-alternative  340.93-3   amd64  allows 
> the selection of NVIDIA as GLX provider
>
>
>> I have packaged Kodi RC3, does it fix the problem for you in case it
>> is a Kodi bug?
>
>> There are prebuilt binaries here:
>> http://debomatic-amd64.debian.net/distribution#unstable/kodi/15.2~rc3+dfsg1-1/
>
> No, the same result.
>
>> Did previous version of kodi worked on this system?
>
> Yes, I am using kodi(xbmc) for a while. And some GLX related packages
> was updated recently. I guess this caused this problem. So, this bug
> report should be redirected to some other package. But to which one?
> It requires some more investigation.
You can find the package installation changes in /var/log/dpkg.log* .
Please try to downgrade the suspicious packages to find which caused
the regression and reassign this bug to that one.

Cheers,
Balint



Bug#800938: kodi: segfault on start

2015-10-06 Thread Vladimir Stavrinov
On Tue, Oct 06, 2015 at 04:17:19PM +0200, Bálint Réczey wrote:

> It seems there is something with X/OpenGL,

Yes, You are right:

> 11:51:22 T:139689330411904   ERROR: GLX Error: Could not create context

>  the crash happens only at exit.:

It starts and falls down in the next moment.

> Do other OpenGL programs work OK? 

No, xlock crashes too on GL mode.

> Is there anything special regarding X/OpenGL/screens in your system?

Nothing apart from nvidia, but it is totally from Debian only:

ii  glx-alternative-mesa0.6.1  amd64  allows 
the selection of MESA as GLX provider
ii  glx-alternative-nvidia  0.6.1  amd64  allows 
the selection of NVIDIA as GLX provider
ii  glx-diversions  0.6.1  amd64  prepare 
for using accelerated GLX implementations from GPU v
ii  libgl1-mesa-dev:amd64   10.6.8-1   amd64  free 
implementation of the OpenGL API -- GLX development fil
ii  libgl1-mesa-glx:amd64   10.6.8-1   amd64  free 
implementation of the OpenGL API -- GLX runtime
ii  libgl1-mesa-glx:i38610.6.8-1   i386   free 
implementation of the OpenGL API -- GLX runtime
ii  libgl1-nvidia-glx:amd64 340.93-3   amd64  NVIDIA 
binary OpenGL libraries
ii  libgl1-nvidia-glx:i386  340.93-3   i386   NVIDIA 
binary OpenGL libraries
ii  libgl1-nvidia-glx-i386:i386 340.93-3   i386   NVIDIA 
binary OpenGL 32-bit libraries
ii  libva-glx1:amd641.6.1-1amd64  Video 
Acceleration (VA) API for Linux -- GLX runtime
ii  libxcb-glx0:amd64   1.10-3+b1  amd64  X C 
Binding, glx extension
ii  libxcb-glx0:i3861.10-3+b1  i386   X C 
Binding, glx extension
ii  libxcb-glx0-dev:amd64   1.10-3+b1  amd64  X C 
Binding, glx extension, development files
ii  nvidia-alternative  340.93-3   amd64  allows 
the selection of NVIDIA as GLX provider

 
> I have packaged Kodi RC3, does it fix the problem for you in case it
> is a Kodi bug?

> There are prebuilt binaries here:
> http://debomatic-amd64.debian.net/distribution#unstable/kodi/15.2~rc3+dfsg1-1/

No, the same result.

> Did previous version of kodi worked on this system?

Yes, I am using kodi(xbmc) for a while. And some GLX related packages
was updated recently. I guess this caused this problem. So, this bug
report should be redirected to some other package. But to which one?
It requires some more investigation.

###  Vladimir Stavrinov  ###



Bug#800938: kodi: segfault on start

2015-10-06 Thread Vladimir Stavrinov
On Tue, Oct 06, 2015 at 07:03:30PM +0300, Vladimir Stavrinov wrote:

> They promise to fix it in next version, that already uploaded.

No, it is not true. They say about 0.6.1, but it doesn't work.
glx-diversions-0.6.1 and nvidia-340.93-1 doesn't work.

###  Vladimir Stavrinov  ###



Bug#800938: kodi: segfault on start

2015-10-06 Thread Bálint Réczey
Control: reassign -1 glx-diversions 0.6.1
Control: affects -1 kodi

2015-10-06 18:33 GMT+02:00 Vladimir Stavrinov :
> On Tue, Oct 06, 2015 at 07:03:30PM +0300, Vladimir Stavrinov wrote:
>
>> They promise to fix it in next version, that already uploaded.
>
> No, it is not true. They say about 0.6.1, but it doesn't work.
> glx-diversions-0.6.1 and nvidia-340.93-1 doesn't work.
I'm reassigning the bug to one of them, they are maintained by the
same people anyway. They can find the right package and solution.

Cheers,
Balint



Bug#800938: kodi: segfault on start

2015-10-06 Thread Vladimir Stavrinov
On Tue, Oct 06, 2015 at 06:52:13PM +0300, Vladimir Stavrinov wrote:

> But the question remains: where to redirect report to. May be
> somebody already reported this bug. Need some search over BTS.

It looks like the problem is here:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=799948

They promise to fix it in next version, that already uploaded.


###  Vladimir Stavrinov  ###



Bug#800938: kodi: segfault on start

2015-10-06 Thread Bálint Réczey
Hi Vladimir,

Thanks for the bug report.

2015-10-05 10:57 GMT+02:00 Vladmimir Stavrinov :
> Package: kodi
> Version: 15.2~rc1+dfsg1-2
> Severity: normal
>
> Dear Maintainer,
>
> Won't start. Crash on start. See log.
It seems there is something with X/OpenGL, the crash happens only at exit.:
...
Thread 1 (Thread 0x7f0bf4eb0980 (LWP 27863)):
#0  0x01bee860 in ?? ()
#1  0x00746625 in CMediaSourceSettings::Clear() ()
#2  0x00c991e1 in CSettingsManager::OnSettingsUnloaded() ()
#3  0x00c99e43 in CSettingsManager::Unload() ()
#4  0x00c9d2de in CSettingsManager::Clear() ()
#5  0x00730cfd in CSettings::Uninitialize() ()
#6  0x0073115f in CSettings::~CSettings() ()
#7  0x7f0be9ffcbc9 in __run_exit_handlers (status=-1,
listp=0x7f0bea3685a8 <__exit_funcs>,
run_list_atexit=run_list_atexit@entry=true) at exit.c:82
#8  0x7f0be9ffcc15 in __GI_exit (status=) at exit.c:104
#9  0x7f0be9fe6b4c in __libc_start_main (main=0x6ccc40 ,
argc=1, argv=0x7ffd558646f8, init=, fini=, rtld_fini=, stack_end=0x7ffd558646e8) at
libc-start.c:321
#10 0x00716b39 in _start ()
...

...
11:51:22 T:139689330411904   ERROR: CWinSystemX11::XErrorHandler:
BadValue (integer parameter out of range for operation), type:0,
serial:81, error_code:2, request_code:154 minor_code:3
11:51:22 T:139689330411904   ERROR: GLX Error: Could not create context
11:51:22 T:139689330411904INFO: GL: Maximum texture width: 32768
11:51:22 T:139689330411904   DEBUG: GLX_EXTENSIONS:
GLX_EXT_visual_info GLX_EXT_visual_rating GLX_SGIX_fbconfig
GLX_SGIX_pbuffer GLX_SGI_video_sync GLX_SGI_swap_control
GLX_EXT_swap_control GLX_EXT_swap_control_tear
GLX_EXT_texture_from_pixmap GLX_EXT_buffer_age GLX_ARB_create_context
GLX_ARB_create_context_profile GLX_EXT_create_context_es_profile
GLX_EXT_create_context_es2_profile GLX_ARB_create_context_robustness
GLX_NV_delay_before_swap GLX_EXT_stereo_tree GLX_ARB_multisample
GLX_NV_float_buffer GLX_ARB_fbconfig_float GLX_EXT_framebuffer_sRGB
GLX_NV_multisample_coverage GLX_ARB_get_proc_address
11:51:22 T:139689330411904   ERROR: InitRenderSystem() glewInit
returned 1: Missing GL version
11:51:22 T:139689330411904   FATAL: CApplication::Create: Unable to
init rendering system
...

Do other OpenGL programs work OK? Is there anything special regarding
X/OpenGL/screens in your system?

I have packaged Kodi RC3, does it fix the problem for you in case it
is a Kodi bug?
There are prebuilt binaries here:
http://debomatic-amd64.debian.net/distribution#unstable/kodi/15.2~rc3+dfsg1-1/

Did previous version of kodi worked on this system?

Cheers,
Balint



Bug#800938: kodi: segfault on start

2015-10-05 Thread Vladmimir Stavrinov
Package: kodi
Version: 15.2~rc1+dfsg1-2
Severity: normal

Dear Maintainer,

Won't start. Crash on start. See log.


-- System Information:
Debian Release: stretch/sid
  APT prefers testing-updates
  APT policy: (500, 'testing-updates'), (500, 'stable-updates'), (500, 
'unstable'), (500, 'testing'), (500, 'stable'), (500, 'oldstable'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.2.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)

Versions of packages kodi depends on:
ii  kodi-bin   15.2~rc1+dfsg1-2
ii  kodi-data  15.2~rc1+dfsg1-2

kodi recommends no packages.

kodi suggests no packages.

-- no debconf information
## Kodi CRASH LOG ###

 SYSTEM INFO 
 Date: Mon Oct  5 11:51:22 MSK 2015
 Kodi Options: 
 Arch: x86_64
 Kernel: Linux 4.2.0-1-amd64 #1 SMP Debian 4.2.1-2 (2015-09-27)
 Release: Debian GNU/Linux
## END SYSTEM INFO ##

### STACK TRACE #
=>  Core file: /home/vs/core (2015-10-05 11:51:22.759834897 +0300)
=
[New LWP 27863]
[New LWP 27874]
[New LWP 27873]
[New LWP 27875]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/lib/x86_64-linux-gnu/kodi/kodi.bin'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x01bee860 in ?? ()
[Current thread is 1 (Thread 0x7f0bf4eb0980 (LWP 27863))]

Thread 4 (Thread 0x7f0bcad79700 (LWP 27875)):
#0  0x7f0bea0a252d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x7f0bee42a831 in ?? () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#2  0x7f0bee41be51 in pa_mainloop_poll () from 
/usr/lib/x86_64-linux-gnu/libpulse.so.0
#3  0x7f0bee41c4ee in pa_mainloop_iterate () from 
/usr/lib/x86_64-linux-gnu/libpulse.so.0
#4  0x7f0bee41c5a0 in pa_mainloop_run () from 
/usr/lib/x86_64-linux-gnu/libpulse.so.0
#5  0x7f0bee42a7c6 in ?? () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#6  0x7f0be25b9ff8 in ?? () from 
/usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-7.0.so
#7  0x7f0bf27a90a4 in start_thread (arg=0x7f0bcad79700) at 
pthread_create.c:309
#8  0x7f0bea0ab06d in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 3 (Thread 0x7f0bc7579700 (LWP 27873)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at 
../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
#1  0x00978f57 in ActiveAE::CActiveAE::Process() ()
#2  0x0113ed0f in CThread::Action() ()
#3  0x0113efd2 in CThread::staticThread(void*) ()
#4  0x7f0bf27a90a4 in start_thread (arg=0x7f0bc7579700) at 
pthread_create.c:309
#5  0x7f0bea0ab06d in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7f0bcb57a700 (LWP 27874)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at 
../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:143
#1  0x7f0bee42ae18 in pa_threaded_mainloop_wait () from 
/usr/lib/x86_64-linux-gnu/libpulse.so.0
#2  0x0099791c in CAESinkPULSE::AddPackets(unsigned char**, unsigned 
int, unsigned int) ()
#3  0x0097ae56 in 
ActiveAE::CActiveAESink::OutputSamples(ActiveAE::CSampleBuffer*) ()
#4  0x0097c022 in ActiveAE::CActiveAESink::StateMachine(int, 
Actor::Protocol*, Actor::Message*) ()
#5  0x0097ca57 in ActiveAE::CActiveAESink::Process() ()
#6  0x0113ed0f in CThread::Action() ()
#7  0x0113efd2 in CThread::staticThread(void*) ()
#8  0x7f0bf27a90a4 in start_thread (arg=0x7f0bcb57a700) at 
pthread_create.c:309
#9  0x7f0bea0ab06d in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7f0bf4eb0980 (LWP 27863)):
#0  0x01bee860 in ?? ()
#1  0x00746625 in CMediaSourceSettings::Clear() ()
#2  0x00c991e1 in CSettingsManager::OnSettingsUnloaded() ()
#3  0x00c99e43 in CSettingsManager::Unload() ()
#4  0x00c9d2de in CSettingsManager::Clear() ()
#5  0x00730cfd in CSettings::Uninitialize() ()
#6  0x0073115f in CSettings::~CSettings() ()
#7  0x7f0be9ffcbc9 in __run_exit_handlers (status=-1, listp=0x7f0bea3685a8 
<__exit_funcs>, run_list_atexit=run_list_atexit@entry=true) at exit.c:82
#8  0x7f0be9ffcc15 in __GI_exit (status=) at exit.c:104
#9  0x7f0be9fe6b4c in __libc_start_main (main=0x6ccc40 , argc=1, 
argv=0x7ffd558646f8, init=, fini=, 
rtld_fini=, stack_end=0x7ffd558646e8) at libc-start.c:321
#10 0x00716b39 in _start ()
# END STACK TRACE ###

# LOG FILE ##

11:51:21 T:139689330411904  NOTICE: special://profile/ is mapped to: 
special://masterprofile/
11:51:21 T:139689330411904  NOTICE: