Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 04-03-12, 02:15 PM   #1
bobo1on1
Registered User
 
Join Date: Dec 2006
Posts: 5
Default XBMC hangs in popen since 295.20

In XBMC we use popen with nvidia-settings to get the display refreshrate, since 295.20 this often hangs in the child process, 295.33 shows the same behavior.
The backtrace shows that the child process hangs on locking a mutex:
Code:
(gdb) thread apply all bt

Thread 1 (Thread 0xa9effb70 (LWP 3168)):
#0  0x00c37832 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1  0x0037aaf9 in __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/lowlevellock.S:142
#2  0x00376149 in _L_lock_839 () from /lib/tls/i686/cmov/libpthread.so.0
#3  0x00375fdb in __pthread_mutex_lock (mutex=0xfeb7e0) at pthread_mutex_lock.c:82
#4  0x00fa6d91 in ?? () from /usr/lib/libGL.so.1
#5  0x01f244f6 in _IO_new_proc_open (fp=0x0, command=0x8bba318 "nvidia-settings -nt -q RefreshRate3", mode=0x8b9f8f9 "r") at iopopen.c:191
#6  0x01f2481a in _IO_new_popen (command=0x8bba318 "nvidia-settings -nt -q RefreshRate3", mode=0x8b9f8f9 "r") at iopopen.c:312
#7  0x0846cbfc in CVideoReferenceClock::ParseNvSettings (this=0x8e157a0, RefreshRate=@0xa9efeee8) at VideoReferenceClock.cpp:401
#8  0x0846d4b0 in CVideoReferenceClock::UpdateRefreshrate (this=0x8e157a0, Forced=true) at VideoReferenceClock.cpp:1193
#9  0x0846e5ac in CVideoReferenceClock::SetupGLX (this=0x8e157a0) at VideoReferenceClock.cpp:369
#10 0x0846e8f2 in CVideoReferenceClock::Process (this=0x8e157a0) at VideoReferenceClock.cpp:140
#11 0x08a50531 in CThread::staticThread (data=0x8e157a0) at Thread.cpp:177
#12 0x00fac0f1 in ?? () from /usr/lib/libGL.so.1
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb)
This only happens when using OpenGL from one thread, and popen from another, it never hangs if popen is called from the render thread.
If the mutex was locked by another thread at the time the process is forked, it will never be unlucked in the child process, since the thread that originally locked it doesn't exist there.
bobo1on1 is offline   Reply With Quote
Old 04-10-12, 07:07 AM   #2
Ad0
Registered User
 
Join Date: Feb 2009
Posts: 17
Default Re: XBMC hangs in popen since 295.20

Bump. It happens in 295.33 too. PLEASE FIX IT. It makes xbmc very unstable
Ad0 is offline   Reply With Quote
Old 04-11-12, 10:24 AM   #3
Anssi
Mageia packager
 
Join Date: Mar 2005
Location: Tampere, Finland
Posts: 45
Send a message via MSN to Anssi
Default Re: XBMC hangs in popen since 295.20

295.40 is affected.
__________________
Anssi Hannula (anssi@mageia.org)
Mageia packager of NVIDIA drivers
XBMC developer
Anssi is offline   Reply With Quote
Old 04-12-12, 11:20 AM   #4
sandipt
NVIDIA Corporation
 
sandipt's Avatar
 
Join Date: Dec 2010
Posts: 260
Default Re: XBMC hangs in popen since 295.20

Please provide reproduction steps in detail and nvidia bug report.
sandipt is offline   Reply With Quote
Old 04-12-12, 01:33 PM   #5
Anssi
Mageia packager
 
Join Date: Mar 2005
Location: Tampere, Finland
Posts: 45
Send a message via MSN to Anssi
Default Re: XBMC hangs in popen since 295.20

Attached a simple testcase (it will hang with the affected drivers) and nvidia-bug-report.log.gz.
Attached Files
File Type: gz nvidia-bug-report.log.gz (78.9 KB, 47 views)
File Type: txt popentest.c.txt (1.2 KB, 73 views)
__________________
Anssi Hannula (anssi@mageia.org)
Mageia packager of NVIDIA drivers
XBMC developer
Anssi is offline   Reply With Quote
Old 04-16-12, 07:57 AM   #6
sandipt
NVIDIA Corporation
 
sandipt's Avatar
 
Join Date: Dec 2010
Posts: 260
Default Re: XBMC hangs in popen since 295.20

NVIDIA internal Bug ID: 970232 to track this issue.
sandipt is offline   Reply With Quote
Old 04-16-12, 03:09 PM   #7
Ad0
Registered User
 
Join Date: Feb 2009
Posts: 17
Default Re: XBMC hangs in popen since 295.20

Thanks, guys!
Ad0 is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 08:49 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.